Lines Matching refs:maxBufferCount
284 const int maxBufferCount = getMaxBufferCountLocked(async); in dequeueBuffer() local
289 if (mOverrideMaxBufferCount < maxBufferCount) { in dequeueBuffer()
297 for (int i = maxBufferCount; i < NUM_BUFFER_SLOTS; i++) { in dequeueBuffer()
309 for (int i = 0; i < maxBufferCount; i++) { in dequeueBuffer()
346 const int newUndequeuedCount = maxBufferCount - (dequeuedCount+1); in dequeueBuffer()
511 const int maxBufferCount = getMaxBufferCountLocked(async); in queueBuffer() local
516 if (mOverrideMaxBufferCount < maxBufferCount) { in queueBuffer()
521 if (buf < 0 || buf >= maxBufferCount) { in queueBuffer()
523 maxBufferCount, buf); in queueBuffer()
668 int maxBufferCount = getMaxBufferCountLocked(false); // worst-case, i.e. largest value in connect() local
669 if (mQueue.size() > (size_t) maxBufferCount) { in connect()
810 int maxBufferCount = 0; in dump() local
814 maxBufferCount = i+1; in dump()
819 for (int i=0 ; i<maxBufferCount ; i++) { in dump()
1184 int maxBufferCount = mDefaultMaxBufferCount; in getMaxBufferCountLocked() local
1185 if (maxBufferCount < minMaxBufferCount) { in getMaxBufferCountLocked()
1186 maxBufferCount = minMaxBufferCount; in getMaxBufferCountLocked()
1190 maxBufferCount = mOverrideMaxBufferCount; in getMaxBufferCountLocked()
1197 for (int i = maxBufferCount; i < NUM_BUFFER_SLOTS; i++) { in getMaxBufferCountLocked()
1200 maxBufferCount = i + 1; in getMaxBufferCountLocked()
1204 return maxBufferCount; in getMaxBufferCountLocked()