Lines Matching refs:stepCount
340 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
341 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
348 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
349 mUnreleased -= stepCount; in releaseBuffer()
354 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
357 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
755 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
756 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
763 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
764 mUnreleased -= stepCount; in releaseBuffer()
768 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
771 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
774 cblk->mServer += stepCount; in releaseBuffer()
775 mReleased += stepCount; in releaseBuffer()
788 if (!mIsOut || (mAvailToClient + stepCount >= minimum)) { in releaseBuffer()
789 ALOGV("mAvailToClient=%zu stepCount=%zu minimum=%zu", mAvailToClient, stepCount, minimum); in releaseBuffer()
1042 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
1043 LOG_ALWAYS_FATAL_IF(!((int64_t) stepCount <= mFramesReady)); in releaseBuffer()
1044 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased)); in releaseBuffer()
1045 if (stepCount == 0) { in releaseBuffer()
1051 mUnreleased -= stepCount; in releaseBuffer()
1054 size_t newPosition = position + stepCount; in releaseBuffer()
1073 mFramesReady -= stepCount; in releaseBuffer()
1077 cblk->mServer += stepCount; in releaseBuffer()
1078 mReleased += stepCount; in releaseBuffer()