Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 55) sorted by relevance

123

/system/chre/util/include/chre/util/
Darray_queue.h227 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()
Darray_queue_impl.h41 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 …]
Dsegmented_queue_impl.h396 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()
Draw_storage.h40 size_t capacity() const { in capacity() function
Dpriority_queue_impl.h44 size_t PriorityQueue<ElementType, CompareFunction>::capacity() const { in capacity() function
45 return mData.capacity(); in capacity()
Dpriority_queue.h62 size_t capacity() const;
Dfixed_size_vector.h78 size_t capacity() const;
Ddynamic_vector.h102 size_type capacity() const;
/system/chre/util/tests/
Ddynamic_vector_test.cc65 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 …]
Dpriority_queue_test.cc62 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()
Dsegmented_queue_test.cc127 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()
Draw_storage_test.cc28 EXPECT_EQ(rs.capacity(), 42); in TEST()
/system/core/trusty/libtrusty-rs/src/
Dlib.rs160 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/
DVectorImpl.cpp106 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()
DVector_test.cpp89 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
91 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
/system/chre/util/include/chre/util/system/
Datomic_spsc_queue.h81 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/
DWakeupList.cpp27 WakeupList::WakeupList(size_t capacity) : mCapacity(capacity) {} in WakeupList() argument
DWakeupList.h38 WakeupList(size_t capacity);
DWakeLockEntryList.h46 WakeLockEntryList(size_t capacity, unique_fd kernelWakelockStatsFd);
/system/media/audio_utils/include/audio_utils/
Dfifo.h55 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/
Dutils.h654 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/
Dfile_test.cpp400 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/
Dtest.rs85 assert_eq!(2048, recv_buf.capacity(), "Additional capacity was allocated when not needed"); in recv_vec_existing_capacity()
/system/core/libutils/include/utils/
DKeyedVector.h59 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
/system/libziparchive/
Dzip_archive_stream_entry.cc86 CHECK_EQ(data_.capacity(), kBufSize); in Read()
211 CHECK_EQ(out_.capacity(), kBufSize); in Read()

123