Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +6 −2 Original line number Diff line number Diff line Loading @@ -243,12 +243,16 @@ public class KeyguardHostView extends KeyguardViewBase { public void reportSuccessfulUnlockAttempt() { KeyguardUpdateMonitor.getInstance(mContext).clearFailedUnlockAttempts(); mLockPatternUtils.reportSuccessfulPasswordAttempt(); } public void reportFailedUnlockAttempt() { // TODO: handle biometric attempt differently. if (mCurrentSecuritySelection == SecurityMode.Biometric) { KeyguardUpdateMonitor.getInstance(mContext).reportFailedBiometricUnlockAttempt(); } else { KeyguardHostView.this.reportFailedUnlockAttempt(); } } public int getFailedAttempts() { return KeyguardUpdateMonitor.getInstance(mContext).getFailedUnlockAttempts(); Loading Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +6 −2 Original line number Diff line number Diff line Loading @@ -243,12 +243,16 @@ public class KeyguardHostView extends KeyguardViewBase { public void reportSuccessfulUnlockAttempt() { KeyguardUpdateMonitor.getInstance(mContext).clearFailedUnlockAttempts(); mLockPatternUtils.reportSuccessfulPasswordAttempt(); } public void reportFailedUnlockAttempt() { // TODO: handle biometric attempt differently. if (mCurrentSecuritySelection == SecurityMode.Biometric) { KeyguardUpdateMonitor.getInstance(mContext).reportFailedBiometricUnlockAttempt(); } else { KeyguardHostView.this.reportFailedUnlockAttempt(); } } public int getFailedAttempts() { return KeyguardUpdateMonitor.getInstance(mContext).getFailedUnlockAttempts(); Loading