Home
last modified time | relevance | path

Searched refs:framesWritten (Results 1 – 21 of 21) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_full_queue.cpp98 int64_t framesWritten = AAudioStream_getFramesWritten(aaudioStream); in checkFullQueue() local
101 __func__, (intmax_t) framesRead, (intmax_t) framesWritten, in checkFullQueue()
102 (intmax_t)(framesWritten - framesRead)); in checkFullQueue()
112 framesWritten = AAudioStream_getFramesWritten(aaudioStream); in checkFullQueue()
114 } while ((framesRead > framesWritten) in checkFullQueue()
117 EXPECT_LE(framesRead, framesWritten); in checkFullQueue()
121 __func__, (intmax_t) framesRead, (intmax_t) framesWritten, in checkFullQueue()
122 (intmax_t)(framesWritten - framesRead)); in checkFullQueue()
Dtest_recovery.cpp100 int32_t framesWritten = AAudioStream_write(aaudioStream, in main() local
103 if (framesWritten < 0) { in main()
104 result = framesWritten; in main()
108 } else if (framesWritten != framesPerBurst) { in main()
109 printf("write() returned %d, frames = %d\n", framesWritten, (int)framesTotal); in main()
112 framesTotal += framesWritten; in main()
Dtest_aaudio_monkey.cpp111 int64_t framesWritten = AAudioStream_getFramesWritten(getStream()); in validate() local
116 (unsigned long long) framesWritten, in validate()
120 if (state != AAUDIO_STREAM_STATE_STARTING && framesWritten < framesRead) { in validate()
122 (int) (framesWritten - framesRead)); in validate()
Dtest_return_stop.cpp156 const int64_t framesWritten = AAudioStream_getFramesWritten(engine->stream); in s_checkEnginePositions() local
157 const int32_t delta = (int32_t)(framesWritten - framesRead); in s_checkEnginePositions()
161 (int32_t) framesWritten, in s_checkEnginePositions()
Dtest_steal_exclusive.cpp217 const int64_t framesWritten = AAudioStream_getFramesWritten(mStream); in checkEnginePositions() local
218 const int32_t delta = (int32_t)(framesWritten - framesRead); in checkEnginePositions()
223 (int32_t) framesWritten, in checkEnginePositions()
/frameworks/av/services/audioflinger/fastpath/
DFastCapture.cpp206 const ssize_t framesWritten = mPipeSink->write(mReadBuffer, mReadBufferState); in onWork() local
212 mReadBuffer, mFormat.mFormat, framesWritten * mFormat.mChannelCount); in onWork()
213 patchBuffer.frameCount = framesWritten; in onWork()
215 } else if (cblk != nullptr && framesWritten > 0) { in onWork()
220 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear); in onWork()
221 cblk->mServer += framesWritten; in onWork()
DFastMixer.cpp482 const ssize_t framesWritten = mOutputSink->write(buffer, frameCount); in onWork() local
485 if (framesWritten >= 0) { in onWork()
486 ALOG_ASSERT((size_t) framesWritten <= frameCount); in onWork()
487 mTotalNativeFramesWritten += framesWritten; in onWork()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalPlay.cpp244 int32_t framesWritten = writeNowWithConversion(buffer, numFrames); in processDataNow() local
248 ATRACE_INT("aaWrote", framesWritten); in processDataNow()
263 if (framesWritten != 0) { in processDataNow()
292 return framesWritten; in processDataNow()
DAudioEndpoint.h80 void setDataWriteCounter(android::fifo_counter_t framesWritten);
DAudioStreamInternal.cpp440 if (const android::fifo_frames_t framesWritten = in exitStandby_l() local
442 framesWritten != fullFramesAvailable) { in exitStandby_l()
444 "frames to write: %d", framesWritten, fullFramesAvailable); in exitStandby_l()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp172 fifo_frames_t framesWritten = numFrames - framesLeft; in write() local
173 mFifo->advanceWriteIndex(framesWritten); in write()
174 return framesWritten; in write()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp128 … const int32_t framesWritten = (int32_t) AAudioStream_getFramesWritten(player.getStream()); in testOpenPlayClose() local
138 framesWritten, in testOpenPlayClose()
140 framesWritten - framesRead, in testOpenPlayClose()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp729 int32_t framesWritten = AAudioStream_getFramesWritten(inputStream); in main() local
730 const int64_t framesAvailable = framesWritten - framesRead; in main()
733 printf(" framesWritten = %8d\n", framesWritten); in main()
749 int32_t framesWritten = AAudioStream_getFramesWritten(outputStream); in main() local
753 printf(" framesWritten = %8d\n", framesWritten); in main()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp473 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write() local
474 incrementFramesWritten(framesWritten); in write()
481 return framesWritten; in write()
/frameworks/av/services/audioflinger/
DTracks.cpp1097 const size_t framesWritten = patchRecord->writeFrames( in interceptBuffer() local
1099 const size_t framesLeft = frameCount - framesWritten; in interceptBuffer()
1102 framesWritten, frameCount, framesLeft); in interceptBuffer()
1244 playbackThread->framesWritten()); in start()
1736 int64_t framesWritten, size_t audioHalFrames) in presentationComplete() argument
1750 (long long)mPresentationCompleteFrames, (long long)framesWritten); in presentationComplete()
1752 mPresentationCompleteFrames = framesWritten + audioHalFrames; in presentationComplete()
1761 complete = framesWritten >= (int64_t) mPresentationCompleteFrames; in presentationComplete()
1764 (long long) framesWritten, (long long) mPresentationCompleteFrames); in presentationComplete()
1766 complete = framesWritten >= (int64_t) mPresentationCompleteFrames in presentationComplete()
[all …]
DPlaybackTracks.h261 bool presentationComplete(int64_t framesWritten, size_t audioHalFrames) final;
DIAfTrack.h410 virtual bool presentationComplete(int64_t framesWritten, size_t audioHalFrames) = 0;
DThreads.cpp2359 dprintf(fd, " PipeSink frames written: %lld\n", (long long)mPipeSink->framesWritten()); in dumpInternals_l()
3414 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition() local
3415 *halFrames = framesWritten; in getRenderPosition()
3421 (framesWritten >= (int64_t)latencyFrames ? framesWritten - latencyFrames : 0); in getRenderPosition()
3570 ssize_t framesWritten = mNormalSink->write((char *)mSinkBuffer + offset, count); in threadLoop_write() local
3573 if (framesWritten > 0) { in threadLoop_write()
3574 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
3577 mTee.write((char *)mSinkBuffer + offset, framesWritten); in threadLoop_write()
3580 bytesWritten = framesWritten; in threadLoop_write()
5383 (long long)mPipeSink->framesWritten(), pipeFrames); in threadLoop_standby()
[all …]
DIAfThread.h538 virtual const std::atomic<int64_t>& framesWritten() const = 0;
DThreads.h1534 const std::atomic<int64_t>& framesWritten() const final { return mFramesWritten; } in framesWritten() function
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h151 virtual int64_t framesWritten() const { return mFramesWritten; } in framesWritten() function