Alarms in mPendingNonWakeupAlarms were left hanging when the user is
removed. These would be defunct at the time of delivery, so there is no
point in holding on to them.
Test: atest AlarmManagerServiceTest
Fixes: 130444055
Change-Id: Ib496b26a855304556ed032b957a1c731f2e2ca18
Location is a fundamental feature for automotive, which should be
out of reach of device admins (for example, disabling it could
affect the navigation app).
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetLocationEnabled # on automotive and phone
Bug: 186263875
Fixes: 185523465
Change-Id: I8a9d3347080d56c8f064038b66b5b1826e377f64
onState() needs to be called to initialize the color to be drawn
with. ColorStateListDrawable(ColorStateList) does this as part
of the call to setColorStateList(), however this was missing from
ColorStateListDrawable(ColorStateListDrawableState) which is hit
when doing ColorStateListDrawableState#newDrawable() when
Resources has a cache-hit on a drawable to load.
Fixes: 186254988
Test: app in bug
Change-Id: Ifb3626f6f85b03dd66142a2f91ba06bc648bff16
On S, the wallpaper is zoomed out when the shade is down, we do not have
to do anything specific to the brightness mirror anymore.
Fixes: 186010374
Test: manual
Test: atest NotificationShadeDepthControllerTest
Change-Id: I9347708026045b7833aa51a9cfbb9ad2e6ee4321
- Add new hidden APIs: injectCamera() and stopInjection() in
CameraManager.
- Add a new permission: android.permission.CAMERA_INJECT_EXTERNAL_CAMERA
to allow injecting the external camera to switch the internal camera.
- Add a new CameraInjectionSession class with stopInjection function,
which is called back by CameraInjectionCallback.onInjectionSucceeded(),
then the lifetime of CameraInjectionSession is what determines when
injection is active.
Bug: 181395010
Test: Verified camera manager use cases function as expected; no denials
Change-Id: I0b218dc6a55c7827e2446502b7a22382c6fe9f3e
It was not properly clearing the caller's identity, so it would
fail "in real life" when the DPC doesn't have INTERACT_ACROSS_USERS
(but it was passing on CTS because the test app had it).
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner # on automotive
Fixes: 186455856
Change-Id: I2924f5cdf90e767c4f2ae534788baa5c448126c5
BlastBufferQueue adapter will modify the passed in SurfaceControl
properties. This conflicts with updates from the Wallpaper service. To
fix this, create a wrapper layer for the wallpaper BlastBufferQueue.
Fixes: 185561343
Test: rotate wallpaper, confirm wallpaper is scaled correctly
Change-Id: Ie0057652d72e07f811c22afc97e7417cda94bb2d
This change introduces a callback that AuthController can provide to
FingerprintService to get notified when all of the fingerprint providers
are available.
This fixes the bug where UDFPS overlay is not available if SystemUI
starts before the fingerprint HAL, because SystemUI would query the
fingerprint providers on startup.
Bug: 184677066
Test: atest AuthControllerTest
Test: on device
Change-Id: I165d67bdda09ea10dd5aac539c4155e6b158227d