Lines Matching refs:stepCount

344     size_t stepCount = buffer->mFrameCount;  in releaseBuffer()  local
345 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
352 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
355 __func__, stepCount, mUnreleased, mFrameCount, getBufferSizeInFrames()); in releaseBuffer()
356 mUnreleased -= stepCount; in releaseBuffer()
361 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
364 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
841 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
842 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
849 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
852 __func__, stepCount, mUnreleased, mFrameCount); in releaseBuffer()
853 mUnreleased -= stepCount; in releaseBuffer()
857 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
860 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
863 cblk->mServer += stepCount; in releaseBuffer()
864 mReleased += stepCount; in releaseBuffer()
877 if (!mIsOut || (mAvailToClient + stepCount >= minimum)) { in releaseBuffer()
878 ALOGV("mAvailToClient=%zu stepCount=%zu minimum=%zu", mAvailToClient, stepCount, minimum); in releaseBuffer()
1159 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
1160 LOG_ALWAYS_FATAL_IF(!((int64_t) stepCount <= mFramesReady), in releaseBuffer()
1163 __func__, stepCount, (long long)mFramesReady); in releaseBuffer()
1164 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased), in releaseBuffer()
1167 __func__, stepCount, mUnreleased); in releaseBuffer()
1168 if (stepCount == 0) { in releaseBuffer()
1174 mUnreleased -= stepCount; in releaseBuffer()
1177 size_t newPosition = position + stepCount; in releaseBuffer()
1196 mFramesReady -= stepCount; in releaseBuffer()
1200 cblk->mServer += stepCount; in releaseBuffer()
1201 mReleased += stepCount; in releaseBuffer()