Home
last modified time | relevance | path

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

12

/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/
DBiometricHandler.kt24 import android.hardware.biometrics.BiometricPrompt in <lambda>()
95 val biometricAuthenticationResult: BiometricPrompt.AuthenticationResult, in <lambda>()
115 sendDataToProvider: (EntryInfo, BiometricPrompt.AuthenticationResult?, BiometricError?) -> Unit, in <lambda>()
143 val callback: BiometricPrompt.AuthenticationCallback = in <lambda>()
163 sendDataToProvider: (EntryInfo, BiometricPrompt.AuthenticationResult?, BiometricError?) -> Unit, in runBiometricFlowForCreate()
190 val callback: BiometricPrompt.AuthenticationCallback = in runBiometricFlowForCreate()
211 callback: BiometricPrompt.AuthenticationCallback, in runBiometricFlow()
234 BiometricPrompt.CryptoObject(cryptoOpId), in runBiometricFlow()
311 ): BiometricPrompt { in setupBiometricPrompt()
320 val biometricPromptBuilder = BiometricPrompt.Builder(context) in setupBiometricPrompt()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java28 import android.hardware.biometrics.BiometricPrompt;
244 BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED), in testGetAuthenticationTypeForResult_getsCorrectType()
245 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL); in testGetAuthenticationTypeForResult_getsCorrectType()
247 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED), in testGetAuthenticationTypeForResult_getsCorrectType()
248 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testGetAuthenticationTypeForResult_getsCorrectType()
250 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED), in testGetAuthenticationTypeForResult_getsCorrectType()
251 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testGetAuthenticationTypeForResult_getsCorrectType()
256 Utils.getAuthenticationTypeForResult(BiometricPrompt.DISMISSED_REASON_NEGATIVE); in testGetAuthResultType_throwsForInvalidReason()
DBiometricServiceTest.java64 import android.hardware.biometrics.BiometricPrompt;
671 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED, in testAuthenticate_happyPathWithoutConfirmation()
682 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testAuthenticate_happyPathWithoutConfirmation()
745 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED, in testAuthenticate_happyPathWithConfirmation()
754 BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC); in testAuthenticate_happyPathWithConfirmation()
825 eq(BiometricPrompt.BIOMETRIC_ERROR_CANCELED), in testRequestAuthentication_whenAlreadyAuthenticating()
939 BiometricPrompt.DISMISSED_REASON_ERROR, null /* credentialAttestation */); in testErrorFromHal_whileAuthenticating_waitsForSysUIBeforeNotifyingClient()
1010 BiometricPrompt.BIOMETRIC_ERROR_LOCKOUT); in testBiometricAuth_whenBiometricLockoutTimed_sendsErrorAndModality()
1017 BiometricPrompt.BIOMETRIC_ERROR_LOCKOUT_PERMANENT); in testBiometricAuth_whenBiometricLockoutPermanent_sendsErrorAndModality()
1039 BiometricPrompt.BIOMETRIC_ERROR_LOCKOUT); in testMultiBiometricAuth_whenLockoutTimed_sendsErrorAndModality()
[all …]
DAuthSessionTest.java22 import static android.hardware.biometrics.BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED;
23 import static android.hardware.biometrics.BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_RE…
24 import static android.hardware.biometrics.BiometricPrompt.DISMISSED_REASON_NEGATIVE;
25 import static android.hardware.biometrics.BiometricPrompt.DISMISSED_REASON_USER_CANCEL;
/frameworks/base/core/tests/coretests/src/android/hardware/biometrics/
DBiometricPromptTest.java62 private BiometricPrompt mBiometricPrompt;
72 mBiometricPrompt = new BiometricPrompt.Builder(mContext) in setUp()
90 BiometricPrompt.AuthenticationCallback callback = in testCancellationAfterAuthenticationFailed()
91 new BiometricPrompt.AuthenticationCallback() { in testCancellationAfterAuthenticationFailed()
113 () -> new BiometricPrompt.Builder(mContext).setLogoDescription(null) in testLogoDescription_null()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthSession.java48 import android.hardware.biometrics.BiometricPrompt;
764 private void logOnDialogDismissed(@BiometricPrompt.DismissedReason int reason) { in logOnDialogDismissed()
765 if (reason == BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED) { in logOnDialogDismissed()
798 case BiometricPrompt.DISMISSED_REASON_NEGATIVE: in logOnDialogDismissed()
801 case BiometricPrompt.DISMISSED_REASON_USER_CANCEL: in logOnDialogDismissed()
834 void onDialogDismissed(@BiometricPrompt.DismissedReason int reason, in onDialogDismissed()
839 case BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED: in onDialogDismissed()
845 case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED: in onDialogDismissed()
846 case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED: in onDialogDismissed()
858 case BiometricPrompt.DISMISSED_REASON_NEGATIVE: in onDialogDismissed()
[all …]
DUtils.java49 import android.hardware.biometrics.BiometricPrompt;
50 import android.hardware.biometrics.BiometricPrompt.AuthenticationResultType;
328 case BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED: in getAuthenticationTypeForResult()
329 return BiometricPrompt.AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL; in getAuthenticationTypeForResult()
331 case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED: in getAuthenticationTypeForResult()
332 case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED: in getAuthenticationTypeForResult()
333 return BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC; in getAuthenticationTypeForResult()
DBiometricService.java43 import android.hardware.biometrics.BiometricPrompt;
478 public void onDialogDismissed(@BiometricPrompt.DismissedReason int reason,
1263 private void handleOnDismissed(long requestId, @BiometricPrompt.DismissedReason int reason,
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DAuthControllerTest.java53 import android.hardware.biometrics.BiometricPrompt;
369 eq(BiometricPrompt.DISMISSED_REASON_USER_CANCEL), in testSendsReasonUserCanceled_whenDismissedByUserCancel()
380 eq(BiometricPrompt.DISMISSED_REASON_NEGATIVE), in testSendsReasonNegative_whenDismissedByButtonNegative()
391 eq(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED), in testSendsReasonConfirmed_whenDismissedByButtonPositive()
402 eq(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED), in testSendsReasonConfirmNotRequired_whenDismissedByAuthenticated()
413 eq(BiometricPrompt.DISMISSED_REASON_ERROR), in testSendsReasonError_whenDismissedByError()
424 eq(BiometricPrompt.DISMISSED_REASON_SERVER_REQUESTED), in testSendsReasonServerRequested_whenDismissedByServer()
438 eq(BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED), in testSendsReasonCredentialConfirmed_whenDeviceCredentialAuthenticated()
449 eq(BiometricPrompt.DISMISSED_REASON_CONTENT_VIEW_MORE_OPTIONS), in testSendsReasonContentViewMoreOptions_whenButtonPressed()
682 eq(BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED), in testCancelAuthentication_whenCredentialConfirmed_doesntCrash()
[all …]
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricPrompt.java75 public class BiometricPrompt implements BiometricAuthenticator, BiometricConstants { class
198 public BiometricPrompt.Builder setLogoRes(@DrawableRes int logoRes) { in setLogoRes()
224 public BiometricPrompt.Builder setLogoBitmap(@NonNull Bitmap logoBitmap) { in setLogoBitmap()
248 public BiometricPrompt.Builder setLogoDescription(@NonNull String logoDescription) { in setLogoDescription()
339 public BiometricPrompt.Builder setContentView(@NonNull PromptContentView view) { in setContentView()
666 public BiometricPrompt build() { in build()
685 return new BiometricPrompt(mContext, mPromptInfo, mNegativeButtonInfo, in build()
825 private BiometricPrompt(Context context, PromptInfo promptInfo, ButtonInfo negativeButtonInfo, in BiometricPrompt() method in BiometricPrompt
1525 BiometricPrompt.BIOMETRIC_ERROR_HW_UNAVAILABLE, in authenticateInternal()
Dflags.aconfig32 description: "Feature flag for adding a custom content view API to BiometricPrompt.Builder."
DBiometricAuthenticator.java20 import android.hardware.biometrics.BiometricPrompt.AuthenticationResultType;
DPromptContentViewWithMoreOptionsButton.java28 import android.hardware.biometrics.BiometricPrompt.ButtonInfo;
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java40 import android.hardware.biometrics.BiometricPrompt;
220 mReceiver.onDialogDismissed(BiometricPrompt.DISMISSED_REASON_USER_CANCEL, in closeDialog()
260 BiometricPrompt.DISMISSED_REASON_USER_CANCEL, in cancelIfOwnerIsNotInForeground()
527 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_USER_CANCEL, in onDismissed()
532 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_NEGATIVE, in onDismissed()
537 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED, in onDismissed()
543 BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED, in onDismissed()
548 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_ERROR, in onDismissed()
553 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_SERVER_REQUESTED, in onDismissed()
558 sendResultAndCleanUp(BiometricPrompt.DISMISSED_REASON_CREDENTIAL_CONFIRMED, in onDismissed()
[all …]
DUdfpsController.java37 import android.hardware.biometrics.BiometricPrompt;
393 final BiometricPrompt.AuthenticationCallback authenticationCallback = in debugBiometricPrompt()
394 new BiometricPrompt.AuthenticationCallback() { in debugBiometricPrompt()
397 final BiometricPrompt biometricPrompt = new BiometricPrompt.Builder(mContext) in debugBiometricPrompt()
/frameworks/base/core/proto/android/server/
Dbiometrics.proto39 * cookies before starting the hardware and showing the BiometricPrompt.
44 * Authentication started, BiometricPrompt is showing and the hardware is authenticating.
49 * Same as {@link #STATE_AUTH_STARTED}, except the BiometricPrompt UI is done animating in.
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/
DCredentialSelectorViewModel.kt20 import android.hardware.biometrics.BiometricPrompt
21 import android.hardware.biometrics.BiometricPrompt.AuthenticationResult
241 authResult: BiometricPrompt.AuthenticationResult? = null, in getFlowOnEntrySelected()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java37 import android.hardware.biometrics.BiometricPrompt;
369 final BiometricPrompt biometricPrompt = new BiometricPrompt.Builder(promptContext)
387 final BiometricPrompt.AuthenticationCallback promptCallback =
388 new BiometricPrompt.AuthenticationCallback() {
404 BiometricPrompt.AuthenticationResult result) {
/frameworks/proto_logging/stats/enums/hardware/biometrics/
Denums.proto37 CLIENT_FINGERPRINT_MANAGER = 3; // Deprecated API before BiometricPrompt was introduced
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricViewBinder.kt24 import android.hardware.biometrics.BiometricPrompt in <lambda>()
639 delay(BiometricPrompt.HIDE_DIALOG_DELAY.toLong()) in onError()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptViewModel.kt29 import android.hardware.biometrics.BiometricPrompt in <lambda>()
728 delay(BiometricPrompt.HIDE_DIALOG_DELAY.toLong()) in <lambda>()
793 delay(BiometricPrompt.HIDE_DIALOG_DELAY.toLong()) in <lambda>()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/createflow/
DCreateCredentialComponents.kt20 import android.hardware.biometrics.BiometricPrompt in <lambda>()
637 BiometricPrompt.AuthenticationResult?,
/frameworks/base/keystore/java/android/security/keystore/
DKeyProtection.java26 import android.hardware.biometrics.BiometricPrompt;
DKeyGenParameterSpec.java28 import android.hardware.biometrics.BiometricPrompt;
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/getflow/
DGetCredentialComponents.kt22 import android.hardware.biometrics.BiometricPrompt in <lambda>()
257 BiometricPrompt.AuthenticationResult?,

12