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/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/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/module/extractors/flac/
DFLACExtractor.cpp146 size_t mMaxBufferSize; member in android::FLACParser
456 mMaxBufferSize(0), in FLACParser()
564 mMaxBufferSize = getMaxBlockSize() * getChannels() * getOutputSampleSize(); in init()
565 AMediaFormat_setInt32(mTrackMetadata, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, mMaxBufferSize); in init()
573 mGroup->add_buffer(mMaxBufferSize); in allocateBuffers()
623 CHECK(bufferSize <= mMaxBufferSize); in readBuffer()