Home
last modified time | relevance | path

Searched refs:whatKey (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/cmds/statsd/tests/
DHashableDimensionKey_test.cpp39 HashableDimensionKey whatKey = DEFAULT_DIMENSION_KEY; in TEST() local
43 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, in TEST()
73 HashableDimensionKey whatKey; in TEST() local
74 getOverlayKey(uid2, "package", &whatKey); in TEST()
78 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, stateAtomId)); in TEST()
91 HashableDimensionKey whatKey; in TEST() local
92 getOverlayKey(uid1, "package", &whatKey); in TEST()
96 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, stateAtomId)); in TEST()
124 HashableDimensionKey whatKey; in TEST() local
125 getOverlayKey(uid1, "package", &whatKey); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp506 const auto& whatKey = eventKey.getDimensionKeyInWhat(); in handleStartEvent() local
507 auto whatIt = mCurrentSlicedDurationTrackerMap.find(whatKey); in handleStartEvent()
512 mCurrentSlicedDurationTrackerMap[whatKey] = createDurationTracker(eventKey); in handleStartEvent()
515 auto it = mCurrentSlicedDurationTrackerMap.find(whatKey); in handleStartEvent()
517 it->second->noteStart(whatKey, condition, event.GetElapsedTimestampNs(), conditionKeys); in handleStartEvent()
DValueMetricProducer.cpp621 const auto& whatKey = slice.first.getDimensionKeyInWhat(); in accumulateEvents() local
623 mMatchedMetricDimensionKeys.find(whatKey) != mMatchedMetricDimensionKeys.end(); in accumulateEvents()
624 if (!presentInPulledData && whatKey.contains(mStateChangePrimaryKey.second)) { in accumulateEvents()
625 auto it = mCurrentBaseInfo.find(whatKey); in accumulateEvents()
740 auto whatKey = eventKey.getDimensionKeyInWhat(); in onMatchedLogEventInternalLocked() local
759 mMatchedMetricDimensionKeys.insert(whatKey); in onMatchedLogEventInternalLocked()
786 vector<BaseInfo>& baseInfos = mCurrentBaseInfo[whatKey]; in onMatchedLogEventInternalLocked()
802 vector<Interval>& intervals = mCurrentSlicedBucket[MetricDimensionKey(whatKey, oldStateKey)]; in onMatchedLogEventInternalLocked()
/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.cpp250 bool containsLinkedStateValues(const HashableDimensionKey& whatKey, in containsLinkedStateValues() argument
253 if (whatKey.getValues().size() < primaryKey.getValues().size()) { in containsLinkedStateValues()
260 for (const auto& whatValue : whatKey.getValues()) { in containsLinkedStateValues()
DHashableDimensionKey.h203 bool containsLinkedStateValues(const HashableDimensionKey& whatKey,