Lines Matching refs:uid
34 uint32_t uid = request.user_id; in Enroll() local
57 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Enroll()
62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
84 if (ClearFailureRecord(uid, user_id, true)) { in Enroll()
87 ClearFailureRecord(uid, user_id, false); in Enroll()
122 uint32_t uid = request.user_id; in Verify() local
131 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Verify()
136 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
138 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
158 if (throttle) ClearFailureRecord(uid, user_id, throttle_secure); in Verify()
278 bool GateKeeper::ThrottleRequest(uint32_t uid, uint64_t timestamp, in ThrottleRequest() argument
294 if (!WriteFailureRecord(uid, record, secure)) { in ThrottleRequest()
306 bool GateKeeper::IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp, in IncrementFailureRecord() argument
312 return WriteFailureRecord(uid, record, secure); in IncrementFailureRecord()