Fixes an issue where waking up with fingerprint would not work correctly
if the keyguard was not locked.
Also fixes flickering when triggering the Assistant on AOD.
To achieve the above, also ensures that whenever the scrim is visible, the status bar window is expanded.
Finally, log the alpha and tint of the scrims to systrace.
Fixes: 63983663
Fixes: 63065774
Bug: 63531607
Test: Disable power key locks immediately, trigger AOD, unlock with fingerprint. Verify no flicker; Trigger Assistant from AOD in various scenarios. Verify no flicker.
Change-Id: I0db2938afdde23c1995f6ac905d4a6abdf25cdec
Fixes a flicker at the end of pulsing out. Instead of the hard cut
we animate out and then hard cut to AOD1.
Change-Id: I64149bb734c10e07e3da2822548a4651b9fb48db
Fixes: 64077859
Test: Receive notification, let it time out; verify no flicker at end of fading out.
Fixes an issue where heads up notifications were escalated too late,
which caused notifications not to show on ambient display if they came
in after the device started dozing but before the SCREEN_OFF intent came
in.
Instead, we now escalate when we start going to sleep.
Note that SCREEN_OFF is dispatched on the wakefulness lifecycle, not the screen
lifecycle.
Change-Id: Ied73161d1007d1c65c31e8c5a6f660124a1f4385
Fixes: 63992199
Test: Receive notification right when the display turns off. Make sure AOD does not show in a weird state.
Fixes an issue where disable flags were not applied properly because
they were not recomputed after expanding the PanelBar.
Change-Id: I6933ba4951bf768a15a9d4f58728558939f106ae
Fixes: 64001235
Test: Open camera, put to landscape, press power; Verify time and battery icon are not visible in transition.
No longer do the upwards animation from AOD1, because there is a fade in instead now.
Also, because the DozeService gets finished when waking up, we were disallowing
animations again. Instead, we now ignore disallowing animations while waking up.
Also don't cancel the NotificationPanelView wakeup animation when another identical
request comes in.
Also adds tracing for various SystemUI states.
Bug: 63531607
Test: Wake up from AOD1. Ensure there is no jank or flicker
Change-Id: I383ffa320f28ac4bf5432e4f4f5c06372717f66f
* In Quick Settings, BluetoothTile used BluetoothController to track
BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED intent
that is only fired when 1st device is connecting/connected and last
device is disconnecting/disconnected. As result, non-first device's
connecting/connected states and non-last device's
disconnecting/disconnected states are not tracked properly.
* Instead, CachedBluetoothDevice.getMaxConnectionState() should be used
Bug: 63509289
Test: Connect to multiple devices and disconnect from multiple devices
Change-Id: I9ccc2d3e9e4ae1a44f4d270368a8f07030353544
Dumping current themes and scrim states to make debugging easier.
Bug: 63890571
Test: adb bugreport # look for new variables
Change-Id: Ia9bfd1b91d8d2c19930cb896d337ecdfa776e6cb
This consolidates logic between the QS Picker and the WifiSettings
Picker. Previous QS behavior would show the out of range networks with
empty wifi pies, can last up to 3 scans, and differs from behavior in
WifiSettings.
Bug: b/62680006
Test: 1. Open the quick settings picker
2. Minimize the picker
3. Walk out of range of the networks you say listed in the picker
4. Re-open picker
5. Networks should not be shown.
Change-Id: Ic042f3e6ac41b426c343ccca288b26dcaaafa7fb
(cherry picked from commit bcebe09c9f)