Lines Matching refs:filled
140 ssize_t filled = rear - front; in obtainBuffer() local
142 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
145 "shutting down", filled, mFrameCount); in obtainBuffer()
151 filled = 0; in obtainBuffer()
156 size_t avail = mIsOut ? mFrameCount - filled : filled; in obtainBuffer()
346 ssize_t filled = rear - front; in getFramesFilled() local
348 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in getFramesFilled()
349 ALOGE("Shared memory control block is corrupt (filled=%zd); shutting down", filled); in getFramesFilled()
352 return (size_t)filled; in getFramesFilled()
560 ssize_t filled = rear - newFront; in obtainBuffer() local
562 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
564 mFlush, flush, front, rear, mask, newFront, filled, filled); in obtainBuffer()
583 ssize_t filled = rear - front; in obtainBuffer() local
585 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
586 ALOGE("Shared memory control block is corrupt (filled=%zd); shutting down", filled); in obtainBuffer()
595 availToServer = filled; in obtainBuffer()
596 mAvailToClient = mFrameCount - filled; in obtainBuffer()
598 availToServer = mFrameCount - filled; in obtainBuffer()
599 mAvailToClient = filled; in obtainBuffer()
704 ssize_t filled = rear - cblk->u.mStreaming.mFront; in framesReady() local
706 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReady()
707 ALOGE("Shared memory control block is corrupt (filled=%zd); shutting down", filled); in framesReady()
714 return filled; in framesReady()