OSDN Git Service

android-x86/frameworks-base.git
8 years agoresolve merge conflicts of b242549166 to nyc-dev
Erik Kline [Mon, 22 Feb 2016 06:42:07 +0000 (15:42 +0900)]
resolve merge conflicts of b242549166 to nyc-dev

Change-Id: I42d4cac95a209fdfae5769d75d90f004a94d60a4

8 years agoGive bluetooth sufficient capabilities to run DhcpClient
Erik Kline [Thu, 18 Feb 2016 12:59:31 +0000 (21:59 +0900)]
Give bluetooth sufficient capabilities to run DhcpClient

Specifically:
    CAP_NET_RAW
    CAP_NET_BIND_SERVICE

Bug: 26991160
Change-Id: I2afddc9efa3b613d974afb0ea33703948203d99a

8 years agoAdd WaitForProvisioningCallback
Erik Kline [Mon, 22 Feb 2016 04:29:37 +0000 (04:29 +0000)]
Add WaitForProvisioningCallback
am: 111d55658b

* commit '111d55658bce1bcc3eb61b4aeaa4d8a256165b02':
  Add WaitForProvisioningCallback

8 years agoSupport setting TCP buffer sizes and HTTP Proxy config
Erik Kline [Mon, 22 Feb 2016 04:11:28 +0000 (04:11 +0000)]
Support setting TCP buffer sizes and HTTP Proxy config
am: d0e843b8ef

* commit 'd0e843b8ef4218ba8f69a8a53b3eeaf21e667deb':
  Support setting TCP buffer sizes and HTTP Proxy config

8 years agoAdd WaitForProvisioningCallback
Erik Kline [Fri, 19 Feb 2016 06:48:22 +0000 (15:48 +0900)]
Add WaitForProvisioningCallback

This centralizes code that is shared by both bluetooth and ethernet
transport layers.

Bug: 26991160
Change-Id: I8e2dd8580c29c86394119768e3a5529850b4b859

8 years agoSupport setting TCP buffer sizes and HTTP Proxy config
Erik Kline [Wed, 17 Feb 2016 13:53:03 +0000 (22:53 +0900)]
Support setting TCP buffer sizes and HTTP Proxy config

This allows IpManager to send callback recipients a more satisfying
LinkProperties.

Bug: 26991160
Change-Id: I2eb60dc633e5be38dad9410a1096d0095ddf57a0

8 years agoMerge "MediaSession: Add new methods for preparing media content" into nyc-dev
Donghyun Cho [Mon, 22 Feb 2016 03:38:54 +0000 (03:38 +0000)]
Merge "MediaSession: Add new methods for preparing media content" into nyc-dev

8 years agoMerge "Update object info when writing a file." into nyc-dev
Daichi Hirono [Mon, 22 Feb 2016 03:07:30 +0000 (03:07 +0000)]
Merge "Update object info when writing a file." into nyc-dev

8 years agoMerge "Fixed bug with stack bounds getting out of alignment with screen rotation...
Wale Ogunwale [Sun, 21 Feb 2016 22:59:09 +0000 (22:59 +0000)]
Merge "Fixed bug with stack bounds getting out of alignment with screen rotation" into nyc-dev

8 years agoFixed bug with stack bounds getting out of alignment with screen rotation
Wale Ogunwale [Sun, 21 Feb 2016 22:18:51 +0000 (14:18 -0800)]
Fixed bug with stack bounds getting out of alignment with screen rotation

Before updating the stack bounds due to rotation change, we need to make
sure both the configuration and the current display info. the stack is
using have been updated for the current rotation. Previously we were
updating is after configuration change, but the rotation might have changed
again by the time we get the configuraiton changed call and
TaskSack.updateDisplayInfo not called yet.

Bug: 26744649
Change-Id: Idfd30e78dc9c2fb521ff1957f043c3b1696a2a31

8 years agoFix edit/page indicator area layout
Jason Monk [Sun, 21 Feb 2016 15:57:10 +0000 (10:57 -0500)]
Fix edit/page indicator area layout

Bug: 27201532
Change-Id: Ie03e6aeeb9d607f1fba370a4f1bd23a2ffb9b485

8 years agoApply minimal task dimension to all task bounds change.
Wale Ogunwale [Thu, 18 Feb 2016 03:03:58 +0000 (19:03 -0800)]
Apply minimal task dimension to all task bounds change.

