Searched refs:capacity_ (Results 1 – 8 of 8) sorted by relevance
/system/bt/gd/common/ |
D | lru_cache.h | 62 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/ |
D | vector.h | 46 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/ |
D | leaky_bonded_queue.h | 87 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()
|
D | lru.h | 46 : capacity_(capacity) { in LruCache() 47 if (capacity_ == 0) { in LruCache() 137 if (lru_map_.size() == capacity_) { in Put() 182 size_t capacity_; variable
|
/system/core/adb/ |
D | types.h | 47 capacity_(std::exchange(move.capacity_, 0)), in Block() 54 capacity_ = std::exchange(move.capacity_, 0); 65 CHECK_GE(capacity_, new_size); in resize() 79 capacity_ = 0; in clear() 83 size_t capacity() const { return capacity_; } in capacity() 106 CHECK_EQ(0ULL, capacity_); in allocate() 113 capacity_ = size; in allocate() 119 size_t capacity_ = 0; member
|
/system/connectivity/wifilogd/ |
D | message_buffer.cpp | 30 : data_(new uint8_t[size]), capacity_(size), read_pos_(0), write_pos_(0) { in MessageBuffer() 48 return capacity_ - GetHeaderSize() >= length; in CanFitEver() 91 CHECK(write_pos_ <= capacity_); in AppendRawBytes()
|
D | message_buffer.h | 78 size_t GetFreeSize() const { return capacity_ - write_pos_; } in GetFreeSize() 102 const size_t capacity_; variable
|
/system/bt/gd/os/linux_generic/ |
D | queue_unittest.cc | 133 : 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::__anon494e39b60111::TestDequeueEnd
|