Lines Matching refs:count
50 size_t count,
57 mBuffer.frameCount = count;
66 if (CC_UNLIKELY(count > available)) {
67 count = available;
69 // count could be zero, either because count was zero on entry or
71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed << mBitShift), count << mBitShift);
72 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) {
77 mFramesRead += count;
78 // For better responsiveness with large values of count,
79 // return a short count rather than continuing with next buffer.
81 return count;
95 size_t count = total - accumulator;
96 if (CC_UNLIKELY(count == 0)) {
99 if (CC_LIKELY(count > block)) {
100 count = block;
102 // 1 <= count <= block
104 mBuffer.frameCount = count;
107 ALOG_ASSERT(mBuffer.raw != NULL && mBuffer.frameCount <= count);
111 // FIXME simplify logic - does the initial count and block checks again for no reason;
119 if (CC_UNLIKELY(count > available)) {
120 count = available;
122 if (CC_LIKELY(count > 0)) {
124 ssize_t ret = via(user, readTgt, count, readPTS);
131 ALOG_ASSERT((size_t) ret <= count);