240581 Commits

Author SHA1 Message Date
Phil Weaver
13ce4693d3 Clear calling identity when binding a11y services
When a UiAutomation is destroyed, accessibility services may get
enabled as a side effect. That was causing these services to be
enabled in a binder thread, which threw a SecurityException.

Bug: 28268310
Bug: 28163652
Change-Id: Ie25ab05569b5b21b5f30e7d7eed24ef73b7ba159
2016-04-19 17:07:20 -07:00
Jorim Jaggi
db21bbd2ca Fix wrong transition when recents is growing when entering
Bug: 27855229
Change-Id: I050305d16df6fe53abf5e74e1f9ee6c882dd7ead
2016-04-19 17:07:06 -07:00
Christopher Tate
5e380f096c resolve merge conflicts of 7641889 to lmp-mr1-dev
am: cebcde3b5a

* commit 'cebcde3b5a1e406d953629d5b4c87347921a17de':
  Kill the real/isolated uid group, not the ApplicationInfo uid

Change-Id: I6e3c41c59dfe4105780ad7d6d20f9096aabd575a
2016-04-20 00:05:54 +00:00
Trevor Johns
483abe2d8b Remove links to createAndInitializeUser() and createUser()
These methods in DevicePolicyManager have been removed from the
public API in NYC.

Converting @link tags to @code to avoid error during JavaDoc gen.

Change-Id: I5d481ccf65bcf83a61f43cfac8ae474656ff34c1
2016-04-19 17:01:12 -07:00
Adrian Roos
751f33f8c7 Fix NPE in WallpaperDrawable
Fixes: 28272898
Change-Id: I0377a341c253c79f5179b3a9c8eadcf51f9ffad3
2016-04-19 16:41:36 -07:00
TreeHugger Robot
e23f581081 Merge "Don't block while dispatching PRE_BOOT." into nyc-dev 2016-04-19 23:23:49 +00:00
Winson
5b15f9bb9d Fixing crash when dumping secondary SystemUI user service.
- Secondary user’s SystemUI process is initialized with 
  SERVICES_PER_USER, which is a strict subset of SERVICES, but mServices
  is a fixed size array that does not change, so we need to add a null
  check when iterating through the current list of services for the 
  non-primary user.

Bug: 28153575
Change-Id: I0a6b4726e82f2efddda358a835b1ef3d9f165375
2016-04-19 16:18:28 -07:00
Winson Chung
b77d0bcc84 Merge changes Ie3125ec8,Ifa149322,Ifa2ed84a into nyc-dev
* changes:
  Tweaking accessibility actions for dock divider.
  Ensure that the drag view is not dimmed.
  Disallowing scrim activity from setting TaskDescription.
2016-04-19 23:01:20 +00:00
Christopher Tate
cebcde3b5a resolve merge conflicts of 7641889 to lmp-mr1-dev
Change-Id: Ie162907d7388d0e388ab39bcf2471d19e2ce7020
2016-04-19 15:51:37 -07:00
TreeHugger Robot
28baa37a56 Merge "Show "Android System" instead of "Shell" on notifications." into nyc-dev 2016-04-19 22:34:54 +00:00
TreeHugger Robot
e45ed15388 Merge changes Id1278b07,Ic3da5046 into nyc-dev
* changes:
  Fixed a bug where expanding by touch wasn't possible
  Made sure the fake shadow won't be invisible
2016-04-19 22:23:32 +00:00
Selim Cinek
fe090658b6 Fixed a bug where expanding by touch wasn't possible
In landscape expanding by touch was not working because
the rawX is different from the X.

Change-Id: Id1278b073ea2e10258648884c528f5db273f2d78
Fixes: 27923197
2016-04-19 15:19:04 -07:00
Selim Cinek
e4367d60fc Made sure the fake shadow won't be invisible
The shadow could still be invisible as it was too
small.