We only used to apply the minimal dimension on resizeTask in
ActivityStackSuperior which is mostly used for freeform and
missed resizes that went through other channels like resizeStack
which is used for split-screen.
We now apply it on TaskRecord.updateOverrideConfiguration which
all task bounds changes go through.

Bug: 27220870
Change-Id: I856948c371f5f5f144e61029ced4a467f7ebe33a

8 years agoNo overlay when permissions shown - framework
Svet Ganov [Tue, 16 Feb 2016 19:47:00 +0000 (11:47 -0800)]
No overlay when permissions shown - framework

bug:26973205

Change-Id: I88395e47649191bb7db6dd8723c49e741ef4f1e4

8 years agoDon't set the text on QS Tiles unless we need to
Jason Monk [Sat, 20 Feb 2016 14:44:46 +0000 (09:44 -0500)]
Don't set the text on QS Tiles unless we need to

Avoid causing layout passes.

Bug: 27278616
Change-Id: I5104a756b44154f6b66f2c74aee17caf29acf628

8 years agoMerge changes Icb8e2097,I9a2a16f9 into nyc-dev
Jason Monk [Sat, 20 Feb 2016 16:53:02 +0000 (16:53 +0000)]
Merge changes Icb8e2097,I9a2a16f9 into nyc-dev

* changes:
  Optimization for TouchAnimator
  QS Animations - first pass, still not spec

8 years agoOptimization for TouchAnimator
Jason Monk [Sat, 20 Feb 2016 13:43:27 +0000 (08:43 -0500)]
Optimization for TouchAnimator

Bug: 27278616
Change-Id: Icb8e20977a0f8cdbc6ace25707e8f95e34efc356

8 years agoQS Animations - first pass, still not spec
Jason Monk [Fri, 19 Feb 2016 13:11:55 +0000 (08:11 -0500)]
QS Animations - first pass, still not spec

Bug: 27201532

Change-Id: I9a2a16f9d769db1f40ae733ad55a07ede4780698

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 07:29:49 +0000 (07:29 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df am: 20339172bd am: 20c518816a am: 7f35fa7365
am: 08f781bd82  -s ours

* commit '08f781bd8215d452cd2761f69889a69d1a736ea7':
  NPE fix for SyncStorageEngine read authority

8 years agoMerge "TIF: optimize android.media.tv.Tvcontract.Programs.Genres#decode" into nyc-dev
Jiabin Huang [Sat, 20 Feb 2016 07:01:28 +0000 (07:01 +0000)]
Merge "TIF: optimize android.media.tv.Tvcontract.Programs.Genres#decode" into nyc-dev

8 years agoTIF: optimize android.media.tv.Tvcontract.Programs.Genres#decode
Jiabin [Fri, 19 Feb 2016 06:13:50 +0000 (15:13 +0900)]
TIF: optimize android.media.tv.Tvcontract.Programs.Genres#decode

test result:
 Decode function takes about 0.25 seconds with 1350 channels in Live Channels.
 The original one takes about 0.37 seconds in the same test case.

Bug: 23307587
Change-Id: I3a1fefe0b3e6c1986c8f515259658f2e3e23011f

8 years agoMerge "Finalized GPS=>GNSS changes with documents" into nyc-dev
Lifu Tang [Sat, 20 Feb 2016 04:58:15 +0000 (04:58 +0000)]
Merge "Finalized GPS=>GNSS changes with documents" into nyc-dev

8 years agoMerge "Remove internal locking from JobStatus." into nyc-dev
Dianne Hackborn [Sat, 20 Feb 2016 02:49:46 +0000 (02:49 +0000)]
Merge "Remove internal locking from JobStatus." into nyc-dev

8 years agoRemove internal locking from JobStatus.
Dianne Hackborn [Tue, 16 Feb 2016 18:30:33 +0000 (10:30 -0800)]
Remove internal locking from JobStatus.

Now all state of JobStatus is implicitly protected by the lock
of whoever is using it -- in this case the global lock for the
JobSchedulerService.  This allows us to remove all of the atomic
variables and just replace those with a simple bit field.

The required constraints for a job are now statically defined
once a JobStatus is created, and don't change.  (They wouldn't
change before, but now this is absolutely specified to be the
case.)  This required tweaking the constructors a bit so that
the earliest and latest run times are computed as part of the
core class initialization.

