Lines Matching defs:streamSet
103 StreamSet newStreamSet;
107 StreamSet& currentStreamSet = mStreamSetMap.editValueAt(setIdx);
146 StreamSet& currentSet = mStreamSetMap.editValueFor(streamSetId);
195 StreamSet &streamSet = mStreamSetMap.editValueFor(streamSetId);
196 BufferCountMap& handOutBufferCounts = streamSet.handoutBufferCountMap;
198 if (bufferCount >= streamSet.maxAllowedBufferCount) {
200 __FUNCTION__, bufferCount, streamSet.maxAllowedBufferCount);
204 BufferCountMap& attachedBufferCounts = streamSet.attachedBufferCountMap;
215 getFirstBufferFromBufferListLocked(streamSet.freeBuffers, streamId);
220 const StreamInfo& info = streamSet.streamInfoMap.valueFor(streamId);
242 if (bufferCount + 1 > streamSet.allocatedBufferWaterMark) {
243 streamSet.allocatedBufferWaterMark = bufferCount + 1;
256 if (streamSet.streamInfoMap.size() > 1) {
258 for (size_t i = 0; i < streamSet.streamInfoMap.size(); i++) {
259 firstOtherStreamId = streamSet.streamInfoMap[i].streamId;
263 streamSet.handoutBufferCountMap.valueFor(firstOtherStreamId);
265 streamSet.attachedBufferCountMap.valueFor(firstOtherStreamId);
270 if (hasBufferForStreamLocked(streamSet.freeBuffers, firstOtherStreamId)) {
283 size_t totalAllocatedBufferCount = streamSet.freeBuffers.size();
284 for (size_t i = 0; i < streamSet.attachedBufferCountMap.size(); i++) {
285 totalAllocatedBufferCount += streamSet.attachedBufferCountMap[i];
287 if (totalAllocatedBufferCount > streamSet.allocatedBufferWaterMark) {
311 streamSet.attachedBufferCountMap.editValueFor(firstOtherStreamId);
315 getFirstBufferFromBufferListLocked(streamSet.freeBuffers, firstOtherStreamId);
344 StreamSet& streamSet = mStreamSetMap.editValueFor(streamSetId);
345 BufferCountMap& handOutBufferCounts = streamSet.handoutBufferCountMap;
377 StreamSet& streamSet = mStreamSetMap.editValueFor(streamSetId);
381 status_t res = addBufferToBufferListLocked(streamSet.freeBuffers, entry);
389 BufferCountMap& handOutBufferCounts = streamSet.handoutBufferCountMap;
392 size_t& attachedBufferCount = streamSet.attachedBufferCountMap.editValueFor(streamId);