Change-Id: Ic3da504663a449e60f490af14bb98701cff2653c
Fixes: 27317665
2016-04-19 15:19:00 -07:00
Doris Liu
dd67b0d525 Merge "Fix pause/resume for AnimatorSet" into nyc-dev 2016-04-19 22:14:37 +00:00
Doris Liu
967d93440c Merge "Pause infinite AVD when the drawable is not visible" into nyc-dev 2016-04-19 22:14:13 +00:00
Rob Carr
4e9a9dfb67 Merge "Force windows to be scalable during pinned animation." into nyc-dev 2016-04-19 22:11:02 +00:00
Adrian Roos
e5cd24dcdc Merge "Reload LockscreenWallpaper and ImageWallpaper on background thread" into nyc-dev 2016-04-19 22:06:15 +00:00
Adrian Roos
3dd59487cc Merge "Fix unprotected StatusBarManagerService calls" into nyc-dev 2016-04-19 22:05:44 +00:00
Jeff Sharkey
fd24108ca9 Don't block while dispatching PRE_BOOT.
While we're waiting on the final UX around PRE_BOOT_COMPLETED, don't
frustrate users by giving them a lockscreen that appears frozen
for several seconds.

Bug: 28164677
Change-Id: I54b62cea9bb83bc0f82fdf7e6e46a4640e1a30de
2016-04-19 15:58:27 -06:00
Rob Carr
f815e1b8d7 Merge "Place InputMethod after DockedDivider in window list." into nyc-dev 2016-04-19 21:54:23 +00:00
Amith Yamasani
3c5ceae1d3 Merge "Add test method to remove admins." into nyc-dev 2016-04-19 21:46:41 +00:00
Winson
ce9630da86 Tweaking accessibility actions for dock divider.
- Adding tl_full/70%/50%/30%/rb_full

Bug: 27724715
Change-Id: Ie3125ec81e6463696cf56640c6b86f9cfcbda945
2016-04-19 14:46:24 -07:00
Jorim Jaggi
0d6222d96d Fixes for resize thread
- Make sure to draw navigation bar/status bar background before the
main render node. This is to avoid any flickering when entering
resizing mode, so you rather overdraw than underdraw.
- Draw the first frame from the main thread directly to increase
chance that all drawing commands are processing within a single
frame.

Bug: 27864358
Bug: 28003586
Change-Id: I033f57cdbcb2c16ea93134c041095a415d5c25b4
2016-04-19 14:41:11 -07:00
TreeHugger Robot
976f28b926 Merge "Don't crop windows not on defualt display to stack bounds." into nyc-dev 2016-04-19 21:38:30 +00:00
Philip P. Moltmann
b87c08da82 Expose additional fields needed by PrintRecommendationService GTS test
and move files into properly named directory.

Fixes: 28025769, 28214466
Change-Id: I14737515fc12525a1685a1a222f21913755ac988
2016-04-19 14:31:04 -07:00
fionaxu
b5592dc9f4 Cold Sim issue fix
Bug: 25203607
Change-Id: Ibde6a483477cb7c94f75b656d5e41748b13b23b2
2016-04-19 14:24:56 -07:00
Tim Murray
eef4a3d53c Increase the max binder thread pool size for system_server.
bug 28201939

Change-Id: Iaade417a26247970b96f0aaacb3844d72de6399c
2016-04-19 14:14:20 -07:00
Chris Craik
6ed4e35e49 Merge "Document startService cost" into nyc-dev 2016-04-19 21:08:14 +00:00
Ruben Brunk
49506e0891 Add settings for altering VR display behavior.
Bug=28208992

Change-Id: I31fcda8b846e7dd62f98151020f2bff2be52d521
2016-04-19 13:59:50 -07:00
Joe Onorato
6bf86d5e5c Merge "Add the wall clock time to dumpsys cpuinfo so it's easier to correlate with the logs." into nyc-dev 2016-04-19 20:49:43 +00:00
Joe Onorato
a7f46b3ca6 Merge "Add an event log for when the memfactor changes." into nyc-dev 2016-04-19 20:49:32 +00:00
Joe Onorato
4c4afedfc5 Merge "Consolidate the HealthStats UI to only use milliseconds." into nyc-dev 2016-04-19 20:49:20 +00:00
Fyodor Kupolov
f33e2da037 Merge "Call defuse even when restrictions bundle is empty" into nyc-dev 2016-04-19 20:35:03 +00:00
Julia Reynolds
a9864d2347 Accept the calendar name in addition to the owner as a calendar filter.
Because that's what settings has been storing in the rule definition
since M.

Bug: 25974117
Change-Id: I54aa3f06b143948aa7c826fc069bdb76055a6413
2016-04-19 16:26:10 -04:00
Wale Ogunwale
4c5aa51717 Don't crop windows not on defualt display to stack bounds.
There are some windows that live on other displays while there app
and main window live on the default display (e.g. casting...). We
don't want to crop this windows to the stack bounds which is only
currently supported on the default display.

