Searched refs:capacity (Results 1 - 10 of 10) sorted by relevance
/system/core/libcutils/ |
H A D | buffer.c | 27 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 D | array.c | 29 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;
|
H A D | buffer.h | 50 size_t capacity; member in struct:__anon79 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
|
/system/extras/tests/sdcard/ |
H A D | stopwatch.h | 84 // Create a stop watch. Default capacity == 2 * interval_nb 87 // @param capacity Hint about the number of sampless that will be 89 // to size the internal storage, when the capacity 91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
|
H A D | stopwatch.cpp | 54 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/libpixelflinger/tinyutils/ |
H A D | VectorImpl.cpp | 91 sb = SharedBuffer::alloc(capacity() * mItemSize); 102 size_t VectorImpl::capacity() const function in class:android::VectorImpl 220 LOG_ASSERT(index<capacity(), 221 "[%p] itemLocation: index=%d, capacity=%d, count=%d", 222 this, (int)index, (int)capacity(), (int)mCount); 232 LOG_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...] |
H A D | KeyedVector.h | 48 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 D | VectorImpl.h | 57 size_t capacity() const;
|
H A D | SortedVector.h | 65 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 D | Vector.h | 65 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()
|
Completed in 64 milliseconds