/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | UtilsTest.java | 45 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local 47 promptInfo.setDeviceCredentialAllowed(allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 48 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 49 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 51 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 52 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 59 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local 61 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 62 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 64 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() [all …]
|
D | PreAuthInfoTest.java | 101 PromptInfo promptInfo = new PromptInfo(); in testFaceAuthentication_whenCameraPrivacyIsEnabled() local 102 promptInfo.setConfirmationRequested(false /* requireConfirmation */); in testFaceAuthentication_whenCameraPrivacyIsEnabled() 103 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsEnabled() 104 promptInfo.setDisallowBiometricsIfPolicyExists(false /* checkDevicePolicy */); in testFaceAuthentication_whenCameraPrivacyIsEnabled() 107 0 /* userId */, promptInfo, TEST_PACKAGE_NAME, in testFaceAuthentication_whenCameraPrivacyIsEnabled() 117 PromptInfo promptInfo = new PromptInfo(); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() local 118 promptInfo.setConfirmationRequested(false /* requireConfirmation */); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 119 promptInfo.setAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 120 promptInfo.setDisallowBiometricsIfPolicyExists(false /* checkDevicePolicy */); in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() 123 0 /* userId */, promptInfo, TEST_PACKAGE_NAME, in testFaceAuthentication_whenCameraPrivacyIsDisabledAndCameraIsAvailable() [all …]
|
D | AuthServiceTest.java | 258 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() local 268 promptInfo); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() 276 eq(promptInfo)); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() 287 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_appOpsDenied_doesNotCallBiometricService() local 297 promptInfo); in testAuthenticate_appOpsDenied_doesNotCallBiometricService() 305 eq(promptInfo)); in testAuthenticate_appOpsDenied_doesNotCallBiometricService() 314 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_missingRequiredParam() local 324 promptInfo); in testAuthenticate_missingRequiredParam() 372 final PromptInfo promptInfo = mock(PromptInfo.class); in testAuthenticate_throwsWhenUsingTestApis() local 373 when(promptInfo.requiresInternalPermission()).thenReturn(false); in testAuthenticate_throwsWhenUsingTestApis() [all …]
|
D | BiometricServiceTest.java | 1111 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local 1113 promptInfo.setDeviceCredentialAllowed(allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1114 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1115 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1117 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1118 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() 1125 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local 1127 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 1128 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() 1130 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() [all …]
|
D | AuthSessionTest.java | 838 PromptInfo promptInfo, boolean checkDevicePolicyManager) throws RemoteException { in createPreAuthInfo() argument 844 promptInfo, in createPreAuthInfo() 855 final PromptInfo promptInfo = createPromptInfo(authenticators); in createAuthSession() local 857 final PreAuthInfo preAuthInfo = createPreAuthInfo(sensors, userId, promptInfo, in createAuthSession() 862 promptInfo, false /* debugEnabled */, mFingerprintSensorProps, in createAuthSession() 867 PromptInfo promptInfo = new PromptInfo(); in createPromptInfo() local 868 promptInfo.setAuthenticators(authenticators); in createPromptInfo() 869 return promptInfo; in createPromptInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
D | PromptSelectorInteractor.kt | 87 promptInfo: PromptInfo, in <lambda>() 113 promptRepository.promptInfo, 118 ) { promptInfo, challenge, userId, kind, opPackageName -> in kind() method 120 promptInfo == null || userId == null || challenge == null || opPackageName == null in kind() 128 info = promptInfo, in kind() 144 promptRepository.promptInfo 165 promptRepository.promptInfo.value!!, in onSwitchToCredential() 178 promptInfo: PromptInfo, in setPrompt() 191 !Utils.isBiometricAllowed(promptInfo) && in setPrompt() 192 isDeviceCredentialAllowed(promptInfo) && in setPrompt() [all …]
|
D | PromptCredentialInteractor.kt | 59 biometricPromptRepository.promptInfo.map { promptInfo -> in <lambda>() method 60 promptInfo?.contentView != null && !promptInfo.isContentViewMoreOptionsButtonUsed in <lambda>() 66 biometricPromptRepository.promptInfo, in <lambda>() 70 ) { promptInfo, challenge, userId, promptKind -> in <lambda>() method 71 if (promptInfo == null || userId == null || challenge == null) { in <lambda>() 78 info = promptInfo, in <lambda>() 82 promptInfo.shouldUseParentProfileForDeviceCredential() in <lambda>() 88 info = promptInfo, in <lambda>() 92 promptInfo.shouldUseParentProfileForDeviceCredential() in <lambda>() 99 info = promptInfo, in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/ |
D | FakePromptRepository.kt | 15 override val promptInfo = _promptInfo.asStateFlow() constant in com.android.systemui.biometrics.data.repository.FakePromptRepository 36 promptInfo: PromptInfo, in setPrompt() 44 promptInfo, in setPrompt() 54 promptInfo: PromptInfo, in setPrompt() 62 _promptInfo.value = promptInfo in setPrompt() 67 _isConfirmationRequired.value = promptInfo.isConfirmationRequested || forceConfirmation in setPrompt()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/ |
D | PromptRepositoryImplTest.kt | 144 val promptInfo = PromptInfo() in setsAndUnsetsPrompt_whenRequestIdMatches() constant 146 repository.setPrompt(promptInfo, USER_ID, REQUEST_ID, CHALLENGE, kind, OP_PACKAGE_NAME) in setsAndUnsetsPrompt_whenRequestIdMatches() 151 assertThat(repository.promptInfo.value).isSameInstanceAs(promptInfo) in setsAndUnsetsPrompt_whenRequestIdMatches() 156 assertThat(repository.promptInfo.value).isNull() in setsAndUnsetsPrompt_whenRequestIdMatches() 166 val promptInfo = PromptInfo() in setsAndUnsetsPrompt_whenRequestIdDoesNotMatch() constant 168 repository.setPrompt(promptInfo, USER_ID, REQUEST_ID, CHALLENGE, kind, OP_PACKAGE_NAME) in setsAndUnsetsPrompt_whenRequestIdDoesNotMatch() 173 assertThat(repository.promptInfo.value).isSameInstanceAs(promptInfo) in setsAndUnsetsPrompt_whenRequestIdDoesNotMatch() 178 assertThat(repository.promptInfo.value).isNotNull() in setsAndUnsetsPrompt_whenRequestIdDoesNotMatch()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 115 static void combineAuthenticatorBundles(PromptInfo promptInfo) { in combineAuthenticatorBundles() argument 117 final boolean deviceCredentialAllowed = promptInfo.isDeviceCredentialAllowed(); in combineAuthenticatorBundles() 118 promptInfo.setDeviceCredentialAllowed(false); in combineAuthenticatorBundles() 121 if (promptInfo.getAuthenticators() != 0) { in combineAuthenticatorBundles() 123 authenticators = promptInfo.getAuthenticators(); in combineAuthenticatorBundles() 131 promptInfo.setAuthenticators(authenticators); in combineAuthenticatorBundles() 147 static boolean isCredentialRequested(PromptInfo promptInfo) { in isCredentialRequested() argument 148 return isCredentialRequested(promptInfo.getAuthenticators()); in isCredentialRequested() 169 static int getPublicBiometricStrength(PromptInfo promptInfo) { in getPublicBiometricStrength() argument 170 return getPublicBiometricStrength(promptInfo.getAuthenticators()); in getPublicBiometricStrength() [all …]
|
D | PreAuthInfo.java | 100 int userId, PromptInfo promptInfo, String opPackageName, in create() argument 105 final boolean confirmationRequested = promptInfo.isConfirmationRequested(); in create() 106 final boolean biometricRequested = Utils.isBiometricRequested(promptInfo); in create() 107 final int requestedStrength = Utils.getPublicBiometricStrength(promptInfo); in create() 108 final boolean credentialRequested = Utils.isCredentialRequested(promptInfo); in create() 128 promptInfo.getAllowedSensorIds(), in create() 129 promptInfo.isIgnoreEnrollmentState(), in create() 154 promptInfo.isIgnoreEnrollmentState(), userId, context, biometricCameraManager); in create()
|
D | BiometricService.java | 567 IBiometricServiceReceiver receiver, String opPackageName, PromptInfo promptInfo) { 571 if (token == null || receiver == null || opPackageName == null || promptInfo == null) { 576 if (!Utils.isValidAuthenticatorConfig(promptInfo)) { 580 Utils.combineAuthenticatorBundles(promptInfo); 584 token, requestId, operationId, userId, receiver, opPackageName, promptInfo)); 979 final PromptInfo promptInfo = new PromptInfo(); 980 promptInfo.setAuthenticators(authenticators); 983 userId, promptInfo, opPackageName, false /* checkDevicePolicyManager */, 1367 IBiometricServiceReceiver receiver, String opPackageName, PromptInfo promptInfo) { 1371 mDevicePolicyManager, mSettingObserver, mSensors, userId, promptInfo, [all …]
|
D | AuthService.java | 271 IBiometricServiceReceiver receiver, String opPackageName, PromptInfo promptInfo) in authenticate() argument 290 if (token == null || receiver == null || opPackageName == null || promptInfo == null) { in authenticate() 301 if (promptInfo.requiresTestOrInternalPermission()) { in authenticate() 309 if (promptInfo.requiresInternalPermission()) { in authenticate() 312 if (promptInfo.requiresAdvancedPermission()) { in authenticate() 324 token, sessionId, userId, receiver, opPackageName, promptInfo); in authenticate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/model/ |
D | BiometricPromptRequestTest.kt | 12 import com.android.systemui.biometrics.promptInfo in <lambda>() 47 promptInfo( in <lambda>() 89 promptInfo(title = title, description = description, contentView = contentView), in <lambda>() 104 promptInfo( in <lambda>() 131 promptInfo( in <lambda>() 144 promptInfo( in <lambda>() 154 promptInfo( in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/ |
D | PromptRepository.kt | 48 val promptInfo: StateFlow<PromptInfo?> in <lambda>() constant 74 promptInfo: PromptInfo, in <lambda>() 109 override val promptInfo = _promptInfo.asStateFlow() constant in com.android.systemui.biometrics.data.repository.PromptRepositoryImpl 141 promptInfo: PromptInfo, in appRequiresConfirmation() 152 _promptInfo.value = promptInfo in appRequiresConfirmation()
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 84 fun isDeviceCredentialAllowed(promptInfo: PromptInfo): Boolean = in isDeviceCredentialAllowed() 85 (promptInfo.authenticators and Authenticators.DEVICE_CREDENTIAL) != 0 in isDeviceCredentialAllowed() 88 fun isBiometricAllowed(promptInfo: PromptInfo): Boolean = in isDeviceCredentialAllowed() 89 (promptInfo.authenticators and Authenticators.BIOMETRIC_WEAK) != 0 in isDeviceCredentialAllowed()
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | BiometricPrompt.java | 825 private BiometricPrompt(Context context, PromptInfo promptInfo, ButtonInfo negativeButtonInfo, in BiometricPrompt() argument 828 mPromptInfo = promptInfo; in BiometricPrompt() 1499 final PromptInfo promptInfo; in authenticateInternal() local 1508 promptInfo = new PromptInfo(parcel); in authenticateInternal() 1509 if (promptInfo.getAuthenticators() == Authenticators.EMPTY_SET) { in authenticateInternal() 1510 promptInfo.setAuthenticators(Authenticators.BIOMETRIC_STRONG); in authenticateInternal() 1513 promptInfo = mPromptInfo; in authenticateInternal() 1517 mBiometricServiceReceiver, mContext.getPackageName(), promptInfo); in authenticateInternal()
|
D | IAuthService.aidl | 52 IBiometricServiceReceiver receiver, String opPackageName, in PromptInfo promptInfo); in authenticate() argument
|
D | IBiometricService.aidl | 46 IBiometricServiceReceiver receiver, String opPackageName, in PromptInfo promptInfo); in authenticate() argument
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | AuthControllerTest.java | 969 PromptInfo promptInfo = createTestPromptInfo(); in testShowDialog_whenOwnerNotInForeground() local 970 promptInfo.setAllowBackgroundAuthentication(false); in testShowDialog_whenOwnerNotInForeground() 972 mAuthController.showAuthenticationDialog(promptInfo, in testShowDialog_whenOwnerNotInForeground() 1009 PromptInfo promptInfo = new PromptInfo(); in createTestPromptInfo() local 1011 promptInfo.setTitle("Title"); in createTestPromptInfo() 1012 promptInfo.setSubtitle("Subtitle"); in createTestPromptInfo() 1013 promptInfo.setDescription("Description"); in createTestPromptInfo() 1014 promptInfo.setNegativeButtonText("Negative Button"); in createTestPromptInfo() 1018 promptInfo.setConfirmationRequested(true); in createTestPromptInfo() 1020 return promptInfo; in createTestPromptInfo() [all …]
|
D | BiometricTestExtensions.kt | 120 internal fun promptInfo( in promptInfo() method
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/ |
D | PromptCredentialInteractorTest.kt | 12 import com.android.systemui.biometrics.promptInfo in <lambda>() 351 promptInfo: PromptInfo, in <lambda>() 359 promptInfo, in <lambda>() 376 promptInfo(),
|
D | CredentialInteractorImplTest.kt | 15 import com.android.systemui.biometrics.promptInfo 217 promptInfo(), in pinRequest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthController.java | 915 public void showAuthenticationDialog(PromptInfo promptInfo, IBiometricSysuiReceiver receiver, in showAuthenticationDialog() argument 918 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in showAuthenticationDialog() 933 args.arg1 = promptInfo; in showAuthenticationDialog() 1208 final PromptInfo promptInfo = (PromptInfo) args.arg1; in showDialog() local 1223 promptInfo, in showDialog() 1264 if (!promptInfo.isAllowBackgroundAuthentication() && !isOwnerInForeground()) { in showDialog() 1306 PromptInfo promptInfo, boolean requireConfirmation, int userId, int[] sensorIds, in buildDialog() argument 1316 config.mPromptInfo = promptInfo; in buildDialog()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
D | CredentialViewModelTest.kt | 10 import com.android.systemui.biometrics.promptInfo in <lambda>() 175 promptRepository.setPrompt(promptInfo(), USER_ID, REQUEST_ID, OPERATION_ID, kind) in <lambda>()
|