summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-06-18 16:33:51 -0700
committerJim Miller <jaggies@google.com>2014-06-28 01:11:20 +0000
commitf41fc9664febbdbf138e8540fd7a8281f1278eb1 (patch)
treedd6c6c36f4e07bd28dd9716225216355018ffa69 /packages/SystemUI/src/com/android/systemui/keyguard
parent155854f59813cbc3be50598036d905828dbdb78d (diff)
downloadframeworks_base-f41fc9664febbdbf138e8540fd7a8281f1278eb1.zip
frameworks_base-f41fc9664febbdbf138e8540fd7a8281f1278eb1.tar.gz
frameworks_base-f41fc9664febbdbf138e8540fd7a8281f1278eb1.tar.bz2
Add fingerprint detection support to Keyguard.
Tested: - power-on with fingerprint sensor - dismiss bouncer with fingerprint - fingerprint to enter trusted state Change-Id: I6aab7591d370412a143fe219a1575b2719a4de96
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index b9e2e1b..322174a 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -392,6 +392,12 @@ public class KeyguardViewMediator extends SystemUI {
}
}
+ public void onFingerprintRecognized(int userId) {
+ if (mStatusBarKeyguardViewManager.isBouncerShowing()) {
+ mViewMediatorCallback.keyguardDone(true);
+ }
+ };
+
};
ViewMediatorCallback mViewMediatorCallback = new ViewMediatorCallback() {
@@ -1079,6 +1085,7 @@ public class KeyguardViewMediator extends SystemUI {
if (authenticated) {
mUpdateMonitor.clearFailedUnlockAttempts();
}
+ mUpdateMonitor.clearFingerprintRecognized();
if (mExitSecureCallback != null) {
try {