Home
last modified time | relevance | path

Searched refs:Authenticators (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
42 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
43 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
56 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
57 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK; in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
77 Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andNoKeyAuthenticators()
88 Authenticators.BIOMETRIC_WEAK); 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 …]
DBiometricServiceTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
153 setupAuthForOnly(BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenPaused()
181 setupAuthForOnly(BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenAuthenticating()
228 Authenticators.DEVICE_CREDENTIAL); in testAuthenticate_credentialAllowedButNotSetup_returnsNoDeviceCredential()
247 Authenticators.DEVICE_CREDENTIAL); in testAuthenticate_credentialAllowedAndSetup_callsSystemUI()
285 BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_STRONG, in testAuthenticate_withoutEnrolled_returnsErrorNoBiometrics()
299 setupAuthForOnly(BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_WEAK); in testAuthenticate_notStrongEnough_returnsHardwareNotPresent()
302 Authenticators.BIOMETRIC_STRONG); in testAuthenticate_notStrongEnough_returnsHardwareNotPresent()
321 Authenticators.BIOMETRIC_WEAK, in testAuthenticate_picksStrongIfAvailable()
322 Authenticators.BIOMETRIC_STRONG, in testAuthenticate_picksStrongIfAvailable()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
60 final @Authenticators.Types int authenticators; in combineAuthenticatorBundles()
67 ? Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK in combineAuthenticatorBundles()
68 : Authenticators.BIOMETRIC_WEAK; in combineAuthenticatorBundles()
78 public static boolean isCredentialRequested(@Authenticators.Types int authenticators) { in isCredentialRequested()
79 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isCredentialRequested()
96 public static int getPublicBiometricStrength(@Authenticators.Types int authenticators) { in getPublicBiometricStrength()
98 return authenticators & Authenticators.BIOMETRIC_WEAK; in getPublicBiometricStrength()
129 sensorStrength &= Authenticators.BIOMETRIC_MIN_STRENGTH; in isAtLeastStrength()
136 for (int i = Authenticators.BIOMETRIC_MAX_STRENGTH; in isAtLeastStrength()
[all …]
DBiometricService.java24 import static android.hardware.biometrics.BiometricManager.Authenticators;
749 @Authenticators.Types int authenticators) { in canAuthenticate()
810 if (strength != Authenticators.BIOMETRIC_STRONG in registerAuthenticator()
811 && strength != Authenticators.BIOMETRIC_WEAK in registerAuthenticator()
812 && strength != Authenticators.BIOMETRIC_CONVENIENCE) { in registerAuthenticator()
890 Authenticators.BIOMETRIC_STRONG) && id != 0) { in getAuthenticatorIds()
1216 Authenticators.DEVICE_CREDENTIAL); in checkAndGetAuthenticators()
1472 @Authenticators.Types int authenticators = in handleOnError()
1476 authenticators &= ~Authenticators.BIOMETRIC_WEAK; in handleOnError()
1804 final @Authenticators.Types int authenticators = bundle.getInt( in authenticateInternal()
[all …]
DAuthService.java29 import static android.hardware.biometrics.BiometricManager.Authenticators;
202 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate()
DBiometricServiceBase.java697 & BiometricManager.Authenticators.BIOMETRIC_MIN_STRENGTH; in isStrongBiometric()
698 return biometricBits == BiometricManager.Authenticators.BIOMETRIC_STRONG; in isStrongBiometric()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthControllerTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
114 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonUserCanceled_whenDismissedByUserCancel()
124 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonNegative_whenDismissedByButtonNegative()
134 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonConfirmed_whenDismissedByButtonPositive()
144 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonConfirmNotRequired_whenDismissedByAuthenticated()
154 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonError_whenDismissedByError()
164 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonServerRequested_whenDismissedByServer()
175 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonCredentialConfirmed_whenDeviceCredentialAuthenticated()
191 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testShowInvoked_whenSystemRequested()
197 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testOnAuthenticationSucceededInvoked_whenSystemRequested()
[all …]
DAuthContainerViewTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
79 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionAuthenticated_sendsDismissedAuthenticated()
90 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionUserCanceled_sendsDismissedUserCanceled()
103 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionButtonNegative_sendsDismissedButtonNegative()
114 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionTryAgain_sendsTryAgain()
123 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionError_sendsDismissedError()
135 Authenticators.BIOMETRIC_WEAK | Authenticators.DEVICE_CREDENTIAL); in testActionUseDeviceCredential_sendsOnDeviceCredentialPressed()
150 Authenticators.BIOMETRIC_WEAK | Authenticators.DEVICE_CREDENTIAL); in testAnimateToCredentialUI_invokesStartTransitionToCredentialUI()
159 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testShowBiometricUI()
171 initializeContainer(Authenticators.DEVICE_CREDENTIAL); in testShowCredentialUI_doesNotInflateBiometricUI()
[all …]
DAuthBiometricViewTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
296 int authenticators = Authenticators.BIOMETRIC_WEAK; in buildBiometricPromptBundle()
298 authenticators |= Authenticators.DEVICE_CREDENTIAL; in buildBiometricPromptBundle()
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricManager.java91 public interface Authenticators { interface in BiometricManager
206 return canAuthenticate(Authenticators.BIOMETRIC_WEAK); in canAuthenticate()
235 public @BiometricError int canAuthenticate(@Authenticators.Types int authenticators) { in canAuthenticate()
244 @Authenticators.Types int authenticators) { in canAuthenticate()
DBiometricPrompt.java21 import static android.hardware.biometrics.BiometricManager.Authenticators;
389 public Builder setAllowedAuthenticators(@Authenticators.Types int authenticators) { in setAllowedAuthenticators()
434 final @Authenticators.Types int authenticators = in build()
437 || (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in build()
884 final @Authenticators.Types int authenticators = mBundle.getInt( in authenticate()
885 KEY_AUTHENTICATORS_ALLOWED, Authenticators.BIOMETRIC_STRONG); in authenticate()
886 final int biometricStrength = authenticators & Authenticators.BIOMETRIC_WEAK; in authenticate()
887 if ((biometricStrength & ~Authenticators.BIOMETRIC_STRONG) != 0) { in authenticate()
974 Authenticators.BIOMETRIC_STRONG)); in authenticateInternal()
DBiometricConstants.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
DBiometricFingerprintConstants.java21 import android.hardware.biometrics.BiometricManager.Authenticators;
DBiometricFaceConstants.java20 import android.hardware.biometrics.BiometricManager.Authenticators;
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
72 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isDeviceCredentialAllowed()
77 return (authenticators & Authenticators.BIOMETRIC_WEAK) != 0; in isBiometricAllowed()
DAuthController.java21 import static android.hardware.biometrics.BiometricManager.Authenticators;
457 Authenticators.DEVICE_CREDENTIAL); in onConfigurationChanged()
/frameworks/base/non-updatable-api/
Dsystem-current.txt2328 public static interface BiometricManager.Authenticators {
/frameworks/base/api/
Dsystem-current.txt2380 public static interface BiometricManager.Authenticators {
Dcurrent.txt17067 public static interface BiometricManager.Authenticators {