Also clarified methods on StateController that are called with
the lock held, and took advantage of that in the various
controllers to not now redundantly re-acquire the lock.

Change-Id: I595c5e7d1bff1bd2ff906d612581af82878a25ee

8 years agoMerge "Cancel fling animation when starting to drag" into nyc-dev
Jorim Jaggi [Sat, 20 Feb 2016 02:24:17 +0000 (02:24 +0000)]
Merge "Cancel fling animation when starting to drag" into nyc-dev

8 years agoMerge "Fixed permissions so Shell can call netpolicy methods." into nyc-dev
Felipe Leme [Sat, 20 Feb 2016 02:24:12 +0000 (02:24 +0000)]
Merge "Fixed permissions so Shell can call netpolicy methods." into nyc-dev

8 years agoCancel fling animation when starting to drag
Jorim Jaggi [Sat, 20 Feb 2016 00:38:49 +0000 (16:38 -0800)]
Cancel fling animation when starting to drag

Makes sure we don't end up in a weird state because
at the end of the fling animation, mDockSide gets
reset.

Bug: 27269044
Change-Id: I779b8ee9be9a35553c7f822421d1f02ca802111c

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 02:22:00 +0000 (02:22 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df am: 20339172bd am: 20c518816a
am: 7f35fa7365

* commit '7f35fa7365b24f13f7553c452dc68f99fc7304ae':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 02:14:27 +0000 (02:14 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df am: 20339172bd
am: 20c518816a

* commit '20c518816a0946dff67a3b99b929bc30c9b0ad6c':
  NPE fix for SyncStorageEngine read authority

8 years agoMerge "Implement lenient background check option." into nyc-dev
Dianne Hackborn [Sat, 20 Feb 2016 02:12:37 +0000 (02:12 +0000)]
Merge "Implement lenient background check option." into nyc-dev

8 years agoImprove maximizing dock/clip reveal animation
Jorim Jaggi [Fri, 19 Feb 2016 02:57:07 +0000 (18:57 -0800)]
Improve maximizing dock/clip reveal animation

There was a very visible hole at the end of the transition when both
the docked stack expands and the other app is doing a clip reveal
animation, but only if the app had to travel a far distance to
meet it's target rectangle.

To fix this, we interpolate between two animation curves for maximizing
divider: One is the original curve, and the other one is an adjusted
one which simulate if the divider would start at the edge of the app
surface that plays the clip reveal animation. At the start of the
animation, we use the original curve, but then about in the middle of
the animation we interpolated towards the adjusted curve, so the divider
meets the edge of the app surface that plays the clip reveal animation,
eliminating that gap while still preserving the overall motion.

Bug: 27154882
Change-Id: I37716588f88ddc643ed6176c2ccd56ca174e8919

8 years agoMerge "Simplify job scheduler service locking." into nyc-dev
Dianne Hackborn [Sat, 20 Feb 2016 02:08:17 +0000 (02:08 +0000)]
Merge "Simplify job scheduler service locking." into nyc-dev

8 years agoMerge "Support for webview drag and drop" into nyc-dev
Hui Shu [Sat, 20 Feb 2016 02:08:10 +0000 (02:08 +0000)]
Merge "Support for webview drag and drop" into nyc-dev

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 02:05:16 +0000 (02:05 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df
am: 20339172bd

* commit '20339172bddac09730bf46f5eb289db4c299d64d':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 02:01:11 +0000 (02:01 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b
am: 4aa78554df

* commit '4aa78554dfa1ff4cdb91ba560e3097d8febbe5c9':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 01:53:57 +0000 (01:53 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009
am: 242bdb6d5b

* commit '242bdb6d5bec6e42b7caf42fd08ded0accc70fb8':
  NPE fix for SyncStorageEngine read authority

8 years agoMerge "JavaDoc for ReplacementSpan getSize & draw functions." into nyc-dev
Siyamed Sinir [Sat, 20 Feb 2016 01:52:37 +0000 (01:52 +0000)]
Merge "JavaDoc for ReplacementSpan getSize & draw functions." into nyc-dev

8 years agoSupport for webview drag and drop
Hui Shu [Thu, 4 Feb 2016 23:00:19 +0000 (15:00 -0800)]
Support for webview drag and drop

WebView needs to override onDragEvent to accept drops from other apps.

BUG: 27039417
Change-Id: Ie81c5ac325091cf78440785e04afcc01ddcbaab3

8 years agoFixed permissions so Shell can call netpolicy methods.
Felipe Leme [Fri, 19 Feb 2016 22:43:51 +0000 (14:43 -0800)]
Fixed permissions so Shell can call netpolicy methods.

BUG: 27127112
Change-Id: I5548aba70a1c25be139462fbabe9a854fa96d2a6

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 01:45:01 +0000 (01:45 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d
am: 5e4e02b009

* commit '5e4e02b00999db4513f43d5ddfdd2c71212cc503':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c...
Shreyas Basarge [Sat, 20 Feb 2016 01:37:34 +0000 (01:37 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1
am: 6fc321a66d

* commit '6fc321a66d74401e00b2203817f75e29a0426ab7':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17
Shreyas Basarge [Sat, 20 Feb 2016 01:27:25 +0000 (01:27 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17
am: eec587edf1

* commit 'eec587edf1fb4e7bc5f38695f478f191dee1e2d4':
  NPE fix for SyncStorageEngine read authority

8 years agoMerge "Clear binder id before creating pending intent as the system." into nyc-dev
Svetoslav Ganov [Sat, 20 Feb 2016 01:26:37 +0000 (01:26 +0000)]
Merge "Clear binder id before creating pending intent as the system." into nyc-dev

8 years agoClear binder id before creating pending intent as the system.
Svet Ganov [Sat, 20 Feb 2016 01:24:55 +0000 (17:24 -0800)]
Clear binder id before creating pending intent as the system.

bug:19349693

Change-Id: I989441ac32b89d313ec7a006373faa90f58fc89d

8 years agoMerge "Add preloading wallpaper to the getWallpaper call." into nyc-dev
Vadim Tryshev [Sat, 20 Feb 2016 01:07:54 +0000 (01:07 +0000)]
Merge "Add preloading wallpaper to the getWallpaper call." into nyc-dev

8 years agoMerge "Fix QS Open on single finger scroll" into nyc-dev
Jason Monk [Sat, 20 Feb 2016 01:07:33 +0000 (01:07 +0000)]
Merge "Fix QS Open on single finger scroll" into nyc-dev

8 years agoAdd preloading wallpaper to the getWallpaper call.
Vadim Tryshev [Sat, 20 Feb 2016 01:02:15 +0000 (17:02 -0800)]
Add preloading wallpaper to the getWallpaper call.

Otherwise, there is no way to get a wallpaper for
the user that was never loaded.

Bug: 25185253
Change-Id: I88df266f6af7ca78ebc30d78e82e1df3ab09a3c5

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05
Shreyas Basarge [Sat, 20 Feb 2016 01:01:10 +0000 (01:01 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05
am: 58048c1f17

* commit '58048c1f17d54166c6a048af2365d17dd32f4d57':
  NPE fix for SyncStorageEngine read authority

8 years agoFinalized GPS=>GNSS changes with documents
Lifu Tang [Wed, 17 Feb 2016 02:07:00 +0000 (18:07 -0800)]
Finalized GPS=>GNSS changes with documents

Bug: 27098594
Change-Id: I24529e60d8eb9b48b644cf01e5efc684e6f04839

8 years agoImplement lenient background check option.
Dianne Hackborn [Wed, 17 Feb 2016 02:26:35 +0000 (18:26 -0800)]
Implement lenient background check option.

Which really means, make background check much more
strict, with an option to revert to the more lenient
behavior.

In this strict version, an app can't have services
started or receive broadcasts at any point when it is
not foreground.  Also, it doesn't matter the importance
of a caller trying to start a service, it only depends
on the state of the app whose service is being started.

A new activity shell command allows you to control
whether to use the strict or lenient behavior.

Change-Id: I7f5a50b52881b5c8f9d8b6c8c622d3652a769fd7

8 years agoSimplify job scheduler service locking.
Dianne Hackborn [Tue, 16 Feb 2016 18:30:33 +0000 (10:30 -0800)]
Simplify job scheduler service locking.

Unify all locks to just one lock protecting the entire service.
There is really no need for more complicated locking -- there is
nothing in the code that can take a long time to complete.  And
having a single lock will allow various parts of the code to be
much simpler and easier to maintain.

This is just the first step of the change, switching all of the
locking to use one lock.  With this done, we can now start
simplifying the code.  For example, JobStatus no longer needs
to do any locking (or have atomic variables and such), it can
just rely on its callers holding the global service lock.

Change-Id: I502916ed7f2994b601750c67a59a96b1a4e95c6d

8 years agoNPE fix for SyncStorageEngine read authority am: a962d9eba7
Shreyas Basarge [Sat, 20 Feb 2016 00:47:41 +0000 (00:47 +0000)]
NPE fix for SyncStorageEngine read authority am: a962d9eba7
am: 339c4f2b05

* commit '339c4f2b055d40acea280a2d4b6c83c17f86a8b5':
  NPE fix for SyncStorageEngine read authority

8 years agoNPE fix for SyncStorageEngine read authority
Shreyas Basarge [Sat, 20 Feb 2016 00:41:03 +0000 (00:41 +0000)]
NPE fix for SyncStorageEngine read authority
am: a962d9eba7

* commit 'a962d9eba7a8f741ed149964126fb08fe4fd7128':
  NPE fix for SyncStorageEngine read authority

8 years agoMerge "Remove unused InputMethodInfo#isEncryptionAware()." into nyc-dev
Yohei Yukawa [Sat, 20 Feb 2016 00:33:20 +0000 (00:33 +0000)]
Merge "Remove unused InputMethodInfo#isEncryptionAware()." into nyc-dev

8 years agoMerge "Discard prefetched disconnected predecessors of a virtual node." into nyc-dev
Svetoslav Ganov [Sat, 20 Feb 2016 00:32:56 +0000 (00:32 +0000)]
Merge "Discard prefetched disconnected predecessors of a virtual node." into nyc-dev

8 years agoFix QS Open on single finger scroll
Jason Monk [Sat, 20 Feb 2016 00:32:13 +0000 (19:32 -0500)]
Fix QS Open on single finger scroll

The QSPanel had 0 height when shade was collapsed which messed up
the immediate expand logic.

Bug: 27197894
Change-Id: I623eb5d3b945a83b3410fa5dc52c4f96dd6700cb

8 years agoDiscard prefetched disconnected predecessors of a virtual node.
Svet Ganov [Sat, 20 Feb 2016 00:29:24 +0000 (16:29 -0800)]
Discard prefetched disconnected predecessors of a virtual node.

bug:18247269

Change-Id: I24f1ed1e9aa44fbb847722833fe68a1eef7e92c5

8 years agoMerge "Support drawing circles with drawArc in new pipeline" into nyc-dev
Chris Craik [Sat, 20 Feb 2016 00:18:13 +0000 (00:18 +0000)]
Merge "Support drawing circles with drawArc in new pipeline" into nyc-dev

8 years agoRemove unused InputMethodInfo#isEncryptionAware().
Yohei Yukawa [Fri, 19 Feb 2016 23:04:27 +0000 (15:04 -0800)]
Remove unused InputMethodInfo#isEncryptionAware().

This logically reverts a previous CL [1], which added
InputMethodInfo#isEncryptionAware() for File-Based Encryption (FBE)
support, since it turns out that the method in question is unnecessary
to make InputMethodManagerService encryption-aware.

  [1]: Icf921fe3661eccf4a589b08b616d05decc561356
       69811a98f161a04af8e8ec9978c3a5efe1ea0f29

Bug: 26279466
Change-Id: Ia4884bf5922ad453d4b9e5e3c6f0d17b36dc205d

8 years agoMerge "Cleanup cached state in TestUtils::runOnRenderThread" into nyc-dev
Chris Craik [Sat, 20 Feb 2016 00:13:28 +0000 (00:13 +0000)]
Merge "Cleanup cached state in TestUtils::runOnRenderThread" into nyc-dev

8 years agoSupport drawing circles with drawArc in new pipeline
Chris Craik [Fri, 19 Feb 2016 23:20:35 +0000 (15:20 -0800)]
Support drawing circles with drawArc in new pipeline

bug:26764636

Change-Id: I37d2384fa5e6c1074bb8de85821d58c15659b762

8 years agoMerge "Add Wallpaper.getBitmapAsUser()" into nyc-dev
Vadim Tryshev [Sat, 20 Feb 2016 00:11:40 +0000 (00:11 +0000)]
Merge "Add Wallpaper.getBitmapAsUser()" into nyc-dev

8 years agoMerge "Ensure invalidate is called after start()/reverse()" into nyc-dev
Doris Liu [Sat, 20 Feb 2016 00:04:56 +0000 (00:04 +0000)]
Merge "Ensure invalidate is called after start()/reverse()" into nyc-dev

8 years agoMerge "Fix minor bugs:" into nyc-dev
Arunesh Mishra [Fri, 19 Feb 2016 23:57:58 +0000 (23:57 +0000)]
Merge "Fix minor bugs:" into nyc-dev

8 years agoCleanup cached state in TestUtils::runOnRenderThread
Chris Craik [Fri, 19 Feb 2016 23:57:45 +0000 (15:57 -0800)]
Cleanup cached state in TestUtils::runOnRenderThread

Change-Id: I097217c80db5c509d97ef050633946110fccbc80

8 years agoMerge "Relax protected broadcast check to allow shell." into nyc-dev
Jeff Sharkey [Fri, 19 Feb 2016 23:52:19 +0000 (23:52 +0000)]
Merge "Relax protected broadcast check to allow shell." into nyc-dev

8 years agoRelax protected broadcast check to allow shell.
Jeff Sharkey [Fri, 19 Feb 2016 23:49:26 +0000 (16:49 -0700)]
Relax protected broadcast check to allow shell.

The shell is often used for developer testing, so we shouldn't
require all of its broadcasts to be protected.

Bug: 27273532
Change-Id: Ic6f262dd11223dee5655614aad30365d51e180c5

8 years agoNPE fix for SyncStorageEngine read authority
Shreyas Basarge [Thu, 18 Feb 2016 11:56:05 +0000 (11:56 +0000)]
NPE fix for SyncStorageEngine read authority

Add a null check after an authority is read
from disk.

Bug: 26513719
Change-Id: I18f01828141110e776cc96f3b3be3d80125e70c1

8 years agoMerge "Clean-up WindowState if exit animation is done before app finishes" into nyc-dev
Wale Ogunwale [Fri, 19 Feb 2016 23:35:39 +0000 (23:35 +0000)]
Merge "Clean-up WindowState if exit animation is done before app finishes" into nyc-dev

8 years agoMerge "NPE Fix in SyncStorageEngine" into nyc-dev
Shreyas Basarge [Fri, 19 Feb 2016 23:31:21 +0000 (23:31 +0000)]
Merge "NPE Fix in SyncStorageEngine" into nyc-dev

8 years agoMerge "Fix a set of random warnings in frameworks/base/" into nyc-dev
Aurimas Liutikas [Fri, 19 Feb 2016 23:20:04 +0000 (23:20 +0000)]
Merge "Fix a set of random warnings in frameworks/base/" into nyc-dev

8 years agoClean-up WindowState if exit animation is done before app finishes
Wale Ogunwale [Fri, 19 Feb 2016 23:18:45 +0000 (15:18 -0800)]
Clean-up WindowState if exit animation is done before app finishes

In ag/862571 we prevent window states from been removed before the
app is stopped since it can still be rendering to the surface.
The CL also left WindowState.mExiting as true after the exit
transition animation runs. This is okay if the app finishes before
the exit animation is done, but if the exit animation finishes before
the app finishes, then we will always think we need to run an exit
animation and not remove the windows when the app and later activity
manager tries to remove the windows.
mExiting is used to mean exiting animation is running, if it is set to
true then all the code assumes an exit animation is still running and
doesn't remove the window state.
- Always set mExiting when animation is done.
- Renamed mExiting to mAnimatingExit so it is more clear what it is used
for
- Allow window state to be removed is the current surface isn't shown.
This should be save since there won't be any visual effect to the user.
- Rename WindowState.mClientRemoveRequested to WindowState.mWindowRemovalAllowed
and move setting it to true into WMS.removeWindow() so it catches all cases.
- Cleaned-up the code some to be a little clearer.

Bug: 27112965
Change-Id: I6f03d3c75b5b7728e42ceadc8703df40a3b4ae63

8 years agoFix minor bugs:
Arunesh Mishra [Thu, 18 Feb 2016 23:31:54 +0000 (15:31 -0800)]
Fix minor bugs:

 - Fix issue when multiple starts cause multiple spurious loads to be sent to
   the native layer.
 - Fix scrolling issue in the native app.

Bug: 27222043
Change-Id: Iddf36a8b68637f478dc23b001ecbde352db3a5f0

8 years agoMerge "Fixed a clicking bug on the lockscreen" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:54 +0000 (23:04 +0000)]
Merge "Fixed a clicking bug on the lockscreen" into nyc-dev

8 years agoMerge "Add support for custom media notifications" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:41 +0000 (23:04 +0000)]
Merge "Add support for custom media notifications" into nyc-dev

8 years agoMerge "Cleaned up the logic for the picture end margin" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:25 +0000 (23:04 +0000)]
Merge "Cleaned up the logic for the picture end margin" into nyc-dev

8 years agoMerge "Media notifications now properly respect font size changes" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:14 +0000 (23:04 +0000)]
Merge "Media notifications now properly respect font size changes" into nyc-dev

8 years agoMerge "Adapted the measuring of notification content view" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:03:58 +0000 (23:03 +0000)]
Merge "Adapted the measuring of notification content view" into nyc-dev

8 years agoMerge "Added the possibility to show custom notifications decorated." into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:03:37 +0000 (23:03 +0000)]
Merge "Added the possibility to show custom notifications decorated." into nyc-dev

8 years agoFix configuration calculation when task is non-fullscreen
Jorim Jaggi [Fri, 5 Feb 2016 23:10:33 +0000 (15:10 -0800)]
Fix configuration calculation when task is non-fullscreen

Apparently only the navigation bar is excluded when calculating
Configuration.screenLayout. Make the calculation for non-fullscreen
tasks consistent with fullscreen tasks.

Change-Id: I027e41e49ffe95245116f3d134e0bc93af0ee450

8 years agoAdd Wallpaper.getBitmapAsUser()
Yorke Lee [Fri, 8 Jan 2016 22:12:55 +0000 (14:12 -0800)]
Add Wallpaper.getBitmapAsUser()

Add a new API to allow a wallpaper bitmap to be obtained for
a specific user.

Without this API, using only getWallpaperFile(..., userId), one
can't get a default wallpaper bitmap if the wallpaper is not set.

Bug: 25185253
Change-Id: Ibe1e9a49d22bee08fd4bed415573c1ee28526aea

8 years agoMerge "End staging animators when destroy RootRenderNode" into nyc-dev
Doris Liu [Fri, 19 Feb 2016 22:45:53 +0000 (22:45 +0000)]
Merge "End staging animators when destroy RootRenderNode" into nyc-dev

8 years agoMerge "Revert "Revert "Check RenderNode's owning view before attaching animators...
Doris Liu [Fri, 19 Feb 2016 22:45:14 +0000 (22:45 +0000)]
Merge "Revert "Revert "Check RenderNode's owning view before attaching animators""" into nyc-dev

8 years agoMerge "VectorDrawable native rendering - Step 5 of MANY" into nyc-dev
Doris Liu [Fri, 19 Feb 2016 22:44:51 +0000 (22:44 +0000)]
Merge "VectorDrawable native rendering - Step 5 of MANY" into nyc-dev

8 years agoEnsure invalidate is called after start()/reverse()
Doris Liu [Wed, 17 Feb 2016 23:38:38 +0000 (15:38 -0800)]
Ensure invalidate is called after start()/reverse()

Change-Id: Iec96ada74cc7b845e21b5f0eb208ff7c7b1071ed

8 years agoMerge "Fix clip reveal animation in docked window case" into nyc-dev
Jorim Jaggi [Fri, 19 Feb 2016 22:27:31 +0000 (22:27 +0000)]
Merge "Fix clip reveal animation in docked window case" into nyc-dev

8 years agoEnd staging animators when destroy RootRenderNode
Doris Liu [Fri, 19 Feb 2016 22:20:37 +0000 (14:20 -0800)]
End staging animators when destroy RootRenderNode

When animation happens in a dialog, it is possible for the dialog to
be dismissed and RootRenderNode to be destroyed before we create
animation handle for the staged animators. In that case, we need
to remove the staged animators so they will not run without a
animation handle.

Bug: 26975079
Change-Id: I0c2c6c1b530beaec3984c0b1c410df4fd8f25c95

8 years agoMerge "Improve touch target for the gear beneath a notification" into nyc-dev
Mady Mellor [Fri, 19 Feb 2016 22:15:54 +0000 (22:15 +0000)]
Merge "Improve touch target for the gear beneath a notification" into nyc-dev

8 years agoFix clip reveal animation in docked window case
Jorim Jaggi [Sat, 13 Feb 2016 03:43:39 +0000 (19:43 -0800)]
Fix clip reveal animation in docked window case

- Move ClipRectTB/LRAnimation to wm package, because that's the only
place we use it.
- Extend ClipRectTBAnimation to combine it with translation animation
so the clipping gets applied after the translation.
- Fix clip reveal transitions when a window is docked.
- Make the docked divider minimizing animations synchronized with clip
reveal animation.

Bug: 27154882
Bug: 22174716

Change-Id: If5c94c777f3b51c6f53f6f34cc261bf3439cfc88

8 years agoMerge "New behavior for docked stack when going home" into nyc-dev
Jorim Jaggi [Fri, 19 Feb 2016 22:14:45 +0000 (22:14 +0000)]
Merge "New behavior for docked stack when going home" into nyc-dev

8 years agoMerge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev
Mady Mellor [Fri, 19 Feb 2016 22:06:31 +0000 (22:06 +0000)]
Merge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev

8 years agoMerge changes Iaf1ee1e6,I861cb65d into nyc-dev
Jason Monk [Fri, 19 Feb 2016 21:53:43 +0000 (21:53 +0000)]
Merge changes Iaf1ee1e6,I861cb65d into nyc-dev

* changes:
  Add TileService settings API
  Add QS long-press -> Settings

8 years agoRevert "Revert "Check RenderNode's owning view before attaching animators""
Doris Liu [Fri, 19 Feb 2016 21:46:06 +0000 (21:46 +0000)]
Revert "Revert "Check RenderNode's owning view before attaching animators""

This reverts commit eb40178af3b7c8d925eaf6c1aa0bef739c8ea47e.

Change-Id: I6838ecb35b50847746ee66ac204f14eb5f579b91

8 years agoVectorDrawable native rendering - Step 5 of MANY
Doris Liu [Fri, 19 Feb 2016 21:39:21 +0000 (21:39 +0000)]
VectorDrawable native rendering - Step 5 of MANY

This is reverting the revert of what reverts the revert of the original
implementation. Fourth revert is a charm!

This reverts commit df7fdb1e0bdb5c289bbc08047e5c710185503309.

Change-Id: I6fc3a5accfd8b79c3da31bbc101ad9e9b4d6e7dd

8 years agoFix a set of random warnings in frameworks/base/
Aurimas Liutikas [Fri, 19 Feb 2016 21:44:25 +0000 (13:44 -0800)]
Fix a set of random warnings in frameworks/base/

Bug: 26936282
Change-Id: Ic411d7a1673503d5945f952ebf5a8be964bb54a4

8 years agoAdd TileService settings API
Jason Monk [Fri, 19 Feb 2016 21:43:00 +0000 (16:43 -0500)]
Add TileService settings API

It will be used for long-clicks on TileServices when available.
Otherwise will default back to app info for the app providing the
tile.

Bug: 27269699
Change-Id: Iaf1ee1e6fe6e1357cda32c74bfdc0c26af0f5901

8 years agoAdd QS long-press -> Settings
Jason Monk [Fri, 19 Feb 2016 19:49:42 +0000 (14:49 -0500)]
Add QS long-press -> Settings

Bug: 27269699
Change-Id: I861cb65dbb6609d9c95d5341f5f5aebc3cc519f3

8 years agoMerge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
Glen Kuhne [Fri, 19 Feb 2016 21:39:41 +0000 (21:39 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
am: 70fc162330

* commit '70fc1623301ab5268c54bb203329893893ed35cb':
  Add EID_TIM to ScanResult.InformationElement

8 years agoMerge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
Glen Kuhne [Fri, 19 Feb 2016 21:35:09 +0000 (21:35 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev

8 years agoRemove extraneous field from batterystats dumpsys
Adam Lesinski [Fri, 19 Feb 2016 20:53:31 +0000 (12:53 -0800)]
Remove extraneous field from batterystats dumpsys

Change-Id: Iea913e993e61d114c499e6218ad0abf9a8e80690

8 years agoMerge "Revert "Fix Canvas memory leak"" into mnc-ub-dev
Diego Perez [Fri, 19 Feb 2016 20:18:28 +0000 (20:18 +0000)]
Merge "Revert "Fix Canvas memory leak"" into mnc-ub-dev
am: 44f92b00d1

* commit '44f92b00d1a060773625de5884fc86e7218e2dd5':
  Revert "Fix Canvas memory leak"