Lines Matching refs:mFrameCount

61     : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize),
114 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0,
190 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
192 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); "
193 "shutting down", filled, mFrameCount);
224 if (part1 > buffer->mFrameCount) {
225 part1 = buffer->mFrameCount;
227 buffer->mFrameCount = part1;
318 buffer->mFrameCount = 0;
341 size_t stepCount = buffer->mFrameCount;
344 buffer->mFrameCount = 0;
349 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount),
351 "!(stepCount:%zu <= mUnreleased:%zu <= mFrameCount:%zu), BufferSizeInFrames:%u",
352 __func__, stepCount, mUnreleased, mFrameCount, getBufferSizeInFrames());
695 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
736 if (0 <= filled && (size_t) filled <= mFrameCount) {
759 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0,
781 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
782 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); shutting down",
783 filled, mFrameCount);
793 mAvailToClient = mFrameCount - filled;
795 availToServer = mFrameCount - filled;
810 size_t ask = buffer->mFrameCount;
815 buffer->mFrameCount = part1;
827 buffer->mFrameCount = 0;
838 size_t stepCount = buffer->mFrameCount;
841 buffer->mFrameCount = 0;
846 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount),
848 "!(stepCount:%zu <= mUnreleased:%zu <= mFrameCount:%zu)",
849 __func__, stepCount, mUnreleased, mFrameCount);
863 size_t half = mFrameCount / 2;
883 buffer->mFrameCount = 0;
903 return mFrameCount;
908 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
909 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); shutting down",
910 filled, mFrameCount);
916 // ignores flush(), so framesReady() may report a larger mFrameCount than obtainBuffer()
929 return mFrameCount;
933 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
1024 if (loopStart < loopEnd && loopEnd <= mFrameCount &&
1034 if (!valid || position > mFrameCount) {
1050 if (update.mPosition > mFrameCount) {
1087 mFramesReady = mFrameCount - mState.mPosition;
1092 + mFrameCount - mState.mPosition;
1110 buffer->mFrameCount = 0;
1118 buffer->mFrameCount = 0;
1125 size_t end = mState.mLoopCount != 0 ? mState.mLoopEnd : mFrameCount;
1129 size_t wanted = buffer->mFrameCount;
1131 buffer->mFrameCount = avail;
1138 buffer->mFrameCount = 0;
1156 size_t stepCount = buffer->mFrameCount;
1176 if (!(position <= newPosition && newPosition <= mFrameCount)) {
1178 mFrameCount);
1179 newPosition = mFrameCount;
1188 if (newPosition == mFrameCount) {
1210 buffer->mFrameCount = 0;