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

/frameworks/base/include/utils/
H A DSortedVector.h65 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::SortedVector
66 //! setst the capacity. capacity can never be reduced less than size()
H A DKeyedVector.h56 inline size_t capacity() const { return mVector.capacity(); } function in class:android::KeyedVector
57 //! setst the capacity. capacity can never be reduced less than size()
H A DVector.h71 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::Vector
72 //! setst the capacity. capacity can never be reduced less than size()
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dmemblock.h51 inline size_type capacity (void) const { return (m_Capacity); } function in class:ustl::memblock
H A Dsostream.h66 inline size_type capacity (void) const { return (m_Buffer.capacity()); } function in class:ustl::ostringstream
H A Duvector.h57 inline size_type capacity (void) const { return (m_Data.capacity() / sizeof(T)); } function in class:ustl::vector
113 const size_type oldCapacity = capacity();
115 if (capacity() > oldCapacity)
116 construct (begin() + oldCapacity, begin() + capacity());
123 if (m_Data.capacity() < n * sizeof(T))
133 destroy (begin(), begin() + capacity());
H A Dustring.h69 inline size_type capacity (void) const { size_type c (memblock::capacity()); return (c - !!c); } function in class:ustl::string
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DMultiRectAreaOp.java28 * Rectangle buffer capacity
40 public static int[] createBuf(int capacity) { argument
41 if (capacity == 0) {
42 capacity = RECT_CAPACITY;
44 int[] buf = new int[capacity];
52 public static int[] checkBufSize(int[] buf, int capacity) { argument
53 if (buf[0] + capacity >= buf.length) {
54 int length = buf[0] + (capacity > RECT_CAPACITY ? capacity : RECT_CAPACITY);
59 buf[0] += capacity;
[all...]
/frameworks/base/libs/utils/
H A DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize);
101 size_t VectorImpl::capacity() const function in class:android::VectorImpl
279 LOG_ASSERT(index<capacity(),
280 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
281 this, (int)index, (int)capacity(), (int)mCount);
291 LOG_ASSERT(index<capacity(),
292 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
293 this, (int)index, (int)capacity(), (int)mCount);
303 size_t current_capacity = capacity();
306 // we can't reduce the capacity
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_EventLog.cpp52 size_t capacity; member in struct:android::ByteBuf
58 capacity = initSize;
67 if (spaceNeeded > capacity) {
68 size_t newCapacity = MAX(spaceNeeded, 2 * capacity);
73 capacity = newCapacity;
H A Dandroid_media_AudioRecord.cpp361 long capacity = env->GetDirectBufferCapacity(jBuffer); local
362 if(capacity == -1) {
367 //LOGV("capacity = %ld", capacity);
376 capacity < sizeInBytes ? capacity : sizeInBytes);
/frameworks/base/core/java/android/os/
H A DBundle.java101 * @param capacity the initial capacity of the Bundle
103 public Bundle(int capacity) { argument
104 mMap = new HashMap<String, Object>(capacity);

Completed in 539 milliseconds