Searched refs:capacity (Results 1 - 25 of 53) sorted by last modified time

123

/frameworks/native/include/utils/
H A DBasicHashtable.h114 // number of entries and returns its effective capacity.
172 /* Creates a hashtable with the specified minimum initial capacity.
175 * minimumInitialCapacity: The minimum initial capacity for the hashtable.
207 /* Returns the capacity of the hashtable, which is the number of elements that can
210 inline size_t capacity() const { function in class:android::BasicHashtable
286 * If the entry will not fit, then the hashtable's capacity is increased and
311 * Grows the hashtable to at least the specified minimum capacity or the
319 * Rehashing is the only way to change the capacity or load factor of the
321 * hashtable by choosing a minimum capacity that is smaller than the current
322 * capacity (suc
[all...]
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()
H A DVector.h79 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::Vector
80 //! sets the capacity. capacity can never be reduced less than size()
H A DVectorImpl.h65 size_t capacity() const;
/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/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/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.cpp497 if (disp.capacity < numLayers || disp.list == NULL) {
502 disp.capacity = numLayers;
H A DHWComposer.h290 capacity(0), list(NULL),
304 size_t capacity; member in struct:android::HWComposer::DisplayData
/frameworks/compile/mclinker/include/mcld/LD/
H A DNamePool.h95 // ----- capacity ----- //
98 size_type capacity() const;
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 DStringUnorderedMap.h79 size_t capacity() const function in class:mcld::StringUnorderedMap
/frameworks/compile/mclinker/include/mcld/Support/
H A DGCFactory.h196 unsigned int capacity() const function in class:mcld::GCFactoryBase
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp120 NamePool::size_type NamePool::capacity() const function in class:NamePool
/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) {
/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/media/java/android/media/
H A DMediaPlayer.java1249 int capacity = request.dataSize() + 4 * (1 + allow.size() + 1 + block.size());
1251 if (request.dataCapacity() < capacity) {
1252 request.setDataCapacity(capacity);
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp247 buffer->capacity());
/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/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/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/av/media/libstagefright/httplive/
H A DLiveSession.cpp266 size_t bufferRemaining = buffer->capacity() - buffer->size();
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp440 size_t maxBytesToRead = mBuffer->capacity() - mBuffer->size();
451 maxBytesToRead = mBuffer->capacity() - mBuffer->size();

Completed in 305 milliseconds

123