Home
last modified time | relevance | path

Searched refs:authenticators (Results 1 – 17 of 17) 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.java896 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local
901 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
905 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
910 final @Authenticators.Types int authenticators = in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local
914 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
918 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
1163 int authenticators = Authenticators.BIOMETRIC_STRONG; in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength() local
1165 invokeCanAuthenticate(mBiometricService, authenticators)); in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1169 authenticators = Authenticators.BIOMETRIC_STRONG | Authenticators.DEVICE_CREDENTIAL; in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1171 invokeCanAuthenticate(mBiometricService, authenticators)); in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
[all …]
DAuthSessionTest.java304 boolean checkDevicePolicyManager, @Authenticators.Types int authenticators, in createAuthSession() argument
307 final PromptInfo promptInfo = createPromptInfo(authenticators); in createAuthSession()
317 private PromptInfo createPromptInfo(@Authenticators.Types int authenticators) { in createPromptInfo() argument
319 promptInfo.setAuthenticators(authenticators); in createPromptInfo()
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()
/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 …]
DAuthService.java292 @Authenticators.Types int authenticators) throws RemoteException { in canAuthenticate() argument
306 opPackageName, userId, callingUserId, authenticators); in canAuthenticate()
310 + ", authenticators: " + authenticators in canAuthenticate()
405 @Authenticators.Types int authenticators) throws RemoteException { in getButtonLabel() argument
420 opPackageName, userId, callingUserId, authenticators); in getButtonLabel()
451 @Authenticators.Types int authenticators) throws RemoteException { in getPromptMessage() argument
466 opPackageName, userId, callingUserId, authenticators); in getPromptMessage()
468 final boolean isCredentialAllowed = Utils.isCredentialRequested(authenticators); in getPromptMessage()
521 @Authenticators.Types int authenticators) throws RemoteException { in getSettingName() argument
535 mBiometricService.getSupportedModalities(authenticators); in getSettingName()
DBiometricService.java729 @Authenticators.Types int authenticators) { in canAuthenticate() argument
734 + ", Authenticators=" + authenticators); in canAuthenticate()
736 if (!Utils.isValidAuthenticatorConfig(authenticators)) { in canAuthenticate()
742 createPreAuthInfo(opPackageName, userId, authenticators); in canAuthenticate()
923 @Authenticators.Types int authenticators) { in getCurrentModality() argument
929 + ", Authenticators=" + authenticators); in getCurrentModality()
931 if (!Utils.isValidAuthenticatorConfig(authenticators)) { in getCurrentModality()
937 createPreAuthInfo(opPackageName, userId, authenticators); in getCurrentModality()
946 public int getSupportedModalities(@Authenticators.Types int authenticators) { in getSupportedModalities() argument
949 Slog.d(TAG, "getSupportedModalities: Authenticators=" + authenticators); in getSupportedModalities()
[all …]
DAuthSession.java410 @BiometricManager.Authenticators.Types int authenticators = in onErrorReceived() local
413 authenticators = Utils.removeBiometricBits(authenticators); in onErrorReceived()
414 mPromptInfo.setAuthenticators(authenticators); in onErrorReceived()
/frameworks/base/core/java/android/hardware/biometrics/
DIAuthService.aidl54 int canAuthenticate(String opPackageName, int userId, int authenticators); in canAuthenticate() argument
80 CharSequence getButtonLabel(int userId, String opPackageName, int authenticators); in getButtonLabel() argument
84 CharSequence getPromptMessage(int userId, String opPackageName, int authenticators); in getPromptMessage() argument
88 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.aidl48 int canAuthenticate(String opPackageName, int userId, int callingUserId, int authenticators); in canAuthenticate() argument
84 int getCurrentModality(String opPackageName, int userId, int callingUserId, int authenticators); in getCurrentModality() argument
87 int getSupportedModalities(int authenticators); in getSupportedModalities() argument
DBiometricPrompt.java340 public Builder setAllowedAuthenticators(@Authenticators.Types int authenticators) { in setAllowedAuthenticators() argument
341 mPromptInfo.setAuthenticators(authenticators); in setAllowedAuthenticators()
424 final @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in build() local
426 || isCredentialAllowed(authenticators); in build()
942 @Authenticators.Types int authenticators = mPromptInfo.getAuthenticators(); in authenticate() local
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()
DPromptInfo.java175 public void setAuthenticators(int authenticators) { in setAuthenticators() argument
176 mAuthenticators = authenticators; in setAuthenticators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.java75 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in isDeviceCredentialAllowed() local
76 return (authenticators & Authenticators.DEVICE_CREDENTIAL) != 0; in isDeviceCredentialAllowed()
80 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in isBiometricAllowed() local
81 return (authenticators & Authenticators.BIOMETRIC_WEAK) != 0; in isBiometricAllowed()
DAuthController.java506 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in showAuthenticationDialog() local
513 Log.d(TAG, "showAuthenticationDialog, authenticators: " + authenticators in showAuthenticationDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthBiometricViewTest.java360 int authenticators = Authenticators.BIOMETRIC_WEAK; in buildPromptInfo() local
362 authenticators |= Authenticators.DEVICE_CREDENTIAL; in buildPromptInfo()
366 promptInfo.setAuthenticators(authenticators); in buildPromptInfo()
DAuthContainerViewTest.java239 private void initializeContainer(int authenticators) { in initializeContainer() argument
247 promptInfo.setAuthenticators(authenticators); in initializeContainer()