Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/av/media/libstagefright/foundation/
DABuffer.cpp25 ABuffer::ABuffer(size_t capacity) in ABuffer() argument
26 : mData(malloc(capacity)), in ABuffer()
27 mCapacity(capacity), in ABuffer()
29 mRangeLength(capacity), in ABuffer()
34 ABuffer::ABuffer(void *data, size_t capacity) in ABuffer() argument
36 mCapacity(capacity), in ABuffer()
38 mRangeLength(capacity), in ABuffer()
/frameworks/native/libs/utils/tests/
DBasicHashtable_test.cpp160 &h, h.size(), h.capacity(), h.bucketCount()); in dump()
182 EXPECT_EQ(3U, h.capacity()); in TEST_F()
191 EXPECT_EQ(77U, h.capacity()); in TEST_F()
200 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f in TEST_F()
209 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f in TEST_F()
315 EXPECT_EQ(3U, h.capacity()); in TEST_F()
327 EXPECT_EQ(3U, h.capacity()); in TEST_F()
342 EXPECT_EQ(3U, h.capacity()); in TEST_F()
360 EXPECT_EQ(3U, h.capacity()); in TEST_F()
411 size_t initialCapacity = h.capacity(); in TEST_F()
[all …]
/frameworks/av/include/media/stagefright/foundation/
DABuffer.h32 ABuffer(size_t capacity);
33 ABuffer(void *data, size_t capacity);
39 size_t capacity() const { return mCapacity; } in capacity() function
/frameworks/native/libs/utils/
DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl()
101 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl
298 ALOG_ASSERT(index<capacity(), in editItemLocation()
300 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
302 if (index < capacity()) { in editItemLocation()
313 ALOG_ASSERT(index<capacity(), in itemLocation()
315 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
317 if (index < capacity()) { in itemLocation()
328 size_t current_capacity = capacity(); in setCapacity()
367 if (capacity() < new_size) { in _grow()
[all …]
/frameworks/base/core/java/com/google/android/collect/
DLists.java59 int capacity = (elements.length * 110) / 100 + 5; in newArrayList() local
60 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
DSets.java65 int capacity = elements.length * 4 / 3 + 1; in newHashSet() local
66 HashSet<E> set = new HashSet<E>(capacity); in newHashSet()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java40 int capacity = format.getSize(); in NativeFrame() local
41 nativeAllocate(capacity); in NativeFrame()
42 setReusable(capacity != 0); in NativeFrame()
234 private native boolean nativeAllocate(int capacity); in nativeAllocate() argument
/frameworks/compile/mclinker/include/mcld/LD/
DSectionMap.h66 size_t capacity () const in capacity() function
67 { return m_SectMap.capacity(); } in capacity()
DSectionMerger.h64 size_t capacity () const in capacity() function
65 { return m_LDSectionMap.capacity(); } in capacity()
DNamePool.h98 size_type capacity() const;
/frameworks/base/core/java/android/content/
DContentQueryMap.java150 int capacity = mValues != null ? mValues.size() : 0; in readCursorIntoCache() local
151 mValues = new HashMap<String, ContentValues>(capacity); in readCursorIntoCache()
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.cpp386 GLint capacity; in ScanUniforms() local
391 glGetActiveUniform(program_, i, buffer_size, NULL, &capacity, &type, &name[0]); in ScanUniforms()
715 GLint capacity; in SetUniformValue() local
718 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name); in SetUniformValue()
722 if (!CheckValueCount("Uniform (int)", name, capacity, components, count) in SetUniformValue()
766 GLint capacity; in SetUniformValue() local
769 glGetActiveUniform(program_, IndexOfUniform(var), 128, NULL, &capacity, &type, name); in SetUniformValue()
773 if (!CheckValueCount("Uniform (float)", name, capacity, components, count) in SetUniformValue()
842 GLint capacity; in GetUniformValue() local
844 glGetActiveUniform(program_, IndexOfUniform(var), 0, NULL, &capacity, &type, NULL); in GetUniformValue()
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp250 jsize capacity = env->GetArrayLength(dataObj); in allocCharArrayBuffer() local
251 if (size_t(capacity) < size) { in allocCharArrayBuffer()
257 jsize capacity = size; in allocCharArrayBuffer() local
258 if (capacity < 64) { in allocCharArrayBuffer()
259 capacity = 64; in allocCharArrayBuffer()
261 dataObj = env->NewCharArray(capacity); // might throw OOM in allocCharArrayBuffer()
Dandroid_media_AudioRecord.cpp424 long capacity = env->GetDirectBufferCapacity(jBuffer); in android_media_AudioRecord_readInDirectBuffer() local
425 if (capacity == -1) { in android_media_AudioRecord_readInDirectBuffer()
439 capacity < sizeInBytes ? capacity : sizeInBytes); in android_media_AudioRecord_readInDirectBuffer()
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp583 if (mediaBuf->range_length() + 12 <= buffer->capacity()) { in sendAVCData()
619 if (size + 12 + 2 > buffer->capacity()) { in sendAVCData()
621 size = buffer->capacity() - 12 - 2; in sendAVCData()
690 bool lastPacket = (remaining + 14 <= buffer->capacity()); in sendH263Data()
692 remaining = buffer->capacity() - 14; in sendH263Data()
774 CHECK_LE(mediaLength + 12 + 1, buffer->capacity()); in sendAMRData()
DARTPSource.cpp179 if (buffer->size() + 20 > buffer->capacity()) { in addFIR()
217 if (buffer->size() + 32 > buffer->capacity()) { in addReceiverReport()
/frameworks/native/opengl/tests/testViewport/src/com/android/test/
DTestView.java197 …gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_S… in createBufferObjects()
201 …gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer,… in createBufferObjects()
/frameworks/native/include/utils/
DKeyedVector.h58 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h69 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h291 capacity(0), list(NULL), in DisplayData()
305 size_t capacity; member
/frameworks/base/services/input/
DEventHub.cpp647 size_t capacity = bufferSize; in getEvents() local
675 if (--capacity == 0) { in getEvents()
696 if (--capacity == 0) { in getEvents()
706 if (--capacity == 0) { in getEvents()
750 sizeof(struct input_event) * capacity); in getEvents()
755 device->fd, readSize, bufferSize, capacity, errno); in getEvents()
833 capacity -= count; in getEvents()
834 if (capacity == 0) { in getEvents()
/frameworks/base/libs/hwui/utils/
DSortedList.h59 inline size_t capacity() const { in capacity() function
60 return VectorImpl::capacity(); in capacity()
/frameworks/base/core/java/android/view/
DMotionEvent.java1303 int capacity = gSharedTempPointerCoords != null ? gSharedTempPointerCoords.length : 8; in ensureSharedTempPointerCapacity() local
1304 while (capacity < desiredCapacity) { in ensureSharedTempPointerCapacity()
1305 capacity *= 2; in ensureSharedTempPointerCapacity()
1307 gSharedTempPointerCoords = PointerCoords.createArray(capacity); in ensureSharedTempPointerCapacity()
1308 gSharedTempPointerProperties = PointerProperties.createArray(capacity); in ensureSharedTempPointerCapacity()
1309 gSharedTempPointerIndexMap = new int[capacity]; in ensureSharedTempPointerCapacity()
/frameworks/compile/mclinker/lib/LD/
DNamePool.cpp120 NamePool::size_type NamePool::capacity() const in capacity() function in NamePool
/frameworks/av/media/libstagefright/
DSkipCutBuffer.cpp91 size_t copied = read(dst, buffer->capacity()); in submit()

123