Home
last modified time | relevance | path

Searched refs:hat (Results 1 – 22 of 22) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DHardwareAuthTokenUtils.java31 public static byte[] toByteArray(HardwareAuthToken hat) { in toByteArray() argument
38 writeLong(hat.challenge, array, 1 /* offset */); in toByteArray()
41 writeLong(hat.userId, array, 9 /* offset */); in toByteArray()
44 writeLong(hat.authenticatorId, array, 17 /* offset */); in toByteArray()
47 writeInt(flipIfNativelyLittle(hat.authenticatorType), array, 25 /* offset */); in toByteArray()
50 writeLong(flipIfNativelyLittle(hat.timestamp.milliSeconds), array, 29 /* offset */); in toByteArray()
53 System.arraycopy(hat.mac, 0 /* srcPos */, array, 37 /* destPos */, hat.mac.length); in toByteArray()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
H A DHardwareAuthTokenUtilsTest.java35 final byte[] hat = new byte[69]; in testByteArrayLoopBack()
37 hat[i] = (byte) i; in testByteArrayLoopBack()
40 final HardwareAuthToken hardwareAuthToken = HardwareAuthTokenUtils.toHardwareAuthToken(hat); in testByteArrayLoopBack()
43 for (int i = 0; i < hat.length; i++) { in testByteArrayLoopBack()
44 assertEquals(hat[i], hat2[i]); in testByteArrayLoopBack()
69 final byte[] hat = HardwareAuthTokenUtils.toByteArray(hardwareAuthToken); in testHardwareAuthTokenLoopBack()
71 HardwareAuthTokenUtils.toHardwareAuthToken(hat); in testHardwareAuthTokenLoopBack()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DBiometricDeferredQueue.java113 final byte[] hat = requestHatFromGatekeeperPassword(spManager, userAuthInfo, in onGenerateChallengeResult()
115 if (hat != null) { in onGenerateChallengeResult()
116 faceManager.resetLockout(sensorId, userAuthInfo.userId, hat); in onGenerateChallengeResult()
222 final byte[] hat = requestHatFromGatekeeperPassword(mSpManager, user, in processPendingLockoutsForFingerprint()
224 if (hat != null) { in processPendingLockoutsForFingerprint()
225 mFingerprintManager.resetLockout(prop.sensorId, user.userId, hat); in processPendingLockoutsForFingerprint()
265 if (hat != null) { in processPendingLockoutsForFace()
266 mFaceManager.resetLockout(prop.sensorId, user.userId, hat); in processPendingLockoutsForFace()
281 final byte[] hat = requestHatFromGatekeeperPassword(mSpManager, user, in processPendingLockoutsGeneric()
283 if (hat != null) { in processPendingLockoutsGeneric()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
H A DTestHal.java87 public ICancellationSignal enroll(HardwareAuthToken hat, in createSession() argument
163 public void setFeature(HardwareAuthToken hat, byte feature, boolean enabled) in createSession()
182 public void resetLockout(HardwareAuthToken hat) throws RemoteException { in createSession()
201 HardwareAuthToken hat, byte enrollmentType, byte[] features, in createSession()
203 return enroll(hat, enrollmentType, features, previewSurface); in createSession()
H A DFaceEnrollClient.java199 final HardwareAuthToken hat = in doEnroll() local
205 hat, EnrollmentType.DEFAULT, features, mHwPreviewHandle, in doEnroll()
216 return session.getSession().enroll(hat, EnrollmentType.DEFAULT, features, in doEnroll()
H A DSensor.java269 public void onAuthenticationSucceeded(int enrollmentId, HardwareAuthToken hat) { in onAuthenticationSucceeded() argument
281 final byte[] byteArray = HardwareAuthTokenUtils.toByteArray(hat); in onAuthenticationSucceeded()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
H A DPromptCredentialInteractorTest.kt149 val hat = ByteArray(4) regex
150 credentialInteractor.verifyCredentialResponse = { _ -> flowOf(verified(hat)) }
161 assertThat(checked!!.hat).isSameInstanceAs(hat)
267 private fun verified(hat: ByteArray) = CredentialStatus.Success.Verified(hat)
H A DCredentialInteractorImplTest.kt121 assertThat(successfulResult!!.hat).isEqualTo(result.gatekeeperHAT)
204 hat: ByteArray = ByteArray(69),
208 .setGatekeeperHAT(hat)
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
H A DTestHal.java81 public ICancellationSignal enroll(HardwareAuthToken hat) { in createSession() argument
162 public void resetLockout(HardwareAuthToken hat) throws RemoteException { in createSession()
196 HardwareAuthToken hat, OperationContext context) { in createSession()
197 return enroll(hat); in createSession()
H A DFingerprintEnrollClient.java188 final HardwareAuthToken hat = in doEnroll() local
194 hat, opContext.toAidlContext()); in doEnroll()
204 return session.getSession().enroll(hat); in doEnroll()
H A DSensor.java248 public void onAuthenticationSucceeded(int enrollmentId, HardwareAuthToken hat) { in onAuthenticationSucceeded() argument
260 final byte[] byteArray = HardwareAuthTokenUtils.toByteArray(hat); in onAuthenticationSucceeded()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
H A DTestHal.java78 public int enroll(ArrayList<Byte> hat, int timeoutSec, ArrayList<Integer> disabledFeatures) { in enroll() argument
89 public int setFeature(int feature, boolean enabled, ArrayList<Byte> hat, int faceId) { in setFeature() argument
161 public int resetLockout(ArrayList<Byte> hat) { in resetLockout() argument
H A DBiometricTestSessionImpl.java179 final ArrayList<Byte> hat = new ArrayList<>(Collections.nCopies(69, (byte) 0)); in acceptAuthentication() local
180 mHalResultController.onAuthenticated(0 /* deviceId */, fid, userId, hat); in acceptAuthentication()
/aosp14/frameworks/base/data/keyboards/
H A DVendor_046d_Product_c294.kl19 # 4 way buttons above hat
25 # Row of buttons under hat
H A DVendor_046d_Product_c299.kl19 # 4 way buttons above hat
25 # Row of buttons under hat
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DCredentialViewModelTest.kt111 val hat = ByteArray(2) regex
113 flowOf(CredentialStatus.Success.Verified(hat))
129 assertThat(attestation).isSameInstanceAs(hat)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DCredentialStatus.kt8 data class Verified(val hat: ByteArray) : Success
H A DCredentialInteractor.kt90 val hat = gkResponse.gatekeeperHAT regex
92 emit(CredentialStatus.Success.Verified(checkNotNull(hat)))
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
H A DBiometricTestSessionImpl.java189 final ArrayList<Byte> hat = new ArrayList<>(Collections.nCopies(69, (byte) 0)); in acceptAuthentication() local
190 mHalResultController.onAuthenticated(0 /* deviceId */, fid, userId, hat); in acceptAuthentication()
H A DTestHal.java78 public int enroll(byte[] hat, int gid, int timeoutSec) { in enroll() argument
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_fingerprint_FingerprintService.cpp104 notifyKeystore(reinterpret_cast<uint8_t *>(&msg.data.authenticated.hat), in hal_notify_callback()
105 sizeof(msg.data.authenticated.hat)); in hal_notify_callback()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
H A DCredentialViewModel.kt124 _validatedAttestation.emit(result.hat)