Lines Matching refs:mFrameCount

61     : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize),
114 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0);
189 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
191 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); "
192 "shutting down", filled, mFrameCount);
223 if (part1 > buffer->mFrameCount) {
224 part1 = buffer->mFrameCount;
226 buffer->mFrameCount = part1;
317 buffer->mFrameCount = 0;
340 size_t stepCount = buffer->mFrameCount;
343 buffer->mFrameCount = 0;
348 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount));
653 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
677 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0);
698 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
699 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); shutting down",
700 filled, mFrameCount);
710 mAvailToClient = mFrameCount - filled;
712 availToServer = mFrameCount - filled;
727 size_t ask = buffer->mFrameCount;
732 buffer->mFrameCount = part1;
744 buffer->mFrameCount = 0;
755 size_t stepCount = buffer->mFrameCount;
758 buffer->mFrameCount = 0;
763 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount));
777 size_t half = mFrameCount / 2;
797 buffer->mFrameCount = 0;
817 return mFrameCount;
823 if (!(0 <= filled && (size_t) filled <= mFrameCount)) {
824 ALOGE("Shared memory control block is corrupt (filled=%zd, mFrameCount=%zu); shutting down",
825 filled, mFrameCount);
831 // ignores flush(), so framesReady() may report a larger mFrameCount than obtainBuffer()
914 if (loopStart < loopEnd && loopEnd <= mFrameCount &&
924 if (!valid || position > mFrameCount) {
940 if (update.mPosition > mFrameCount) {
977 mFramesReady = mFrameCount - mState.mPosition;
982 + mFrameCount - mState.mPosition;
999 buffer->mFrameCount = 0;
1007 buffer->mFrameCount = 0;
1014 size_t end = mState.mLoopCount != 0 ? mState.mLoopEnd : mFrameCount;
1018 size_t wanted = buffer->mFrameCount;
1020 buffer->mFrameCount = avail;
1027 buffer->mFrameCount = 0;
1042 size_t stepCount = buffer->mFrameCount;
1056 if (!(position <= newPosition && newPosition <= mFrameCount)) {
1058 mFrameCount);
1059 newPosition = mFrameCount;
1068 if (newPosition == mFrameCount) {
1090 buffer->mFrameCount = 0;