Home
last modified time | relevance | path

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

/system/security/keystore/
Dauth_token_table.cpp154 Entry* newest_match = NULL; in FindTimedAuthorization() local
156 if (entry.SatisfiesAuth(sids, auth_type) && entry.is_newer_than(newest_match)) in FindTimedAuthorization()
157 newest_match = &entry; in FindTimedAuthorization()
159 if (!newest_match) return AUTH_TOKEN_NOT_FOUND; in FindTimedAuthorization()
164 if (static_cast<int64_t>(newest_match->time_received()) + timeout < static_cast<int64_t>(now)) in FindTimedAuthorization()
168 if (static_cast<int64_t>(newest_match->time_received()) < in FindTimedAuthorization()
174 newest_match->UpdateLastUse(now); in FindTimedAuthorization()
175 *found = newest_match->token(); in FindTimedAuthorization()