Searched defs:capacity (Results 1 - 10 of 10) sorted by relevance

/system/core/libcutils/
H A Dbuffer.h50 size_t capacity; member in struct:__anon388
64 * Creates a new buffer with the given initial capacity.
71 Buffer* bufferWrap(char* data, size_t capacity, size_t size);
79 * Prepares buffer to read 'expected' number of bytes. Expands capacity if
H A Dbuffer.c27 Buffer* bufferCreate(size_t capacity) { argument
32 buffer->capacity = capacity;
34 buffer->data = malloc(capacity);
47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { argument
54 buffer->capacity = capacity;
61 if (expected > buffer->capacity) {
68 buffer->capacity = expected;
H A Darray.c29 int capacity; member in struct:Array
47 static int ensureCapacity(Array* array, int capacity) { argument
48 int oldCapacity = array->capacity;
49 if (capacity > oldCapacity) {
53 if (capacity > MAX_CAPACITY)
56 // Keep doubling capacity until we surpass necessary capacity.
57 while (newCapacity < capacity) {
85 array->capacity = newCapacity;
/system/core/toolbox/
H A Ddynarray.h9 int capacity; member in struct:__anon478
/system/core/libpixelflinger/tinyutils/
H A DSortedVector.h65 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::SortedVector
66 //! setst the capacity. capacity can never be reduced less than size()
H A DKeyedVector.h48 inline size_t capacity() const { return mVector.capacity(); } function in class:android::KeyedVector
49 //! setst the capacity. capacity can never be reduced less than size()
H A DVector.h65 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::Vector
66 //! setst the capacity. capacity can never be reduced less than size()
H A DVectorImpl.cpp91 sb = SharedBuffer::alloc(capacity() * mItemSize);
102 size_t VectorImpl::capacity() const function in class:android::VectorImpl
220 ALOG_ASSERT(index<capacity(),
221 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
222 this, (int)index, (int)capacity(), (int)mCount);
232 ALOG_ASSERT(index<capacity(),
233 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
234 this, (int)index, (int)capacity(), (int)mCount);
244 size_t current_capacity = capacity();
247 // we can't reduce the capacity
[all...]
/system/extras/tests/sdcard/
H A Dstopwatch.cpp54 StopWatch::StopWatch(const char *name, size_t capacity) argument
55 : mName(strdup(name)), mNum(0), mData(NULL), mDataLen(0), mCapacity(capacity * 2),
145 // Normally we should have enough capacity but if we have to
148 // a capacity when building the StopWatch.
154 fprintf(stderr, "# Increased capacity to %d for %s. Measurement affected.\n",
/system/core/charger/
H A Dcharger.c106 /* current capacity being animated */
107 int capacity; member in struct:animation
338 "/sys/%s/capacity", path);
654 if (batt_anim->capacity < 0 || batt_anim->num_frames == 0)
703 /* find first frame given current capacity */
714 batt_anim->capacity = batt_cap;
727 if (batt_anim->num_frames == 0 || batt_anim->capacity < 0) {

Completed in 50 milliseconds