Home
last modified time | relevance | path

Searched refs:promptInfo (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java45 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 …]
DAuthServiceTest.java191 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate() local
201 promptInfo); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate()
209 eq(promptInfo)); in testAuthenticate_appOpsOk_callsBiometricServiceAuthenticate()
220 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_appOpsDenied_doesNotCallBiometricService() local
230 promptInfo); in testAuthenticate_appOpsDenied_doesNotCallBiometricService()
238 eq(promptInfo)); in testAuthenticate_appOpsDenied_doesNotCallBiometricService()
247 final PromptInfo promptInfo = new PromptInfo(); in testAuthenticate_missingRequiredParam() local
257 promptInfo); in testAuthenticate_missingRequiredParam()
DAuthSessionTest.java420 PromptInfo promptInfo, boolean checkDevicePolicyManager) throws RemoteException { in createPreAuthInfo() argument
426 promptInfo, in createPreAuthInfo()
436 final PromptInfo promptInfo = createPromptInfo(authenticators); in createAuthSession() local
438 final PreAuthInfo preAuthInfo = createPreAuthInfo(sensors, userId, promptInfo, in createAuthSession()
442 mSensorReceiver, mClientReceiver, TEST_PACKAGE, promptInfo, in createAuthSession()
447 PromptInfo promptInfo = new PromptInfo(); in createPromptInfo() local
448 promptInfo.setAuthenticators(authenticators); in createPromptInfo()
449 return promptInfo; in createPromptInfo()
DBiometricServiceTest.java913 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators() local
915 promptInfo.setDeviceCredentialAllowed(allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
916 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
917 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
919 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
920 assertEquals(authenticators, promptInfo.getAuthenticators()); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
927 final PromptInfo promptInfo = new PromptInfo(); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators() local
929 promptInfo.setAuthenticators(authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
930 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
932 assertFalse(promptInfo.isDeviceCredentialAllowed()); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricTestExtensions.kt63 val promptInfo = PromptInfo() in buildPromptInfo() constant
64 promptInfo.title = "Title" in buildPromptInfo()
69 promptInfo.negativeButtonText = "Negative" in buildPromptInfo()
71 promptInfo.authenticators = authenticators in buildPromptInfo()
72 return promptInfo in buildPromptInfo()
DAuthControllerTest.java930 PromptInfo promptInfo = new PromptInfo(); in createTestPromptInfo() local
932 promptInfo.setTitle("Title"); in createTestPromptInfo()
933 promptInfo.setSubtitle("Subtitle"); in createTestPromptInfo()
934 promptInfo.setDescription("Description"); in createTestPromptInfo()
935 promptInfo.setNegativeButtonText("Negative Button"); in createTestPromptInfo()
939 promptInfo.setConfirmationRequested(true); in createTestPromptInfo()
941 return promptInfo; in createTestPromptInfo()
974 protected AuthDialog buildDialog(DelayableExecutor bgExecutor, PromptInfo promptInfo, in buildDialog() argument
981 mLastBiometricPromptInfo = promptInfo; in buildDialog()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java95 static void combineAuthenticatorBundles(PromptInfo promptInfo) { in combineAuthenticatorBundles() argument
97 final boolean deviceCredentialAllowed = promptInfo.isDeviceCredentialAllowed(); in combineAuthenticatorBundles()
98 promptInfo.setDeviceCredentialAllowed(false); in combineAuthenticatorBundles()
101 if (promptInfo.getAuthenticators() != 0) { in combineAuthenticatorBundles()
103 authenticators = promptInfo.getAuthenticators(); in combineAuthenticatorBundles()
111 promptInfo.setAuthenticators(authenticators); in combineAuthenticatorBundles()
127 static boolean isCredentialRequested(PromptInfo promptInfo) { in isCredentialRequested() argument
128 return isCredentialRequested(promptInfo.getAuthenticators()); in isCredentialRequested()
149 static int getPublicBiometricStrength(PromptInfo promptInfo) { in getPublicBiometricStrength() argument
150 return getPublicBiometricStrength(promptInfo.getAuthenticators()); in getPublicBiometricStrength()
[all …]
DPreAuthInfo.java98 int userId, PromptInfo promptInfo, String opPackageName, in create() argument
102 final boolean confirmationRequested = promptInfo.isConfirmationRequested(); in create()
103 final boolean biometricRequested = Utils.isBiometricRequested(promptInfo); in create()
104 final int requestedStrength = Utils.getPublicBiometricStrength(promptInfo); in create()
105 final boolean credentialRequested = Utils.isCredentialRequested(promptInfo); in create()
125 promptInfo.getAllowedSensorIds(), in create()
126 promptInfo.isIgnoreEnrollmentState(), in create()
151 promptInfo.isIgnoreEnrollmentState(), userId, context); in create()
DBiometricService.java535 IBiometricServiceReceiver receiver, String opPackageName, PromptInfo promptInfo) {
538 if (token == null || receiver == null || opPackageName == null || promptInfo == null) {
543 if (!Utils.isValidAuthenticatorConfig(promptInfo)) {
547 Utils.combineAuthenticatorBundles(promptInfo);
550 if (promptInfo.isUseDefaultTitle()) {
551 if (TextUtils.isEmpty(promptInfo.getTitle())) {
552 promptInfo.setTitle(getContext()
559 token, requestId, operationId, userId, receiver, opPackageName, promptInfo));
868 final PromptInfo promptInfo = new PromptInfo();
869 promptInfo.setAuthenticators(authenticators);
[all …]
DAuthService.java215 IBiometricServiceReceiver receiver, String opPackageName, PromptInfo promptInfo) in authenticate() argument
234 if (token == null || receiver == null || opPackageName == null || promptInfo == null) { in authenticate()
245 if (promptInfo.containsTestConfigurations()) { in authenticate()
253 if (promptInfo.containsPrivateApiConfigurations()) { in authenticate()
260 token, sessionId, userId, receiver, opPackageName, promptInfo); in authenticate()
DAuthSession.java164 @NonNull PromptInfo promptInfo, in AuthSession() argument
182 mPromptInfo = promptInfo; in AuthSession()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthCredentialView.java207 void setPromptInfo(PromptInfo promptInfo) { in setPromptInfo() argument
208 mPromptInfo = promptInfo; in setPromptInfo()
549 private static CharSequence getTitle(@NonNull PromptInfo promptInfo) { in getTitle() argument
550 final CharSequence credentialTitle = promptInfo.getDeviceCredentialTitle(); in getTitle()
551 return credentialTitle != null ? credentialTitle : promptInfo.getTitle(); in getTitle()
555 private static CharSequence getSubtitle(@NonNull PromptInfo promptInfo) { in getSubtitle() argument
556 final CharSequence credentialSubtitle = promptInfo.getDeviceCredentialSubtitle(); in getSubtitle()
557 return credentialSubtitle != null ? credentialSubtitle : promptInfo.getSubtitle(); in getSubtitle()
561 private static CharSequence getDescription(@NonNull PromptInfo promptInfo) { in getDescription() argument
562 final CharSequence credentialDescription = promptInfo.getDeviceCredentialDescription(); in getDescription()
[all …]
DUtils.kt78 fun isDeviceCredentialAllowed(promptInfo: PromptInfo): Boolean = in isDeviceCredentialAllowed()
79 (promptInfo.authenticators and Authenticators.DEVICE_CREDENTIAL) != 0 in isDeviceCredentialAllowed()
82 fun isBiometricAllowed(promptInfo: PromptInfo): Boolean = in isDeviceCredentialAllowed()
83 (promptInfo.authenticators and Authenticators.BIOMETRIC_WEAK) != 0 in isDeviceCredentialAllowed()
DAuthController.java883 public void showAuthenticationDialog(PromptInfo promptInfo, IBiometricSysuiReceiver receiver, in showAuthenticationDialog() argument
887 @Authenticators.Types final int authenticators = promptInfo.getAuthenticators(); in showAuthenticationDialog()
903 args.arg1 = promptInfo; in showAuthenticationDialog()
1109 final PromptInfo promptInfo = (PromptInfo) args.arg1; in showDialog() local
1122 promptInfo, in showDialog()
1162 if (!promptInfo.isAllowBackgroundAuthentication()) { in showDialog()
1201 PromptInfo promptInfo = (PromptInfo) mCurrentDialogArgs.arg1; in onConfigurationChanged() local
1202 promptInfo.setAuthenticators(Authenticators.DEVICE_CREDENTIAL); in onConfigurationChanged()
1218 PromptInfo promptInfo, boolean requireConfirmation, int userId, int[] sensorIds, in buildDialog() argument
1227 .setPromptInfo(promptInfo) in buildDialog()
DAuthBiometricView.java273 void setPromptInfo(PromptInfo promptInfo) { in setPromptInfo() argument
274 mPromptInfo = promptInfo; in setPromptInfo()
DAuthContainerView.java173 public Builder setPromptInfo(PromptInfo promptInfo) { in setPromptInfo() argument
174 mConfig.mPromptInfo = promptInfo; in setPromptInfo()
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricPrompt.java583 private BiometricPrompt(Context context, PromptInfo promptInfo, ButtonInfo negativeButtonInfo) { in BiometricPrompt() argument
585 mPromptInfo = promptInfo; in BiometricPrompt()
1114 final PromptInfo promptInfo; in authenticateInternal() local
1123 promptInfo = new PromptInfo(parcel); in authenticateInternal()
1124 if (promptInfo.getAuthenticators() == Authenticators.EMPTY_SET) { in authenticateInternal()
1125 promptInfo.setAuthenticators(Authenticators.BIOMETRIC_STRONG); in authenticateInternal()
1128 promptInfo = mPromptInfo; in authenticateInternal()
1132 mBiometricServiceReceiver, mContext.getPackageName(), promptInfo); in authenticateInternal()
DIAuthService.aidl48 IBiometricServiceReceiver receiver, String opPackageName, in PromptInfo promptInfo); in authenticate() argument
DIBiometricService.aidl43 IBiometricServiceReceiver receiver, String opPackageName, in PromptInfo promptInfo); in authenticate() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java435 PromptInfo promptInfo = new PromptInfo(); in testShowAuthenticationDialog() local
446 mCommandQueue.showAuthenticationDialog(promptInfo, receiver, sensorIds, in testShowAuthenticationDialog()
450 verify(mCallbacks).showAuthenticationDialog(eq(promptInfo), eq(receiver), eq(sensorIds), in testShowAuthenticationDialog()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBar.aidl157 void showAuthenticationDialog(in PromptInfo promptInfo, IBiometricSysuiReceiver sysuiReceiver, in showAuthenticationDialog() argument
DIStatusBarService.aidl122 void showAuthenticationDialog(in PromptInfo promptInfo, IBiometricSysuiReceiver sysuiReceiver, in showAuthenticationDialog() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java314 default void showAuthenticationDialog(PromptInfo promptInfo, in showAuthenticationDialog() argument
948 public void showAuthenticationDialog(PromptInfo promptInfo, IBiometricSysuiReceiver receiver, in showAuthenticationDialog() argument
954 args.arg1 = promptInfo; in showAuthenticationDialog()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java900 public void showAuthenticationDialog(PromptInfo promptInfo, IBiometricSysuiReceiver receiver, in showAuthenticationDialog() argument
907 mBar.showAuthenticationDialog(promptInfo, receiver, sensorIds, credentialAllowed, in showAuthenticationDialog()