/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | BufferPool.java | 68 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...] |
H A D | Transport.java | 120 final int capacity = mOutputBuffer.capacity(); 136 final int outputAvailable = capacity - mOutputBuffer.position(); 144 ioWrite(outputArray, 0, capacity); 306 count = ioRead(buffer.array(), position, buffer.capacity() - position);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ABuffer.cpp | 26 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/google/android/collect/ |
H A D | Lists.java | 59 int capacity = (elements.length * 110) / 100 + 5; 60 ArrayList<E> list = new ArrayList<E>(capacity);
|
H A D | Sets.java | 67 int capacity = elements.length * 4 / 3 + 1; 68 HashSet<E> set = new HashSet<E>(capacity); 106 int capacity = elements.length * 4 / 3 + 1; 107 ArraySet<E> set = new ArraySet<E>(capacity);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 33 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/base/libs/hwui/utils/ |
H A D | RingBuffer.h | 34 constexpr size_t capacity() const { return SIZE; } function in class:android::uirenderer::RingBuffer
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeFrame.java | 38 int capacity = format.getSize(); 39 nativeAllocate(capacity); 40 setReusable(capacity != 0); 232 private native boolean nativeAllocate(int capacity); argument
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | ArrayMap.java | 46 * 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);
|
/frameworks/base/core/java/android/content/ |
H A D | ContentQueryMap.java | 150 int capacity = mValues != null ? mValues.size() : 0; 151 mValues = new HashMap<String, ContentValues>(capacity);
|
/frameworks/av/include/ndk/ |
H A D | NdkMediaExtractor.h | 94 ssize_t AMediaExtractor_readSampleData(AMediaExtractor*, uint8_t *buffer, size_t capacity);
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | DisplaySinkService.java | 203 final int capacity = buffer.capacity(); 205 if (content.remaining() <= capacity) { 209 content.limit(content.position() + capacity);
|
/frameworks/rs/ |
H A D | rsCppUtils.h | 106 void setCapacity(ssize_t capacity) { argument 107 this->resize(capacity); 132 void setCapacity(ssize_t capacity) { argument 133 this->resize(capacity);
|
/frameworks/base/libs/hwui/ |
H A D | FrameInfoVisualizer.cpp | 122 mFastRects.reset(new float[mFrameSource.capacity() * 4]); 123 mJankyRects.reset(new float[mFrameSource.capacity() * 4]); 134 float baseLineWidth = right / mFrameSource.capacity();
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 399 root.capacity = rootSize; 458 public long capacity; field in class:StubProvider.RootInfo 461 RootInfo(String name, long capacity) { argument 463 this.capacity = 1024 * 1024; 468 this.capacity = capacity; 473 return capacity - size;
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | shader_program.cpp | 379 GLint capacity; local 384 glGetActiveUniform(program_, i, buffer_size, NULL, &capacity, &type, &name[0]); 708 GLint capacity; local 711 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name); 715 if (!CheckValueCount("Uniform (int)", name, capacity, components, count) 759 GLint capacity; local 762 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name); 766 if (!CheckValueCount("Uniform (float)", name, capacity, components, count) 835 GLint capacity; local 837 glGetActiveUniform(program_, IndexOfUniform(var), 0, NULL, &capacity, [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 253 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 D | com_android_internal_net_NetworkStatsFactory.cpp | 41 jfieldID capacity; member in struct:android::__anon923 227 bool grow = size > env->GetIntField(stats, gNetworkStatsClassInfo.capacity); 272 env->SetIntField(stats, gNetworkStatsClassInfo.capacity, size); 303 gNetworkStatsClassInfo.capacity = GetFieldIDOrDie(env, clazz, "capacity", "I");
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 470 long capacity = pixels.capacity(); 472 if (capacity < totalSize) { 473 throw new IllegalArgumentException("Image size " + capacity +
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | NamePool.h | 116 // ----- capacity ----- // 119 size_type capacity() const;
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 77 private int capacity; field in class:NetworkStats 170 this.capacity = initialSize; 182 this.capacity = 0; 198 capacity = parcel.readInt(); 214 dest.writeInt(capacity); 256 if (size >= capacity) { 267 capacity = newLength; 323 return capacity; 587 if (recycle != null && recycle.capacity >= left.size) {
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPSource.cpp | 179 if (buffer->size() + 20 > buffer->capacity()) { 217 if (buffer->size() + 32 > buffer->capacity()) {
|
/frameworks/base/core/java/android/os/ |
H A D | PersistableBundle.java | 69 * @param capacity the initial capacity of the PersistableBundle 71 public PersistableBundle(int capacity) { argument 72 super(capacity);
|
/frameworks/native/opengl/tests/testViewport/src/com/android/test/ |
H A D | TestView.java | 197 gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW); 201 gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW);
|