Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java19 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 …]
DBiometricServiceTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
173 setupAuthForOnly(BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenPaused()
200 setupAuthForOnly(BiometricAuthenticator.TYPE_FACE, Authenticators.BIOMETRIC_STRONG); in testClientBinderDied_whenAuthenticating()
242 Authenticators.DEVICE_CREDENTIAL); in testAuthenticate_credentialAllowedButNotSetup_returnsNoDeviceCredential()
261 Authenticators.DEVICE_CREDENTIAL); in testAuthenticate_credentialAllowedAndSetup_callsSystemUI()
302 BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_STRONG, in testAuthenticate_withoutEnrolled_returnsErrorNoBiometrics()
316 setupAuthForOnly(BiometricAuthenticator.TYPE_FINGERPRINT, Authenticators.BIOMETRIC_WEAK); in testAuthenticate_notStrongEnough_returnsHardwareNotPresent()
319 Authenticators.BIOMETRIC_STRONG); in testAuthenticate_notStrongEnough_returnsHardwareNotPresent()
338 Authenticators.BIOMETRIC_WEAK, in testAuthenticate_picksStrongIfAvailable()
339 Authenticators.BIOMETRIC_STRONG, in testAuthenticate_picksStrongIfAvailable()
[all …]
DInvalidationTrackerTest.java30 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()
DAuthSessionTest.java42 import android.hardware.biometrics.BiometricManager.Authenticators;
114 Authenticators.BIOMETRIC_STRONG, in testNewAuthSession_eligibleSensorsSetToStateUnknown()
135 Authenticators.BIOMETRIC_STRONG, in testStartNewAuthSession()
214 Authenticators.BIOMETRIC_STRONG, in testMultiAuth_fingerprintSensorStartsAfter()
279 Authenticators.BIOMETRIC_STRONG, in testInvokesCancel()
304 boolean checkDevicePolicyManager, @Authenticators.Types int authenticators, in createAuthSession()
317 private PromptInfo createPromptInfo(@Authenticators.Types int authenticators) { in createPromptInfo()
330 Authenticators.BIOMETRIC_STRONG /* strength */, in setupFingerprint()
367 Authenticators.BIOMETRIC_STRONG /* strength */, in setupFace()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java21 import static android.hardware.biometrics.BiometricManager.Authenticators;
100 final @Authenticators.Types int authenticators; in combineAuthenticatorBundles()
107 ? Authenticators.DEVICE_CREDENTIAL | Authenticators.BIOMETRIC_WEAK in combineAuthenticatorBundles()
108 : Authenticators.BIOMETRIC_WEAK; in combineAuthenticatorBundles()
118 static boolean isCredentialRequested(@Authenticators.Types int authenticators) { in isCredentialRequested()
119 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isCredentialRequested()
137 static int getPublicBiometricStrength(@Authenticators.Types int authenticators) { in getPublicBiometricStrength()
139 return authenticators & Authenticators.BIOMETRIC_WEAK; in getPublicBiometricStrength()
159 static boolean isBiometricRequested(@Authenticators.Types int authenticators) { in isBiometricRequested()
179 public static boolean isAtLeastStrength(@Authenticators.Types int sensorStrength, in isAtLeastStrength()
[all …]
DBiometricSensor.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
70 public final @Authenticators.Types int oemStrength; // strength as configured by the OEM
74 private @Authenticators.Types int mUpdatedStrength; // updated by BiometricStrengthController
92 @Authenticators.Types int strength, IBiometricAuthenticator impl) { in BiometricSensor()
151 @Authenticators.Types int getCurrentStrength() { in getCurrentStrength()
168 void updateStrength(@Authenticators.Types int newStrength) { in updateStrength()
DBiometricService.java20 import static android.hardware.biometrics.BiometricManager.Authenticators;
280 if (!Utils.isAtLeastStrength(sensor.oemStrength, Authenticators.BIOMETRIC_STRONG)) { in InvalidationTracker()
729 @Authenticators.Types int authenticators) { in canAuthenticate()
769 @Authenticators.Types int strength, in registerAuthenticator()
787 if (strength != Authenticators.BIOMETRIC_STRONG in registerAuthenticator()
788 && strength != Authenticators.BIOMETRIC_WEAK in registerAuthenticator()
789 && strength != Authenticators.BIOMETRIC_CONVENIENCE) { in registerAuthenticator()
847 Authenticators.BIOMETRIC_STRONG)) { in getAuthenticatorIds()
873 Authenticators.BIOMETRIC_STRONG)) { in resetLockoutTimeBound()
915 return Authenticators.EMPTY_SET; in getCurrentStrength()
[all …]
DAuthService.java32 import static android.hardware.biometrics.BiometricManager.Authenticators;
292 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate()
405 @Authenticators.Types int authenticators) throws RemoteException { in getButtonLabel()
451 @Authenticators.Types int authenticators) throws RemoteException { in getPromptMessage()
521 @Authenticators.Types int authenticators) throws RemoteException { in getSettingName()
739 @BiometricManager.Authenticators.Types int strength) { in getHidlFingerprintSensorProps()
779 @BiometricManager.Authenticators.Types int strength) { in getHidlFaceSensorProps()
794 @BiometricManager.Authenticators.Types int strength) { in getHidlIrisSensorProps()
DSensorConfig.java27 @BiometricManager.Authenticators.Types public final int strength;
DAuthSession.java410 @BiometricManager.Authenticators.Types int authenticators = in onErrorReceived()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthContainerViewTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
86 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionAuthenticated_sendsDismissedAuthenticated()
97 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionUserCanceled_sendsDismissedUserCanceled()
110 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionButtonNegative_sendsDismissedButtonNegative()
121 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionTryAgain_sendsTryAgain()
130 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testActionError_sendsDismissedError()
142 Authenticators.BIOMETRIC_WEAK | Authenticators.DEVICE_CREDENTIAL); in testActionUseDeviceCredential_sendsOnDeviceCredentialPressed()
157 Authenticators.BIOMETRIC_WEAK | Authenticators.DEVICE_CREDENTIAL); in testAnimateToCredentialUI_invokesStartTransitionToCredentialUI()
166 initializeContainer(Authenticators.BIOMETRIC_WEAK); in testShowBiometricUI()
178 initializeContainer(Authenticators.DEVICE_CREDENTIAL); in testShowCredentialUI_doesNotInflateBiometricUI()
[all …]
DAuthBiometricViewTest.java21 import static android.hardware.biometrics.BiometricManager.Authenticators;
360 int authenticators = Authenticators.BIOMETRIC_WEAK; in buildPromptInfo()
362 authenticators |= Authenticators.DEVICE_CREDENTIAL; in buildPromptInfo()
DAuthControllerTest.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
484 assertEquals(Authenticators.DEVICE_CREDENTIAL, in testConfigurationPersists_whenBiometricFallbackToCredential()
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricManager.java130 public interface Authenticators { interface in BiometricManager
224 @Authenticators.Types int mAuthenticators;
227 @Authenticators.Types int authenticators) { in Strings()
422 Authenticators.BIOMETRIC_WEAK); in canAuthenticate()
425 false /* isAllowedAuthenticatorsSet */, Authenticators.EMPTY_SET, result); in canAuthenticate()
461 public int canAuthenticate(@Authenticators.Types int authenticators) { in canAuthenticate()
475 public int canAuthenticate(int userId, @Authenticators.Types int authenticators) { in canAuthenticate()
499 public Strings getStrings(@Authenticators.Types int authenticators) { in getStrings()
DBiometricPrompt.java22 import static android.hardware.biometrics.BiometricManager.Authenticators;
340 public Builder setAllowedAuthenticators(@Authenticators.Types int authenticators) { in setAllowedAuthenticators()
424 final @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in build()
925 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate()
942 @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in authenticate()
943 if (authenticators == Authenticators.EMPTY_SET) { in authenticate()
944 authenticators = Authenticators.BIOMETRIC_STRONG; in authenticate()
946 final int biometricStrength = authenticators & Authenticators.BIOMETRIC_WEAK; in authenticate()
947 if ((biometricStrength & ~Authenticators.BIOMETRIC_STRONG) != 0) { in authenticate()
990 mPromptInfo.getAuthenticators() != Authenticators.EMPTY_SET, in authenticate()
[all …]
DBiometricConstants.java19 import static android.hardware.biometrics.BiometricManager.Authenticators;
DBiometricFingerprintConstants.java22 import android.hardware.biometrics.BiometricManager.Authenticators;
DBiometricFaceConstants.java21 import android.hardware.biometrics.BiometricManager.Authenticators;
DPromptInfo.java43 private @BiometricManager.Authenticators.Types int mAuthenticators;
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.java20 import static android.hardware.biometrics.BiometricManager.Authenticators;
75 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in isDeviceCredentialAllowed()
76 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isDeviceCredentialAllowed()
80 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in isBiometricAllowed()
81 return (authenticators & Authenticators.BIOMETRIC_WEAK) != 0; in isBiometricAllowed()
DAuthController.java35 import android.hardware.biometrics.BiometricManager.Authenticators;
506 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in showAuthenticationDialog()
759 promptInfo.setAuthenticators(Authenticators.DEVICE_CREDENTIAL); in onConfigurationChanged()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/iris/
DIrisService.java77 final @BiometricManager.Authenticators.Types int strength = in registerAuthenticators()
/frameworks/base/core/proto/android/server/
Dbiometrics.proto142 // The current strength (see {@link BiometricManager.Authenticators}) of this sensor, taking any
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceService.java679 final @BiometricManager.Authenticators.Types int strength = in registerAuthenticators()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java861 final @BiometricManager.Authenticators.Types int strength = in registerAuthenticators()

12