/frameworks/base/cmds/statsd/src/anomaly/ |
D | DurationAnomalyTracker.cpp | 47 auto itr = mAlarms.find(dimensionKey); in startAlarm() local 48 if (itr != mAlarms.end() && mAlarmMonitor != nullptr) { in startAlarm() 49 mAlarmMonitor->remove(itr->second); in startAlarm() 61 const auto itr = mAlarms.find(dimensionKey); in stopAlarm() local 62 if (itr == mAlarms.end()) { in stopAlarm() 67 if (itr->second != nullptr && timestampNs >= (int64_t)NS_PER_SEC * itr->second->timestampSec) { in stopAlarm() 70 itr->second->timestampSec); in stopAlarm() 73 mAlarmMonitor->remove(itr->second); in stopAlarm() 80 for (const auto& itr : mAlarms) { in cancelAllAlarms() local 81 mAlarmMonitor->remove(itr.second); in cancelAllAlarms()
|
D | AnomalyTracker.cpp | 107 auto itr = bucket->find(key); in addPastBucket() local 108 if (itr != bucket->end()) { in addPastBucket() 110 subtractValueFromSum(key, itr->second); in addPastBucket() 111 itr->second = bucketValue; in addPastBucket() 155 auto itr = mSumOverPastBuckets.find(key); in subtractValueFromSum() local 156 if (itr == mSumOverPastBuckets.end()) { in subtractValueFromSum() 159 itr->second -= bucketValue; in subtractValueFromSum() 160 if (itr->second == 0) { in subtractValueFromSum() 161 mSumOverPastBuckets.erase(itr); in subtractValueFromSum() 187 const auto& itr = bucket->find(key); in getPastBucketValue() local [all …]
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestLayers.cpp | 70 auto itr = mTestLayers.begin(); in advance() local 73 while (itr != mTestLayers.end()) { in advance() 74 if (itr->second.advance()) { in advance() 78 itr = mTestLayers.begin(); in advance() 80 itr->second.reset(); in advance() 81 ++itr; in advance() 89 auto itr = mTestLayers.begin(); in advanceVisibleRegions() local 92 while (itr != mTestLayers.end()) { in advanceVisibleRegions() 93 if (itr->second.advanceVisibleRegion()) { in advanceVisibleRegions() 97 itr = mTestLayers.begin(); in advanceVisibleRegions() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | SessionLibrary.cpp | 62 std::map<std::vector<uint8_t>, sp<Session> >::iterator itr = in createSession() local 64 if (itr != mSessions.end()) { in createSession() 65 return itr->second; in createSession() 74 std::map<std::vector<uint8_t>, sp<Session> >::iterator itr = in findSession() local 76 if (itr != mSessions.end()) { in findSession() 77 return itr->second; in findSession()
|
D | DrmPlugin.cpp | 325 for (auto itr = randomData.begin(); itr != randomData.end(); ++itr) { in makeKeySetId() local 326 *itr = std::rand() % 0xff; in makeKeySetId() 495 std::map<std::string, std::vector<uint8_t> >::iterator itr = in getPropertyByteArray() local 497 if (itr == mByteArrayProperties.end()) { in getPropertyByteArray() 502 _hidl_cb(Status::OK, itr->second); in getPropertyByteArray() 521 std::map<std::string, std::string>::iterator itr = in setPropertyString() local 523 if (itr == mStringProperties.end()) { in setPropertyString() 606 std::map<std::vector<uint8_t>, SecurityLevel>::iterator itr = in getSecurityLevel() local 608 if (itr == mSecurityLevel.end()) { in getSecurityLevel() 614 _hidl_cb(Status::OK, itr->second); in getSecurityLevel() [all …]
|
D | Session.cpp | 84 std::map<std::vector<uint8_t>, std::vector<uint8_t> >::iterator itr; in decrypt() local 85 itr = mKeyMap.find(keyIdVector); in decrypt() 86 if (itr == mKeyMap.end()) { in decrypt() 92 itr->second /*key*/, iv, srcPtr, destPtr, subSamples, in decrypt()
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.cpp | 149 for (const auto&itr : int_map) { in LogEvent() local 151 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent() 153 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.second))); in LogEvent() 158 for (const auto&itr : long_map) { in LogEvent() local 160 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent() 162 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.second))); in LogEvent() 167 for (const auto&itr : string_map) { in LogEvent() local 169 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent() 171 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.second))); in LogEvent() 176 for (const auto&itr : float_map) { in LogEvent() local [all …]
|
/frameworks/base/core/java/android/util/ |
D | LocalLog.java | 84 Iterator<String> itr = mLog.iterator(); in dump() local 85 while (itr.hasNext()) { in dump() 86 pw.println(itr.next()); in dump() 95 Iterator<String> itr = mLog.descendingIterator(); in reverseDump() local 96 while (itr.hasNext()) { in reverseDump() 97 pw.println(itr.next()); in reverseDump()
|
/frameworks/native/services/surfaceflinger/ |
D | ClientCache.cpp | 88 auto [itr, success] = in add() 91 it = itr; in add() 177 auto itr = mBuffers.find(processToken); in removeProcess() local 178 if (itr == mBuffers.end()) { in removeProcess() 183 for (auto& [id, clientCacheBuffer] : itr->second) { in removeProcess() 192 mBuffers.erase(itr); in removeProcess()
|
D | TransactionCompletedThread.cpp | 178 auto itr = transactionStatsDeque.rbegin(); in findTransactionStats() local 179 for (; itr != transactionStatsDeque.rend(); itr++) { in findTransactionStats() 180 if (compareCallbackIds(itr->callbackIds, callbackIds) == 0) { in findTransactionStats() 181 *outTransactionStats = &(*itr); in findTransactionStats()
|
D | BufferStateLayer.cpp | 627 auto itr = mCachedBuffers.find(clientCacheId); in getHwcCacheSlot() local 628 if (itr == mCachedBuffers.end()) { in getHwcCacheSlot() 631 auto& [hwcCacheSlot, counter] = itr->second; in getHwcCacheSlot() 677 auto itr = mCachedBuffers.find(clientCacheId); in eraseBufferLocked() local 678 if (itr == mCachedBuffers.end()) { in eraseBufferLocked() 681 auto& [hwcCacheSlot, counter] = itr->second; in eraseBufferLocked()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 298 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in evaluateCondition() local 299 if (itr == mSlicedConditionState.end()) { in evaluateCondition() 306 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition() 365 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in isConditionMet() local 366 if (itr != mSlicedConditionState.end()) { in isConditionMet() 368 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet() 430 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in getMetConditionDimension() local 431 if (itr != mSlicedConditionState.end()) { in getMetConditionDimension() 433 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in getMetConditionDimension()
|
D | SimpleConditionTracker.h | 84 for (const auto& itr : mSlicedConditionState) { in getTrueSlicedDimensions() local 85 if (itr.second > 0) { in getTrueSlicedDimensions() 86 dimensions->insert(itr.first); in getTrueSlicedDimensions()
|
D | StateTracker.h | 98 for (const auto& itr : mSlicedState) { in getTrueSlicedDimensions() local 99 dimensions->insert(itr.second); in getTrueSlicedDimensions()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 613 const auto& itr = metricProducerMap.find(alert.metric_id()); in initAlerts() local 614 if (itr == metricProducerMap.end()) { in initAlerts() 628 const int metricIndex = itr->second; in initAlerts() 649 const auto& itr = anomalyTrackerMap.find(subscription.rule_id()); in initAlerts() local 650 if (itr == anomalyTrackerMap.end()) { in initAlerts() 655 const int anomalyTrackerIndex = itr->second; in initAlerts() 694 const auto& itr = alarmTrackerMap.find(subscription.rule_id()); in initAlarms() local 695 if (itr == alarmTrackerMap.end()) { in initAlarms() 700 const int trackerIndex = itr->second; in initAlarms() 716 auto itr = metricProducerMap.find(metric_activation.metric_id()); in initMetricActivations() local [all …]
|
D | MetricsManager.cpp | 500 for (const auto& itr : mAllAnomalyTrackers) { in onAnomalyAlarmFired() local 501 itr->informAlarmsFired(timestampNs, alarmSet); in onAnomalyAlarmFired() 508 for (const auto& itr : mAllPeriodicAlarmTrackers) { in onPeriodicAlarmFired() local 509 itr->informAlarmsFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 46 for (auto itr = key_value_pair_list.begin(); itr != key_value_pair_list.end(); itr++) { in AddValueToBucket() local 47 (*bucket)[itr->first] += itr->second; in AddValueToBucket() 61 const auto& itr = bucket->find(key); in getBucketValue() local 62 if (itr != bucket->end()) { in getBucketValue() 63 return itr->second; in getBucketValue()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelWakelockReader.java | 320 Iterator<KernelWakelockStats.Entry> itr = staleStats.values().iterator(); in removeOldStats() local 321 while (itr.hasNext()) { in removeOldStats() 322 if (itr.next().mVersion != sKernelWakelockUpdateVersion) { in removeOldStats() 323 itr.remove(); in removeOldStats()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/ |
D | VendorDcTracker.java | 73 Iterator<String> itr = mIccidSet.iterator(); in allowInitialAttachForOperator() local 74 while (itr.hasNext()) { in allowInitialAttachForOperator() 75 if (iccId.contains(itr.next())) { in allowInitialAttachForOperator()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | StateMachineTest.java | 225 Iterator<LogRec> itr = smQuitTest.mLogRecs.iterator(); in testStateMachineQuit() local 227 lr = itr.next(); in testStateMachineQuit() 232 lr = itr.next(); in testStateMachineQuit() 236 lr = itr.next(); in testStateMachineQuit() 328 Iterator<LogRec> itr = smQuitNowTest.mLogRecs.iterator(); in testStateMachineQuitNow() local 329 LogRec lr = itr.next(); in testStateMachineQuitNow() 334 lr = itr.next(); in testStateMachineQuitNow() 338 lr = itr.next(); in testStateMachineQuitNow() 427 Iterator<LogRec> itr = smQuitNowAfterStartTest.mLogRecs.iterator(); in testStateMachineQuitNowAfterStart() local 428 lr = itr.next(); in testStateMachineQuitNowAfterStart() [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 249 auto itr = mBuffers.find(buffer->getId()); in getCacheId() local 250 if (itr == mBuffers.end()) { in getCacheId() 253 itr->second = getCounter(); in getCacheId() 283 auto itr = mBuffers.begin(); in evictLeastRecentlyUsedBuffer() local 284 uint64_t minCounter = itr->second; in evictLeastRecentlyUsedBuffer() 285 auto minBuffer = itr; in evictLeastRecentlyUsedBuffer() 286 itr++; in evictLeastRecentlyUsedBuffer() 288 while (itr != mBuffers.end()) { in evictLeastRecentlyUsedBuffer() 289 uint64_t counter = itr->second; in evictLeastRecentlyUsedBuffer() 292 minBuffer = itr; in evictLeastRecentlyUsedBuffer() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IntRangeManager.java | 629 Iterator<IntRange> itr = mRanges.iterator(); in populateAllRanges() local 631 while (itr.hasNext()) { in populateAllRanges() 632 IntRange currRange = (IntRange) itr.next(); in populateAllRanges()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 270 for (const auto& itr : dimensionIndexMap) { in sortMetricDataByDimensionsValue() local 271 *sortedMetricData->add_data() = metricData.data(itr.second); in sortMetricDataByDimensionsValue()
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 351 std::map<int, std::vector<int>>::const_iterator itr; in writeFieldValueTreeToStreamHelper() local 352 if (depth == 0 && (itr = AtomsInfo::kBytesFieldAtoms.find(tagId)) != in writeFieldValueTreeToStreamHelper() 354 const std::vector<int>& bytesFields = itr->second; in writeFieldValueTreeToStreamHelper()
|
D | StatsLogProcessor.cpp | 117 for (const auto& itr : mMetricsManagers) { in onAnomalyAlarmFired() local 118 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); in onAnomalyAlarmFired() 126 for (const auto& itr : mMetricsManagers) { in onPeriodicAlarmFired() local 127 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
|