233390 Commits

Author SHA1 Message Date
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
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
Chris Craik
1bc4ee4506 Cleanup cached state in TestUtils::runOnRenderThread
Change-Id: I097217c80db5c509d97ef050633946110fccbc80
2016-02-19 15:57:45 -08:00
Jeff Sharkey
0e16984d06 Merge "Relax protected broadcast check to allow shell." into nyc-dev 2016-02-19 23:52:20 +00:00
Jeff Sharkey
935dafbf0d 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
2016-02-19 16:49:26 -07:00
Shreyas Basarge
a962d9eba7 NPE fix for SyncStorageEngine read authority
Add a null check after an authority is read
from disk.

Bug: 26513719
Change-Id: I18f01828141110e776cc96f3b3be3d80125e70c1
2016-02-19 23:38:33 +00:00
Wale Ogunwale
9ecf7cfee8 Merge "Clean-up WindowState if exit animation is done before app finishes" into nyc-dev 2016-02-19 23:35:41 +00:00
Shreyas Basarge
7503d06e5e Merge "NPE Fix in SyncStorageEngine" into nyc-dev 2016-02-19 23:31:24 +00:00
Aurimas Liutikas
359df40aaf Merge "Fix a set of random warnings in frameworks/base/" into nyc-dev 2016-02-19 23:20:06 +00:00
Wale Ogunwale
c48a354733 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
2016-02-19 15:18:45 -08:00
Arunesh Mishra
933da8150c 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
2016-02-19 15:06:27 -08:00
Selim Cinek
e961f32b0f Merge "Fixed a clicking bug on the lockscreen" into nyc-dev 2016-02-19 23:04:55 +00:00
Selim Cinek
c68190ae90 Merge "Add support for custom media notifications" into nyc-dev 2016-02-19 23:04:42 +00:00
Selim Cinek
54c857cda6 Merge "Cleaned up the logic for the picture end margin" into nyc-dev 2016-02-19 23:04:26 +00:00
Selim Cinek
24ffe236b1 Merge "Media notifications now properly respect font size changes" into nyc-dev 2016-02-19 23:04:15 +00:00
Selim Cinek
79fa406933 Merge "Adapted the measuring of notification content view" into nyc-dev 2016-02-19 23:03:59 +00:00
Selim Cinek
3c306d8acd Merge "Added the possibility to show custom notifications decorated." into nyc-dev 2016-02-19 23:03:38 +00:00
Jorim Jaggi
82c9dc951e 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
2016-02-19 22:59:34 +00:00
Yorke Lee
dcd93cc21a 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
2016-02-19 14:47:39 -08:00
Doris Liu
46151a4739 Merge "End staging animators when destroy RootRenderNode" into nyc-dev 2016-02-19 22:45:55 +00:00
Doris Liu
e87a74e1a3 Merge "Revert "Revert "Check RenderNode's owning view before attaching animators""" into nyc-dev 2016-02-19 22:45:16 +00:00
Doris Liu
0a1cdee33e Merge "VectorDrawable native rendering - Step 5 of MANY" into nyc-dev 2016-02-19 22:44:52 +00:00
Doris Liu
c21e8bcb01 Ensure invalidate is called after start()/reverse()
Change-Id: Iec96ada74cc7b845e21b5f0eb208ff7c7b1071ed
2016-02-19 14:35:55 -08:00
Jorim Jaggi
36548847f2 Merge "Fix clip reveal animation in docked window case" into nyc-dev 2016-02-19 22:27:32 +00:00
Doris Liu
350e65206c 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
2016-02-19 14:20:37 -08:00
Mady Mellor
ed8f6cff50 Merge "Improve touch target for the gear beneath a notification" into nyc-dev 2016-02-19 22:15:55 +00:00
Jorim Jaggi
8fe7e0a88e 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
2016-02-19 14:15:20 -08:00