Lines Matching refs:streamSetId
43 int streamSetId = streamInfo.streamSetId;
45 if (streamId == CAMERA3_STREAM_ID_INVALID || streamSetId == CAMERA3_STREAM_SET_ID_INVALID) {
47 __FUNCTION__, streamId, streamSetId);
52 __FUNCTION__, streamId, streamSetId, streamInfo.totalBufferCount);
78 mStreamSetMap[i].streamInfoMap[streamIdx].streamSetId != streamInfo.streamSetId) {
86 ssize_t setIdx = mStreamSetMap.indexOfKey(streamSetId);
89 __FUNCTION__, streamSetId);
92 setIdx = mStreamSetMap.add(streamSetId, newStreamSet);
99 __FUNCTION__, streamId, streamSetId);
116 status_t Camera3BufferManager::unregisterStream(int streamId, int streamSetId) {
121 streamId, streamSetId);
123 if (!checkIfStreamRegisteredLocked(streamId, streamSetId)){
125 __FUNCTION__, streamId, streamSetId);
130 StreamSet& currentSet = mStreamSetMap.editValueFor(streamSetId);
153 mStreamSetMap.removeItem(streamSetId);
159 void Camera3BufferManager::notifyBufferRemoved(int streamId, int streamSetId) {
161 StreamSet &streamSet = mStreamSetMap.editValueFor(streamSetId);
168 int streamId, int streamSetId) {
170 StreamSet &streamSet = mStreamSetMap.editValueFor(streamSetId);
172 ALOGV("StreamSet %d has no other stream available to free", streamSetId);
193 ALOGV("StreamSet %d has no buffer available to free", streamSetId);
239 status_t Camera3BufferManager::getBufferForStream(int streamId, int streamSetId,
245 streamId, streamSetId);
247 if (!checkIfStreamRegisteredLocked(streamId, streamSetId)) {
249 __FUNCTION__, streamId, streamSetId);
253 StreamSet &streamSet = mStreamSetMap.editValueFor(streamSetId);
275 ALOGV("Stream %d set %d: Get buffer for stream: Allocate new", streamId, streamSetId);
316 res = checkAndFreeBufferOnOtherStreamsLocked(streamId, streamSetId);
322 res = checkAndFreeBufferOnOtherStreamsLocked(streamId, streamSetId);
335 int streamId, int streamSetId, bool* shouldFreeBuffer) {
344 ALOGV("Stream %d set %d: Buffer released", streamId, streamSetId);
347 if (!checkIfStreamRegisteredLocked(streamId, streamSetId)){
349 "(stream %d with set id %d)", __FUNCTION__, streamId, streamSetId);
354 StreamSet& streamSet = mStreamSetMap.editValueFor(streamSetId);
358 ALOGV("%s: Stream %d set %d: Buffer count now %zu", __FUNCTION__, streamId, streamSetId,
375 __FUNCTION__, streamId, streamSetId, streamSet.allocatedBufferWaterMark);
398 status_t Camera3BufferManager::onBuffersRemoved(int streamId, int streamSetId, size_t count) {
402 ALOGV("Stream %d set %d: Buffer removed", streamId, streamSetId);
404 if (!checkIfStreamRegisteredLocked(streamId, streamSetId)){
406 "(stream %d with set id %d)", __FUNCTION__, streamId, streamSetId);
411 StreamSet& streamSet = mStreamSetMap.editValueFor(streamSetId);
431 __FUNCTION__, streamId, streamSetId, totalHandoutCount, totalAttachedCount);
473 bool Camera3BufferManager::checkIfStreamRegisteredLocked(int streamId, int streamSetId) const {
474 ssize_t setIdx = mStreamSetMap.indexOfKey(streamSetId);
477 __FUNCTION__, streamSetId);
491 __FUNCTION__, streamId, streamSetId, bufferWaterMark);