diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-03-26 18:31:48 +0100 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-03-31 20:58:31 +0200 |
commit | 5cf17879a31b7b78c09ec50b727f921840dcf783 (patch) | |
tree | 0e3d1a52b1c275676c80c6f90dd516a4d8e292cb /packages/Keyguard/src/com/android/keyguard/FaceUnlock.java | |
parent | 085226c40f21a4467f047b901c7640e2215828d8 (diff) | |
download | frameworks_base-5cf17879a31b7b78c09ec50b727f921840dcf783.zip frameworks_base-5cf17879a31b7b78c09ec50b727f921840dcf783.tar.gz frameworks_base-5cf17879a31b7b78c09ec50b727f921840dcf783.tar.bz2 |
Reuse KeyguardViewMediator for new Keyguard implementation.
This change reuses KeyguardViewMediator for the new Keyguard
implementation in status bar. KeyguardViewManager is replaced by
StatusBarKeyguardManager which handles adding the view, setting the
state etc. StatusBarWindowManager is introduced to managed the window
of the status bar, which has the logic of both the old Keyguard window
and the old status bar window. In the current implementation, Keyguard
gets displayed like it would be in the bouncer state, but that's likely
to change in the future. Also, setHidden in IKeyguardService is also
renamed to setOccluded, as the word hidden interferes with the
terminology when dismissing the Keyguard.
Bug: 13635952
Change-Id: I1c5d5a49d810d8532089f464cb2efe35e577f517
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/FaceUnlock.java')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/FaceUnlock.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/FaceUnlock.java b/packages/Keyguard/src/com/android/keyguard/FaceUnlock.java index de839c6..2f14003 100644 --- a/packages/Keyguard/src/com/android/keyguard/FaceUnlock.java +++ b/packages/Keyguard/src/com/android/keyguard/FaceUnlock.java @@ -37,8 +37,9 @@ import android.view.View; public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { - private static final boolean DEBUG = false; + private static final boolean DEBUG = KeyguardConstants.DEBUG; private static final String TAG = "FULLockscreen"; + private static final String FACE_LOCK_PACKAGE = "com.android.facelock"; private final Context mContext; private final LockPatternUtils mLockPatternUtils; @@ -128,7 +129,8 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { if (!mBoundToService) { Log.d(TAG, "Binding to Face Unlock service for user=" + mLockPatternUtils.getCurrentUser()); - mContext.bindServiceAsUser(new Intent(IFaceLockInterface.class.getName()), + mContext.bindServiceAsUser( + new Intent(IFaceLockInterface.class.getName()).setPackage(FACE_LOCK_PACKAGE), mConnection, Context.BIND_AUTO_CREATE, new UserHandle(mLockPatternUtils.getCurrentUser())); |