Loading packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -269,7 +269,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe */ */ private void updateBiometricRetry() { private void updateBiometricRetry() { SecurityMode securityMode = getSecurityMode(); SecurityMode securityMode = getSecurityMode(); mSwipeUpToRetry = mUnlockMethodCache.isUnlockingWithFacePossible() mSwipeUpToRetry = mUnlockMethodCache.isFaceAuthEnabled() && securityMode != SecurityMode.SimPin && securityMode != SecurityMode.SimPin && securityMode != SecurityMode.SimPuk && securityMode != SecurityMode.SimPuk && securityMode != SecurityMode.None; && securityMode != SecurityMode.None; Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -1783,13 +1783,15 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { && mFpm.getEnrolledFingerprints(userId).size() > 0; && mFpm.getEnrolledFingerprints(userId).size() > 0; } } private boolean isUnlockWithFacePossible(int userId) { return isFaceAuthEnabledForUser(userId) && !isFaceDisabled(userId); } /** /** * If face hardware is available, user has enrolled and enabled auth via setting. * If face hardware is available, user has enrolled and enabled auth via setting. * Not considering encryption or lock down state. */ */ public boolean isUnlockWithFacePossible(int userId) { public boolean isFaceAuthEnabledForUser(int userId) { return mFaceManager != null && mFaceManager.isHardwareDetected() return mFaceManager != null && mFaceManager.isHardwareDetected() && !isFaceDisabled(userId) && mFaceManager.hasEnrolledTemplates(userId) && mFaceManager.hasEnrolledTemplates(userId) && mFaceSettingEnabledForUser.get(userId); && mFaceSettingEnabledForUser.get(userId); } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class KeyguardBouncer { // Split up the work over multiple frames. // Split up the work over multiple frames. DejankUtils.removeCallbacks(mResetRunnable); DejankUtils.removeCallbacks(mResetRunnable); if (mUnlockMethodCache.isUnlockingWithFacePossible() && !needsFullscreenBouncer() if (mUnlockMethodCache.isFaceAuthEnabled() && !needsFullscreenBouncer() && !mKeyguardUpdateMonitor.userNeedsStrongAuth()) { && !mKeyguardUpdateMonitor.userNeedsStrongAuth()) { mHandler.postDelayed(mShowRunnable, BOUNCER_FACE_DELAY); mHandler.postDelayed(mShowRunnable, BOUNCER_FACE_DELAY); } else { } else { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,7 @@ class KeyguardBypassController { * If face unlock dismisses the lock screen or keeps user on keyguard for the current user. * If face unlock dismisses the lock screen or keeps user on keyguard for the current user. */ */ var bypassEnabled: Boolean = false var bypassEnabled: Boolean = false get() = field && unlockMethodCache.isUnlockingWithFacePossible get() = field && unlockMethodCache.isFaceAuthEnabled private set private set var bouncerShowing: Boolean = false var bouncerShowing: Boolean = false Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -2390,6 +2390,10 @@ public class StatusBar extends SystemUI implements DemoMode, mLightBarController.dump(fd, pw, args); mLightBarController.dump(fd, pw, args); } } if (mUnlockMethodCache != null) { mUnlockMethodCache.dump(pw); } if (mKeyguardBypassController != null) { if (mKeyguardBypassController != null) { mKeyguardBypassController.dump(pw); mKeyguardBypassController.dump(pw); } } Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -269,7 +269,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe */ */ private void updateBiometricRetry() { private void updateBiometricRetry() { SecurityMode securityMode = getSecurityMode(); SecurityMode securityMode = getSecurityMode(); mSwipeUpToRetry = mUnlockMethodCache.isUnlockingWithFacePossible() mSwipeUpToRetry = mUnlockMethodCache.isFaceAuthEnabled() && securityMode != SecurityMode.SimPin && securityMode != SecurityMode.SimPin && securityMode != SecurityMode.SimPuk && securityMode != SecurityMode.SimPuk && securityMode != SecurityMode.None; && securityMode != SecurityMode.None; Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -1783,13 +1783,15 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { && mFpm.getEnrolledFingerprints(userId).size() > 0; && mFpm.getEnrolledFingerprints(userId).size() > 0; } } private boolean isUnlockWithFacePossible(int userId) { return isFaceAuthEnabledForUser(userId) && !isFaceDisabled(userId); } /** /** * If face hardware is available, user has enrolled and enabled auth via setting. * If face hardware is available, user has enrolled and enabled auth via setting. * Not considering encryption or lock down state. */ */ public boolean isUnlockWithFacePossible(int userId) { public boolean isFaceAuthEnabledForUser(int userId) { return mFaceManager != null && mFaceManager.isHardwareDetected() return mFaceManager != null && mFaceManager.isHardwareDetected() && !isFaceDisabled(userId) && mFaceManager.hasEnrolledTemplates(userId) && mFaceManager.hasEnrolledTemplates(userId) && mFaceSettingEnabledForUser.get(userId); && mFaceSettingEnabledForUser.get(userId); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class KeyguardBouncer { // Split up the work over multiple frames. // Split up the work over multiple frames. DejankUtils.removeCallbacks(mResetRunnable); DejankUtils.removeCallbacks(mResetRunnable); if (mUnlockMethodCache.isUnlockingWithFacePossible() && !needsFullscreenBouncer() if (mUnlockMethodCache.isFaceAuthEnabled() && !needsFullscreenBouncer() && !mKeyguardUpdateMonitor.userNeedsStrongAuth()) { && !mKeyguardUpdateMonitor.userNeedsStrongAuth()) { mHandler.postDelayed(mShowRunnable, BOUNCER_FACE_DELAY); mHandler.postDelayed(mShowRunnable, BOUNCER_FACE_DELAY); } else { } else { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,7 @@ class KeyguardBypassController { * If face unlock dismisses the lock screen or keeps user on keyguard for the current user. * If face unlock dismisses the lock screen or keeps user on keyguard for the current user. */ */ var bypassEnabled: Boolean = false var bypassEnabled: Boolean = false get() = field && unlockMethodCache.isUnlockingWithFacePossible get() = field && unlockMethodCache.isFaceAuthEnabled private set private set var bouncerShowing: Boolean = false var bouncerShowing: Boolean = false Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -2390,6 +2390,10 @@ public class StatusBar extends SystemUI implements DemoMode, mLightBarController.dump(fd, pw, args); mLightBarController.dump(fd, pw, args); } } if (mUnlockMethodCache != null) { mUnlockMethodCache.dump(pw); } if (mKeyguardBypassController != null) { if (mKeyguardBypassController != null) { mKeyguardBypassController.dump(pw); mKeyguardBypassController.dump(pw); } } Loading