Loading core/java/com/android/internal/policy/IFaceLockCallback.aidl +0 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,5 @@ oneway interface IFaceLockCallback { void unlock(); void cancel(); void reportFailedAttempt(); void exposeFallback(); void pokeWakelock(int millis); } policy/src/com/android/internal/policy/impl/keyguard/FaceUnlock.java +9 −25 Original line number Diff line number Diff line Loading @@ -57,8 +57,7 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { private final int MSG_UNLOCK = 2; private final int MSG_CANCEL = 3; private final int MSG_REPORT_FAILED_ATTEMPT = 4; private final int MSG_EXPOSE_FALLBACK = 5; private final int MSG_POKE_WAKELOCK = 6; private final int MSG_POKE_WAKELOCK = 5; // TODO: This was added for the purpose of adhering to what the biometric interface expects // the isRunning() function to return. However, it is probably not necessary to have both Loading Loading @@ -220,9 +219,6 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { case MSG_REPORT_FAILED_ATTEMPT: handleReportFailedAttempt(); break; case MSG_EXPOSE_FALLBACK: handleExposeFallback(); break; case MSG_POKE_WAKELOCK: handlePokeWakelock(msg.arg1); break; Loading Loading @@ -310,6 +306,10 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { */ void handleCancel() { if (DEBUG) Log.d(TAG, "handleCancel()"); // We are going to the backup method, so we don't want to see Face Unlock again until the // next time the user visits keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(false); mKeyguardScreenCallback.showBackupSecurity(); stop(); mKeyguardScreenCallback.userActivity(BACKUP_LOCK_TIMEOUT); Loading @@ -320,17 +320,11 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { */ void handleReportFailedAttempt() { if (DEBUG) Log.d(TAG, "handleReportFailedAttempt()"); mKeyguardScreenCallback.reportFailedUnlockAttempt(); } // We are going to the backup method, so we don't want to see Face Unlock again until the // next time the user visits keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(false); /** * Hides the Face Unlock view to expose the backup lock. Called when the Face Unlock service UI * is started, indicating there is no need to continue displaying the underlying view because * the service UI is now covering the backup lock. */ void handleExposeFallback() { if (DEBUG) Log.d(TAG, "handleExposeFallback()"); // No longer required because face unlock doesn't cover backup unlock. mKeyguardScreenCallback.reportFailedUnlockAttempt(); } /** Loading Loading @@ -442,16 +436,6 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { mHandler.sendEmptyMessage(MSG_REPORT_FAILED_ATTEMPT); } /** * Called when the Face Unlock service starts displaying the UI, indicating that the backup * unlock can be exposed because the Face Unlock service is now covering the backup with its * UI. */ public void exposeFallback() { if (DEBUG) Log.d(TAG, "exposeFallback()"); mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); } /** * Called when Face Unlock wants to keep the screen alive and active for a specific amount * of time. Loading policy/src/com/android/internal/policy/impl/keyguard_obsolete/FaceUnlock.java +17 −17 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { private final int MSG_UNLOCK = 4; private final int MSG_CANCEL = 5; private final int MSG_REPORT_FAILED_ATTEMPT = 6; private final int MSG_EXPOSE_FALLBACK = 7; //private final int MSG_EXPOSE_FALLBACK = 7; private final int MSG_POKE_WAKELOCK = 8; // TODO: This was added for the purpose of adhering to what the biometric interface expects Loading Loading @@ -258,9 +258,9 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { case MSG_REPORT_FAILED_ATTEMPT: handleReportFailedAttempt(); break; case MSG_EXPOSE_FALLBACK: handleExposeFallback(); break; //case MSG_EXPOSE_FALLBACK: //handleExposeFallback(); //break; case MSG_POKE_WAKELOCK: handlePokeWakelock(msg.arg1); break; Loading Loading @@ -401,14 +401,14 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { * is started, indicating there is no need to continue displaying the underlying view because * the service UI is now covering the backup lock. */ void handleExposeFallback() { if (DEBUG) Log.d(TAG, "handleExposeFallback()"); if (mFaceUnlockView != null) { mFaceUnlockView.setVisibility(View.INVISIBLE); } else { Log.e(TAG, "mFaceUnlockView is null in handleExposeFallback()"); } } //void handleExposeFallback() { // if (DEBUG) Log.d(TAG, "handleExposeFallback()"); // if (mFaceUnlockView != null) { // mFaceUnlockView.setVisibility(View.INVISIBLE); // } else { // Log.e(TAG, "mFaceUnlockView is null in handleExposeFallback()"); // } //} /** * Pokes the wakelock to keep the screen alive and active for a specific amount of time. Loading Loading @@ -534,11 +534,11 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { * unlock can be exposed because the Face Unlock service is now covering the backup with its * UI. **/ @Override public void exposeFallback() { if (DEBUG) Log.d(TAG, "exposeFallback()"); mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); } //@Override //public void exposeFallback() { // if (DEBUG) Log.d(TAG, "exposeFallback()"); // mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); //} /** * Called when Face Unlock wants to keep the screen alive and active for a specific amount Loading Loading
core/java/com/android/internal/policy/IFaceLockCallback.aidl +0 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,5 @@ oneway interface IFaceLockCallback { void unlock(); void cancel(); void reportFailedAttempt(); void exposeFallback(); void pokeWakelock(int millis); }
policy/src/com/android/internal/policy/impl/keyguard/FaceUnlock.java +9 −25 Original line number Diff line number Diff line Loading @@ -57,8 +57,7 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { private final int MSG_UNLOCK = 2; private final int MSG_CANCEL = 3; private final int MSG_REPORT_FAILED_ATTEMPT = 4; private final int MSG_EXPOSE_FALLBACK = 5; private final int MSG_POKE_WAKELOCK = 6; private final int MSG_POKE_WAKELOCK = 5; // TODO: This was added for the purpose of adhering to what the biometric interface expects // the isRunning() function to return. However, it is probably not necessary to have both Loading Loading @@ -220,9 +219,6 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { case MSG_REPORT_FAILED_ATTEMPT: handleReportFailedAttempt(); break; case MSG_EXPOSE_FALLBACK: handleExposeFallback(); break; case MSG_POKE_WAKELOCK: handlePokeWakelock(msg.arg1); break; Loading Loading @@ -310,6 +306,10 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { */ void handleCancel() { if (DEBUG) Log.d(TAG, "handleCancel()"); // We are going to the backup method, so we don't want to see Face Unlock again until the // next time the user visits keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(false); mKeyguardScreenCallback.showBackupSecurity(); stop(); mKeyguardScreenCallback.userActivity(BACKUP_LOCK_TIMEOUT); Loading @@ -320,17 +320,11 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { */ void handleReportFailedAttempt() { if (DEBUG) Log.d(TAG, "handleReportFailedAttempt()"); mKeyguardScreenCallback.reportFailedUnlockAttempt(); } // We are going to the backup method, so we don't want to see Face Unlock again until the // next time the user visits keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(false); /** * Hides the Face Unlock view to expose the backup lock. Called when the Face Unlock service UI * is started, indicating there is no need to continue displaying the underlying view because * the service UI is now covering the backup lock. */ void handleExposeFallback() { if (DEBUG) Log.d(TAG, "handleExposeFallback()"); // No longer required because face unlock doesn't cover backup unlock. mKeyguardScreenCallback.reportFailedUnlockAttempt(); } /** Loading Loading @@ -442,16 +436,6 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { mHandler.sendEmptyMessage(MSG_REPORT_FAILED_ATTEMPT); } /** * Called when the Face Unlock service starts displaying the UI, indicating that the backup * unlock can be exposed because the Face Unlock service is now covering the backup with its * UI. */ public void exposeFallback() { if (DEBUG) Log.d(TAG, "exposeFallback()"); mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); } /** * Called when Face Unlock wants to keep the screen alive and active for a specific amount * of time. Loading
policy/src/com/android/internal/policy/impl/keyguard_obsolete/FaceUnlock.java +17 −17 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { private final int MSG_UNLOCK = 4; private final int MSG_CANCEL = 5; private final int MSG_REPORT_FAILED_ATTEMPT = 6; private final int MSG_EXPOSE_FALLBACK = 7; //private final int MSG_EXPOSE_FALLBACK = 7; private final int MSG_POKE_WAKELOCK = 8; // TODO: This was added for the purpose of adhering to what the biometric interface expects Loading Loading @@ -258,9 +258,9 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { case MSG_REPORT_FAILED_ATTEMPT: handleReportFailedAttempt(); break; case MSG_EXPOSE_FALLBACK: handleExposeFallback(); break; //case MSG_EXPOSE_FALLBACK: //handleExposeFallback(); //break; case MSG_POKE_WAKELOCK: handlePokeWakelock(msg.arg1); break; Loading Loading @@ -401,14 +401,14 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { * is started, indicating there is no need to continue displaying the underlying view because * the service UI is now covering the backup lock. */ void handleExposeFallback() { if (DEBUG) Log.d(TAG, "handleExposeFallback()"); if (mFaceUnlockView != null) { mFaceUnlockView.setVisibility(View.INVISIBLE); } else { Log.e(TAG, "mFaceUnlockView is null in handleExposeFallback()"); } } //void handleExposeFallback() { // if (DEBUG) Log.d(TAG, "handleExposeFallback()"); // if (mFaceUnlockView != null) { // mFaceUnlockView.setVisibility(View.INVISIBLE); // } else { // Log.e(TAG, "mFaceUnlockView is null in handleExposeFallback()"); // } //} /** * Pokes the wakelock to keep the screen alive and active for a specific amount of time. Loading Loading @@ -534,11 +534,11 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { * unlock can be exposed because the Face Unlock service is now covering the backup with its * UI. **/ @Override public void exposeFallback() { if (DEBUG) Log.d(TAG, "exposeFallback()"); mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); } //@Override //public void exposeFallback() { // if (DEBUG) Log.d(TAG, "exposeFallback()"); // mHandler.sendEmptyMessage(MSG_EXPOSE_FALLBACK); //} /** * Called when Face Unlock wants to keep the screen alive and active for a specific amount Loading