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

12

/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp26 ABuffer::ABuffer(size_t capacity) argument
31 mData = malloc(capacity);
36 mCapacity = capacity;
37 mRangeLength = capacity;
41 ABuffer::ABuffer(void *data, size_t capacity) argument
44 mCapacity(capacity),
46 mRangeLength(capacity),
52 sp<ABuffer> ABuffer::CreateAsCopy(const void *data, size_t capacity) argument
54 sp<ABuffer> res = new ABuffer(capacity);
58 memcpy(res->data(), data, capacity);
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DRingBufferIndices.java31 * Create ring buffer of the given capacity.
33 public RingBufferIndices(int capacity) { argument
34 mCapacity = capacity;
H A DLineBreakBufferedWriter.java64 * size. The initial capacity will be a default value.
74 * size and initial capacity.
77 * @param initialCapacity The initial capacity of the internal buffer.
259 * @param capacity The size to be ensured.
261 private void ensureCapacity(int capacity) { argument
263 if (newSize < capacity) {
264 newSize = capacity;
/frameworks/av/include/media/stagefright/foundation/
H A DABuffer.h33 ABuffer(size_t capacity);
34 ABuffer(void *data, size_t capacity);
38 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer
45 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
/frameworks/base/libs/hwui/utils/
H A DRingBuffer.h34 constexpr size_t capacity() const { return SIZE; } function in class:android::uirenderer::RingBuffer
H A DFatVector.h96 FatVector(size_t capacity) : FatVector() { argument
97 this->resize(capacity);
/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/core/java/android/os/
H A DPersistableBundle.java69 * @param capacity the initial capacity of the PersistableBundle
71 public PersistableBundle(int capacity) { argument
72 super(capacity);
H A DBundle.java92 * @param capacity the initial capacity of the Bundle
94 public Bundle(int capacity) { argument
95 super(capacity);
H A DBaseBundle.java102 * @param capacity Initial size of the ArrayMap.
104 BaseBundle(@Nullable ClassLoader loader, int capacity) { argument
105 mMap = capacity > 0 ?
106 new ArrayMap<String, Object>(capacity) : new ArrayMap<String, Object>();
146 * @param capacity the initial capacity of the Bundle
148 BaseBundle(int capacity) { argument
149 this((ClassLoader) null, capacity);
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp125 NamePool::size_type NamePool::capacity() const { function in class:mcld::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.
236 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
244 * Create a new ArrayMap with a given initial capacity.
246 public ArrayMap(int capacity) { argument
247 this(capacity, false);
251 public ArrayMap(int capacity, boolean identityHashCode) { argument
257 if (capacity <
[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>
51 * The minimum amount by which the capacity of a ArraySet will increase.
222 * Create a new empty ArraySet. The default capacity of an array map is 0, and
230 * Create a new ArraySet with a given initial capacity.
232 public ArraySet(int capacity) { argument
233 this(capacity, false);
237 public ArraySet(int capacity, boolean identityHashCode) { argument
239 if (capacity
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp253 jsize capacity = env->GetArrayLength(dataObj); local
254 if (size_t(capacity) < size) {
260 jsize capacity = size; local
261 if (capacity < 64) {
262 capacity = 64;
264 dataObj = env->NewCharArray(capacity); // might throw OOM
H A Dcom_android_internal_net_NetworkStatsFactory.cpp41 jfieldID capacity; member in struct:android::__anon958
228 bool grow = size > env->GetIntField(stats, gNetworkStatsClassInfo.capacity);
277 env->SetIntField(stats, gNetworkStatsClassInfo.capacity, size);
309 gNetworkStatsClassInfo.capacity = GetFieldIDOrDie(env, clazz, "capacity", "I");
/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/base/wifi/java/android/net/wifi/nan/
H A DTlvBufferUtils.java100 * @param capacity The size of the byte array to be allocated.
104 public TlvConstructor allocate(int capacity) { argument
105 mArray = new byte[capacity];
106 mArrayLength = capacity;
/frameworks/compile/mclinker/include/mcld/Support/
H A DGCFactory.h173 unsigned int capacity() const { return Alloc::max_size(); } function in class:mcld::GCFactoryBase
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequence.java44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp169 ssize_t AMediaExtractor_readSampleData(AMediaExtractor *mData, uint8_t *buffer, size_t capacity) { argument
171 sp<ABuffer> tmp = new ABuffer(buffer, capacity);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer_hwc1.h337 size_t capacity; member in struct:android::HWComposer::DisplayData
/frameworks/rs/
H A DrsCppUtils.h112 void setCapacity(ssize_t capacity) { argument
113 this->resize(capacity);
138 void setCapacity(ssize_t capacity) { argument
139 this->resize(capacity);
/frameworks/base/core/java/android/net/
H A DNetworkStats.java86 private int capacity; field in class:NetworkStats
194 this.capacity = initialSize;
207 this.capacity = 0;
224 capacity = parcel.readInt();
241 dest.writeInt(capacity);
291 if (size >= capacity) {
303 capacity = newLength;
361 return capacity;
628 if (recycle != null && recycle.capacity >= left.size) {

Completed in 4030 milliseconds

12