Lines Matching refs:mFrameCount
45 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
73 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0); in obtainBuffer()
142 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
145 "shutting down", filled, mFrameCount); in obtainBuffer()
156 size_t avail = mIsOut ? mFrameCount - filled : filled; in obtainBuffer()
170 if (part1 > buffer->mFrameCount) { in obtainBuffer()
171 part1 = buffer->mFrameCount; in obtainBuffer()
173 buffer->mFrameCount = part1; in obtainBuffer()
263 buffer->mFrameCount = 0; in obtainBuffer()
285 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
288 buffer->mFrameCount = 0; in releaseBuffer()
293 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
348 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in getFramesFilled()
521 if (bufferPosition > mFrameCount) { in getBufferPosition()
522 bufferPosition = mFrameCount; in getBufferPosition()
541 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0); in obtainBuffer()
562 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
585 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
596 mAvailToClient = mFrameCount - filled; in obtainBuffer()
598 availToServer = mFrameCount - filled; in obtainBuffer()
613 size_t ask = buffer->mFrameCount; in obtainBuffer()
618 buffer->mFrameCount = part1; in obtainBuffer()
630 buffer->mFrameCount = 0; in obtainBuffer()
640 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
643 buffer->mFrameCount = 0; in releaseBuffer()
648 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
661 size_t half = mFrameCount / 2; in releaseBuffer()
681 buffer->mFrameCount = 0; in releaseBuffer()
700 return mFrameCount; in framesReady()
706 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReady()
774 if (loopStart > mFrameCount) { in pollPosition()
775 loopStart = mFrameCount; in pollPosition()
779 mFramesReady = mFrameCount - mPosition; in pollPosition()
783 if (loopStart < loopEnd && loopEnd <= mFrameCount && in pollPosition()
798 + mFrameCount - mPosition; in pollPosition()
804 if (!valid || mPosition > mFrameCount) { in pollPosition()
819 buffer->mFrameCount = 0; in obtainBuffer()
827 buffer->mFrameCount = 0; in obtainBuffer()
834 size_t end = mState.mLoopCount != 0 ? mState.mLoopEnd : mFrameCount; in obtainBuffer()
838 size_t wanted = buffer->mFrameCount; in obtainBuffer()
840 buffer->mFrameCount = avail; in obtainBuffer()
847 buffer->mFrameCount = 0; in obtainBuffer()
860 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
874 if (!(position <= newPosition && newPosition <= mFrameCount)) { in releaseBuffer()
875 … ALOGW("%s newPosition %zu outside [%zu, %zu]", __func__, newPosition, position, mFrameCount); in releaseBuffer()
876 newPosition = mFrameCount; in releaseBuffer()
885 if (newPosition == mFrameCount) { in releaseBuffer()
902 buffer->mFrameCount = 0; in releaseBuffer()