Lines Matching refs:filled
190 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer() local
192 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
195 "shutting down", filled, mFrameCount); in obtainBuffer()
201 filled = 0; in obtainBuffer()
210 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer()
688 ssize_t filled = audio_utils::safe_sub_overflow(rear, newFront); in flushBufferIfNeeded() local
689 if (filled >= (ssize_t)overflowBit) { in flushBufferIfNeeded()
693 ALOGV("flush wrap: filled %zx >= overflowBit %zx", filled, overflowBit); in flushBufferIfNeeded()
695 filled -= overflowBit; in flushBufferIfNeeded()
698 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in flushBufferIfNeeded()
702 (unsigned)mask, newFront, filled, (unsigned)filled); in flushBufferIfNeeded()
730 ssize_t filled = audio_utils::safe_sub_overflow(newRear, front); in getRear() local
732 if (filled >= (ssize_t)overflowBit) { in getRear()
735 ALOGV("stop wrap: filled %zx >= overflowBit %zx", filled, overflowBit); in getRear()
737 filled -= overflowBit; in getRear()
739 if (0 <= filled && (size_t) filled <= mFrameCount) { in getRear()
748 (unsigned)mask, newRear, filled, (unsigned)filled); in getRear()
782 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer() local
784 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
786 filled, mFrameCount); in obtainBuffer()
795 availToServer = filled; in obtainBuffer()
796 mAvailToClient = mFrameCount - filled; in obtainBuffer()
798 availToServer = mFrameCount - filled; in obtainBuffer()
799 mAvailToClient = filled; in obtainBuffer()
909 ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReady() local
911 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReady()
913 filled, mFrameCount); in framesReady()
920 return filled; in framesReady()
935 const ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReadySafe() local
936 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReadySafe()
939 return filled; in framesReadySafe()
1246 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in framesReadySafe() local
1247 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReadySafe()
1250 return filled; in framesReadySafe()