Home
last modified time | relevance | path

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

/frameworks/base/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/base/tests/CoreTests/android/core/
DVectorTest.java353 int capacity; in testVectorCapacity() local
356 capacity = vector.capacity(); in testVectorCapacity()
357 capacity = vector.capacity(); in testVectorCapacity()
358 capacity = vector.capacity(); in testVectorCapacity()
359 capacity = vector.capacity(); in testVectorCapacity()
360 capacity = vector.capacity(); in testVectorCapacity()
361 capacity = vector.capacity(); in testVectorCapacity()
362 capacity = vector.capacity(); in testVectorCapacity()
363 capacity = vector.capacity(); in testVectorCapacity()
364 capacity = vector.capacity(); in testVectorCapacity()
[all …]
DNIOTest.java39 assertTrue(b.limit() <= b.capacity()); in checkBuffer()
120 for (int i = 0; i < b.capacity(); i++) { in byteBufferTest()
199 assertEquals(4, bb.capacity()); in byteBufferTest()
214 b.limit(b.capacity()); in byteBufferTest()
335 assertEquals(4, bb.capacity()); in byteBufferTest()
342 assertEquals(2, sb.capacity()); in byteBufferTest()
350 assertEquals(2, sb.capacity()); in byteBufferTest()
358 assertEquals(1, ib.capacity()); in byteBufferTest()
365 assertEquals(1, ib.capacity()); in byteBufferTest()
372 assertEquals(1, fb.capacity()); in byteBufferTest()
[all …]
/frameworks/base/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/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/libs/utils/
DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl()
101 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl
292 LOG_ASSERT(index<capacity(), in editItemLocation()
294 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
304 LOG_ASSERT(index<capacity(), in itemLocation()
306 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
316 size_t current_capacity = capacity(); in setCapacity()
354 if (capacity() < new_size) { in _grow()
407 if (new_size*3 < capacity()) { in _shrink()
/frameworks/base/core/java/android/content/
DContentQueryMap.java140 int capacity = mValues != null ? mValues.size() : 0; in readCursorIntoCache() local
141 mValues = new HashMap<String, ContentValues>(capacity); in readCursorIntoCache()
/frameworks/base/opengl/java/android/opengl/
DGroup.java110 numTriangles += indexBuffer.capacity()/3; in getNumTriangles()
144 indexBuffer.capacity(), in draw()
/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp359 long capacity = env->GetDirectBufferCapacity(jBuffer); in android_media_AudioRecord_readInDirectBuffer() local
360 if(capacity == -1) { in android_media_AudioRecord_readInDirectBuffer()
374 capacity < sizeInBytes ? capacity : sizeInBytes); in android_media_AudioRecord_readInDirectBuffer()
/frameworks/base/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.cpp208 if (buffer->size() + 20 > buffer->capacity()) { in addFIR()
246 if (buffer->size() + 32 > buffer->capacity()) { in addReceiverReport()
DARTPConnection.cpp362 buffer->capacity(), in receive()
/frameworks/base/include/utils/
DKeyedVector.h56 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h65 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVector.h71 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVectorImpl.h65 size_t capacity() const;
/frameworks/base/media/java/android/media/
DMediaPlayer.java1038 int capacity = request.dataSize() + 4 * (1 + allow.size() + 1 + block.size()); in setMetadataFilter() local
1040 if (request.dataCapacity() < capacity) { in setMetadataFilter()
1041 request.setDataCapacity(capacity); in setMetadataFilter()
/frameworks/base/media/libstagefright/
DMPEG2TSWriter.cpp198 CHECK_LE(out->size() + 4 + length, out->capacity()); in extractCodecSpecificData()
221 CHECK_LE(out->size() + 4 + length, out->capacity()); in extractCodecSpecificData()
266 > mAACBuffer->capacity()) { in appendAACFrames()
/frameworks/base/media/libstagefright/mpeg2ts/
DESQueue.cpp78 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData()
DATSParser.cpp303 CHECK_LE(mBuffer->size() + payloadSizeBits / 8, mBuffer->capacity()); in parse()
/frameworks/base/media/libstagefright/httplive/
DLiveSource.cpp328 size_t bufferRemaining = buffer->capacity() - buffer->size(); in fetchM3U()
/frameworks/base/core/java/android/os/
DBundle.java103 public Bundle(int capacity) { in Bundle() argument
104 mMap = new HashMap<String, Object>(capacity); in Bundle()
/frameworks/base/docs/html/guide/developing/tools/
Demulator.jd1341 <pre>power &lt;display|ac|status|present|health|capacity&gt;</pre>
1380 <td>Set remaining battery capacity state (0-100).</td>