Home
last modified time | relevance | path

Searched refs:HashableDimensionKey (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.h37 class HashableDimensionKey {
39 explicit HashableDimensionKey(const std::vector<FieldValue>& values) { in HashableDimensionKey() function
43 HashableDimensionKey() {}; in HashableDimensionKey() function
45 HashableDimensionKey(const HashableDimensionKey& that) : mValues(that.getValues()){}; in HashableDimensionKey() function
68 bool operator==(const HashableDimensionKey& that) const;
70 bool operator<(const HashableDimensionKey& that) const;
72 bool contains(const HashableDimensionKey& that) const;
80 explicit MetricDimensionKey(const HashableDimensionKey& dimensionKeyInWhat, in MetricDimensionKey()
81 const HashableDimensionKey& dimensionKeyInCondition) in MetricDimensionKey()
95 inline const HashableDimensionKey& getDimensionKeyInWhat() const { in getDimensionKeyInWhat()
[all …]
DHashableDimensionKey.cpp29 android::hash_t hashDimension(const HashableDimensionKey& value) { in hashDimension()
61 HashableDimensionKey* output) { in filterValues()
91 HashableDimensionKey* conditionDimension) { in getDimensionForCondition()
123 bool HashableDimensionKey::operator==(const HashableDimensionKey& that) const { in operator ==()
136 bool HashableDimensionKey::operator<(const HashableDimensionKey& that) const { in operator <()
140 bool HashableDimensionKey::contains(const HashableDimensionKey& that) const { in contains()
165 string HashableDimensionKey::toString() const { in toString()
Dstats_util.h27 const HashableDimensionKey DEFAULT_DIMENSION_KEY = HashableDimensionKey();
30 typedef std::map<int64_t, HashableDimensionKey> ConditionKey;
Dstats_log_util.h32 void writeDimensionToProto(const HashableDimensionKey& dimension, std::set<string> *str_set,
35 void writeDimensionLeafNodesToProto(const HashableDimensionKey& dimension,
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.h62 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
73 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
75 virtual const std::set<HashableDimensionKey>* getChangedToTrueDimensions( in getChangedToTrueDimensions()
80 virtual const std::set<HashableDimensionKey>* getChangedToFalseDimensions( in getChangedToFalseDimensions()
97 std::set<HashableDimensionKey>* dimensions) const override { in getTrueSlicedDimensions()
109 std::set<HashableDimensionKey> mLastChangedToTrueDimensions;
110 std::set<HashableDimensionKey> mLastChangedToFalseDimensions;
121 bool hitGuardRail(const HashableDimensionKey& newKey);
124 std::unordered_map<HashableDimensionKey, HashableDimensionKey> mSlicedState;
DSimpleConditionTracker.h55 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
61 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
63 virtual const std::set<HashableDimensionKey>* getChangedToTrueDimensions( in getChangedToTrueDimensions()
72 virtual const std::set<HashableDimensionKey>* getChangedToFalseDimensions( in getChangedToFalseDimensions()
83 std::set<HashableDimensionKey>* dimensions) const override { in getTrueSlicedDimensions()
121 std::set<HashableDimensionKey> mLastChangedToTrueDimensions;
122 std::set<HashableDimensionKey> mLastChangedToFalseDimensions;
126 std::map<HashableDimensionKey, int> mSlicedConditionState;
131 void handleConditionEvent(const HashableDimensionKey& outputKey, bool matchStart,
134 bool hitGuardRail(const HashableDimensionKey& newKey);
DConditionWizard.h46 std::unordered_set<HashableDimensionKey>* dimensionKeySet);
51 std::unordered_set<HashableDimensionKey>* dimensionsKeySet) const;
53 virtual const std::set<HashableDimensionKey>* getChangedToTrueDimensions(const int index) const;
54 virtual const std::set<HashableDimensionKey>* getChangedToFalseDimensions(
65 std::set<HashableDimensionKey>* trueDimensions) const { in getTrueSlicedDimensions()
DConditionWizard.cpp28 std::unordered_set<HashableDimensionKey>* dimensionKeySet) { in query()
40 std::unordered_set<HashableDimensionKey>* dimensionsKeySet) const { in getMetConditionDimension()
46 const set<HashableDimensionKey>* ConditionWizard::getChangedToTrueDimensions( in getChangedToTrueDimensions()
51 const set<HashableDimensionKey>* ConditionWizard::getChangedToFalseDimensions( in getChangedToFalseDimensions()
DCombinationConditionTracker.h50 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
56 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const override;
59 const std::set<HashableDimensionKey>* getChangedToTrueDimensions( in getChangedToTrueDimensions()
71 const std::set<HashableDimensionKey>* getChangedToFalseDimensions( in getChangedToFalseDimensions()
94 std::set<HashableDimensionKey>* dimensions) const override { in getTrueSlicedDimensions()
DConditionTracker.h101 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const = 0;
107 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const = 0;
122 virtual const std::set<HashableDimensionKey>* getChangedToTrueDimensions(
124 virtual const std::set<HashableDimensionKey>* getChangedToFalseDimensions(
133 std::set<HashableDimensionKey>* dimensions) const = 0;
DSimpleConditionTracker.cpp149 bool SimpleConditionTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail()
168 void SimpleConditionTracker::handleConditionEvent(const HashableDimensionKey& outputKey, in handleConditionEvent()
321 HashableDimensionKey outputValue; in evaluateCondition()
347 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const { in isConditionMet()
378 const HashableDimensionKey& key = pair->second; in isConditionMet()
390 HashableDimensionKey dimensionKey; in isConditionMet()
408 HashableDimensionKey dimensionKey; in isConditionMet()
426 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const { in getMetConditionDimension()
446 HashableDimensionKey dimensionKey; in getMetConditionDimension()
DStateTracker.cpp98 bool StateTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail()
142 HashableDimensionKey primaryKey; in evaluateCondition()
143 HashableDimensionKey state; in evaluateCondition()
185 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const { in isConditionMet()
219 std::unordered_set<HashableDimensionKey>& dimensionsKeySet) const { in getMetConditionDimension()
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.h41 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime,
43 void noteStop(const HashableDimensionKey& key, const int64_t eventTime,
67 std::unordered_map<HashableDimensionKey, int> mStarted;
68 std::unordered_map<HashableDimensionKey, int> mPaused;
70 std::unordered_map<HashableDimensionKey, ConditionKey> mConditionKeyMap;
73 bool hitGuardRail(const HashableDimensionKey& newKey);
DMaxDurationTracker.h43 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime,
45 void noteStop(const HashableDimensionKey& key, const int64_t eventTime,
67 std::unordered_map<HashableDimensionKey, DurationInfo> mInfos;
69 void noteConditionChanged(const HashableDimensionKey& key, bool conditionMet,
73 bool hitGuardRail(const HashableDimensionKey& newKey);
DMaxDurationTracker.cpp62 bool MaxDurationTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail()
82 void MaxDurationTracker::noteStart(const HashableDimensionKey& key, bool condition, in noteStart()
117 void MaxDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t eventTime, in noteStop()
179 std::set<HashableDimensionKey> keys; in noteStopAll()
255 std::unordered_set<HashableDimensionKey> conditionDimensionKeySet; in onSlicedConditionMayChange()
277 void MaxDurationTracker::noteConditionChanged(const HashableDimensionKey& key, bool conditionMet, in noteConditionChanged()
DOringDurationTracker.cpp52 bool OringDurationTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail()
71 void OringDurationTracker::noteStart(const HashableDimensionKey& key, bool condition, in noteStart()
93 void OringDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t timestamp, in noteStop()
219 vector<pair<HashableDimensionKey, int>> startedToPaused; in onSlicedConditionMayChange()
220 vector<pair<HashableDimensionKey, int>> pausedToStarted; in onSlicedConditionMayChange()
230 std::unordered_set<HashableDimensionKey> conditionDimensionKeySet; in onSlicedConditionMayChange()
265 std::unordered_set<HashableDimensionKey> conditionDimensionKeySet; in onSlicedConditionMayChange()
/frameworks/base/cmds/statsd/tests/metrics/
DOringDurationTracker_test.cpp42 const HashableDimensionKey eventKey = getMockedDimensionKey(TagId, 0, "event");
44 const HashableDimensionKey kConditionKey1 = getMockedDimensionKey(TagId, 1, "maps");
45 const HashableDimensionKey kEventKey1 = getMockedDimensionKey(TagId, 2, "maps");
46 const HashableDimensionKey kEventKey2 = getMockedDimensionKey(TagId, 3, "maps");
52 const HashableDimensionKey kEventKey1 = getMockedDimensionKey(TagId, 2, "maps"); in TEST()
53 const HashableDimensionKey kEventKey2 = getMockedDimensionKey(TagId, 3, "maps"); in TEST()
85 const HashableDimensionKey kEventKey1 = getMockedDimensionKey(TagId, 2, "maps"); in TEST()
86 const HashableDimensionKey kEventKey2 = getMockedDimensionKey(TagId, 3, "maps"); in TEST()
116 const std::vector<HashableDimensionKey> kConditionKey1 = in TEST()
118 const HashableDimensionKey kEventKey1 = getMockedDimensionKey(TagId, 2, "maps"); in TEST()
[all …]
DMaxDurationTracker_test.cpp44 const HashableDimensionKey eventKey = getMockedDimensionKey(TagId, 0, "1");
45 const HashableDimensionKey conditionKey = getMockedDimensionKey(TagId, 4, "1");
46 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1");
47 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2");
52 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST()
53 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST()
88 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST()
89 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST()
125 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST()
126 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST()
[all …]
Dmetrics_test_helper.cpp21 HashableDimensionKey getMockedDimensionKey(int tagId, int key, string value) { in getMockedDimensionKey()
22 HashableDimensionKey dimension; in getMockedDimensionKey()
Dmetrics_test_helper.h33 std::unordered_set<HashableDimensionKey>* dimensionKeySet));
49 HashableDimensionKey getMockedDimensionKey(int tagId, int key, std::string value);
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp212 std::set<HashableDimensionKey> trueConditionDimensions; in onSlicedConditionMayChangeLocked_opt1()
215 HashableDimensionKey linkedConditionDimensionKey; in onSlicedConditionMayChangeLocked_opt1()
231 HashableDimensionKey linkedConditionDimensionKey; in onSlicedConditionMayChangeLocked_opt1()
278 const std::set<HashableDimensionKey>* trueDimensionsToProcess = nullptr; in onSlicedConditionMayChangeLocked_opt2()
279 const std::set<HashableDimensionKey>* falseDimensionsToProcess = nullptr; in onSlicedConditionMayChangeLocked_opt2()
281 std::set<HashableDimensionKey> currentTrueConditionDimensions; in onSlicedConditionMayChangeLocked_opt2()
307 HashableDimensionKey linkedConditionDimensionKey; in onSlicedConditionMayChangeLocked_opt2()
368 std::unordered_set<HashableDimensionKey> conditionDimensionsKeySet; in onSlicedConditionMayChangeInternalLocked()
401 std::unordered_set<HashableDimensionKey> conditionDimensionsKeys; in onSlicedConditionMayChangeInternalLocked()
721 HashableDimensionKey dimensionKey = DEFAULT_DIMENSION_KEY; in handleStartEvent()
[all …]
DDurationMetricProducer.h130 std::unordered_map<HashableDimensionKey,
131 std::unordered_map<HashableDimensionKey, std::unique_ptr<DurationTracker>>>
/frameworks/base/cmds/statsd/tests/
DFieldValue_test.cpp111 HashableDimensionKey output; in TEST()
136 HashableDimensionKey dim; in TEST()
157 HashableDimensionKey subDim1; in TEST()
160 HashableDimensionKey subDim2; in TEST()
167 HashableDimensionKey subDim3; in TEST()
171 HashableDimensionKey subDim4; in TEST()
294 HashableDimensionKey dim; in TEST()
322 HashableDimensionKey dim; in TEST()
384 HashableDimensionKey dim; in TEST()
/frameworks/base/cmds/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp88 HashableDimensionKey whatKey1({fieldValue1}); in TEST()
93 HashableDimensionKey whatKey2({fieldValue2}); in TEST()
191 HashableDimensionKey whatKey1({fieldValue1}); in TEST()
196 HashableDimensionKey whatKey2({fieldValue2}); in TEST()
DConfigTtl_e2e_test.cpp79 HashableDimensionKey whatKey1({fieldValue1}); in TEST()
84 HashableDimensionKey whatKey2({fieldValue2}); in TEST()

12