/frameworks/base/cmds/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 134 vector<ConditionState> conditionCache(1, ConditionState::kNotEvaluated); in TEST() local 137 conditionTracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, in TEST() 140 EXPECT_EQ(ConditionState::kUnknown, conditionCache[0]); in TEST() 147 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() 150 conditionTracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, in TEST() 153 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST() 160 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() 163 conditionTracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, in TEST() 165 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST() 172 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() [all …]
|
D | StateTracker_test.cpp | 72 vector<ConditionState> conditionCache(1, ConditionState::kNotEvaluated); in TEST() local 75 tracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, changedCache); in TEST() 81 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() 82 tracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, changedCache); in TEST() 91 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() 92 tracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, changedCache); in TEST() 100 conditionCache[0] = ConditionState::kNotEvaluated; in TEST() 101 tracker.evaluateCondition(event3, matcherState, allPredicates, conditionCache, changedCache); in TEST()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | StateTracker.cpp | 120 vector<ConditionState>& conditionCache, in evaluateCondition() argument 124 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 126 VLOG("Yes, already evaluated, %lld %d", (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition() 132 conditionCache[mIndex] = in evaluateCondition() 147 conditionCache[mIndex] = in evaluateCondition() 159 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition() 166 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition() 169 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition() 184 vector<ConditionState>& conditionCache, in isConditionMet() argument 186 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in isConditionMet() [all …]
|
D | SimpleConditionTracker.cpp | 126 void SimpleConditionTracker::handleStopAll(std::vector<ConditionState>& conditionCache, in handleStopAll() argument 143 conditionCache[mIndex] = ConditionState::kFalse; in handleStopAll() 169 bool matchStart, ConditionState* conditionCache, in handleConditionEvent() argument 177 (*conditionCache) = ConditionState::kUnknown; in handleConditionEvent() 244 (*conditionCache) = newCondition; in handleConditionEvent() 254 vector<ConditionState>& conditionCache, in evaluateCondition() argument 256 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 259 (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition() 267 handleStopAll(conditionCache, conditionChangedCache); in evaluateCondition() 290 conditionCache[mIndex] = mInitialValue; in evaluateCondition() [all …]
|
D | CombinationConditionTracker.cpp | 111 vector<ConditionState>& conditionCache, in isConditionMet() argument 115 if (conditionCache[childIndex] == ConditionState::kNotEvaluated) { in isConditionMet() 120 conditionCache, in isConditionMet() 124 conditionCache[mIndex] = in isConditionMet() 125 evaluateCombinationCondition(mChildren, mLogicalOperation, conditionCache); in isConditionMet() 181 vector<ConditionState> conditionCache(allConditions.size(), ConditionState::kNotEvaluated); in getMetConditionDimension() local 184 conditionCache[childIndex] = conditionCache[childIndex] | in getMetConditionDimension() 188 evaluateCombinationCondition(mChildren, mLogicalOperation, conditionCache); in getMetConditionDimension() 189 if (conditionCache[mIndex] == ConditionState::kTrue && dimensionsKeySet.empty()) { in getMetConditionDimension() 192 return conditionCache[mIndex]; in getMetConditionDimension()
|
D | condition_util.cpp | 35 const std::vector<ConditionState>& conditionCache) { in evaluateCombinationCondition() argument 43 ConditionState childState = conditionCache[childIndex]; in evaluateCombinationCondition() 72 ((conditionCache[children[0]] == ConditionState::kFalse) ? in evaluateCombinationCondition()
|
D | SimpleConditionTracker.h | 46 std::vector<ConditionState>& conditionCache, 54 std::vector<ConditionState>& conditionCache, 128 void handleStopAll(std::vector<ConditionState>& conditionCache, 132 ConditionState* conditionCache, bool* changedCache);
|
D | CombinationConditionTracker.h | 41 std::vector<ConditionState>& conditionCache, 49 std::vector<ConditionState>& conditionCache,
|
D | StateTracker.h | 45 std::vector<ConditionState>& conditionCache, 61 std::vector<ConditionState>& conditionCache,
|
D | ConditionTracker.h | 72 std::vector<ConditionState>& conditionCache, 100 std::vector<ConditionState>& conditionCache,
|
D | condition_util.h | 39 const std::vector<ConditionState>& conditionCache);
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricsManager.cpp | 443 vector<ConditionState> conditionCache(mAllConditionTrackers.size(), in onLogEvent() local 452 condition->evaluateCondition(event, matcherCache, mAllConditionTrackers, conditionCache, in onLogEvent() 467 mAllMetricProducers[metricIndex]->onConditionChanged(conditionCache[i], in onLogEvent() 473 mAllMetricProducers[metricIndex]->onSlicedConditionMayChange(conditionCache[i], in onLogEvent()
|