233418 Commits

Author SHA1 Message Date
Jason Monk
865a4ee0cd Merge changes Icb8e2097,I9a2a16f9 into nyc-dev
* changes:
  Optimization for TouchAnimator
  QS Animations - first pass, still not spec
2016-02-20 16:53:04 +00:00
Jason Monk
8d1253e944 Optimization for TouchAnimator
Bug: 27278616
Change-Id: Icb8e20977a0f8cdbc6ace25707e8f95e34efc356
2016-02-20 16:51:41 +00:00
Jason Monk
162011ebe8 QS Animations - first pass, still not spec
Bug: 27201532

Change-Id: I9a2a16f9d769db1f40ae733ad55a07ede4780698
2016-02-20 08:36:40 -05:00
Shreyas Basarge
0cbfdd3a20 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
2016-02-20 07:29:49 +00:00
Jiabin Huang
079cf52336 Merge "TIF: optimize android.media.tv.Tvcontract.Programs.Genres#decode" into nyc-dev 2016-02-20 07:01:29 +00:00
Jiabin
0388f0e503 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
2016-02-20 14:22:33 +09:00
Lifu Tang
116229b797 Merge "Finalized GPS=>GNSS changes with documents" into nyc-dev 2016-02-20 04:58:17 +00:00
Dianne Hackborn
044a802b26 Merge "Remove internal locking from JobStatus." into nyc-dev 2016-02-20 02:49:48 +00:00
Dianne Hackborn
b0001f6fb1 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
2016-02-19 18:29:34 -08:00
Jorim Jaggi
f0c548645f Merge "Cancel fling animation when starting to drag" into nyc-dev 2016-02-20 02:24:19 +00:00
Felipe Leme
b055c1b51a Merge "Fixed permissions so Shell can call netpolicy methods." into nyc-dev 2016-02-20 02:24:13 +00:00
Jorim Jaggi
0c790411c3 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
2016-02-20 02:23:37 +00:00
Shreyas Basarge
08f781bd82 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
2016-02-20 02:22:00 +00:00
Shreyas Basarge
7f35fa7365 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
2016-02-20 02:14:27 +00:00
Dianne Hackborn
9d3a4e1c31 Merge "Implement lenient background check option." into nyc-dev 2016-02-20 02:12:38 +00:00
Jorim Jaggi
f97ed9271f 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
2016-02-20 02:09:05 +00:00
Dianne Hackborn
14b2deacaf Merge "Simplify job scheduler service locking." into nyc-dev 2016-02-20 02:08:19 +00:00
Hui Shu
b3e63f9daa Merge "Support for webview drag and drop" into nyc-dev 2016-02-20 02:08:12 +00:00
Shreyas Basarge
20c518816a 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
2016-02-20 02:05:16 +00:00
Shreyas Basarge
20339172bd 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
2016-02-20 02:01:11 +00:00
Shreyas Basarge
4aa78554df 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
2016-02-20 01:53:57 +00:00
Siyamed Sinir
74615b9859 Merge "JavaDoc for ReplacementSpan getSize & draw functions." into nyc-dev 2016-02-20 01:52:38 +00:00
Hui Shu
ecdce961ea Support for webview drag and drop
WebView needs to override onDragEvent to accept drops from other apps.

BUG: 27039417
Change-Id: Ie81c5ac325091cf78440785e04afcc01ddcbaab3
2016-02-20 01:51:14 +00:00
Felipe Leme
6a05eee2bd Fixed permissions so Shell can call netpolicy methods.
BUG: 27127112
Change-Id: I5548aba70a1c25be139462fbabe9a854fa96d2a6
2016-02-19 17:47:46 -08:00
Shreyas Basarge
242bdb6d5b 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
2016-02-20 01:45:01 +00:00
Shreyas Basarge
5e4e02b009 NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1
am: 6fc321a66d

* commit '6fc321a66d74401e00b2203817f75e29a0426ab7':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:37:34 +00:00
Shreyas Basarge
6fc321a66d NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17
am: eec587edf1

* commit 'eec587edf1fb4e7bc5f38695f478f191dee1e2d4':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:27:25 +00:00
Svetoslav Ganov
1b5d292fbb Merge "Clear binder id before creating pending intent as the system." into nyc-dev 2016-02-20 01:26:38 +00:00
Svet Ganov
c42d933b56 Clear binder id before creating pending intent as the system.
bug:19349693

