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/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/libmedia/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/av/media/extractors/flac/
DFLACExtractor.cpp144 size_t mMaxBufferSize; member in android::FLACParser
454 mMaxBufferSize(0), in FLACParser()
569 mMaxBufferSize = getMaxBlockSize() * getChannels() * getOutputSampleSize(); in allocateBuffers()
570 AMediaFormat_setInt32(mTrackMetadata, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, mMaxBufferSize); in allocateBuffers()
571 mGroup->add_buffer(mMaxBufferSize); in allocateBuffers()
621 CHECK(bufferSize <= mMaxBufferSize); in readBuffer()