Home
last modified time | relevance | path

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

/system/security/keystore/
Dkeymaster_enforcement.h42 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap()
60 const uint32_t max_size_; variable
65 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap()
82 const uint32_t max_size_; variable
Dkeymaster_enforcement.cpp514 if (last_access_list_.size() >= max_size_) return false; in UpdateKeyAccessTime()
547 if (access_count_list_.size() >= max_size_) return false; in IncrementKeyAccessCount()
/system/core/logd/
DSerializedLogBuffer.cpp87 logs_[log_id].push_back(SerializedLogChunk(max_size_[log_id] / 4)); in Log()
93 logs_[log_id].push_back(SerializedLogChunk(max_size_[log_id] / 4)); in Log()
108 if (total_size > max_size_[log_id]) { in MaybePrune()
109 Prune(log_id, total_size - max_size_[log_id], 0); in MaybePrune()
199 if (bytes_to_free >= max_size_[id]) { // +100% in KickReader()
312 return max_size_[id]; in GetSize()
325 max_size_[id] = size; in SetSize()
DSimpleLogBuffer.h63 unsigned long max_size(log_id_t id) REQUIRES_SHARED(lock_) { return max_size_[id]; } in max_size()
78 unsigned long max_size_[LOG_ID_MAX] GUARDED_BY(lock_);
DSimpleLogBuffer.cpp252 size_t retval = max_size_[id]; in GetSize()
264 max_size_[id] = size; in SetSize()
270 if (stats_->ShouldPrune(id, max_size_[id], &prune_rows)) { in MaybePrune()
344 if (stats_->Sizes(id) > (2 * max_size_[id])) { // +100% in KickReader()
DSerializedLogBuffer.h70 unsigned long max_size_[LOG_ID_MAX] GUARDED_BY(lock_) = {}; variable
/system/keymaster/android_keymaster/
Dkeymaster_enforcement.cpp34 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap()
51 const uint32_t max_size_; member in keymaster::AccessTimeMap
56 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap()
72 const uint32_t max_size_; member in keymaster::AccessCountMap
564 if (last_access_list_.size() >= max_size_) in UpdateKeyAccessTime()
597 if (access_count_list_.size() >= max_size_) in IncrementKeyAccessCount()