Home
last modified time | relevance | path

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

12

/system/bt/osi/src/
Darray.cc33 size_t capacity; member
49 array->capacity = INTERNAL_ELEMENTS; in array_new()
83 if (array->length == array->capacity && !grow(array)) { in array_append_ptr()
87 __func__, array->capacity, array->element_size); in array_append_ptr()
97 const size_t new_capacity = array->capacity + (array->capacity / 2); in grow()
109 array->capacity = new_capacity; in grow()
Dfixed_queue.cc36 size_t capacity; member
45 fixed_queue_t* fixed_queue_new(size_t capacity) { in fixed_queue_new() argument
50 ret->capacity = capacity; in fixed_queue_new()
55 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new()
113 return queue->capacity; in fixed_queue_capacity()
/system/chre/util/tests/
Ddynamic_vector_test.cc60 EXPECT_EQ(vector.capacity(), 0); in TEST()
68 EXPECT_EQ(vector.capacity(), 1); in TEST()
82 EXPECT_EQ(vector.capacity(), 4); in TEST()
90 EXPECT_EQ(vector.capacity(), 8); in TEST()
158 EXPECT_EQ(vector.capacity(), 8); in TEST()
202 EXPECT_EQ(vector.capacity(), 8); in TEST()
327 ASSERT_EQ(vector.capacity(), 1); in TEST()
333 ASSERT_EQ(vector.capacity(), 2); in TEST()
340 ASSERT_EQ(vector.capacity(), 4); in TEST()
348 ASSERT_EQ(vector.capacity(), 4); in TEST()
[all …]
Dpriority_queue_test.cc46 EXPECT_EQ(0, q.capacity()); in TEST()
88 EXPECT_EQ(1, q.capacity()); in TEST()
90 EXPECT_EQ(2, q.capacity()); in TEST()
92 EXPECT_EQ(4, q.capacity()); in TEST()
Dfixed_size_vector_test.cc47 ASSERT_EQ(testVector.capacity(), 8); in TEST()
57 ASSERT_EQ(testVector.capacity(), 8); in TEST()
/system/bt/common/
Dleaky_bonded_queue.h45 LeakyBondedQueue(size_t capacity);
95 LeakyBondedQueue<T>::LeakyBondedQueue(size_t capacity) { in LeakyBondedQueue() argument
96 capacity_ = capacity; in LeakyBondedQueue()
/system/bt/packet/tests/base/
Dpacket_builder_test.cc47 ASSERT_EQ(packet->GetData().capacity(), 0u); in TEST()
52 ASSERT_GE(packet->GetData().capacity(), test_l2cap_data.size()); in TEST()
/system/core/libutils/
DVectorImpl.cpp106 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl
306 ALOG_ASSERT(index<capacity(), in editItemLocation()
308 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
310 if (index < capacity()) { in editItemLocation()
321 ALOG_ASSERT(index<capacity(), in itemLocation()
323 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
325 if (index < capacity()) { in itemLocation()
339 return capacity(); in setCapacity()
389 if (capacity() < new_size) { in _grow()
468 if (new_size < (capacity() / 2)) { in _shrink()
DVector_test.cpp90 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
92 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
/system/media/audio_utils/include/audio_utils/
Dfifo.h53 uint32_t capacity() const in capacity() function
307 uint32_t capacity() const in capacity() function
308 { return mFifo.capacity(); } in capacity()
/system/core/base/
Dfile_test.cpp264 EXPECT_LT(s.capacity(), size + 16); in TEST()
271 EXPECT_LT(s.capacity(), size + 16); in TEST()
278 EXPECT_LT(s.capacity(), size + 16); in TEST()
290 size_t initial_capacity = s.capacity(); in TEST()
294 EXPECT_EQ(initial_capacity, s.capacity()); in TEST()
/system/extras/simpleperf/
DUnixSocket.h57 explicit UnixSocketMessageBuffer(size_t capacity) in UnixSocketMessageBuffer() argument
58 : data_(capacity), read_head_(0), valid_bytes_(0) {} in UnixSocketMessageBuffer()
/system/bt/osi/include/
Dfixed_queue.h37 fixed_queue_t* fixed_queue_new(size_t capacity);
/system/chre/util/include/chre/util/
Dpriority_queue_impl.h44 size_t PriorityQueue<ElementType, CompareFunction>::capacity() const { in capacity() function
45 return mData.capacity(); in capacity()
Dpriority_queue.h61 size_t capacity() const;
Dfixed_size_vector.h75 size_t capacity() const;
Ddynamic_vector.h102 size_type capacity() const;
Dfixed_size_vector_impl.h74 size_t FixedSizeVector<ElementType, kCapacity>::capacity() const { in capacity() function
/system/bt/proto/bluetooth/metrics/
Dbluetooth.proto43 // Number of BluetoothSession including discarded ones beyond capacity
46 // Number of PairEvent including discarded ones beyond capacity
49 // Number of WakeEvent including discarded ones beyond capacity
52 // Number of ScanEvent including discarded ones beyond capacity
/system/core/libutils/include/utils/
DKeyedVector.h59 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h70 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVectorImpl.h65 size_t capacity() const;
DVector.h93 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
/system/media/audio_utils/tests/
Dstatistics_benchmark.cpp27 const size_t count = data.capacity(); in initUniform()
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java147 for (int i = 0; i < builder.capacity(); i++) { in onBind()

12