Searched defs:capacity (Results 1 - 10 of 10) sorted by path

/frameworks/base/core/java/android/os/
H A DBundle.java102 * @param capacity the initial capacity of the Bundle
104 public Bundle(int capacity) { argument
105 mMap = new HashMap<String, Object>(capacity);
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp254 jsize capacity = env->GetArrayLength(dataObj); local
255 if (size_t(capacity) < size) {
261 jsize capacity = size; local
262 if (capacity < 64) {
263 capacity = 64;
265 dataObj = env->NewCharArray(capacity); // might throw OOM
H A Dandroid_media_AudioRecord.cpp390 long capacity = env->GetDirectBufferCapacity(jBuffer); local
391 if(capacity == -1) {
396 //LOGV("capacity = %ld", capacity);
405 capacity < sizeInBytes ? capacity : sizeInBytes);
/frameworks/base/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/base/include/utils/
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 DSortedVector.h67 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::SortedVector
68 //! setst the capacity. capacity can never be reduced less than size()
H A DVector.h78 inline size_t capacity() const { return VectorImpl::capacity(); } function in class:android::Vector
79 //! setst the capacity. capacity can never be reduced less than size()
/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/libs/utils/
H A DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize);
101 size_t VectorImpl::capacity() const function in class:android::VectorImpl
294 LOG_ASSERT(index<capacity(),
295 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
296 this, (int)index, (int)capacity(), (int)mCount);
306 LOG_ASSERT(index<capacity(),
307 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
308 this, (int)index, (int)capacity(), (int)mCount);
318 size_t current_capacity = capacity();
321 // we can't reduce the capacity
[all...]
/frameworks/base/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),

Completed in 305 milliseconds