OSDN Git Service

Fix race condition for doze mode and wake-and-unlocking
authorJorim Jaggi <jjaggi@google.com>
Fri, 14 Aug 2015 20:56:01 +0000 (13:56 -0700)
committerJorim Jaggi <jjaggi@google.com>
Tue, 18 Aug 2015 02:21:42 +0000 (19:21 -0700)
commit007f0e8f207d3d6d2f47d725b72459edf317cce9
tree28f91cc82076ddc862a613355c12ec7a06260970
parenteb2f302d119faaaf5d63f23f0921da9d756da5b4
Fix race condition for doze mode and wake-and-unlocking

When pulse was about to turn on and at the same time we were starting
a wake-and-unlock sequence, there was jank because the scrim handling
was not correct anymore. Now, abort the pulse when we are wake-and-
unlocking so we don't see flickering with the scrims anymore.

Bug: 23217476
Change-Id: I331f513b68fb1832b4372d3e2e518b31b556a43c
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
packages/SystemUI/src/com/android/systemui/doze/DozeHost.java
packages/SystemUI/src/com/android/systemui/doze/DozeService.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java