Lines Matching refs:filled
187 ssize_t filled = rear - front; in obtainBuffer() local
189 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
192 "shutting down", filled, mFrameCount); in obtainBuffer()
198 filled = 0; in obtainBuffer()
207 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer()
647 ssize_t filled = rear - newFront; in obtainBuffer() local
648 if (filled >= (ssize_t)overflowBit) { in obtainBuffer()
652 ALOGV("flush wrap: filled %zx >= overflowBit %zx", filled, overflowBit); in obtainBuffer()
654 filled -= overflowBit; in obtainBuffer()
657 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
661 (unsigned)mask, newFront, filled, (unsigned)filled); in obtainBuffer()
681 ssize_t filled = rear - front; in obtainBuffer() local
683 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
684 ALOGE("Shared memory control block is corrupt (filled=%zd); shutting down", filled); in obtainBuffer()
693 availToServer = filled; in obtainBuffer()
694 mAvailToClient = mFrameCount - filled; in obtainBuffer()
696 availToServer = mFrameCount - filled; in obtainBuffer()
697 mAvailToClient = filled; in obtainBuffer()
805 ssize_t filled = rear - cblk->u.mStreaming.mFront; in framesReady() local
807 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReady()
808 ALOGE("Shared memory control block is corrupt (filled=%zd); shutting down", filled); in framesReady()
815 return filled; in framesReady()