diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2015-08-14 13:56:01 -0700 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2015-08-17 19:21:42 -0700 |
| commit | 007f0e8f207d3d6d2f47d725b72459edf317cce9 (patch) | |
| tree | 28f91cc82076ddc862a613355c12ec7a06260970 /packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java | |
| parent | eb2f302d119faaaf5d63f23f0921da9d756da5b4 (diff) | |
| download | frameworks_base-007f0e8f207d3d6d2f47d725b72459edf317cce9.zip frameworks_base-007f0e8f207d3d6d2f47d725b72459edf317cce9.tar.gz frameworks_base-007f0e8f207d3d6d2f47d725b72459edf317cce9.tar.bz2 | |
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
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java')
| -rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java index 52412f7..bf9435e 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java @@ -194,6 +194,17 @@ public class KeyguardUpdateMonitorCallback { public void onFingerprintAuthenticated(int userId, boolean wakeAndUnlocking) { } /** + * Called when we might be starting a wake-and-unlock sequence. + */ + public void onFingerprintWakeAndUnlockingStarted() { } + + /** + * Called when we're done with the wake-and-unlock sequence. This can either happen when we + * figure out that the fingerprint didn't match, or when the phone is fully unlocked. + */ + public void onFingerprintWakeAndUnlockingFinished() { } + + /** * Called when fingerprint provides help string (e.g. "Try again") * @param msgId * @param helpString |