Change-Id: I989441ac32b89d313ec7a006373faa90f58fc89d
2016-02-19 17:24:58 -08:00
Doris Liu
148f57fc26 Ensure animator's interpolator is set
Animator's play state can go from NotStarted to Finished directly
in the case of calling start() and end() within one frame. Previously
we only set animator's interpolator when the animator is transitioning
to Running state. So when Running state is skipped, the interpolator
is left unset.

Bug: 27224373
Change-Id: I5a53106fe1aae38ccaf1df8debd553be3bc56133
2016-02-19 17:19:24 -08:00
Vadim Tryshev
d8330cea98 Merge "Add preloading wallpaper to the getWallpaper call." into nyc-dev 2016-02-20 01:07:56 +00:00
Jason Monk
11c4fd411a Merge "Fix QS Open on single finger scroll" into nyc-dev 2016-02-20 01:07:35 +00:00
Vadim Tryshev
8cde0798ed 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
2016-02-19 17:02:15 -08:00
Shreyas Basarge
eec587edf1 NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05
am: 58048c1f17

* commit '58048c1f17d54166c6a048af2365d17dd32f4d57':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:01:10 +00:00
Lifu Tang
9363b949a1 Finalized GPS=>GNSS changes with documents
Bug: 27098594
Change-Id: I24529e60d8eb9b48b644cf01e5efc684e6f04839
2016-02-19 16:59:28 -08:00
Dianne Hackborn
b2117d15d1 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
2016-02-19 16:51:25 -08:00
Dianne Hackborn
33d31c5b70 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
2016-02-19 16:49:47 -08:00
Shreyas Basarge
58048c1f17 NPE fix for SyncStorageEngine read authority am: a962d9eba7
am: 339c4f2b05

* commit '339c4f2b055d40acea280a2d4b6c83c17f86a8b5':
  NPE fix for SyncStorageEngine read authority
2016-02-20 00:47:41 +00:00
Shreyas Basarge
339c4f2b05 NPE fix for SyncStorageEngine read authority
am: a962d9eba7

* commit 'a962d9eba7a8f741ed149964126fb08fe4fd7128':
  NPE fix for SyncStorageEngine read authority
2016-02-20 00:41:03 +00:00
Yohei Yukawa
263e21f12c Merge "Remove unused InputMethodInfo#isEncryptionAware()." into nyc-dev 2016-02-20 00:33:22 +00:00
Svetoslav Ganov
3c3e271447 Merge "Discard prefetched disconnected predecessors of a virtual node." into nyc-dev 2016-02-20 00:32:58 +00:00
Jason Monk
83e431fc51 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
2016-02-19 19:32:13 -05:00
Svet Ganov
75e5816102 Discard prefetched disconnected predecessors of a virtual node.
bug:18247269

Change-Id: I24f1ed1e9aa44fbb847722833fe68a1eef7e92c5
2016-02-19 16:29:33 -08:00
Chris Craik
1fd5f379d7 Merge "Support drawing circles with drawArc in new pipeline" into nyc-dev 2016-02-20 00:18:15 +00:00
Yohei Yukawa
d9550a7545 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
2016-02-20 00:16:32 +00:00
Chris Craik
043aeb8224 Merge "Cleanup cached state in TestUtils::runOnRenderThread" into nyc-dev 2016-02-20 00:13:29 +00:00
Chris Craik
caa2418473 Support drawing circles with drawArc in new pipeline
bug:26764636

Change-Id: I37d2384fa5e6c1074bb8de85821d58c15659b762
2016-02-19 16:12:53 -08:00
Vadim Tryshev
a6a127747a Merge "Add Wallpaper.getBitmapAsUser()" into nyc-dev 2016-02-20 00:11:41 +00:00
Doris Liu
06e653aea6 Merge "Ensure invalidate is called after start()/reverse()" into nyc-dev 2016-02-20 00:04:58 +00:00
Arunesh Mishra
28af5fcdc9 Merge "Fix minor bugs:" into nyc-dev 2016-02-19 23:57:59 +00:00