Home
last modified time | relevance | path

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

/system/bt/gd/common/
Dlru_cache.h62 explicit LruCache(size_t capacity) : capacity_(capacity) { in LruCache()
63 ASSERT_LOG(capacity_ != 0, "Unable to have 0 LRU Cache capacity"); in LruCache()
72 LruCache(const LruCache& other) : capacity_(other.capacity_), list_map_(other.list_map_) {} in LruCache()
80 capacity_ = other.capacity_;
87 return capacity_ == rhs.capacity_ && list_map_ == rhs.list_map_;
147 if (list_map_.size() == capacity_) { in insert_or_assign()
169 if (list_map_.size() == capacity_) { in try_emplace()
214 size_t capacity_;
/system/nvram/messages/include/nvram/messages/
Dvector.h46 capacity_ = 0; in ~Vector()
92 size_t new_capacity = capacity_; in Resize()
93 if (size < capacity_ / 2) { in Resize()
95 } else if (size > capacity_) { in Resize()
96 new_capacity = capacity_ * 2 > size ? capacity_ * 2 : size; in Resize()
102 if (new_capacity != capacity_) { in Resize()
138 capacity_ = new_capacity; in Resize()
163 size_t capacity_ = 0; variable
/system/bt/common/
Dleaky_bonded_queue.h87 size_t capacity_; variable
96 capacity_ = capacity; in LeakyBondedQueue()
105 if ((queue_.size() + 1) > capacity_) { in Enqueue()
116 if ((queue_.size() + 1) > capacity_) { in EnqueueWithPop()
151 return capacity_; in Capacity()
Dlru.h46 : capacity_(capacity) { in LegacyLruCache()
47 if (capacity_ == 0) { in LegacyLruCache()
137 if (lru_map_.size() == capacity_) { in Put()
182 size_t capacity_; variable
/system/bt/gd/os/linux_generic/
Dqueue_unittest.cc133 : count(0), handler_(handler), queue_(queue), capacity_(capacity), delay_(0) {} in TestDequeueEnd()
160 if (buffer_.size() == capacity_) { in DequeueCallbackForTest()
182 int capacity_; member in bluetooth::os::__anonecc777bd0111::TestDequeueEnd