/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
D | AuthResultCoordinatorTest.java | 45 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testDefaultMessage() 47 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testDefaultMessage() 49 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE)).isEqualTo( in testDefaultMessage() 56 BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE); in testSingleMessageCoordinator() 60 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testSingleMessageCoordinator() 62 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testSingleMessageCoordinator() 64 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE)).isEqualTo( in testSingleMessageCoordinator() 71 BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE); in testConvenientLockout() 75 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_STRONG)).isEqualTo( in testConvenientLockout() 77 assertThat(authMap.get(BiometricManager.Authenticators.BIOMETRIC_WEAK)).isEqualTo( in testConvenientLockout() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | UtilsTest.java | 19 import static android.hardware.biometrics.BiometricManager.Authenticators; 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() 88 assertEquals(Authenticators.BIOMETRIC_WEAK, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andNoKeyAuthenticators() 96 authenticators |= Authenticators.DEVICE_CREDENTIAL; in testIsDeviceCredentialAllowed_withIntegerFlags() 99 authenticators |= Authenticators.BIOMETRIC_WEAK; in testIsDeviceCredentialAllowed_withIntegerFlags() 112 authenticators |= Authenticators.DEVICE_CREDENTIAL; in testIsDeviceCredentialAllowed_withBundle() [all …]
|
D | BiometricServiceTest.java | 22 import static android.hardware.biometrics.BiometricManager.Authenticators; 261 setupAuthForOnly(TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenPaused() 288 setupAuthForOnly(TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenAuthenticating() 331 Authenticators.DEVICE_CREDENTIAL, false /* useDefaultSubtitle */, in testAuthenticate_credentialAllowedButNotSetup_returnsNoDeviceCredential() 352 Authenticators.DEVICE_CREDENTIAL, false /* useDefaultSubtitle */, in testAuthenticate_credentialAllowedAndSetup_callsSystemUI() 395 TYPE_FINGERPRINT, Authenticators.BIOMETRIC_STRONG, in testAuthenticate_withoutEnrolled_returnsErrorNoBiometrics() 410 setupAuthForOnly(TYPE_FINGERPRINT, Authenticators.BIOMETRIC_WEAK); in testAuthenticate_notStrongEnough_returnsHardwareNotPresent() 413 Authenticators.BIOMETRIC_STRONG, false /* useDefaultSubtitle */, in testAuthenticate_notStrongEnough_returnsHardwareNotPresent() 433 Authenticators.BIOMETRIC_WEAK, in testAuthenticate_picksStrongIfAvailable() 434 Authenticators.BIOMETRIC_STRONG, in testAuthenticate_picksStrongIfAvailable() [all …]
|
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()
|
D | AuthSessionTest.java | 57 import android.hardware.biometrics.BiometricManager.Authenticators; 156 Authenticators.BIOMETRIC_STRONG, in testNewAuthSession_eligibleSensorsSetToStateUnknown() 178 Authenticators.BIOMETRIC_STRONG, in testStartNewAuthSession() 240 Authenticators.BIOMETRIC_STRONG, in testOnErrorReceived_lockoutError() 276 Authenticators.BIOMETRIC_STRONG, in testOnErrorReceivedBeforeOnDialogAnimatedIn() 315 Authenticators.BIOMETRIC_STRONG, in testOnRejectionReceivedBeforeOnDialogAnimatedIn() 352 Authenticators.BIOMETRIC_STRONG, in testCancelReducesAppetiteForCookies() 413 Authenticators.BIOMETRIC_STRONG, in testMultiAuth_fingerprintSensorStartsAfterUINotifies() 468 Authenticators.BIOMETRIC_STRONG, in testOnDialogAnimatedInDoesNothingDuringInvalidState() 520 Authenticators.BIOMETRIC_STRONG, in testCallbackOnAcquired() [all …]
|
D | PreAuthInfoTest.java | 103 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsEnabled() 119 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 136 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraIsUnavailable() 156 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testCanAuthenticateResult_whenCameraUnavailableAndNoFingerprintsEnrolled() 176 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFingerprintAuthentication_whenCameraIsUnavailable() 189 TYPE_FINGERPRINT, BiometricManager.Authenticators.BIOMETRIC_STRONG, in getFingerprintSensor() 207 BiometricManager.Authenticators.BIOMETRIC_STRONG, mFaceAuthenticator) { in getFaceSensor()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | AuthResultCoordinator.java | 19 import android.hardware.biometrics.BiometricManager.Authenticators; 56 mAuthenticatorState.put(Authenticators.BIOMETRIC_STRONG, AUTHENTICATOR_DEFAULT); in AuthResultCoordinator() 57 mAuthenticatorState.put(Authenticators.BIOMETRIC_WEAK, AUTHENTICATOR_DEFAULT); in AuthResultCoordinator() 58 mAuthenticatorState.put(Authenticators.BIOMETRIC_CONVENIENCE, AUTHENTICATOR_DEFAULT); in AuthResultCoordinator() 61 private void updateState(@Authenticators.Types int strength, IntFunction<Integer> mapper) { in updateState() 63 case Authenticators.BIOMETRIC_STRONG: in updateState() 64 mAuthenticatorState.put(Authenticators.BIOMETRIC_STRONG, in updateState() 65 mapper.apply(mAuthenticatorState.get(Authenticators.BIOMETRIC_STRONG))); in updateState() 67 case Authenticators.BIOMETRIC_WEAK: in updateState() 68 mAuthenticatorState.put(Authenticators.BIOMETRIC_WEAK, in updateState() [all …]
|
D | MultiBiometricLockoutState.java | 19 import static android.hardware.biometrics.BiometricManager.Authenticators; 20 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE; 21 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_STRONG; 22 import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_WEAK; 68 void setPermanentLockOut(int userId, @Authenticators.Types int strength) { in setPermanentLockOut() 71 case Authenticators.BIOMETRIC_STRONG: in setPermanentLockOut() 74 case Authenticators.BIOMETRIC_WEAK: in setPermanentLockOut() 77 case Authenticators.BIOMETRIC_CONVENIENCE: in setPermanentLockOut() 85 void clearPermanentLockOut(int userId, @Authenticators.Types int strength) { in clearPermanentLockOut() 88 case Authenticators.BIOMETRIC_STRONG: in clearPermanentLockOut() [all …]
|
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()
|
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()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 21 import static android.hardware.biometrics.BiometricManager.Authenticators; 120 final @Authenticators.Types int authenticators; in combineAuthenticatorBundles() 127 ? Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK in combineAuthenticatorBundles() 128 : Authenticators.BIOMETRIC_WEAK; in combineAuthenticatorBundles() 138 static boolean isCredentialRequested(@Authenticators.Types int authenticators) { in isCredentialRequested() 139 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isCredentialRequested() 157 static int getPublicBiometricStrength(@Authenticators.Types int authenticators) { in getPublicBiometricStrength() 159 return authenticators & Authenticators.BIOMETRIC_WEAK; in getPublicBiometricStrength() 179 static boolean isBiometricRequested(@Authenticators.Types int authenticators) { in isBiometricRequested() 199 public static boolean isAtLeastStrength(@Authenticators.Types int sensorStrength, in isAtLeastStrength() [all …]
|
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()
|
D | BiometricService.java | 22 import static android.hardware.biometrics.BiometricManager.Authenticators; 169 if (!Utils.isAtLeastStrength(sensor.oemStrength, Authenticators.BIOMETRIC_STRONG)) { in InvalidationTracker() 606 @Authenticators.Types int authenticators) { 631 int userId, @Authenticators.Types int authenticators) { 656 if ((authenticators & Authenticators.DEVICE_CREDENTIAL) != 0) { 660 if ((authenticators & Authenticators.BIOMETRIC_STRONG) != 0) { 696 @Authenticators.Types int strength, 715 if (strength != Authenticators.BIOMETRIC_STRONG 716 && strength != Authenticators.BIOMETRIC_WEAK 717 && strength != Authenticators.BIOMETRIC_CONVENIENCE) { [all …]
|
D | AuthService.java | 31 import static android.hardware.biometrics.BiometricManager.Authenticators; 361 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate() 389 @Authenticators.Types int authenticators) throws RemoteException { in getLastAuthenticationTime() 539 @Authenticators.Types int authenticators) throws RemoteException { in getButtonLabel() 585 @Authenticators.Types int authenticators) throws RemoteException { in getPromptMessage() 655 @Authenticators.Types int authenticators) throws RemoteException { in getSettingName() 930 final String strength = String.valueOf(Authenticators.BIOMETRIC_CONVENIENCE); in generateRSdkCompatibleConfiguration() 972 @BiometricManager.Authenticators.Types int strength) { in getHidlFingerprintSensorProps() 1014 @BiometricManager.Authenticators.Types int strength) { in getHidlFaceSensorProps() 1029 @BiometricManager.Authenticators.Types int strength) { in getHidlIrisSensorProps()
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | BiometricManager.java | 100 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_STRONG; 130 public interface Authenticators { interface in BiometricManager 223 @NonNull public static String authenticatorToStr(@Authenticators.Types int authenticatorType) { in authenticatorToStr() 225 case Authenticators.BIOMETRIC_STRONG: in authenticatorToStr() 227 case Authenticators.BIOMETRIC_WEAK: in authenticatorToStr() 229 case Authenticators.BIOMETRIC_CONVENIENCE: in authenticatorToStr() 231 case Authenticators.DEVICE_CREDENTIAL: in authenticatorToStr() 245 @Authenticators.Types int mAuthenticators; 248 @Authenticators.Types int authenticators) { in Strings() 443 Authenticators.BIOMETRIC_WEAK); in canAuthenticate() [all …]
|
D | BiometricPrompt.java | 23 import static android.hardware.biometrics.BiometricManager.Authenticators; 502 public Builder setAllowedAuthenticators(@Authenticators.Types int authenticators) { in setAllowedAuthenticators() 671 final @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in build() 1368 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate() 1385 @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in authenticate() 1386 if (authenticators == Authenticators.EMPTY_SET) { in authenticate() 1387 authenticators = Authenticators.BIOMETRIC_STRONG; in authenticate() 1389 final int biometricStrength = authenticators & Authenticators.BIOMETRIC_WEAK; in authenticate() 1390 if ((biometricStrength & ~Authenticators.BIOMETRIC_STRONG) != 0) { in authenticate() 1433 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | BiometricTestExtensions.kt | 20 import android.hardware.biometrics.BiometricManager.Authenticators in <lambda>() 102 @Authenticators.Types 104 var authenticators = Authenticators.EMPTY_SET in extractAuthenticatorTypes() 111 Authenticators.BIOMETRIC_CONVENIENCE in extractAuthenticatorTypes() 112 SensorProperties.STRENGTH_WEAK -> Authenticators.BIOMETRIC_WEAK in extractAuthenticatorTypes() 113 SensorProperties.STRENGTH_STRONG -> Authenticators.BIOMETRIC_STRONG in extractAuthenticatorTypes() 114 else -> Authenticators.EMPTY_SET in extractAuthenticatorTypes()
|
/frameworks/base/core/java/android/hardware/face/ |
D | HidlFaceSensorConfig.java | 73 @BiometricManager.Authenticators.Types int strength) { in authenticatorStrengthToPropertyStrength() 75 case BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE: in authenticatorStrengthToPropertyStrength() 77 case BiometricManager.Authenticators.BIOMETRIC_WEAK: in authenticatorStrengthToPropertyStrength() 79 case BiometricManager.Authenticators.BIOMETRIC_STRONG: in authenticatorStrengthToPropertyStrength()
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
D | HidlFingerprintSensorConfig.java | 107 @BiometricManager.Authenticators.Types int strength) { in authenticatorStrengthToPropertyStrength() 109 case BiometricManager.Authenticators.BIOMETRIC_CONVENIENCE: in authenticatorStrengthToPropertyStrength() 111 case BiometricManager.Authenticators.BIOMETRIC_WEAK: in authenticatorStrengthToPropertyStrength() 113 case BiometricManager.Authenticators.BIOMETRIC_STRONG: in authenticatorStrengthToPropertyStrength()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/ |
D | PromptSelectorInteractorImplTest.kt | 21 import android.hardware.biometrics.BiometricManager.Authenticators in <lambda>() 115 authenticators = Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL in <lambda>() 153 Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL in <lambda>() 155 Authenticators.BIOMETRIC_STRONG in <lambda>() 296 authenticators = Authenticators.DEVICE_CREDENTIAL in <lambda>() 317 authenticators = Authenticators.DEVICE_CREDENTIAL in <lambda>() 343 authenticators = Authenticators.DEVICE_CREDENTIAL in <lambda>() 388 authenticators = Authenticators.DEVICE_CREDENTIAL in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | AuthContainerViewTest.kt | 332 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK in <lambda>() 361 BiometricManager.Authenticators.BIOMETRIC_WEAK or in <lambda>() 362 BiometricManager.Authenticators.DEVICE_CREDENTIAL in <lambda>() 376 BiometricManager.Authenticators.BIOMETRIC_WEAK or in <lambda>() 377 BiometricManager.Authenticators.DEVICE_CREDENTIAL in <lambda>() 397 BiometricManager.Authenticators.BIOMETRIC_WEAK or in <lambda>() 398 BiometricManager.Authenticators.DEVICE_CREDENTIAL in <lambda>() 462 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL in <lambda>() 476 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL, in <lambda>() 502 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL, in <lambda>() [all …]
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ |
D | BiometricHandler.kt | 23 import android.hardware.biometrics.BiometricManager.Authenticators in <lambda>() 264 if (allowedAuthenticators == BiometricManager.Authenticators.DEVICE_CREDENTIAL) { in canCallBiometricPrompt() 281 if (biometricManager.canAuthenticate(Authenticators.BIOMETRIC_WEAK) != in onlySupportsAtMostDeviceCredentials() 283 biometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG) != in onlySupportsAtMostDeviceCredentials() 295 Authenticators.BIOMETRIC_WEAK or Authenticators.DEVICE_CREDENTIAL) || in containsBiometricAuthenticatorWithDeviceCredentials() 297 Authenticators.BIOMETRIC_STRONG or Authenticators.DEVICE_CREDENTIAL) in containsBiometricAuthenticatorWithDeviceCredentials()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | FingerprintResetLockoutClient.java | 21 import android.hardware.biometrics.BiometricManager.Authenticators; 60 @Authenticators.Types int biometricStrength) { in FingerprintResetLockoutClient() 114 @Authenticators.Types int biometricStrength, long requestId) { in resetLocalLockoutStateToNone()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
D | FaceResetLockoutClient.java | 21 import android.hardware.biometrics.BiometricManager.Authenticators; 61 @Authenticators.Types int biometricStrength) { in FaceResetLockoutClient() 118 @Authenticators.Types int biometricStrength, long requestId) { in resetLocalLockoutStateToNone()
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 33 import android.hardware.biometrics.BiometricManager.Authenticators 85 (promptInfo.authenticators and Authenticators.DEVICE_CREDENTIAL) != 0 in isDeviceCredentialAllowed() 89 (promptInfo.authenticators and Authenticators.BIOMETRIC_WEAK) != 0 in isDeviceCredentialAllowed()
|