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

/frameworks/av/include/media/stagefright/foundation/
H A DABuffer.h33 ABuffer(size_t capacity);
34 ABuffer(void *data, size_t capacity);
40 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer
47 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp26 ABuffer::ABuffer(size_t capacity) argument
28 mData(malloc(capacity)),
29 mCapacity(capacity),
31 mRangeLength(capacity),
36 ABuffer::ABuffer(void *data, size_t capacity) argument
39 mCapacity(capacity),
41 mRangeLength(capacity),
47 sp<ABuffer> ABuffer::CreateAsCopy(const void *data, size_t capacity) argument
49 sp<ABuffer> res = new ABuffer(capacity);
50 memcpy(res->data(), data, capacity);
[all...]
/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/base/core/java/android/os/
H A DPersistableBundle.java58 * @param capacity the initial capacity of the PersistableBundle
60 public PersistableBundle(int capacity) { argument
61 super(capacity);
H A DBaseBundle.java64 * @param capacity Initial size of the ArrayMap.
66 BaseBundle(ClassLoader loader, int capacity) { argument
67 mMap = capacity > 0 ?
68 new ArrayMap<String, Object>(capacity) : new ArrayMap<String, Object>();
108 * @param capacity the initial capacity of the Bundle
110 BaseBundle(int capacity) { argument
111 this((ClassLoader) null, capacity);
H A DBundle.java89 * @param capacity the initial capacity of the Bundle
91 public Bundle(int capacity) { argument
92 super(capacity);
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp131 NamePool::size_type NamePool::capacity() const function in class:NamePool
/frameworks/base/core/java/android/util/
H A DArrayMap.java43 * you have no control over this shrinking -- if you set a capacity and then remove an
44 * item, it may reduce the capacity to better match the current size. In the future an
45 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p>
52 * The minimum amount by which the capacity of a ArrayMap will increase.
235 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
245 * Create a new ArrayMap with a given initial capacity.
247 public ArrayMap(int capacity) { argument
248 if (capacity == 0) {
252 allocArrays(capacity);
288 * Like {@link #clear}, but doesn't reduce the capacity o
[all...]
H A DArraySet.java42 * you have no control over this shrinking -- if you set a capacity and then remove an
43 * item, it may reduce the capacity to better match the current size. In the future an
44 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p>
53 * The minimum amount by which the capacity of a ArraySet will increase.
223 * Create a new empty ArraySet. The default capacity of an array map is 0, and
233 * Create a new ArraySet with a given initial capacity.
235 public ArraySet(int capacity) { argument
236 if (capacity == 0) {
240 allocArrays(capacity);
/frameworks/base/core/jni/
H A Dcom_android_internal_net_NetworkStatsFactory.cpp40 jfieldID capacity; member in struct:android::__anon870
226 bool grow = size > env->GetIntField(stats, gNetworkStatsClassInfo.capacity);
271 env->SetIntField(stats, gNetworkStatsClassInfo.capacity, size);
311 gNetworkStatsClassInfo.capacity = env->GetFieldID(clazz, "capacity", "I");
H A Dandroid_database_CursorWindow.cpp251 jsize capacity = env->GetArrayLength(dataObj); local
252 if (size_t(capacity) < size) {
258 jsize capacity = size; local
259 if (capacity < 64) {
260 capacity = 64;
262 dataObj = env->NewCharArray(capacity); // might throw OOM
H A Dandroid_media_AudioRecord.cpp457 long capacity = env->GetDirectBufferCapacity(jBuffer); local
458 if (capacity == -1) {
463 //ALOGV("capacity = %ld", capacity);
472 capacity < sizeInBytes ? capacity : sizeInBytes);
H A Dandroid_hardware_camera2_DngCreator.cpp1639 jlong capacity = env->GetDirectBufferCapacity(buffer); local
1640 if (capacity != fullSize) {
1643 capacity, fullSize);
1849 jlong capacity = env->GetDirectBufferCapacity(inBuffer); local
1850 if (capacity < 0 || fullSize + uOffset > static_cast<uint64_t>(capacity)) {
1853 capacity, fullSize);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java38 int capacity = format.getSize();
39 nativeAllocate(capacity);
40 setReusable(capacity != 0);
232 private native boolean nativeAllocate(int capacity); argument
/frameworks/compile/mclinker/include/mcld/Support/
H A DGCFactory.h193 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/av/media/ndk/
H A DNdkMediaExtractor.cpp167 ssize_t AMediaExtractor_readSampleData(AMediaExtractor *mData, uint8_t *buffer, size_t capacity) { argument
169 sp<ABuffer> tmp = new ABuffer(buffer, capacity);
/frameworks/base/core/java/android/net/
H A DNetworkStats.java68 private int capacity; field in class:NetworkStats
161 this.capacity = initialSize;
173 this.capacity = 0;
189 capacity = parcel.readInt();
205 dest.writeInt(capacity);
247 if (size >= capacity) {
258 capacity = newLength;
314 return capacity;
578 if (recycle != null && recycle.capacity >= left.size) {
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.h335 size_t capacity; member in struct:android::HWComposer::DisplayData
/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...]
/frameworks/native/services/inputflinger/
H A DEventHub.cpp708 size_t capacity = bufferSize; local
736 if (--capacity == 0) {
757 if (--capacity == 0) {
767 if (--capacity == 0) {
811 sizeof(struct input_event) * capacity);
815 " bufferSize: %zu capacity: %zu errno: %d)\n",
816 device->fd, readSize, bufferSize, capacity, errno);
920 capacity -= 1;
922 if (capacity == 0) {
/frameworks/testing/espresso/libs/
H A Dguava-14.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ...

Completed in 570 milliseconds