Home
last modified time | relevance | path

Searched refs:mMaxBufferSize (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DBufferPool.java27 private final int mMaxBufferSize; field in BufferPool
34 mMaxBufferSize = maxBufferSize; in BufferPool()
83 if (capacity > mMaxBufferSize) { in chooseCapacity()
84 if (needed > mMaxBufferSize) { in chooseCapacity()
86 + " is larger than maximum buffer size " + mMaxBufferSize + "."); in chooseCapacity()
88 capacity = mMaxBufferSize; in chooseCapacity()
/frameworks/av/include/media/
DRingBuffer.h168 size_t mMaxBufferSize; variable
174 RingBuffer<T>::RingBuffer(size_t length) : mFrontIdx{0}, mMaxBufferSize{length} {} in RingBuffer()
266 if (mBuffer.size() < mMaxBufferSize) { in add()
268 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
273 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
278 if (mBuffer.size() != mMaxBufferSize) { in add()
280 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
286 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
292 if (mBuffer.size() != mMaxBufferSize) { in emplace()
294 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in emplace()
[all …]
/frameworks/native/services/sensorservice/
DRingBuffer.h168 size_t mMaxBufferSize; variable
174 RingBuffer<T>::RingBuffer(size_t length) : mFrontIdx{0}, mMaxBufferSize{length} {} in RingBuffer()
266 if (mBuffer.size() < mMaxBufferSize) { in add()
268 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
273 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
278 if (mBuffer.size() != mMaxBufferSize) { in add()
280 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
286 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in add()
292 if (mBuffer.size() != mMaxBufferSize) { in emplace()
294 mFrontIdx = ((mFrontIdx + 1) % mMaxBufferSize); in emplace()
[all …]
/frameworks/av/media/libstagefright/
DFLACExtractor.cpp123 size_t mMaxBufferSize; member in android::FLACParser
493 mMaxBufferSize(0), in FLACParser()
637 mMaxBufferSize = getMaxBlockSize() * getChannels() * sizeof(short); in allocateBuffers()
638 mGroup->add_buffer(new MediaBuffer(mMaxBufferSize)); in allocateBuffers()
691 CHECK(bufferSize <= mMaxBufferSize); in readBuffer()