summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-08-17 17:38:58 -0700
committerJorim Jaggi <jjaggi@google.com>2015-08-18 17:57:10 -0700
commit83eb6bb5d83d3994a3750b566a2109a049ab1388 (patch)
tree69a25df5abc37ef4261c9d2a4e3bf50c8f9a156b /packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
parent007f0e8f207d3d6d2f47d725b72459edf317cce9 (diff)
downloadframeworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.zip
frameworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.tar.gz
frameworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.tar.bz2
Improve motion for wake-and-unlocking while pulsing
- Move all fingerprint related to logic in on central class in SystemUI that knows all the state of the UI so there is exactly ONE place in which we decide what to do when we acquire a fingerprint. - When pulsing and we get a valid finger, we fade the contents of the Keyguard out and fade the scrim out almost the same way as we would do in a normal wake-and-unlock sequence. - Hide shadows while dozing, so we don't see the artifacts when we fade the dozed Keyguard out. Bug: 23225107 Change-Id: I82f78e61f2530cf7d507ade80f6f0a340c082567
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
index bf9435e..7ca67b0 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
@@ -186,23 +186,23 @@ public class KeyguardUpdateMonitorCallback {
public void onTrustGrantedWithFlags(int flags, int userId) { }
/**
- * Called when a fingerprint is recognized.
- * @param userId the user id for which the fingerprint was authenticated
- * @param wakeAndUnlocking whether the authentication woke the device up and thus we'd like to
- * dismiss the lockscreen before turning on the screen
+ * Called when a finger has been acquired.
+ * <p>
+ * It is guaranteed that either {@link #onFingerprintAuthenticated} or
+ * {@link #onFingerprintAuthFailed()} is called after this method eventually.
*/
- public void onFingerprintAuthenticated(int userId, boolean wakeAndUnlocking) { }
+ public void onFingerprintAcquired() { }
/**
- * Called when we might be starting a wake-and-unlock sequence.
+ * Called when a fingerprint couldn't be authenticated.
*/
- public void onFingerprintWakeAndUnlockingStarted() { }
+ public void onFingerprintAuthFailed() { }
/**
- * 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.
+ * Called when a fingerprint is recognized.
+ * @param userId the user id for which the fingerprint was authenticated
*/
- public void onFingerprintWakeAndUnlockingFinished() { }
+ public void onFingerprintAuthenticated(int userId) { }
/**
* Called when fingerprint provides help string (e.g. "Try again")