Home | History | Annotate | Download | only in libmedia

Lines Matching refs:stepCount

272     size_t stepCount = buffer->mFrameCount;
273 if (stepCount == 0 || mIsShutdown) {
280 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount));
281 mUnreleased -= stepCount;
286 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear);
289 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront);
600 size_t stepCount = buffer->mFrameCount;
601 if (stepCount == 0 || mIsShutdown) {
608 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount));
609 mUnreleased -= stepCount;
613 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront);
616 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear);
619 mCblk->mServer += stepCount;
632 if (!mIsOut || (mAvailToClient + stepCount >= minimum)) {
633 ALOGV("mAvailToClient=%u stepCount=%u minimum=%u", mAvailToClient, stepCount, minimum);
808 size_t stepCount = buffer->mFrameCount;
809 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased));
810 if (stepCount == 0) {
816 mUnreleased -= stepCount;
819 size_t newPosition = position + stepCount;
838 cblk->mServer += stepCount;