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

123

/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/base/core/java/com/google/android/collect/
H A DLists.java59 int capacity = (elements.length * 110) / 100 + 5;
60 ArrayList<E> list = new ArrayList<E>(capacity);
H A DSets.java65 int capacity = elements.length * 4 / 3 + 1;
66 HashSet<E> set = new HashSet<E>(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/native/libs/utils/tests/
H A DBasicHashtable_test.cpp159 ALOGD("hashtable %p, size=%u, capacity=%u, bucketCount=%u",
160 &h, h.size(), h.capacity(), h.bucketCount());
182 EXPECT_EQ(3U, h.capacity());
191 EXPECT_EQ(77U, h.capacity());
200 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f
209 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f
315 EXPECT_EQ(3U, h.capacity());
327 EXPECT_EQ(3U, h.capacity());
342 EXPECT_EQ(3U, h.capacity());
360 EXPECT_EQ(3U, h.capacity());
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DSectionMap.h66 size_t capacity () const function in class:mcld::SectionMap
67 { return m_SectMap.capacity(); }
H A DSectionMerger.h64 size_t capacity () const function in class:mcld::SectionMerger
65 { return m_LDSectionMap.capacity(); }
H A DNamePool.h95 // ----- capacity ----- //
98 size_type capacity() const;
/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/base/core/java/android/content/
H A DContentQueryMap.java150 int capacity = mValues != null ? mValues.size() : 0;
151 mValues = new HashMap<String, ContentValues>(capacity);
/frameworks/native/libs/utils/
H A DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize);
101 size_t VectorImpl::capacity() const function in class:android::VectorImpl
298 ALOG_ASSERT(index<capacity(),
299 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
300 this, (int)index, (int)capacity(), (int)mCount);
302 if (index < capacity()) {
313 ALOG_ASSERT(index<capacity(),
314 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
315 this, (int)index, (int)capacity(), (int)mCount);
317 if (index < capacity()) {
[all...]
/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/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.cpp424 long capacity = env->GetDirectBufferCapacity(jBuffer); local
425 if (capacity == -1) {
430 //ALOGV("capacity = %ld", capacity);
439 capacity < sizeInBytes ? capacity : sizeInBytes);
/frameworks/av/media/libstagefright/rtsp/
H A DARTPSource.cpp179 if (buffer->size() + 20 > buffer->capacity()) {
217 if (buffer->size() + 32 > buffer->capacity()) {
H A DARTPWriter.cpp583 if (mediaBuf->range_length() + 12 <= buffer->capacity()) {
619 if (size + 12 + 2 > buffer->capacity()) {
621 size = buffer->capacity() - 12 - 2;
687 // CHECK_LE(mediaBuf->range_length() -2 + 14, buffer->capacity());
690 bool lastPacket = (remaining + 14 <= buffer->capacity());
692 remaining = buffer->capacity() - 14;
774 CHECK_LE(mediaLength + 12 + 1, buffer->capacity());
/frameworks/native/include/utils/
H A DKeyedVector.h58 inline size_t capacity() const { return mVector.capacity(); } function in class:android::KeyedVector
59 //! sets the capacity. capacity can never be reduced less than size()
H A DSortedVector.h69 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::SortedVector
70 //! sets the capacity. capacity can never be reduced less than size()
/frameworks/native/opengl/tests/testViewport/src/com/android/test/
H A DTestView.java197 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);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.h290 capacity(0), list(NULL),
304 size_t capacity; member in struct:android::HWComposer::DisplayData
/frameworks/av/media/libstagefright/
H A DSkipCutBuffer.cpp91 size_t copied = read(dst, buffer->capacity());
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp120 NamePool::size_type NamePool::capacity() const function in class:NamePool
/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/view/
H A DMotionEvent.java1303 int capacity = gSharedTempPointerCoords != null ? gSharedTempPointerCoords.length : 8;
1304 while (capacity < desiredCapacity) {
1305 capacity *= 2;
1307 gSharedTempPointerCoords = PointerCoords.createArray(capacity);
1308 gSharedTempPointerProperties = PointerProperties.createArray(capacity);
1309 gSharedTempPointerIndexMap = new int[capacity];
/frameworks/base/services/input/
H A DEventHub.cpp647 size_t capacity = bufferSize;
675 if (--capacity == 0) {
696 if (--capacity == 0) {
706 if (--capacity == 0) {
750 sizeof(struct input_event) * capacity);
754 "capacity: %d errno: %d)\n",
755 device->fd, readSize, bufferSize, capacity, errno);
833 capacity -= count;
834 if (capacity == 0) {

Completed in 594 milliseconds

123