14687 Commits

Author SHA1 Message Date
Kenny Guy
716a9e1892 Merge "Support FBE for managed profiles." into nyc-dev 2016-02-12 15:01:35 +00:00
Kenny Guy
b1b302660c Support FBE for managed profiles.
Allow launcher to see and attempt to launch non-crypto
aware application when profile is locked.
Hide unlock notification until parent user is unlocked.
Have unlock notitication use confirm credentials to unlock
the profile.
Updated notification strings as per suggestions in mocks
to make it clearer between users and profiles.

Bug: 27038260

Change-Id: If2d2c8148670d814544f4edd44193d15da32a289
2016-02-12 14:29:37 +00:00
Rubin Xu
5eb0f3b300 Maintain mSetupCompletedUsers for profiles correctly
When listening for USER_SETUP_COMPLETE changes, refresh the state for
the affected user instead of the current foreground user which excludes
the active managed profile.

Bug: 27061092
Change-Id: Iae525464d3d3faab9afb76aaf4304b9f10382e01
2016-02-12 14:11:27 +00:00
Gustav Sennton
7a002a215d Merge "Move current WebView provider from Settings.Secure to Settings.Global" into nyc-dev 2016-02-12 10:35:24 +00:00
Jorim Jaggi
e26334ba1a Merge "Handle light status bar for split-screen" into nyc-dev 2016-02-12 03:12:18 +00:00
Fyodor Kupolov
50b5616dcc Merge "Clear calling identity before setting restrictions" into nyc-dev 2016-02-12 01:37:38 +00:00
Felipe Leme
089c9c0c6c Merge "Optimized add|removeRestrictBackgroundWhitelistedUid()." into nyc-dev 2016-02-12 00:50:47 +00:00
Winson Chung
34f5c494df Merge changes If90955f4,I9fa48c06,Ib4681a43 into nyc-dev
* changes:
  Adding view debug annotations to simplifying debugging state.
  Disallow launching third party apps in safe mode.
  Drawing thumbnail background color for empty space in view.
2016-02-12 00:29:43 +00:00
Fyodor Kupolov
aa72470acb Merge "During update enable system apps for requested users only" into nyc-dev 2016-02-12 00:04:04 +00:00
Rob Carr
2b63730837 Merge "Correct error in window lifetime." into nyc-dev 2016-02-11 23:06:25 +00:00
Shreyas Basarge
73f1025f2d Fix for JobScheduler dropping periodic jobs
Skip writing to disk when a periodic job is
removed from jobStore after it completes
execution.

Change-Id: Ib4f2cf18554bf9c87138c1984c96cc62f8dbf7e2
Bug: 27147454
2016-02-11 22:53:09 +00:00
Lifu Tang
94093b94cc Merge "Fixed the build break" into nyc-dev 2016-02-11 21:06:01 +00:00
Lifu Tang
a2b74fd268 Fixed the build break
Change-Id: I02ee9b3f44d79510f174a1041f28b9c60450aa9c
2016-02-11 12:57:59 -08:00
Jorim Jaggi
8690558241 Handle light status bar for split-screen
In split-screen the light status bar flag for one side of the
status bar can be different from the other side.
SYSTEM_UI_FLAG_LIGHT_STATUS_BAR is now reported for both
the fullscreen stack and docked stack, but not anymore in the
"default" SysUI visibility field when reporting a visibility
change to SystemUI. The change also reports the docked stack
and the fullscreen stack bounds, so SystemUI can guard tinting
the icons on whether the icon is one of the areas.

When calculating the light status bar flag in PWM, we keep track
of the top fullscreen opaque window state for the docked and
fullscreen stack separately.

Bug: 24365214
Change-Id: Id2240a86d75bf96e0138ec7652a4793859f56e3c
2016-02-11 12:18:40 -08:00
Lifu Tang
ade2f66fd8 Merge "Optimized the memory consumption and renamed PRN" into nyc-dev 2016-02-11 20:10:11 +00:00
Chong Zhang
94b84028ba Merge "Mark activity as visible and not stopped after resume-relaunch." into nyc-dev 2016-02-11 20:05:59 +00:00
Chong Zhang
2b79af1e8a Mark activity as visible and not stopped after resume-relaunch.
After a resume-relaunch, the activity is assumed to be in resumed state,
and we'll not run the normal code for resume. But it needs to be marked
visible otherwise it will stuck in invisible state.

Also trade some AM traces for WM traces for further debugging.

bug: 27123118
Change-Id: I50ce5cde29f441115675db54523090ef86d95ea8
2016-02-11 12:00:27 -08:00
Winson Chung
1af8eda6ea Drawing thumbnail background color for empty space in view.
Change-Id: I2e8dfbe9c11a61876956658eff0674adb26d855d

Signed-off-by: Winson <winsonc@google.com>
2016-02-11 11:48:33 -08:00
Robert Carr
bc89e59295 Correct error in window lifetime.
Correct a simple logic error where application stop state is incorrectly
reset.

