Home
last modified time | relevance | path

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

/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()
/system/core/adb/
Dtypes.h46 std::swap(capacity_, move.capacity_); in Block()
55 std::swap(capacity_, move.capacity_);
67 CHECK_GE(capacity_, new_size); in resize()
81 capacity_ = 0; in clear()
85 size_t capacity() const { return capacity_; } in capacity()
108 CHECK_EQ(0ULL, capacity_); in allocate()
115 capacity_ = size; in allocate()
121 size_t capacity_ = 0; member
/system/connectivity/wifilogd/
Dmessage_buffer.cpp30 : 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()
Dmessage_buffer.h78 size_t GetFreeSize() const { return capacity_ - write_pos_; } in GetFreeSize()
102 const size_t capacity_; variable