/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
H A D | AuthResultCoordinatorTest.java | 56 BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE); in testSingleMessageCoordinator() 116 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testWeakLockout() 131 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testWeakLockoutTimed() 146 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testWeakUnlock() 161 BiometricManager.Authenticators.BIOMETRIC_STRONG); in testStrongLockout() 176 BiometricManager.Authenticators.BIOMETRIC_STRONG); in testStrongLockoutTimed() 191 BiometricManager.Authenticators.BIOMETRIC_STRONG); in testStrongUnlock() 206 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testAuthAndLockout() 208 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testAuthAndLockout() 224 BiometricManager.Authenticators.BIOMETRIC_WEAK); in testLockoutAndAuth() [all …]
|
H A D | AuthSessionCoordinatorTest.java | 19 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE; 20 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_STRONG; 21 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_WEAK;
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
H A D | UtilsTest.java | 43 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 44 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 57 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 58 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 77 assertEquals(Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK, in testCombineAuthenticatorBundles_withKeyDeviceCredential_andNoKeyAuthenticators() 99 authenticators |= Authenticators.BIOMETRIC_WEAK; in testIsDeviceCredentialAllowed_withIntegerFlags() 116 authenticators |= Authenticators.BIOMETRIC_WEAK; in testIsDeviceCredentialAllowed_withBundle() 127 assertEquals(Authenticators.BIOMETRIC_WEAK, in testGetBiometricStrength_removeUnrelatedBits() 165 | Authenticators.BIOMETRIC_STRONG)); in testIsValidAuthenticatorConfig() 168 | Authenticators.BIOMETRIC_WEAK)); in testIsValidAuthenticatorConfig() [all …]
|
H A D | BiometricServiceTest.java | 664 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK, in testAuthenticate_noBiometrics_credentialAllowed() 735 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_STRONG, in testAuthenticate_no_Biometrics_noCredential() 922 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK, in testErrorFromHal_whilePreparingAuthentication_credentialAllowed() 1053 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_STRONG, in testBiometricOrCredentialAuth_whenBiometricLockout_showsCredential() 1079 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1093 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 1132 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK); in testErrorFromHal_whileShowingDeviceCredential_doesntNotifySystemUI() 1158 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK); in testLockout_whileAuthenticating_credentialAllowed() 1460 {Authenticators.BIOMETRIC_STRONG, Authenticators.BIOMETRIC_WEAK, in testAuthenticatorActualStrength() 1464 {Authenticators.BIOMETRIC_WEAK, Authenticators.BIOMETRIC_STRONG, in testAuthenticatorActualStrength() [all …]
|
H A D | PreAuthInfoTest.java | 91 BiometricManager.Authenticators.BIOMETRIC_STRONG, mFaceAuthenticator) { in testFaceAuthentication_whenCameraPrivacyIsEnabled() 104 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsEnabled() 118 BiometricManager.Authenticators.BIOMETRIC_STRONG, mFaceAuthenticator) { in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 131 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 145 BiometricManager.Authenticators.BIOMETRIC_STRONG, mFaceAuthenticator) { in testFaceAuthentication_whenCameraIsUnavailable() 158 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraIsUnavailable()
|
H A D | InvalidationTrackerTest.java | 30 import android.hardware.biometrics.BiometricManager.Authenticators; 63 BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_STRONG, in testCallbackReceived_whenAllStrongSensorsInvalidated() 69 BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_STRONG, in testCallbackReceived_whenAllStrongSensorsInvalidated() 75 BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_STRONG, in testCallbackReceived_whenAllStrongSensorsInvalidated() 81 BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_WEAK, in testCallbackReceived_whenAllStrongSensorsInvalidated()
|
H A D | AuthSessionTest.java | 139 Authenticators.BIOMETRIC_STRONG, in testNewAuthSession_eligibleSensorsSetToStateUnknown() 161 Authenticators.BIOMETRIC_STRONG, in testStartNewAuthSession() 223 Authenticators.BIOMETRIC_STRONG, in testOnErrorReceived_lockoutError() 258 Authenticators.BIOMETRIC_STRONG, in testCancelReducesAppetiteForCookies() 319 Authenticators.BIOMETRIC_STRONG, in testMultiAuth_fingerprintSensorStartsAfterUINotifies() 374 Authenticators.BIOMETRIC_STRONG, in testOnDialogAnimatedInDoesNothingDuringInvalidState() 428 Authenticators.BIOMETRIC_STRONG, in testCallbackOnAcquired() 454 Authenticators.BIOMETRIC_STRONG, in testLogOnDialogDismissed_authenticatedWithConfirmation() 482 Authenticators.BIOMETRIC_STRONG, in testLogOnDialogDismissed_authenticatedWithoutConfirmation() 505 Authenticators.BIOMETRIC_STRONG, in testLogOnDialogDismissed_error() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | AuthResultCoordinator.java | 19 import android.hardware.biometrics.BiometricManager.Authenticators; 63 case Authenticators.BIOMETRIC_STRONG: in updateState() 64 mAuthenticatorState.put(Authenticators.BIOMETRIC_STRONG, in updateState() 67 case Authenticators.BIOMETRIC_WEAK: in updateState() 68 mAuthenticatorState.put(Authenticators.BIOMETRIC_WEAK, in updateState() 71 case Authenticators.BIOMETRIC_CONVENIENCE: in updateState() 72 mAuthenticatorState.put(Authenticators.BIOMETRIC_CONVENIENCE, in updateState() 81 void authenticatedFor(@Authenticators.Types int strength) { in authenticatedFor() 83 if (strength == Authenticators.BIOMETRIC_STRONG) { in authenticatedFor() 91 void lockedOutFor(@Authenticators.Types int strength) { in lockedOutFor() [all …]
|
H A D | MultiBiometricLockoutState.java | 71 case Authenticators.BIOMETRIC_STRONG: in setPermanentLockOut() 74 case Authenticators.BIOMETRIC_WEAK: in setPermanentLockOut() 77 case Authenticators.BIOMETRIC_CONVENIENCE: in setPermanentLockOut() 88 case Authenticators.BIOMETRIC_STRONG: in clearPermanentLockOut() 91 case Authenticators.BIOMETRIC_WEAK: in clearPermanentLockOut() 94 case Authenticators.BIOMETRIC_CONVENIENCE: in clearPermanentLockOut() 105 case Authenticators.BIOMETRIC_STRONG: in setTimedLockout() 108 case Authenticators.BIOMETRIC_WEAK: in setTimedLockout() 111 case Authenticators.BIOMETRIC_CONVENIENCE: in setTimedLockout() 122 case Authenticators.BIOMETRIC_STRONG: in clearTimedLockout() [all …]
|
H A D | AuthSessionListener.java | 19 import android.hardware.biometrics.BiometricManager.Authenticators; 33 void authEndedFor(int userId, @Authenticators.Types int biometricStrength, int sensorId, in authEndedFor() 39 void lockedOutFor(int userId, @Authenticators.Types int biometricStrength, int sensorId, in lockedOutFor() 45 void lockOutTimed(int userId, @Authenticators.Types int biometricStrength, int sensorId, in lockOutTimed() 51 void resetLockoutFor(int uerId, @Authenticators.Types int biometricStrength, long requestId); in resetLockoutFor()
|
H A D | AuthSessionCoordinator.java | 23 import android.hardware.biometrics.BiometricManager.Authenticators; 85 for (int authenticator : Arrays.asList(Authenticators.BIOMETRIC_CONVENIENCE, in endAuthSession() 86 Authenticators.BIOMETRIC_WEAK, Authenticators.BIOMETRIC_STRONG)) { in endAuthSession() 113 public int getLockoutStateFor(int userId, @Authenticators.Types int strength) { in getLockoutStateFor() 141 public void lockedOutFor(int userId, @Authenticators.Types int biometricStrength, int sensorId, in lockedOutFor() 152 public void lockOutTimed(int userId, @Authenticators.Types int biometricStrength, int sensorId, in lockOutTimed() 164 public void authEndedFor(int userId, @Authenticators.Types int biometricStrength, int sensorId, in authEndedFor() 178 public void resetLockoutFor(int userId, @Authenticators.Types int biometricStrength, in resetLockoutFor() 184 if (biometricStrength == Authenticators.BIOMETRIC_STRONG) { in resetLockoutFor()
|
H A D | AuthResult.java | 28 AuthResult(int status, @BiometricManager.Authenticators.Types int strength) { in AuthResult()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | Utils.java | 108 final @Authenticators.Types int authenticators; in combineAuthenticatorBundles() 115 ? Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK in combineAuthenticatorBundles() 116 : Authenticators.BIOMETRIC_WEAK; in combineAuthenticatorBundles() 188 @Authenticators.Types int requestedStrength) { in isAtLeastStrength() 233 | Authenticators.BIOMETRIC_MIN_STRENGTH); in isValidAuthenticatorConfig() 243 if (biometricBits == Authenticators.EMPTY_SET in isValidAuthenticatorConfig() 427 Authenticators.BIOMETRIC_STRONG); in isStrongBiometric() 447 return Authenticators.EMPTY_SET; in getCurrentStrength() 539 @Authenticators.Types int strength) { in authenticatorStrengthToPropertyStrength() 558 return Authenticators.BIOMETRIC_WEAK; in propertyStrengthToAuthenticatorStrength() [all …]
|
H A D | BiometricSensor.java | 19 import static android.hardware.biometrics.BiometricManager.Authenticators; 68 public final @Authenticators.Types int oemStrength; // strength as configured by the OEM 72 private @Authenticators.Types int mUpdatedStrength; // updated by BiometricStrengthController 90 @Authenticators.Types int strength, IBiometricAuthenticator impl) { in BiometricSensor() 153 @Authenticators.Types int getCurrentStrength() { in getCurrentStrength() 170 void updateStrength(@Authenticators.Types int newStrength) { in updateStrength()
|
H A D | BiometricService.java | 22 import static android.hardware.biometrics.BiometricManager.Authenticators; 596 @Authenticators.Types int authenticators) { 640 @Authenticators.Types int strength, 659 if (strength != Authenticators.BIOMETRIC_STRONG 660 && strength != Authenticators.BIOMETRIC_WEAK 729 Authenticators.BIOMETRIC_STRONG)) { 757 Authenticators.BIOMETRIC_STRONG)) { 813 return Authenticators.EMPTY_SET; 822 @Authenticators.Types int authenticators) { 863 @Authenticators.Types final int requestedStrength = [all …]
|
H A D | AuthService.java | 32 import static android.hardware.biometrics.BiometricManager.Authenticators; 309 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate() 432 @Authenticators.Types int authenticators) throws RemoteException { in getButtonLabel() 478 @Authenticators.Types int authenticators) throws RemoteException { in getPromptMessage() 548 @Authenticators.Types int authenticators) throws RemoteException { in getSettingName() 691 final String strength = String.valueOf(Authenticators.BIOMETRIC_CONVENIENCE); in generateRSdkCompatibleConfiguration() 800 @BiometricManager.Authenticators.Types int strength) { in getHidlFingerprintSensorProps() 842 @BiometricManager.Authenticators.Types int strength) { in getHidlFaceSensorProps() 857 @BiometricManager.Authenticators.Types int strength) { in getHidlIrisSensorProps()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | BiometricTestExtensions.kt | 21 import android.hardware.biometrics.BiometricManager.Authenticators 65 var authenticators = Authenticators.BIOMETRIC_WEAK 67 authenticators = authenticators or Authenticators.DEVICE_CREDENTIAL 152 @Authenticators.Types 154 var authenticators = Authenticators.EMPTY_SET 161 Authenticators.BIOMETRIC_CONVENIENCE 162 SensorProperties.STRENGTH_WEAK -> Authenticators.BIOMETRIC_WEAK 163 SensorProperties.STRENGTH_STRONG -> Authenticators.BIOMETRIC_STRONG 164 else -> Authenticators.EMPTY_SET
|
H A D | AuthContainerViewTest.kt | 294 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK 324 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK or 325 BiometricManager.Authenticators.DEVICE_CREDENTIAL 339 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK or 340 BiometricManager.Authenticators.DEVICE_CREDENTIAL 361 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL 377 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL 459 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL, 469 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK, 480 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK, [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/biometrics/ |
H A D | BiometricManager.java | 109 public interface Authenticators { interface in BiometricManager 203 case Authenticators.BIOMETRIC_STRONG: in authenticatorToStr() 205 case Authenticators.BIOMETRIC_WEAK: in authenticatorToStr() 207 case Authenticators.BIOMETRIC_CONVENIENCE: in authenticatorToStr() 209 case Authenticators.DEVICE_CREDENTIAL: in authenticatorToStr() 223 @Authenticators.Types int mAuthenticators; 226 @Authenticators.Types int authenticators) { in Strings() 421 Authenticators.BIOMETRIC_WEAK); in canAuthenticate() 460 public int canAuthenticate(@Authenticators.Types int authenticators) { in canAuthenticate() 474 public int canAuthenticate(int userId, @Authenticators.Types int authenticators) { in canAuthenticate() [all …]
|
H A D | BiometricPrompt.java | 22 import static android.hardware.biometrics.BiometricManager.Authenticators; 1045 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate() 1062 @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in authenticate() 1063 if (authenticators == Authenticators.EMPTY_SET) { in authenticate() 1064 authenticators = Authenticators.BIOMETRIC_STRONG; in authenticate() 1066 final int biometricStrength = authenticators & Authenticators.BIOMETRIC_WEAK; in authenticate() 1067 if ((biometricStrength & ~Authenticators.BIOMETRIC_STRONG) != 0) { in authenticate() 1110 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate() 1186 if (promptInfo.getAuthenticators() == Authenticators.EMPTY_SET) { in authenticateInternal() 1187 promptInfo.setAuthenticators(Authenticators.BIOMETRIC_STRONG); in authenticateInternal() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | PromptSelectorInteractorImplTest.kt | 20 import android.hardware.biometrics.BiometricManager.Authenticators 97 Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL 99 Authenticators.BIOMETRIC_STRONG 161 authenticators = Authenticators.DEVICE_CREDENTIAL
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
H A D | FaceResetLockoutClient.java | 21 import android.hardware.biometrics.BiometricManager.Authenticators; 60 @Authenticators.Types int biometricStrength) { in FaceResetLockoutClient() 113 @Authenticators.Types int biometricStrength, long requestId) { in resetLocalLockoutStateToNone()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
H A D | FingerprintResetLockoutClient.java | 21 import android.hardware.biometrics.BiometricManager.Authenticators; 60 @Authenticators.Types int biometricStrength) { in FingerprintResetLockoutClient() 113 @Authenticators.Types int biometricStrength, long requestId) { in resetLocalLockoutStateToNone()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | Utils.kt | 30 import android.hardware.biometrics.BiometricManager.Authenticators 89 (promptInfo.authenticators and Authenticators.DEVICE_CREDENTIAL) != 0 93 (promptInfo.authenticators and Authenticators.BIOMETRIC_WEAK) != 0
|
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/biometrics/ |
H A D | BiometricPromptTest.java | 69 .setAllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG in setUp() 70 | BiometricManager.Authenticators.DEVICE_CREDENTIAL) in setUp()
|