Bug: 27112965
Change-Id: I3058378c1e240e0a02665ad479678723e14921aa
2016-02-11 19:42:42 +00:00
Lifu Tang
120480f17a Optimized the memory consumption and renamed PRN
Bug: 27058251
Change-Id: I2309943b1a4e7565868ed0f247b84edc631fbd59
2016-02-11 11:29:40 -08:00
Wale Ogunwale
567704bca2 Merge "Force pre-N apps to be resizeable." into nyc-dev 2016-02-11 18:55:50 +00:00
Jeremy Joslin
7df8356724 Merge "Send explicit broadcasts when the scorer changes." into nyc-dev 2016-02-11 18:55:38 +00:00
Andrei Stingaceanu
ace5cf4aa5 Merge "Suspend apps - disable audio/vibrations" into nyc-dev 2016-02-11 18:48:00 +00:00
Gustav Sennton
14c033c76b Move current WebView provider from Settings.Secure to Settings.Global
The current WebView provider is not user-specific and should therefore
be stored as a Global rather than a Secure setting.

Also do some code cleaning including a fix in WebViewProviderInfo to
always fetch up-to-date information about whether a webview
implementation package is enabled.

Bug: 27142972
Change-Id: I4d4b8fca775e97980fb5c34313be6d82472e7d33
2016-02-11 18:19:39 +00:00
Gustav Sennton
c2ba290716 Merge "Allow using USER_ALL as user id when killing package dependents." into nyc-dev 2016-02-11 18:14:46 +00:00
Philipp Weiß
09f8568059 Merge "DPM.createAndManageUser should work even with DISALLOW_ADD_USER set" into nyc-dev 2016-02-11 17:17:39 +00:00
Andrei Stingaceanu
2bc2febd56 Suspend apps - disable audio/vibrations
Do not allow audio or vibrations for suspended apps.

Bug: 22776761
Bug: 26949521
Bug: 26954754
Bug: 26953560
Change-Id: I181288823e38efdb1631bc26ee23278697eeb0f5
2016-02-11 17:15:19 +00:00
Shreyas Basarge
7680dd9bdf Fix ConcurrentModificationException in SyncManager
ConcurrentModificationException would be thrown because
we didn't break from the for loop after removing an
entry from the collection we were looping over.

Change-Id: I30435670f76f60b238e29658611b06ec789219aa
Bug: 27136502
(cherry picked from commit 12832e3291a66bcab12edd5943767c7827c3f7c6)
2016-02-11 16:54:12 +00:00
Jeremy Joslin
da11f5cdf5 Send explicit broadcasts when the scorer changes.
When the scorer is changed send a targeted broadcast to the previous
scorer (if any) and then a targeted broadcast to the new scorer.

BUG:26815773
Change-Id: If28414f4373a531b10f581ecd096cbc27a7318a4
2016-02-11 07:15:44 -08:00
David Brazdil
b62d690e7e Address minor comments after go/ag/858723
Change-Id: I549bd3290ae47d46b2ef10553466db2c29296ee9
2016-02-11 15:06:44 +00:00
phweiss
e9c440638e DPM.createAndManageUser should work even with DISALLOW_ADD_USER set
For this, the DPM calls a new function
UserManagerInternal.createUserEvenWhenDisallowed() instead of
UserManager.createUser(). This calls
UserManagerService.createUserInternalUnchecked().

Also, only the system user is allowed to call this method, otherwise
a security exception is thrown.

Bug: 26952210
Bug: 26786199
Change-Id: I69c16354898d68592d13f5f53b840551f7ad4779
2016-02-11 14:43:18 +01:00
Wale Ogunwale
d829d36f09 Force pre-N apps to be resizeable.
We feel this experience is better than the 2-finger gesture.
Added ActivityInfo.RESIZE_MODE_FORCE_RESIZEABLE resizeMode
to indicate we are force resizing an app.

Bug: 27132829
Bug: 26847884
Change-Id: I65db2de0d9f3f171cc3bb136cc1282b3ef3549b0
2016-02-11 05:02:14 -08:00
David Brazdil
6b4736d604 Apply 'used in last 7 days' filter to OTA package extraction
Bug: 26813999

Change-Id: I5f1eddb1d5e9f0bbaab62d86e6ccf3cc097c4edb
(cherry picked from commit e292175fbd495a63b48560439d2a84b239f91e18)
2016-02-11 12:16:41 +00:00
Wale Ogunwale
abcab7036e Merge "Fixed permission issue with AM.setFocusedStack/Task APIs" into nyc-dev 2016-02-11 03:31:02 +00:00
Wale Ogunwale
b7521b3174 Fixed permission issue with AM.setFocusedStack/Task APIs
- Check for MANAGE_ACTIVITY_STACKS permission when AM.setFocusedStack
or AM.setFocusedTask is called.
- Clear calling identity when AM.setFocusedStack is called.

