/system/chre/util/include/chre/util/ |
D | array_queue.h | 227 size_t mTail = StorageType::capacity() - 1; 293 return index >= StorageType::capacity() - 1 ? 0 : index + 1; in advanceOrWrapAround() 303 return index == 0 ? StorageType::capacity() - 1 : index - 1; in subtractOrWrapAround() 313 ArrayQueueExternalStorage(ElementType *storage, size_t capacity) in ArrayQueueExternalStorage() argument 314 : mData(storage), kCapacity(capacity) {} in ArrayQueueExternalStorage() 324 size_t capacity() const { in capacity() function 357 ArrayQueueExt(ElementType *storage, size_t capacity) in ArrayQueueExt() argument 360 storage, capacity) {} in ArrayQueueExt() 377 size_t capacity) in ArrayQueueIterator() argument 378 : mPointer(start), mBase(base), mTail(tail), mCapacity(capacity) {} in ArrayQueueIterator()
|
D | array_queue_impl.h | 41 return (mSize == StorageType::capacity()); in full() 179 mTail = StorageType::capacity() - 1; in clear() 189 mTail, StorageType::capacity()); in begin() 195 return iterator(StorageType::data() + StorageType::capacity(), in end() 196 StorageType::data(), mTail, StorageType::capacity()); in end() 218 mTail, StorageType::capacity()); in cbegin() 224 return const_iterator(StorageType::data() + StorageType::capacity(), in cend() 225 StorageType::data(), mTail, StorageType::capacity()); in cend() 232 if (absoluteIndex >= StorageType::capacity()) { in relativeIndexToAbsolute() 233 absoluteIndex -= StorageType::capacity(); in relativeIndexToAbsolute() [all …]
|
D | segmented_queue_impl.h | 396 if (absoluteIndex >= capacity()) { in relativeIndexToAbsolute() 397 absoluteIndex -= capacity(); in relativeIndexToAbsolute() 406 index += capacity(); in absoluteIndexToRelative() 415 if (mSize == capacity()) { in prepareForPush() 440 mTail = capacity() - 1; in clear() 453 return index >= capacity() - 1 ? 0 : index + 1; in advanceOrWrapAround() 459 return index < steps ? capacity() + index - steps : index - steps; in subtractOrWrapAround() 476 mTail = capacity() - 1; in resetEmptyQueue()
|
D | raw_storage.h | 40 size_t capacity() const { in capacity() function
|
D | priority_queue_impl.h | 44 size_t PriorityQueue<ElementType, CompareFunction>::capacity() const { in capacity() function 45 return mData.capacity(); in capacity()
|
D | priority_queue.h | 62 size_t capacity() const;
|
D | fixed_size_vector.h | 78 size_t capacity() const;
|
D | dynamic_vector.h | 102 size_type capacity() const;
|
/system/chre/util/tests/ |
D | dynamic_vector_test.cc | 65 EXPECT_EQ(vector.capacity(), 0); in TEST() 73 EXPECT_EQ(vector.capacity(), 1); in TEST() 87 EXPECT_EQ(vector.capacity(), 4); in TEST() 95 EXPECT_EQ(vector.capacity(), 8); in TEST() 163 EXPECT_EQ(vector.capacity(), 8); in TEST() 207 EXPECT_EQ(vector.capacity(), 8); in TEST() 332 ASSERT_EQ(vector.capacity(), 1); in TEST() 338 ASSERT_EQ(vector.capacity(), 2); in TEST() 345 ASSERT_EQ(vector.capacity(), 4); in TEST() 353 ASSERT_EQ(vector.capacity(), 4); in TEST() [all …]
|
D | priority_queue_test.cc | 62 EXPECT_EQ(0, q.capacity()); in TEST() 104 EXPECT_EQ(1, q.capacity()); in TEST() 106 EXPECT_EQ(2, q.capacity()); in TEST() 108 EXPECT_EQ(4, q.capacity()); in TEST()
|
D | segmented_queue_test.cc | 127 EXPECT_EQ(segmentedQueue.capacity(), staticBlockCount * blockSize); in TEST() 218 size_t capacityBeforePop = segmentedQueue.capacity(); in TEST() 229 EXPECT_LT(segmentedQueue.capacity(), capacityBeforePop); in TEST() 230 EXPECT_GT(segmentedQueue.capacity(), 0); in TEST() 257 size_t capacityBeforeRemove = segmentedQueue.capacity(); in TEST() 264 EXPECT_LT(segmentedQueue.capacity(), capacityBeforeRemove); in TEST() 265 EXPECT_GT(segmentedQueue.capacity(), 0); in TEST()
|
D | raw_storage_test.cc | 28 EXPECT_EQ(rs.capacity(), 42); in TEST()
|
/system/core/trusty/libtrusty-rs/src/ |
D | lib.rs | 160 if buf.capacity() == 0 { in recv() 166 buf.resize(buf.capacity(), 0); in recv() 180 buf.capacity() < MAX_MESSAGE_SIZE, in recv() 187 buf.reserve(MAX_MESSAGE_SIZE - buf.capacity()); in recv()
|
/system/core/libutils/binder/ |
D | VectorImpl.cpp | 106 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl 304 ALOG_ASSERT(index<capacity(), in editItemLocation() 306 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation() 308 if (index < capacity()) { in editItemLocation() 319 ALOG_ASSERT(index<capacity(), in itemLocation() 321 this, (int)index, (int)capacity(), (int)mCount); in itemLocation() 323 if (index < capacity()) { in itemLocation() 337 return capacity(); in setCapacity() 387 if (capacity() < new_size) { in _grow() 466 if (new_size < (capacity() / 2)) { in _shrink()
|
D | Vector_test.cpp | 89 ASSERT_EQ(8U, vector.capacity()); in TEST_F() 91 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
|
/system/chre/util/include/chre/util/system/ |
D | atomic_spsc_queue.h | 81 size_t capacity() const { in capacity() function 126 size_t capacity() const { in capacity() function 211 size_t capacity() const { in capacity() function 270 std::min(mQueue.size(), dest->capacity() - destIndex); in extract()
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | WakeupList.cpp | 27 WakeupList::WakeupList(size_t capacity) : mCapacity(capacity) {} in WakeupList() argument
|
D | WakeupList.h | 38 WakeupList(size_t capacity);
|
D | WakeLockEntryList.h | 46 WakeLockEntryList(size_t capacity, unique_fd kernelWakelockStatsFd);
|
/system/media/audio_utils/include/audio_utils/ |
D | fifo.h | 55 uint32_t capacity() const in capacity() function 317 uint32_t capacity() const in capacity() function 318 { return mFifo.capacity(); } in capacity()
|
/system/teeui/libteeui/include/teeui/ |
D | utils.h | 654 template <size_t capacity> class ConvexObject { 658 PxPoint points_[capacity]; 664 if (l.size() > capacity) return; 681 static_assert(result_cap >= capacity, 718 if (fill_ < capacity) { 725 template <size_t capacity> 726 std::ostream& operator<<(std::ostream& out, const ConvexObject<capacity>& o) { 944 template <size_t capacity, typename Tuple, typename Context, size_t... I> 945 constexpr inline ConvexObject<capacity> 947 return ConvexObject<capacity>( [all …]
|
/system/libbase/ |
D | file_test.cpp | 400 EXPECT_LT(s.capacity(), size + 16); in TEST() 407 EXPECT_LT(s.capacity(), size + 16); in TEST() 414 EXPECT_LT(s.capacity(), size + 16); in TEST() 426 size_t initial_capacity = s.capacity(); in TEST() 430 EXPECT_EQ(initial_capacity, s.capacity()); in TEST()
|
/system/core/trusty/libtrusty-rs/tests/ |
D | test.rs | 85 assert_eq!(2048, recv_buf.capacity(), "Additional capacity was allocated when not needed"); in recv_vec_existing_capacity()
|
/system/core/libutils/include/utils/ |
D | KeyedVector.h | 59 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
|
/system/libziparchive/ |
D | zip_archive_stream_entry.cc | 86 CHECK_EQ(data_.capacity(), kBufSize); in Read() 211 CHECK_EQ(out_.capacity(), kBufSize); in Read()
|