Home
last modified time | relevance | path

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

/system/bt/osi/src/
Darray.c33 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()
Dfixed_queue.c35 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/
DVectorImpl.cpp108 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/
DVector_test.cpp92 ASSERT_EQ(8, vector.capacity()); in TEST_F()
94 ASSERT_EQ(8, vector.capacity()); in TEST_F()
/system/core/healthd/
Dhealthd_mode_charger.cpp105 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/
Dstopwatch.h91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
Dstopwatch.cpp54 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/
Dfixed_queue.h37 fixed_queue_t *fixed_queue_new(size_t capacity);
/system/core/libmemunreachable/include/memunreachable/
Dmemunreachable.h66 memset(leaks.data(), 0, leaks.capacity() * sizeof(Leak)); in ~UnreachableMemoryInfo()
/system/core/include/utils/
DKeyedVector.h58 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h69 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVectorImpl.h65 size_t capacity() const;
DVector.h79 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function