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

/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp25 ABuffer::ABuffer(size_t capacity) argument
26 : mData(malloc(capacity)),
27 mCapacity(capacity),
29 mRangeLength(capacity),
34 ABuffer::ABuffer(void *data, size_t capacity) argument
36 mCapacity(capacity),
38 mRangeLength(capacity),
/frameworks/av/include/media/stagefright/foundation/
H A DABuffer.h32 ABuffer(size_t capacity);
33 ABuffer(void *data, size_t capacity);
39 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DBufferPool.java68 int capacity = buffer.capacity();
69 if (capacity < needed) {
71 capacity = chooseCapacity(capacity, needed);
72 buffer = ByteBuffer.allocate(capacity);
79 private int chooseCapacity(int capacity, int needed) { argument
80 while (capacity < needed) {
81 capacity *= 2;
83 if (capacity > mMaxBufferSiz
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DArrayMap.java46 * you have no control over this shrinking -- if you set a capacity and then remove an
47 * item, it may reduce the capacity to better match the current size. In the future an
48 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p>
58 * Create a new ArrayMap with a given initial capacity.
60 public ArrayMap(int capacity) { argument
61 super(capacity);
H A DSimpleArrayMap.java36 * The minimum amount by which the capacity of a ArrayMap will increase.
205 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
215 * Create a new ArrayMap with a given initial capacity.
217 public SimpleArrayMap(int capacity) { argument
218 if (capacity == 0) {
222 allocArrays(capacity);
/frameworks/base/libs/hwui/utils/
H A DSortedList.h59 inline size_t capacity() const { function in class:android::uirenderer::SortedList
60 return VectorImpl::capacity();
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp130 NamePool::size_type NamePool::capacity() const function in class:NamePool
/frameworks/base/core/java/android/util/
H A DArrayMap.java41 * you have no control over this shrinking -- if you set a capacity and then remove an
42 * item, it may reduce the capacity to better match the current size. In the future an
43 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p>
50 * The minimum amount by which the capacity of a ArrayMap will increase.
233 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
243 * Create a new ArrayMap with a given initial capacity.
245 public ArrayMap(int capacity) { argument
246 if (capacity == 0) {
250 allocArrays(capacity);
286 * Like {@link #clear}, but doesn't reduce the capacity o
[all...]
H A DArraySet.java40 * you have no control over this shrinking -- if you set a capacity and then remove an
41 * item, it may reduce the capacity to better match the current size. In the future an
42 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p>
51 * The minimum amount by which the capacity of a ArraySet will increase.
221 * Create a new empty ArraySet. The default capacity of an array map is 0, and
231 * Create a new ArraySet with a given initial capacity.
233 public ArraySet(int capacity) { argument
234 if (capacity == 0) {
238 allocArrays(capacity);
/frameworks/base/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
/frameworks/compile/mclinker/include/mcld/Support/
H A DGCFactory.h196 unsigned int capacity() const function in class:mcld::GCFactoryBase
/frameworks/rs/
H A DrsCppUtils.h106 void setCapacity(ssize_t capacity) { argument
107 this->resize(capacity);
132 void setCapacity(ssize_t capacity) { argument
133 this->resize(capacity);
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp250 jsize capacity = env->GetArrayLength(dataObj); local
251 if (size_t(capacity) < size) {
257 jsize capacity = size; local
258 if (capacity < 64) {
259 capacity = 64;
261 dataObj = env->NewCharArray(capacity); // might throw OOM
H A Dandroid_media_AudioRecord.cpp419 long capacity = env->GetDirectBufferCapacity(jBuffer); local
420 if (capacity == -1) {
425 //ALOGV("capacity = %ld", capacity);
434 capacity < sizeInBytes ? capacity : sizeInBytes);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.h320 size_t capacity; member in struct:android::HWComposer::DisplayData
/frameworks/base/core/java/android/os/
H A DBundle.java105 * @param capacity the initial capacity of the Bundle
107 public Bundle(int capacity) { argument
108 mMap = new ArrayMap<String, Object>(capacity);
/frameworks/base/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...]

Completed in 523 milliseconds