Home
last modified time | relevance | path

Searched refs:authenticators (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java43 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local
48 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
52 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
57 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local
61 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
65 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
93 int authenticators = 0; in testIsDeviceCredentialAllowed_withIntegerFlags() local
94 assertFalse(Utils.isCredentialRequested(authenticators)); in testIsDeviceCredentialAllowed_withIntegerFlags()
96 authenticators |= Authenticators.DEVICE_CREDENTIAL; in testIsDeviceCredentialAllowed_withIntegerFlags()
97 assertTrue(Utils.isCredentialRequested(authenticators)); in testIsDeviceCredentialAllowed_withIntegerFlags()
[all …]
DBiometricServiceTest.java911 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local
916 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
920 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
925 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local
929 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
933 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
1177 int authenticators = Authenticators.BIOMETRIC_STRONG; in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength() local
1179 invokeCanAuthenticate(mBiometricService, authenticators)); in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1184 authenticators = Authenticators.BIOMETRIC_STRONG | Authenticators.DEVICE_CREDENTIAL; in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1186 invokeCanAuthenticate(mBiometricService, authenticators)); in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
[all …]
DAuthServiceTest.java269 final int authenticators = 0; in testCanAuthenticate_callsBiometricServiceCanAuthenticate() local
274 .canAuthenticate(TEST_OP_PACKAGE_NAME, userId, authenticators); in testCanAuthenticate_callsBiometricServiceCanAuthenticate()
282 eq(authenticators)); in testCanAuthenticate_callsBiometricServiceCanAuthenticate()
DAuthSessionTest.java433 boolean checkDevicePolicyManager, @Authenticators.Types int authenticators, in createAuthSession() argument
436 final PromptInfo promptInfo = createPromptInfo(authenticators); in createAuthSession()
446 private PromptInfo createPromptInfo(@Authenticators.Types int authenticators) { in createPromptInfo() argument
448 promptInfo.setAuthenticators(authenticators); in createPromptInfo()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java100 final @Authenticators.Types int authenticators; in combineAuthenticatorBundles() local
103 authenticators = promptInfo.getAuthenticators(); in combineAuthenticatorBundles()
106 authenticators = deviceCredentialAllowed in combineAuthenticatorBundles()
111 promptInfo.setAuthenticators(authenticators); in combineAuthenticatorBundles()
118 static boolean isCredentialRequested(@Authenticators.Types int authenticators) { in isCredentialRequested() argument
119 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isCredentialRequested()
137 static int getPublicBiometricStrength(@Authenticators.Types int authenticators) { in getPublicBiometricStrength() argument
139 return authenticators & Authenticators.BIOMETRIC_WEAK; in getPublicBiometricStrength()
159 static boolean isBiometricRequested(@Authenticators.Types int authenticators) { in isBiometricRequested() argument
160 return getPublicBiometricStrength(authenticators) != 0; in isBiometricRequested()
[all …]
DBiometricService.java578 @Authenticators.Types int authenticators) {
583 + ", Authenticators=" + authenticators);
585 if (!Utils.isValidAuthenticatorConfig(authenticators)) {
591 createPreAuthInfo(opPackageName, userId, authenticators);
772 @Authenticators.Types int authenticators) {
778 + ", Authenticators=" + authenticators);
780 if (!Utils.isValidAuthenticatorConfig(authenticators)) {
786 createPreAuthInfo(opPackageName, userId, authenticators);
795 public int getSupportedModalities(@Authenticators.Types int authenticators) {
798 Slog.d(TAG, "getSupportedModalities: Authenticators=" + authenticators);
[all …]
DAuthService.java297 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate() argument
311 opPackageName, userId, callingUserId, authenticators); in canAuthenticate()
315 + ", authenticators: " + authenticators in canAuthenticate()
410 @Authenticators.Types int authenticators) throws RemoteException { in getButtonLabel() argument
425 opPackageName, userId, callingUserId, authenticators); in getButtonLabel()
456 @Authenticators.Types int authenticators) throws RemoteException { in getPromptMessage() argument
471 opPackageName, userId, callingUserId, authenticators); in getPromptMessage()
473 final boolean isCredentialAllowed = Utils.isCredentialRequested(authenticators); in getPromptMessage()
526 @Authenticators.Types int authenticators) throws RemoteException { in getSettingName() argument
540 mBiometricService.getSupportedModalities(authenticators); in getSettingName()
DAuthSession.java428 @BiometricManager.Authenticators.Types int authenticators = in onErrorReceived() local
431 authenticators = Utils.removeBiometricBits(authenticators); in onErrorReceived()
432 mPromptInfo.setAuthenticators(authenticators); in onErrorReceived()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricTestExtensions.kt65 var authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK in buildPromptInfo() variable
67 authenticators = authenticators or BiometricManager.Authenticators.DEVICE_CREDENTIAL in buildPromptInfo()
71 promptInfo.authenticators = authenticators in buildPromptInfo()
DAuthContainerViewTest.kt200 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL in testDismissesOnFocusLoss_hidesKeyboardWhenVisible()
281 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK in testActionTryAgain_sendsTryAgain()
310 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK or in testActionUseDeviceCredential_sendsOnDeviceCredentialPressed()
325 authenticators = BiometricManager.Authenticators.BIOMETRIC_WEAK or in testAnimateToCredentialUI_invokesStartTransitionToCredentialUI()
347 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL in testShowCredentialUI()
363 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL in testCredentialViewUsesEffectiveUserId()
445 authenticators = BiometricManager.Authenticators.DEVICE_CREDENTIAL, in initializeCredentialPasswordContainer()
455 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK, in initializeFingerprintContainer()
459 authenticators = authenticators, in initializeFingerprintContainer()
466 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK, in initializeFingerprintContainer()
[all …]
DAuthCredentialViewTest.kt104 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK, in initializeFingerprintContainer()
109 authenticators = authenticators, in initializeFingerprintContainer()
128 authenticators: Int = BiometricManager.Authenticators.BIOMETRIC_WEAK,
140 mPromptInfo = PromptInfo().apply { this.authenticators = authenticators } in <lambda>()
/frameworks/base/core/java/android/hardware/biometrics/
DIAuthService.aidl55 int canAuthenticate(String opPackageName, int userId, int authenticators); in canAuthenticate() argument
81 CharSequence getButtonLabel(int userId, String opPackageName, int authenticators); in getButtonLabel() argument
85 CharSequence getPromptMessage(int userId, String opPackageName, int authenticators); in getPromptMessage() argument
89 CharSequence getSettingName(int userId, String opPackageName, int authenticators); in getSettingName() argument
DBiometricManager.java227 @Authenticators.Types int authenticators) { in Strings() argument
230 mAuthenticators = authenticators; in Strings()
461 public int canAuthenticate(@Authenticators.Types int authenticators) { in canAuthenticate() argument
462 @BiometricError final int result = canAuthenticate(mContext.getUserId(), authenticators); in canAuthenticate()
465 true /* isAllowedAuthenticatorsSet */, authenticators, result); in canAuthenticate()
475 public int canAuthenticate(int userId, @Authenticators.Types int authenticators) { in canAuthenticate() argument
479 return mService.canAuthenticate(opPackageName, userId, authenticators); in canAuthenticate()
499 public Strings getStrings(@Authenticators.Types int authenticators) { in getStrings() argument
500 return new Strings(mContext, mService, authenticators); in getStrings()
DIBiometricService.aidl49 int canAuthenticate(String opPackageName, int userId, int callingUserId, int authenticators); in canAuthenticate() argument
85 int getCurrentModality(String opPackageName, int userId, int callingUserId, int authenticators); in getCurrentModality() argument
88 int getSupportedModalities(int authenticators); in getSupportedModalities() argument
DBiometricPrompt.java341 public Builder setAllowedAuthenticators(@Authenticators.Types int authenticators) { in setAllowedAuthenticators() argument
342 mPromptInfo.setAuthenticators(authenticators); in setAllowedAuthenticators()
450 final @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in build() local
452 || isCredentialAllowed(authenticators); in build()
1007 @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in authenticate() local
1008 if (authenticators == Authenticators.EMPTY_SET) { in authenticate()
1009 authenticators = Authenticators.BIOMETRIC_STRONG; in authenticate()
1011 final int biometricStrength = authenticators & Authenticators.BIOMETRIC_WEAK; in authenticate()
DPromptInfo.java185 public void setAuthenticators(int authenticators) { in setAuthenticators() argument
186 mAuthenticators = authenticators; in setAuthenticators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.kt79 (promptInfo.authenticators and Authenticators.DEVICE_CREDENTIAL) != 0 in isDeviceCredentialAllowed()
83 (promptInfo.authenticators and Authenticators.BIOMETRIC_WEAK) != 0 in isDeviceCredentialAllowed()
DAuthController.java887 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in showAuthenticationDialog() local
894 Log.d(TAG, "showAuthenticationDialog, authenticators: " + authenticators in showAuthenticationDialog()