Bug: 27135250
Change-Id: Ib082bc6cd03411c4cbf741e5bdcec54679441eff
2016-02-10 18:37:26 -08:00
Jorim Jaggi
9dcb85a0a6 Do not ensure visibility when just resizing
No need to ensure the visibilities of activities if only the
bounds change. If we resize the docked stack to fullscreen this
method still gets called.

This makes multi-window dogfoodable again with all that DEBUG
churn we have enabled, but also helps performance in general
when the history is quite big.

Bug: 25015474
Change-Id: I9ae0281392353e6c01563d021bca7dc23125b14f
2016-02-11 02:16:22 +00:00
Jeff Sharkey
406e9d44fd Merge "Consistent naming for internal storage APIs." into nyc-dev 2016-02-10 22:11:52 +00:00
Jeff Sharkey
8212ae0aee Consistent naming for internal storage APIs.
Also completely remove a few confusingly named deprecated APIs.

Change-Id: Ia7e4ea3190a97f0a7dfa9bebf2118da0866ec38f
2016-02-10 15:03:33 -07:00
Makoto Onuki
cc725a4b6c Merge "Use Slog.e() instead of Slog.wtf() for unknown restrictions" into nyc-dev 2016-02-10 21:59:15 +00:00
Wale Ogunwale
de41f15a14 Merge "Don't stop paused activities that are visible." into nyc-dev 2016-02-10 21:48:42 +00:00
Wale Ogunwale
d802664120 Don't stop paused activities that are visible.
Paused activities can be visible, but stopped activities are not
visible.

Change-Id: I305f77542d198ca897b33ad07ac3fc2a14a04397
2016-02-10 13:46:50 -08:00
Makoto Onuki
ad5619d447 Use Slog.e() instead of Slog.wtf() for unknown restrictions
Slog.wtf() normally indicates a bug in the system, but in this case
it's a caller side issue, so e() is more suitable.

Bug 26918715

Change-Id: I94980cb9dafd34e6c5672bf833fec921df14e6a1
2016-02-10 13:41:15 -08:00
Julia Reynolds
9a86cc0c31 Don't unbind services unnecessarily.
When rebinding services, don't unbind from services that are still allowed to
be bound.

Change-Id: I5f250724d2d0931ee0ac7d1182e9c1d8122bfdf0
2016-02-10 15:56:18 -05:00
Jae Seo
c980f43d94 TIF: Clean the hardware input list when the input service is reconnected
Needed to avoid adding duplicate TvInputInfo objects when the hardware
TV input service is killed and reconnected.

Bug: 26503803
Change-Id: I9265219678cb8594d43dac561f1e69c21d9c2733
(cherry picked from commit 6657e292a57e600669b3102d27f69497c45f899d)
2016-02-10 19:33:46 +00:00
Felipe Leme
47585ba143 Optimized add|removeRestrictBackgroundWhitelistedUid().
The initial implementation of these methods was calling
updateRulesForGlobalChangeLocked(), which is expensive.

The new implementation is optimized  by:

- quitting earlier if there is no change
- only calling setUidNetworkRules
- only broadcasting a ACTION_RESTRICT_BACKGROUND_CHANGED it the status
  of the app changed.

This change also removed the unnecessary onPackageRemovedAllUsers()
callback (just onPackageRemoved() is enough).

BUG: 26685616

Change-Id: If38b8b870e992c48e40b4362e8170c64ff8b2a9d
2016-02-10 11:33:40 -08:00
Shreyas Basarge
2b4c8f926f SyncManager sync blow up fix
Duplicates for periodic syncs would be
created just after boot and when a
periodic sync was delayed. This CL fixes
the behavior.

Bug: 26954967
Change-Id: I2440961629d443a62f96360563d435af9137857b
(cherry picked from commit 1675400a7cd0b56e5adc5606fb4fea77f8d24ea5)
2016-02-10 19:09:44 +00:00
Jae Seo
425c8bf292 Merge "TIF: Rename connect()/disconnect() and remove unnecessary methods" into nyc-dev 2016-02-10 18:27:06 +00:00
Jorim Jaggi
dcb6814523 Reset docked stack resizing when divider dies
Bug: 27062375
Change-Id: I699f8d99ceab8405bcb973942787ee80caea12b2
2016-02-10 18:25:22 +00:00
Adrian Roos
691546e5b7 Isolate Keyguard from main thread badness
Adds a bindService variant to run the ServiceConnection callbacks
on a dedicated Handler.

Changes KeyguardService binding to use the foreground thread
instead of the main thread and changes state to the
KeyguardScrim on the UI thread.

Bug: 26954967
Change-Id: I9d7bd85382816cd0e23772b14ff6518266a9d232
2016-02-10 18:17:29 +00:00
Erik Kline
0e7f32f6f5 Expose measurement results to interested callers.
am: 106cdf6c94

* commit '106cdf6c94c455462316555b7ac59ec79c3b40fa':
  Expose measurement results to interested callers.
2016-02-10 15:58:17 +00:00