Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java29 import android.hardware.biometrics.BiometricPrompt;
46 bundle.putBoolean(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL, allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
47 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
50 assertNull(bundle.get(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL)); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
51 assertEquals(bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED), authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
60 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
63 assertNull(bundle.get(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL)); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
64 assertEquals(bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED), authenticators); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
72 bundle.putBoolean(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL, allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andNoKeyAuthenticators()
75 assertNull(bundle.get(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL)); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andNoKeyAuthenticators()
[all …]
DBiometricServiceTest.java47 import android.hardware.biometrics.BiometricPrompt;
500 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED, in testAuthenticate_happyPathWithoutConfirmation()
511 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testAuthenticate_happyPathWithoutConfirmation()
530 .getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED)); in testAuthenticate_noBiometrics_credentialAllowed()
574 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED, in testAuthenticate_happyPathWithConfirmation()
583 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testAuthenticate_happyPathWithConfirmation()
749 BiometricPrompt.DISMISSED_REASON_ERROR, null /* credentialAttestation */); in testErrorFromHal_whileAuthenticating_waitsForSysUIBeforeNotifyingClient()
781 BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED)); in testErrorFromHal_whilePreparingAuthentication_credentialAllowed()
820 bundle.putBoolean(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL, allowDeviceCredential); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
821 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthControllerTest.java44 import android.hardware.biometrics.BiometricPrompt;
114 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonUserCanceled_whenDismissedByUserCancel()
118 eq(BiometricPrompt.DISMISSED_REASON_USER_CANCEL), in testSendsReasonUserCanceled_whenDismissedByUserCancel()
124 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonNegative_whenDismissedByButtonNegative()
128 eq(BiometricPrompt.DISMISSED_REASON_NEGATIVE), in testSendsReasonNegative_whenDismissedByButtonNegative()
134 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonConfirmed_whenDismissedByButtonPositive()
138 eq(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED), in testSendsReasonConfirmed_whenDismissedByButtonPositive()
144 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonConfirmNotRequired_whenDismissedByAuthenticated()
148 eq(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED), in testSendsReasonConfirmNotRequired_whenDismissedByAuthenticated()
154 showDialog(Authenticators.BIOMETRIC_WEAK, BiometricPrompt.TYPE_FACE); in testSendsReasonError_whenDismissedByError()
[all …]
DAuthBiometricViewTest.java29 import android.hardware.biometrics.BiometricPrompt;
295 bundle.putCharSequence(BiometricPrompt.KEY_TITLE, "Title"); in buildBiometricPromptBundle()
300 bundle.putCharSequence(BiometricPrompt.KEY_NEGATIVE_TEXT, "Negative"); in buildBiometricPromptBundle()
302 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in buildBiometricPromptBundle()
DAuthContainerViewTest.java38 import android.hardware.biometrics.BiometricPrompt;
229 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in initializeContainer()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java24 import android.hardware.biometrics.BiometricPrompt;
25 import android.hardware.biometrics.BiometricPrompt.AuthenticationResultType;
57 bundle.getBoolean(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL, false); in combineAuthenticatorBundles()
58 bundle.remove(BiometricPrompt.KEY_ALLOW_DEVICE_CREDENTIAL); in combineAuthenticatorBundles()
61 if (bundle.containsKey(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED)) { in combineAuthenticatorBundles()
63 authenticators = bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, 0); in combineAuthenticatorBundles()
71 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in combineAuthenticatorBundles()
87 return isCredentialRequested(bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED)); in isCredentialRequested()
109 bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED)); in getPublicBiometricStrength()
154 final int authenticators = bundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED); in isValidAuthenticatorConfig()
[all …]
DAuthService.java33 import android.hardware.biometrics.BiometricPrompt;
155 if (bundle.getBoolean(BiometricPrompt.EXTRA_DISALLOW_BIOMETRICS_IF_POLICY_EXISTS) in authenticate()
156 || bundle.getBoolean(BiometricPrompt.KEY_USE_DEFAULT_TITLE, false) in authenticate()
157 || bundle.getCharSequence(BiometricPrompt.KEY_DEVICE_CREDENTIAL_TITLE) != null in authenticate()
159 BiometricPrompt.KEY_DEVICE_CREDENTIAL_SUBTITLE) != null in authenticate()
161 BiometricPrompt.KEY_DEVICE_CREDENTIAL_DESCRIPTION) != null in authenticate()
162 || bundle.getBoolean(BiometricPrompt.KEY_RECEIVE_SYSTEM_EVENTS, false)) { in authenticate()
DBiometricService.java38 import android.hardware.biometrics.BiometricPrompt;
712 if (bundle.getBoolean(BiometricPrompt.KEY_USE_DEFAULT_TITLE, false)) { in authenticate()
713 if (TextUtils.isEmpty(bundle.getCharSequence(BiometricPrompt.KEY_TITLE))) { in authenticate()
714 bundle.putCharSequence(BiometricPrompt.KEY_TITLE, in authenticate()
761 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, authenticators); in canAuthenticate()
1215 bundle.putInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, in checkAndGetAuthenticators()
1261 if (reason == BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED) { in logDialogDismissed()
1292 int error = reason == BiometricPrompt.DISMISSED_REASON_NEGATIVE in logDialogDismissed()
1294 : reason == BiometricPrompt.DISMISSED_REASON_USER_CANCEL in logDialogDismissed()
1474 BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED, 0); in handleOnError()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java34 import android.hardware.biometrics.BiometricPrompt;
103 mReceiver.onDialogDismissed(BiometricPrompt.DISMISSED_REASON_USER_CANCEL,
129 BiometricPrompt.DISMISSED_REASON_USER_CANCEL,
184 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_USER_CANCEL, in onDismissed()
189 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_NEGATIVE, in onDismissed()
194 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED, in onDismissed()
200 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED, in onDismissed()
205 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_ERROR, in onDismissed()
210 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_SERVER_REQUESTED, in onDismissed()
215 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED, in onDismissed()
[all …]
DAuthCredentialView.java24 import android.hardware.biometrics.BiometricPrompt;
469 bundle.getCharSequence(BiometricPrompt.KEY_DEVICE_CREDENTIAL_TITLE); in getTitle()
471 : bundle.getCharSequence(BiometricPrompt.KEY_TITLE); in getTitle()
477 bundle.getCharSequence(BiometricPrompt.KEY_DEVICE_CREDENTIAL_SUBTITLE); in getSubtitle()
479 : bundle.getCharSequence(BiometricPrompt.KEY_SUBTITLE); in getSubtitle()
485 bundle.getCharSequence(BiometricPrompt.KEY_DEVICE_CREDENTIAL_DESCRIPTION); in getDescription()
487 : bundle.getCharSequence(BiometricPrompt.KEY_DESCRIPTION); in getDescription()
DUtils.java25 import android.hardware.biometrics.BiometricPrompt;
81 return biometricPromptBundle.getInt(BiometricPrompt.KEY_AUTHENTICATORS_ALLOWED); in getAuthenticators()
DAuthBiometricView.java27 import android.hardware.biometrics.BiometricPrompt;
147 return BiometricPrompt.HIDE_DIALOG_DELAY; in getDelayAfterError()
570 mHandler.postDelayed(resetMessageRunnable, BiometricPrompt.HIDE_DIALOG_DELAY); in showTemporaryMessage()
639 setText(mTitleView, mBiometricPromptBundle.getString(BiometricPrompt.KEY_TITLE)); in onAttachedToWindowInternal()
663 negativeText = mBiometricPromptBundle.getString(BiometricPrompt.KEY_NEGATIVE_TEXT); in onAttachedToWindowInternal()
668 mBiometricPromptBundle.getString(BiometricPrompt.KEY_SUBTITLE)); in onAttachedToWindowInternal()
671 mBiometricPromptBundle.getString(BiometricPrompt.KEY_DESCRIPTION)); in onAttachedToWindowInternal()
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricPrompt.java57 public class BiometricPrompt implements BiometricAuthenticator, BiometricConstants { class
429 public BiometricPrompt build() { in build()
447 return new BiometricPrompt(mContext, mBundle, mPositiveButtonInfo, mNegativeButtonInfo); in build()
539 private BiometricPrompt(Context context, Bundle bundle, in BiometricPrompt() method in BiometricPrompt
985 callback.onAuthenticationError(BiometricPrompt.BIOMETRIC_ERROR_HW_UNAVAILABLE, in authenticateInternal()
DBiometricAuthenticator.java21 import android.hardware.biometrics.BiometricPrompt.AuthenticationResultType;
/frameworks/base/core/proto/android/hardware/biometrics/
Denums.proto37 CLIENT_FINGERPRINT_MANAGER = 3; // Deprecated API before BiometricPrompt was introduced
/frameworks/base/keystore/java/android/security/keystore/
DKeyProtection.java25 import android.hardware.biometrics.BiometricPrompt;
DKeyGenParameterSpec.java27 import android.hardware.biometrics.BiometricPrompt;
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java35 import android.hardware.biometrics.BiometricPrompt;
/frameworks/base/api/
Dlint-baseline.txt480 HiddenSuperclass: android.hardware.biometrics.BiometricPrompt.AuthenticationCallback:
482 HiddenSuperclass: android.hardware.biometrics.BiometricPrompt.AuthenticationResult:
484 HiddenSuperclass: android.hardware.biometrics.BiometricPrompt.CryptoObject:
Dcurrent.txt17073 public class BiometricPrompt {
17074BiometricPrompt.CryptoObject, @NonNull android.os.CancellationSignal, @NonNull java.util.concurren…
17075 … java.util.concurrent.Executor, @NonNull android.hardware.biometrics.BiometricPrompt.Authenticatio…
17105 public abstract static class BiometricPrompt.AuthenticationCallback {
17106 ctor public BiometricPrompt.AuthenticationCallback();
17110 …method public void onAuthenticationSucceeded(android.hardware.biometrics.BiometricPrompt.Authentic…
17113 public static class BiometricPrompt.AuthenticationResult {
17115 method public android.hardware.biometrics.BiometricPrompt.CryptoObject getCryptoObject();
17118 public static class BiometricPrompt.Builder {
17119 ctor public BiometricPrompt.Builder(android.content.Context);
[all …]
/frameworks/base/core/proto/android/app/
Dsettings_enums.proto2226 // ConfirmDeviceCredentials > BiometricPrompt
/frameworks/base/cmds/statsd/src/
Datoms.proto4099 // If authentication requires user confirmation. See BiometricPrompt's
4112 // Time it took to authenticate. For BiometricPrompt where setRequireConfirmation(false) is
8383 // Whether or not face unlock is allowed for apps (through BiometricPrompt).
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto6663 // ConfirmDeviceCredentials > BiometricPrompt