Searched refs:capacity (Results 1 - 15 of 15) sorted by relevance

/system/core/libcutils/
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;
H A Dbuffer.h50 size_t capacity; member in struct:__anon365
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/core/toolbox/
H A Ddynarray.c8 a->count = a->capacity = 0;
16 int old_cap = a->capacity;
42 a->capacity = new_cap;
48 if (a->count >= a->capacity)
59 a->count = a->capacity = 0;
H A Ddynarray.h9 int capacity; member in struct:__anon442
/system/extras/tests/sdcard/
H A Dstopwatch.h84 // 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 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/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java40 int capacity = format.getSize();
41 nativeAllocate(capacity);
42 setReusable(capacity != 0);
234 private native boolean nativeAllocate(int capacity); argument
/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp91 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 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 DVectorImpl.h57 size_t capacity() const;
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 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()
/system/media/mca/filterfw/native/core/
H A Dshader_program.cpp386 GLint capacity; local
391 glGetActiveUniform(program_, i, buffer_size, NULL, &capacity, &type, &name[0]);
715 GLint capacity; local
718 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name);
722 if (!CheckValueCount("Uniform (int)", name, capacity, components, count)
766 GLint capacity; local
769 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name);
773 if (!CheckValueCount("Uniform (float)", name, capacity, components, count)
842 GLint capacity; local
844 glGetActiveUniform(program_, IndexOfUniform(var), 0, NULL, &capacity,
[all...]
/system/core/charger/
H A Dcharger.c105 /* current capacity being animated */
106 int capacity; member in struct:animation
337 "/sys/%s/capacity", path);
653 if (batt_anim->capacity < 0 || batt_anim->num_frames == 0)
702 /* find first frame given current capacity */
713 batt_anim->capacity = batt_cap;
726 if (batt_anim->num_frames == 0 || batt_anim->capacity < 0) {

Completed in 183 milliseconds