/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | UtilsTest.java | 43 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 …]
|
D | BiometricServiceTest.java | 896 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 …]
|
D | AuthSessionTest.java | 304 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()
|
D | AuthServiceTest.java | 269 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/ |
D | Utils.java | 100 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 …]
|
D | AuthService.java | 292 @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()
|
D | BiometricService.java | 729 @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 …]
|
D | AuthSession.java | 410 @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/ |
D | IAuthService.aidl | 54 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
|
D | BiometricManager.java | 227 @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()
|
D | IBiometricService.aidl | 48 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
|
D | BiometricPrompt.java | 340 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()
|
D | PromptInfo.java | 175 public void setAuthenticators(int authenticators) { in setAuthenticators() argument 176 mAuthenticators = authenticators; in setAuthenticators()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | Utils.java | 75 @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()
|
D | AuthController.java | 506 @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/ |
D | AuthBiometricViewTest.java | 360 int authenticators = Authenticators.BIOMETRIC_WEAK; in buildPromptInfo() local 362 authenticators |= Authenticators.DEVICE_CREDENTIAL; in buildPromptInfo() 366 promptInfo.setAuthenticators(authenticators); in buildPromptInfo()
|
D | AuthContainerViewTest.java | 239 private void initializeContainer(int authenticators) { in initializeContainer() argument 247 promptInfo.setAuthenticators(authenticators); in initializeContainer()
|