Home
last modified time | relevance | path

Searched refs:BiometricConstants (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DLockoutTracker.java20 import android.hardware.biometrics.BiometricConstants;
29 int LOCKOUT_NONE = BiometricConstants.BIOMETRIC_LOCKOUT_NONE;
30 int LOCKOUT_TIMED = BiometricConstants.BIOMETRIC_LOCKOUT_TIMED;
31 int LOCKOUT_PERMANENT = BiometricConstants.BIOMETRIC_LOCKOUT_PERMANENT;
DAcquisitionClient.java21 import android.hardware.biometrics.BiometricConstants;
78 BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE, 0 /* vendorCode */); in unableToStart()
99 onErrorInternal(BiometricConstants.BIOMETRIC_ERROR_USER_CANCELED, 0 /* vendorCode */, in onUserCanceled()
146 final int errorCode = BiometricConstants.BIOMETRIC_ERROR_CANCELED; in cancelWithoutStarting()
175 if (acquiredInfo == BiometricConstants.BIOMETRIC_ACQUIRED_GOOD) { in onAcquiredInternal()
DAuthenticationClient.java28 import android.hardware.biometrics.BiometricConstants;
314 BiometricConstants.BIOMETRIC_ERROR_CANCELED, in sendCancelOnly()
327 public void onError(@BiometricConstants.Errors int errorCode, int vendorCode) { in onError()
350 ? BiometricConstants.BIOMETRIC_ERROR_LOCKOUT in start()
351 : BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT; in start()
DRemovalClient.java22 import android.hardware.biometrics.BiometricConstants;
78 BiometricConstants.BIOMETRIC_ERROR_UNABLE_TO_REMOVE, in onRemoved()
DBiometricSchedulerOperation.java22 import android.hardware.biometrics.BiometricConstants;
141 mClientMonitor.getCookie(), BiometricConstants.BIOMETRIC_ERROR_CANCELED, in BiometricSchedulerOperation()
232 errorConsumer.onError(BiometricConstants.BIOMETRIC_ERROR_CANCELED, in doStart()
DBaseClientMonitor.java24 import android.hardware.biometrics.BiometricConstants;
314 final int errorCode = BiometricConstants.BIOMETRIC_ERROR_CANCELED; in cancelWithoutStarting()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java47 import android.hardware.biometrics.BiometricConstants;
283 case BiometricConstants.BIOMETRIC_SUCCESS: in biometricConstantsToBiometricManager()
286 case BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS: in biometricConstantsToBiometricManager()
287 case BiometricConstants.BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL: in biometricConstantsToBiometricManager()
290 case BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE: in biometricConstantsToBiometricManager()
293 case BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT: in biometricConstantsToBiometricManager()
296 case BiometricConstants.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED: in biometricConstantsToBiometricManager()
299 case BiometricConstants.BIOMETRIC_ERROR_LOCKOUT: in biometricConstantsToBiometricManager()
300 case BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT: in biometricConstantsToBiometricManager()
303 case BiometricConstants.BIOMETRIC_ERROR_SENSOR_PRIVACY_ENABLED: in biometricConstantsToBiometricManager()
[all …]
DBiometricSensor.java24 import android.hardware.biometrics.BiometricConstants;
74 private @BiometricConstants.Errors int mError;
104 mError = BiometricConstants.BIOMETRIC_SUCCESS; in goToStateUnknown()
DAuthSession.java46 import android.hardware.biometrics.BiometricConstants;
437 boolean onErrorReceived(int sensorId, int cookie, @BiometricConstants.Errors int error, in onErrorReceived()
460 final boolean errorLockout = error == BiometricConstants.BIOMETRIC_ERROR_LOCKOUT in onErrorReceived()
461 || error == BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT; in onErrorReceived()
510 } else if (error == BiometricConstants.BIOMETRIC_ERROR_CANCELED) { in onErrorReceived()
688 BiometricConstants.BIOMETRIC_PAUSED_REJECTED, 0 /* vendorCode */); in onAuthenticationRejected()
799 error = BiometricConstants.BIOMETRIC_ERROR_NEGATIVE_BUTTON; in logOnDialogDismissed()
802 error = BiometricConstants.BIOMETRIC_ERROR_USER_CANCELED; in logOnDialogDismissed()
866 BiometricConstants.BIOMETRIC_ERROR_USER_CANCELED, in onDialogDismissed()
933 BiometricConstants.BIOMETRIC_ERROR_CANCELED, in onCancelAuthSession()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/shared/model/
DLockoutMode.kt20 import android.hardware.biometrics.BiometricConstants
32 BiometricConstants.BIOMETRIC_LOCKOUT_PERMANENT -> LockoutMode.PERMANENT in toLockoutMode()
33 BiometricConstants.BIOMETRIC_LOCKOUT_TIMED -> LockoutMode.TIMED in toLockoutMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java26 import android.hardware.biometrics.BiometricConstants;
219 {BiometricConstants.BIOMETRIC_SUCCESS, in testBiometricConstantsConversion()
221 {BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS, in testBiometricConstantsConversion()
223 {BiometricConstants.BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL, in testBiometricConstantsConversion()
225 {BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE, in testBiometricConstantsConversion()
227 {BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT, in testBiometricConstantsConversion()
229 {BiometricConstants.BIOMETRIC_ERROR_LOCKOUT, in testBiometricConstantsConversion()
231 {BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT, in testBiometricConstantsConversion()
DBiometricServiceTest.java62 import android.hardware.biometrics.BiometricConstants;
272 BiometricConstants.BIOMETRIC_ERROR_TIMEOUT, in testClientBinderDied_whenPaused()
313 BiometricConstants.BIOMETRIC_ERROR_CANCELED, in testClientBinderDied_whenAuthenticating()
336 eq(BiometricConstants.BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL), in testAuthenticate_credentialAllowedButNotSetup_returnsNoDeviceCredential()
384 eq(BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT), in testAuthenticate_withoutHardware_returnsErrorHardwareNotPresent()
404 eq(BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS), in testAuthenticate_withoutEnrolled_returnsErrorNoBiometrics()
418 eq(BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT), in testAuthenticate_notStrongEnough_returnsHardwareNotPresent()
478 eq(BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE), in testAuthenticate_whenHalIsDead_returnsErrorHardwareUnavailable()
555 eq(BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE), in testAuthenticateFace_respectsUserSetting()
771 eq(BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS)/* error */, in testAuthenticate_no_Biometrics_noCredential()
[all …]
DAuthSessionTest.java21 import static android.hardware.biometrics.BiometricConstants.BIOMETRIC_ERROR_NEGATIVE_BUTTON;
55 import android.hardware.biometrics.BiometricConstants;
255 session.onErrorReceived(0, cookie1, BiometricConstants.BIOMETRIC_ERROR_LOCKOUT, 0); in testOnErrorReceived_lockoutError()
294 session.onErrorReceived(0, cookie, BiometricConstants.BIOMETRIC_ERROR_RE_ENROLL, 0); in testOnErrorReceivedBeforeOnDialogAnimatedIn()
639 BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT, 0); in onErrorReceivedAfterOnTryAgainPressedWhenSensorsAuthenticating()
665 BiometricConstants.BIOMETRIC_ERROR_TIMEOUT); in onErrorReceivedAfterOnTryAgainPressedWhenSensorStopped()
672 BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT, 0); in onErrorReceivedAfterOnTryAgainPressedWhenSensorStopped()
/frameworks/base/keystore/java/android/security/
DKeyStoreAuthorization.java21 import android.hardware.biometrics.BiometricConstants;
139 return BiometricConstants.BIOMETRIC_NO_AUTHENTICATION; in getLastAuthTime()
145 return BiometricConstants.BIOMETRIC_NO_AUTHENTICATION; in getLastAuthTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
DAcquisitionClientTest.java31 import android.hardware.biometrics.BiometricConstants;
83 eq(BiometricConstants.BIOMETRIC_ERROR_USER_CANCELED), in testUserCanceled()
88 client.onError(BiometricConstants.BIOMETRIC_ERROR_CANCELED, 0 /* vendorCode */); in testUserCanceled()
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricManager.java62 BiometricConstants.BIOMETRIC_SUCCESS;
68 BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE;
74 BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS;
80 BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT;
89 BiometricConstants.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED;
97 BiometricConstants.BIOMETRIC_NO_AUTHENTICATION;
DBiometricConstants.java37 public interface BiometricConstants { interface
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DFaceDetectClient.java25 import android.hardware.biometrics.BiometricConstants;
128 onError(BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE, 0 /* vendorCode */); in startHalOperation()
142 public void onError(@BiometricConstants.Errors int error, int vendorCode) { in onError()
DFaceAuthenticationClient.java34 import android.hardware.biometrics.BiometricConstants;
175 onError(BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE, in startHalOperation()
286 public void onError(@BiometricConstants.Errors int error, int vendorCode) { in onError()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DAuthControllerTest.java52 import android.hardware.biometrics.BiometricConstants;
473 BiometricConstants.BIOMETRIC_PAUSED_REJECTED, in testOnAuthenticationFailedInvoked_whenBiometricRejected()
488 BiometricConstants.BIOMETRIC_ERROR_RE_ENROLL, in testOnAuthenticationFailedInvoked_whenBiometricReEnrollRequired()
502 BiometricConstants.BIOMETRIC_PAUSED_REJECTED); in testOnAuthenticationFailedInvoked_coex_whenFaceAuthRejected_withPaused()
508 BiometricConstants.BIOMETRIC_ERROR_TIMEOUT); in testOnAuthenticationFailedInvoked_coex_whenFaceAuthRejected_withTimeout()
538 BiometricConstants.BIOMETRIC_PAUSED_REJECTED, in testOnAuthenticationFailedInvoked_whenFingerprintAuthRejected()
552 final int error = BiometricConstants.BIOMETRIC_ERROR_TIMEOUT; in testOnAuthenticationFailedInvoked_whenBiometricTimedOut()
594 final int error = BiometricConstants.BIOMETRIC_ERROR_LOCKOUT; in testErrorLockout_whenCredentialAllowed_AnimatesToCredentialUI()
607 final int error = BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT; in testErrorLockoutPermanent_whenCredentialAllowed_AnimatesToCredentialUI()
621 final int error = BiometricConstants.BIOMETRIC_ERROR_LOCKOUT; in testErrorLockout_whenCredentialNotAllowed_sendsOnError()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DFaceRemovalClientTest.java27 import android.hardware.biometrics.BiometricConstants;
112 eq(BiometricConstants.BIOMETRIC_ERROR_UNABLE_TO_REMOVE), eq(0) /* vendorCode*/); in clientSendsErrorWhenHALFailsToRemoveEnrollment()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
DFacePropertyRepositoryImplTest.kt21 import android.hardware.biometrics.BiometricConstants.BIOMETRIC_LOCKOUT_NONE
22 import android.hardware.biometrics.BiometricConstants.BIOMETRIC_LOCKOUT_PERMANENT
23 import android.hardware.biometrics.BiometricConstants.BIOMETRIC_LOCKOUT_TIMED
/frameworks/base/core/java/android/hardware/face/
DFaceManager.java22 import static android.hardware.biometrics.BiometricConstants.BIOMETRIC_LOCKOUT_NONE;
69 import android.hardware.biometrics.BiometricConstants;
798 @BiometricConstants.LockoutMode
953 return BiometricConstants.BIOMETRIC_ACQUIRED_GOOD; in getMappedAcquiredInfo()
957 return BiometricConstants.BIOMETRIC_ACQUIRED_INSUFFICIENT; in getMappedAcquiredInfo()
964 return BiometricConstants.BIOMETRIC_ACQUIRED_PARTIAL; in getMappedAcquiredInfo()
969 return BiometricConstants.BIOMETRIC_ACQUIRED_INSUFFICIENT; in getMappedAcquiredInfo()
971 return BiometricConstants.BIOMETRIC_ACQUIRED_VENDOR_BASE + vendorCode; in getMappedAcquiredInfo()
973 return BiometricConstants.BIOMETRIC_ACQUIRED_GOOD; in getMappedAcquiredInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java38 import android.hardware.biometrics.BiometricConstants;
1067 final boolean isLockout = (error == BiometricConstants.BIOMETRIC_ERROR_LOCKOUT) in onBiometricError()
1068 || (error == BiometricConstants.BIOMETRIC_ERROR_LOCKOUT_PERMANENT); in onBiometricError()
1071 if (error == BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE in onBiometricError()
1077 final boolean isSoftError = (error == BiometricConstants.BIOMETRIC_PAUSED_REJECTED in onBiometricError()
1078 || error == BiometricConstants.BIOMETRIC_ERROR_TIMEOUT in onBiometricError()
1079 || error == BiometricConstants.BIOMETRIC_ERROR_RE_ENROLL in onBiometricError()
1086 final String errorMessage = (error == BiometricConstants.BIOMETRIC_PAUSED_REJECTED in onBiometricError()
1087 || error == BiometricConstants.BIOMETRIC_ERROR_TIMEOUT) in onBiometricError()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DBiometricLogger.java25 import android.hardware.biometrics.BiometricConstants;
144 } else if (acquiredInfo == BiometricConstants.BIOMETRIC_ACQUIRED_GOOD) { in logOnAcquired()

12