Home
last modified time | relevance | path

Searched refs:gkPwHandle (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/
DGatekeeperPasswordProviderTest.java63 final long gkPwHandle = 1L; in testRequestGatekeeperHatWithHandle_success() local
67 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithHandle_success()
68 .thenReturn(newGoodCredential(gkPwHandle, expectedToken)); in testRequestGatekeeperHatWithHandle_success()
69 final byte[] actualToken = mGatekeeperPasswordProvider.requestGatekeeperHat(gkPwHandle, in testRequestGatekeeperHatWithHandle_success()
81 final long gkPwHandle = 10L; in testRequestGatekeeperHatWithHandle_GatekeeperCredentialNotMatchException() local
84 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithHandle_GatekeeperCredentialNotMatchException()
87 mGatekeeperPasswordProvider.requestGatekeeperHat(gkPwHandle, challenge, userId); in testRequestGatekeeperHatWithHandle_GatekeeperCredentialNotMatchException()
92 final long gkPwHandle = 11L; in testRequestGatekeeperHatWithIntent_success() local
96 when(mLockPatternUtils.verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId)) in testRequestGatekeeperHatWithIntent_success()
97 .thenReturn(newGoodCredential(gkPwHandle, expectedToken)); in testRequestGatekeeperHatWithIntent_success()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/
DAutoCredentialViewModelTest.kt204 val gkPwHandle = 1111L in <lambda>() constant
206 newAutoCredentialViewModel(newGkPwHandleCredentialIntentExtras(userId, gkPwHandle)) in <lambda>()
215 gkPwHandle, in <lambda>()
220 .thenReturn(newGoodCredential(gkPwHandle, byteArrayOf(1))) in <lambda>()
225 }.`when`(lockPatternUtils).removeGatekeeperPasswordHandle(gkPwHandle) in <lambda>()
258 val gkPwHandle = 1111L in <lambda>() constant
260 newAutoCredentialViewModel(newGkPwHandleCredentialIntentExtras(userId, gkPwHandle)) in <lambda>()
269 gkPwHandle, in <lambda>()
305 val gkPwHandle = 3333L in <lambda>() constant
307 newAutoCredentialViewModel(newGkPwHandleCredentialIntentExtras(userId, gkPwHandle)) in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/
DAutoCredentialViewModel.kt129 val gkPwHandle = credentialModel.gkPwHandle in <lambda>() constant
133 generateChallenge(gkPwHandle, false, scope) in <lambda>()
142 gkPwHandle: Long, in <lambda>()
150 val newToken = requestGatekeeperHat(gkPwHandle, challenge, userId) in <lambda>()
158 lockPatternUtils.removeGatekeeperPasswordHandle(gkPwHandle) in <lambda>()
199 val gkPwHandle = it.getLongExtra( in <lambda>() constant
205 generateChallenge(gkPwHandle, true, scope) in <lambda>()
219 private fun requestGatekeeperHat(gkPwHandle: Long, challenge: Long, userId: Int): ByteArray? { in <lambda>()
221 .verifyGatekeeperPasswordHandle(gkPwHandle, challenge, userId) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/
DMultiBiometricEnrollHelper.java59 boolean enrollFace, boolean enrollFingerprint, long gkPwHandle, in MultiBiometricEnrollHelper() argument
65 mGkPwHandle = gkPwHandle; in MultiBiometricEnrollHelper()
76 boolean enrollFace, boolean enrollFingerprint, long gkPwHandle) { in MultiBiometricEnrollHelper() argument
77 this(activity, userId, enrollFace, enrollFingerprint, gkPwHandle, in MultiBiometricEnrollHelper()
82 (challenge) -> BiometricUtils.requestGatekeeperHat(activity, gkPwHandle, in MultiBiometricEnrollHelper()
DParentalConsentHelper.java69 public ParentalConsentHelper(@Nullable Long gkPwHandle) { in ParentalConsentHelper() argument
70 mGkPwHandle = gkPwHandle != null ? gkPwHandle : 0L; in ParentalConsentHelper()
DBiometricUtils.java141 public static byte[] requestGatekeeperHat(@NonNull Context context, long gkPwHandle, int userId, in requestGatekeeperHat() argument
144 final VerifyCredentialResponse response = utils.verifyGatekeeperPasswordHandle(gkPwHandle, in requestGatekeeperHat()
332 @Nullable byte[] hardwareAuthToken, @Nullable Long gkPwHandle, int userId) { in launchEnrollForResult() argument
337 if (gkPwHandle != null) { in launchEnrollForResult()
338 intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_GK_PW_HANDLE, (long) gkPwHandle); in launchEnrollForResult()
DGatekeeperPasswordProvider.java72 public byte[] requestGatekeeperHat(long gkPwHandle, long challenge, int userId) { in requestGatekeeperHat() argument
74 gkPwHandle, challenge, userId); in requestGatekeeperHat()
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/model/
DCredentialModel.kt44 … var gkPwHandle: Long = (bundle ?: Bundle()).getLong(EXTRA_KEY_GK_PW_HANDLE, INVALID_GK_PW_HANDLE) variable
48 get() = gkPwHandle != INVALID_GK_PW_HANDLE
53 gkPwHandle = INVALID_GK_PW_HANDLE in clearGkPwHandle()
85 val gkPwHandleLen = "$gkPwHandle".length in toString()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/model/
DCredentialModelTest.kt45 token: ByteArray?, gkPwHandle: Long in newCredentialModelIntentExtras()
51 bundle.putLong(ChooseLockSettingsHelper.EXTRA_KEY_GK_PW_HANDLE, gkPwHandle) in newCredentialModelIntentExtras()
72 fun newGkPwHandleCredentialIntentExtras(userId: Int, gkPwHandle: Long): Bundle { in newGkPwHandleCredentialIntentExtras()
77 gkPwHandle in newGkPwHandleCredentialIntentExtras()
/packages/apps/Settings/src/com/android/settings/biometrics/combination/
DBiometricsSettingsBase.java228 protected byte[] requestGatekeeperHat(@NonNull Context context, long gkPwHandle, int userId, in requestGatekeeperHat() argument
230 return BiometricUtils.requestGatekeeperHat(context, gkPwHandle, userId, challenge); in requestGatekeeperHat()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollIntroductionTest.java386 private VerifyCredentialResponse newGoodCredential(long gkPwHandle, @NonNull byte[] hat) { in newGoodCredential() argument
388 .setGatekeeperPasswordHandle(gkPwHandle) in newGoodCredential()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintSettings.java1092 private void addFirstFingerprint(@Nullable Long gkPwHandle) { in addFirstFingerprint() argument
1106 if (gkPwHandle != null) { in addFirstFingerprint()
1108 gkPwHandle.longValue()); in addFirstFingerprint()