Lines Matching refs:found

148     std::map<std::string, int>::iterator found = mConcurrentResourceCountMap.find(clientInfo.name);  in notifyClientCreated()  local
149 if (found == mConcurrentResourceCountMap.end()) { in notifyClientCreated()
152 found->second++; in notifyClientCreated()
161 ClientConfigMap::iterator found = mClientConfigMap.find(clientInfo.id); in notifyClientReleased() local
162 if (found != mClientConfigMap.end()) { in notifyClientReleased()
165 clientConfig = found->second; in notifyClientReleased()
177 std::map<std::string, int>::iterator found = in notifyClientReleased() local
179 if (found != mConcurrentResourceCountMap.end()) { in notifyClientReleased()
180 if (found->second > 0) { in notifyClientReleased()
181 found->second--; in notifyClientReleased()
301 std::map<int32_t, ConcurrentCodecs>::iterator found = mProcessConcurrentCodecsMap.find(pid); in notifyClientStopped() local
302 if (found != mProcessConcurrentCodecsMap.end()) { in notifyClientStopped()
303 appConcurrentCodecs = found->second.mCurrent[codecBucket]; in notifyClientStopped()
374 std::map<int32_t, ConcurrentCodecs>::iterator found = mProcessConcurrentCodecsMap.find(pid); in pushConcurrentUsageReport() local
375 if (found == mProcessConcurrentCodecsMap.end()) { in pushConcurrentUsageReport()
380 const ConcurrentCodecsMap& codecsMap = found->second.mPeak; in pushConcurrentUsageReport()
511 std::map<std::string, int>::iterator found = mConcurrentResourceCountMap.find(clientName); in pushReclaimAtom() local
512 if (found != mConcurrentResourceCountMap.end()) { in pushReclaimAtom()
513 noOfConcurrentCodecs = found->second; in pushReclaimAtom()
571 std::map<int32_t, ConcurrentCodecs>::iterator found = mProcessConcurrentCodecsMap.find(pid); in increaseConcurrentCodecs() local
572 if (found == mProcessConcurrentCodecsMap.end()) { in increaseConcurrentCodecs()
577 found = added.first; in increaseConcurrentCodecs()
579 found->second.mCurrent[codecBucket]++; in increaseConcurrentCodecs()
581 if (found->second.mPeak[codecBucket] < found->second.mCurrent[codecBucket]) { in increaseConcurrentCodecs()
582 found->second.mPeak[codecBucket] = found->second.mCurrent[codecBucket]; in increaseConcurrentCodecs()
592 found->second.mHWVideoCodecs++; in increaseConcurrentCodecs()
594 found->second.mSWVideoCodecs++; in increaseConcurrentCodecs()
596 found->second.mVideoCodecs++; in increaseConcurrentCodecs()
602 found->second.mAudioCodecs++; in increaseConcurrentCodecs()
608 found->second.mImageCodecs++; in increaseConcurrentCodecs()
623 std::map<int32_t, ConcurrentCodecs>::iterator found = mProcessConcurrentCodecsMap.find(pid); in decreaseConcurrentCodecs() local
624 if (found != mProcessConcurrentCodecsMap.end()) { in decreaseConcurrentCodecs()
625 if (found->second.mCurrent[codecBucket] > 0) { in decreaseConcurrentCodecs()
626 found->second.mCurrent[codecBucket]--; in decreaseConcurrentCodecs()
635 found->second.mHWVideoCodecs--; in decreaseConcurrentCodecs()
637 found->second.mSWVideoCodecs--; in decreaseConcurrentCodecs()
639 found->second.mVideoCodecs--; in decreaseConcurrentCodecs()
645 found->second.mAudioCodecs--; in decreaseConcurrentCodecs()
651 found->second.mImageCodecs--; in decreaseConcurrentCodecs()
661 std::map<int32_t, PixelCount>::iterator found = mProcessPixelsMap.find(pid); in increasePixelCount() local
662 if (found == mProcessPixelsMap.end()) { in increasePixelCount()
666 if (__builtin_add_overflow(found->second.mCurrent, pixels, &found->second.mCurrent)) { in increasePixelCount()
671 if (found->second.mPeak < found->second.mCurrent) { in increasePixelCount()
672 found->second.mPeak = found->second.mCurrent; in increasePixelCount()
686 std::map<int32_t, PixelCount>::iterator found = mProcessPixelsMap.find(pid); in decreasePixelCount() local
687 if (found != mProcessPixelsMap.end()) { in decreasePixelCount()
688 if (found->second.mCurrent < pixels) { in decreasePixelCount()
689 found->second.mCurrent = 0; in decreasePixelCount()
691 if (__builtin_sub_overflow(found->second.mCurrent, pixels, &found->second.mCurrent)) { in decreasePixelCount()
700 std::map<int32_t, PixelCount>::const_iterator found = mProcessPixelsMap.find(pid); in getPeakConcurrentPixelCount() local
701 if (found != mProcessPixelsMap.end()) { in getPeakConcurrentPixelCount()
702 return found->second.mPeak; in getPeakConcurrentPixelCount()
709 std::map<int32_t, PixelCount>::const_iterator found = mProcessPixelsMap.find(pid); in getCurrentConcurrentPixelCount() local
710 if (found != mProcessPixelsMap.end()) { in getCurrentConcurrentPixelCount()
711 return found->second.mCurrent; in getCurrentConcurrentPixelCount()