Lines Matching refs:timestamp
50 uint64_t timestamp = GetMillisecondsSinceBoot(); in Enroll() local
62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
122 uint64_t timestamp = GetMillisecondsSinceBoot(); in Verify() local
134 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
136 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
149 response->error = MintAuthToken(&auth_token, timestamp, in Verify()
227 uint64_t timestamp, secure_id_t user_id, secure_id_t authenticator_id, in MintAuthToken() argument
238 token.timestamp = htobe64(timestamp); in MintAuthToken()
245 sizeof(token.timestamp); in MintAuthToken()
299 bool GateKeeper::ThrottleRequest(uint32_t uid, uint64_t timestamp, in ThrottleRequest() argument
307 if (timestamp < last_checked + timeout && timestamp > last_checked) { in ThrottleRequest()
309 response->SetRetryTimeout(timeout - (timestamp - last_checked)); in ThrottleRequest()
311 } else if (timestamp <= last_checked) { in ThrottleRequest()
314 record->last_checked_timestamp = timestamp; in ThrottleRequest()
327 bool GateKeeper::IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp, in IncrementFailureRecord() argument
331 record->last_checked_timestamp = timestamp; in IncrementFailureRecord()