When the scrim is lighter & the pointer triangle is also
white, it's very hard to see and will not pass GAR.
Bug: 186441337
Test: atest ScrimControllerTest
Test: manual - expand bubble in dark & light theme on top of launcher
and on top of some other app
=> notice scrim is always dark & pointer triangle is
slightly more visible
Change-Id: I5e5c191bb813dc272284daf11e76c02ba17dc375
MODE_SHOW_BOUNCER shouldn't notifyKeyguardAuthenticated, but
MODE_UNLOCK_COLLAPSING should.
Test: use biometric auth right after reboot - goes to bouncer
Test: atest BiometricsUnlockControllerTest
Fixes: 186179437
Change-Id: I3f054a66de9125d8c61a52c2096779500c5012c0
- UiEvent wasn't being used onWakeScreen even though the events
themselves already exist. Use ui-event and add event for wake timeout
- Inject UiEventLogger for easier testability
Test: manually view ui events using command
`$ANDROID_HOST_OUT/bin/statsd_testdrive-terse 90`
Test: atest DozeTriggersTest
Fixes: 186230887
Change-Id: I7ac4c11e5c95ed774499ee8b62931321fa812549
Smartspace will send an update when headphones are connected, but if the
user had recently active media (<3h) then we will show that media
instead of the smartspace cared. When smartspace later tries to expire
its card, this re-activated media will also be marked inactive again
(unless the user had started playback).
Fixes: 182811956
Fixes: 182813365
Test: manual
Test: atest com.android.systemui.media
Change-Id: I380f668c789c945d20814796607fcfc1e356de8f
It is possible for an app to be resumable locally, but also post
notifications when playing remotely that are not resumable long-term.
This change makes it so that only local sessions will be used for resume
players, and remote sessions will be removed when the underlying notification
is removed.
Bug: 185681682
Test: manual - start playback on Spotify web, observe notification on
phone, then close app on phone and observe no resume player
Test: atest MediaDataManagerTest MediaResumeListenerTest
Change-Id: I0a6ff2bab234a33298f84fd6d99b7d537d3d5e34
Also integrate the FalsingManager, which is important for determining
user intent while on the lockscreen.
Fixes: 186219857
Test: atest KeyguardClockSwitchControllerTest
Change-Id: I22108ec2335bd350fbcaf5d5b90dd3b351011767
It is possible for a media session to be destroyed without updating the
playback state or removing the notification, in which case the
controller will no longer be valid. So we can treat this like
resumption, and re-register the controller and re-activate the controls
if we later get an event where the media is playing.
Fixes: 185899440
Test: MediaTimeoutListenerTest
Change-Id: If8b8922b436261ccf703ee9e1e3c0294171a6c2e
An event passing null would cause the internal state of
ThemeOverlayController to be reset, accepting future theming events.
Test: atest ThemeOverlayControllerTest
Bug: 182560740
Change-Id: Ie619ff5ae73b97e6a26cc90227bcad1c6277b30b
- Allow udfps fingerprint to run when the bouncer is about to show;
instead, we'll manually pause auth in UdfpsKeyguardViewController when
we don't want to allow the user to authenticate
- On Keyguard, when bringing up the bouncer (swipe up on LS), continue
to show the udfps target until it hits a threshold - then we fade out
the icon
Test: manual
Bug: 178509275
Change-Id: I6e883a619b38a1a136f9d6e39b755a75c5028553
Also moves the #initNotificationIconArea call to be within
CollapsedStatusBarFragment, rather than requiring StatusBar to call it.
This makes our unit tests better because now we don't need to call it
manually.
Also fix a bug in #onDozingChanged that was passing disabled1 in for
disabled2.
Test: atest and manual
Bug: 183229367
Fixes: 185897059
Change-Id: I0a65f9e90e66680f0b602b89f89ec0a4900e9df8
When a managed profile is added, if setup wizard was not finished,
do not reload the theme, postpone until it's done
Bug: 185572689
Test: atest ThemeOverlayControllerTest
Change-Id: I0cb1b2316a6837d85cf708403a34c2459a1dcc5a
- Add PowerManager.userActivity when user uses udfps to authenticate
so the screen won't turn off prematurely
- When the udfps-bouncer is showing, tapping outside the udfps view will
show the regular pin/pattern/password bouncer
Fixes: 184927116
Fixes: 182500156
Test: atest SystemUITests
Test: manual
1. enroll udfps
2. go to locked lock screen
3. double tap power button to bring up camera
4. tap on camera gallery (lock icon on image, bottom right)
Observe: udfps is highlighted; tapping outside udfps area brings up
regular bouncer
Change-Id: If01ee16647499fc2cf73afe527053cd6830a50ed