Home
last modified time | relevance | path

Searched refs:framesToRead (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp127 fifo_frames_t framesToRead = framesLeft; in read() local
130 if (framesToRead > framesAvailable) { in read()
131 framesToRead = framesAvailable; in read()
133 int32_t numBytes = convertFramesToBytes(framesToRead); in read()
137 framesLeft -= framesToRead; in read()
DFifoBuffer.h53 fifo_frames_t read(void *destination, fifo_frames_t framesToRead);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp214 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyMultipleDataFrames() local
215 fifo_frames_t actual = mFifoBuffer.read(mData, framesToRead); in verifyMultipleDataFrames()
216 ASSERT_EQ(framesToRead, actual); in verifyMultipleDataFrames()
217 for (int i = 0; i < framesToRead; i++) { in verifyMultipleDataFrames()
227 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyRequestedData() local
228 fifo_frames_t actual = mFifoBuffer.read(mData, framesToRead); in verifyRequestedData()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp416 int32_t framesToRead = std::min(framesLeft, mFormatConversionBufferSizeInFrames); in read() local
417 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read()
/frameworks/av/services/audioflinger/
DTracks.cpp2545 const size_t framesToRead = std::min(buffer->mFrameCount, mFrameCount); in obtainBuffer() local
2556 result = stream->read(mSinkBuffer.get(), framesToRead * mFrameSize, &bytesRead); in obtainBuffer()
DThreads.cpp7118 size_t framesToRead = min(mRsmpInFramesOA - rear, mRsmpInFramesP2 / 2); in threadLoop() local
7126 framesToRead); in threadLoop()