Lines Matching refs:count
49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) in read() argument
55 mBuffer.frameCount = count; in read()
64 if (CC_UNLIKELY(count > available)) { in read()
65 count = available; in read()
69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); in read()
70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read()
75 mFramesRead += count; in read()
79 return count; in read()
92 size_t count = total - accumulator; in readVia() local
93 if (CC_UNLIKELY(count == 0)) { in readVia()
96 if (CC_LIKELY(count > block)) { in readVia()
97 count = block; in readVia()
101 mBuffer.frameCount = count; in readVia()
104 ALOG_ASSERT(mBuffer.raw != NULL && mBuffer.frameCount <= count); in readVia()
116 if (CC_UNLIKELY(count > available)) { in readVia()
117 count = available; in readVia()
119 if (CC_LIKELY(count > 0)) { in readVia()
120 ssize_t ret = via(user, (char *) mBuffer.raw + (mConsumed * mFrameSize), count); in readVia()
128 ALOG_ASSERT((size_t) ret <= count); in readVia()