Bug: 26782253
Change-Id: I45648cc6fe8729e35f5b28eb06207aac6c263cdf
2016-04-19 12:59:13 -07:00
Tony Mak
66e640d8b4 Merge "Fix the misuse of calling user id as group id" into nyc-dev 2016-04-19 19:55:46 +00:00
Robert Carr
1ca6a33f36 Force windows to be scalable during pinned animation.
We resize windows at the beginning of the pinned stack
animation when animating to a larger size, and so for some
duration a resize will be pending. We need to force the window
out of SCALING_MODE_FREEZE so we can animate during this period.

Bug: 27891386
Change-Id: I5cff599ed67f2c179e938662b6f0d99bd790aaba
2016-04-19 12:47:18 -07:00
Todd Kennedy
069ed7003b Merge "Always perform has code check" into nyc-dev 2016-04-19 19:47:00 +00:00
Tony Mak
ff715ac551 Fix the misuse of calling user id as group id
1. The userId stored in different clients are actually calling user id.
groupId should be used to do all the operations. Also, renamed the variable
to avoid further confusion.

2. Fix the bug null is always returned in getFingerprintDaemon
   in RemovalClient.

3. Fix the misuse of calling uid as calling user id in startAuthentication.

Fix: 28268635
Fix: 28264725

Change-Id: I618ac3c6d913ae5c86e7b04cb3f9ead39828f216
2016-04-19 20:44:12 +01:00
Todd Kennedy
f720a9d91e Always perform has code check
Move code checking from the package parser and into the block
where we implement policy.

Bug: 28132476
Change-Id: Ie5cacacbf80289ff8d85acc5b57e58ea7216859c
2016-04-19 12:40:54 -07:00
Alan Viverette
d7b2599285 Don't overwrite vertical and horizontal offsets unless explicit
Bug: 28194522
Change-Id: I14c8b719a0fca03da6d9834d07948a5513241b26
2016-04-19 15:33:03 -04:00
Robin Lee
79c4dca2a8 Merge "Unit test for UidRange.java and UidRange.cpp" into nyc-dev 2016-04-19 19:25:41 +00:00
Robin Lee
c6184685d8 Merge "Move UidRange aidl declaration to system/netd" into nyc-dev 2016-04-19 19:19:43 +00:00
Kenny Guy
38dcca51a7 Add test method to remove admins.
Add test method to remove admins that declare
FLAG_TEST_APP without informing them.
The method will also remove the device and profile
owner status of the admin.

Bug: 28027468
Change-Id: Idb4d3299a9c6595c94bfb424546cd8a384131835
2016-04-19 20:10:56 +01:00
Phil Burk
0e81694a02 Merge "MidiService: fix resource leak" into nyc-dev 2016-04-19 19:10:54 +00:00
Felipe Leme
019fcd2bec Added onRestrictBackgroundWhitelistChanged callback.
When users add or remove an app to the Data Saver Mode whitelist, the
app is notified through a
ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED. But besides this
broadcast, it's also necessary to notify internal apps such Settings,
hence a new method is being added to INetworkPolicyListener.

BUG: 27481520
Change-Id: I1537a77becf6b7da1535ed5faabdc894fd9f7084
2016-04-19 12:06:00 -07:00
Amith Yamasani
4244978621 Throw better exception when startVoiceActivity fails
Introduced new error codes so that Instrumentation can
include the correct message in the exception.

Bug: 28216630
Change-Id: I93ee77153cdad11fa208c74c28c6790db27c9753
2016-04-19 11:45:51 -07:00
Fyodor Kupolov
0d88d54c34 Call defuse even when restrictions bundle is empty
Bug: 28259217
Change-Id: I3e9ba60ee80d1fedef4844d264b312418c287be4
2016-04-19 11:37:22 -07:00
Raph Levien
7ecd7671b7 Merge "Delete emojis before and after ZWJ at the same time." into nyc-dev 2016-04-19 18:31:05 +00:00
Joe Onorato
d2bc2ba778 Add the wall clock time to dumpsys cpuinfo so it's easier to correlate with the logs.
Bug: 28113068
Change-Id: Ifa90192b0aa3f57ba6928f38199beb5b56bca7e6
2016-04-19 11:27:11 -07:00