Searched refs:capacity (Results 1 – 13 of 13) sorted by relevance
/system/bt/osi/src/ |
D | array.c | 33 size_t capacity; member 48 array->capacity = INTERNAL_ELEMENTS; in array_new() 86 if (array->length == array->capacity && !grow(array)) { in array_append_ptr() 87 …y past current capacity of %zu elements of size %zu.", __func__, array->capacity, array->element_s… in array_append_ptr() 97 const size_t new_capacity = array->capacity + (array->capacity / 2); in grow() 108 array->capacity = new_capacity; in grow()
|
D | fixed_queue.c | 35 size_t capacity; member 44 fixed_queue_t *fixed_queue_new(size_t capacity) { in fixed_queue_new() argument 48 ret->capacity = capacity; in fixed_queue_new() 54 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new() 111 return queue->capacity; in fixed_queue_capacity()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 108 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl 308 ALOG_ASSERT(index<capacity(), in editItemLocation() 310 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation() 312 if (index < capacity()) { in editItemLocation() 323 ALOG_ASSERT(index<capacity(), in itemLocation() 325 this, (int)index, (int)capacity(), (int)mCount); in itemLocation() 327 if (index < capacity()) { in itemLocation() 341 return capacity(); in setCapacity() 391 if (capacity() < new_size) { in _grow() 469 if (new_size < (capacity() / 2)) { in _shrink()
|
/system/core/libutils/tests/ |
D | Vector_test.cpp | 92 ASSERT_EQ(8, vector.capacity()); in TEST_F() 94 ASSERT_EQ(8, vector.capacity()); in TEST_F()
|
/system/core/healthd/ |
D | healthd_mode_charger.cpp | 105 int capacity; member 168 .capacity = 0, 326 if (batt_anim->capacity < 0 || batt_anim->num_frames == 0) in redraw_screen() 406 batt_anim->capacity = batt_prop->batteryLevel; in update_screen_state() 419 if (batt_anim->num_frames == 0 || batt_anim->capacity < 0) { in update_screen_state() 524 if (charger->batt_anim->capacity >= charger->boot_min_cap) { in process_key()
|
/system/extras/tests/sdcard/ |
D | stopwatch.h | 91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
|
D | stopwatch.cpp | 54 StopWatch::StopWatch(const char *name, size_t capacity) in StopWatch() argument 55 : mName(strdup(name)), mNum(0), mData(NULL), mDataLen(0), mCapacity(capacity * 2), in StopWatch()
|
/system/bt/osi/include/ |
D | fixed_queue.h | 37 fixed_queue_t *fixed_queue_new(size_t capacity);
|
/system/core/libmemunreachable/include/memunreachable/ |
D | memunreachable.h | 66 memset(leaks.data(), 0, leaks.capacity() * sizeof(Leak)); in ~UnreachableMemoryInfo()
|
/system/core/include/utils/ |
D | KeyedVector.h | 58 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
|
D | SortedVector.h | 69 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|
D | VectorImpl.h | 65 size_t capacity() const;
|
D | Vector.h | 79 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|