Lines Matching refs:hat
176 ndk::ScopedAStatus Session::enroll(const keymaster::HardwareAuthToken& hat, in enroll() argument
178 const ErrorCode err = validateHat(hat); in enroll()
186 mEnrollingSecUserId = hat.userId; in enroll()
195 SESSION_DEBUG("ENROLLING_START hat.userId=%" PRId64, hat.userId); in enroll()
320 ndk::ScopedAStatus Session::resetLockout(const keymaster::HardwareAuthToken& hat) { in resetLockout() argument
321 const ErrorCode err = validateHat(hat); in resetLockout()
345 Session::ErrorCode Session::validateHat(const keymaster::HardwareAuthToken& hat) const { in validateHat()
346 if (hat.mac.empty()) { in validateHat()
350 if (!mChallenges.count(hat.challenge)) { in validateHat()
352 "unexpected challenge: %" PRId64, hat.challenge); in validateHat()
412 keymaster::HardwareAuthToken hat; in onSensorEventOn() local
413 hat.challenge = mAuthChallenge; in onSensorEventOn()
414 hat.userId = tok.userId; in onSensorEventOn()
415 hat.authenticatorId = tok.authenticatorId; in onSensorEventOn()
416 hat.authenticatorType = keymaster::HardwareAuthenticatorType::FINGERPRINT; in onSensorEventOn()
417 hat.timestamp.milliSeconds = ns2ms(systemTime(SYSTEM_TIME_BOOTTIME)); in onSensorEventOn()
418 mSessionCb->onAuthenticationSucceeded(enrollmentId, hat); in onSensorEventOn()