Suppress msgs from FACE_ERROR_UNABLE_TO_PROCESS
Don't surface error messages on the lock screen for FACE_ERROR_UNABLE_TO_PROCESS. After 500ms from receiving this error, keyguard attempts to face auth again anyway (see KeyguardUpdateMonitor#HAL_ERROR_RETRY_ERROR_TIMEOUT). Test: atest KeyguardIndicationControllerTest Test: enroll face, press power button to LS, use camera app, then navigate back to LS, don't see the UNABLE_TO_PROCESS error. Bug: 223768181 Change-Id: I0eb017f5e5f31d8fabf36876ea0949050a9f5f58
This commit is contained in:
@@ -1023,7 +1023,14 @@ public class KeyguardIndicationController {
|
||||
}
|
||||
|
||||
if (biometricSourceType == BiometricSourceType.FACE
|
||||
&& msgId == FaceManager.FACE_ERROR_TIMEOUT) {
|
||||
&& msgId == FaceManager.FACE_ERROR_UNABLE_TO_PROCESS) {
|
||||
// suppress all face UNABLE_TO_PROCESS errors
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "skip showing FACE_ERROR_UNABLE_TO_PROCESS errString="
|
||||
+ errString);
|
||||
}
|
||||
} else if (biometricSourceType == BiometricSourceType.FACE
|
||||
&& msgId == FaceManager.FACE_ERROR_TIMEOUT) {
|
||||
if (mKeyguardUpdateMonitor.getCachedIsUnlockWithFingerprintPossible(
|
||||
KeyguardUpdateMonitor.getCurrentUser())) {
|
||||
// no message if fingerprint is also enrolled
|
||||
|
||||
Reference in New Issue
Block a user