Searched refs:max_size_ (Results 1 – 7 of 7) sorted by relevance
42 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap()60 const uint32_t max_size_; variable65 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap()82 const uint32_t max_size_; variable
514 if (last_access_list_.size() >= max_size_) return false; in UpdateKeyAccessTime()547 if (access_count_list_.size() >= max_size_) return false; in IncrementKeyAccessCount()
87 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()
63 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_);
252 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()
70 unsigned long max_size_[LOG_ID_MAX] GUARDED_BY(lock_) = {}; variable
34 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap()51 const uint32_t max_size_; member in keymaster::AccessTimeMap56 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap()72 const uint32_t max_size_; member in keymaster::AccessCountMap564 if (last_access_list_.size() >= max_size_) in UpdateKeyAccessTime()597 if (access_count_list_.size() >= max_size_) in IncrementKeyAccessCount()