/frameworks/base/cmds/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 129 vector<MatchingState> matcherState; in TEST() 130 matcherState.push_back(MatchingState::kNotMatched); in TEST() 131 matcherState.push_back(MatchingState::kNotMatched); in TEST() 145 matcherState.push_back(MatchingState::kMatched); in TEST() 146 matcherState.push_back(MatchingState::kNotMatched); in TEST() 158 matcherState.push_back(MatchingState::kNotMatched); in TEST() 159 matcherState.push_back(MatchingState::kNotMatched); in TEST() 170 matcherState.push_back(MatchingState::kNotMatched); in TEST() 171 matcherState.push_back(MatchingState::kMatched); in TEST() 184 matcherState.push_back(MatchingState::kNotMatched); in TEST() [all …]
|
D | StateTracker_test.cpp | 69 vector<MatchingState> matcherState; in TEST() 70 matcherState.push_back(MatchingState::kMatched); in TEST()
|
/frameworks/base/cmds/statsd/src/matchers/ |
D | SimpleLogMatchingTracker.cpp | 57 vector<MatchingState>& matcherResults) { in onLogEvent() 58 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent() 64 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent() 69 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
|
D | EventMatcherWizard.cpp | 27 MatchingState EventMatcherWizard::matchLogEvent(const LogEvent& event, int matcher_index) { in matchLogEvent() 29 return MatchingState::kNotComputed; in matchLogEvent() 31 vector<MatchingState> matcherCache(mAllEventMatchers.size(), MatchingState::kNotComputed); in matchLogEvent()
|
D | CombinationLogMatchingTracker.cpp | 97 vector<MatchingState>& matcherResults) { in onLogEvent() 99 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent() 104 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent() 110 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent() 117 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
|
D | matcher_util.h | 35 enum MatchingState { enum 42 const std::vector<MatchingState>& matcherResults);
|
D | matcher_util.cpp | 34 const vector<MatchingState>& matcherResults) { in combinationMatch() 40 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch() 50 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch() 58 matched = matcherResults[children[0]] == MatchingState::kNotMatched; in combinationMatch() 63 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch() 72 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch()
|
D | EventMatcherWizard.h | 33 MatchingState matchLogEvent(const LogEvent& event, int matcher_index);
|
D | CombinationLogMatchingTracker.h | 45 std::vector<MatchingState>& matcherResults) override;
|
D | SimpleLogMatchingTracker.h | 48 std::vector<MatchingState>& matcherResults) override;
|
D | LogMatchingTracker.h | 63 std::vector<MatchingState>& matcherResults) = 0;
|
/frameworks/base/cmds/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 658 vector<MatchingState> matcherResults; in TEST() 659 matcherResults.push_back(MatchingState::kMatched); in TEST() 660 matcherResults.push_back(MatchingState::kNotMatched); in TEST() 661 matcherResults.push_back(MatchingState::kMatched); in TEST() 666 matcherResults.push_back(MatchingState::kMatched); in TEST() 667 matcherResults.push_back(MatchingState::kMatched); in TEST() 668 matcherResults.push_back(MatchingState::kMatched); in TEST() 682 vector<MatchingState> matcherResults; in TEST() 683 matcherResults.push_back(MatchingState::kMatched); in TEST() 684 matcherResults.push_back(MatchingState::kNotMatched); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricsManager.cpp | 376 vector<MatchingState> matcherCache(mAllAtomMatchers.size(), MatchingState::kNotComputed); in onLogEvent() 388 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent() 410 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent() 424 if (matcherCache[pair.first] == MatchingState::kMatched) { in onLogEvent() 471 if (matcherCache[i] == MatchingState::kMatched) { in onLogEvent()
|
D | GaugeMetricProducer.cpp | 356 MatchingState::kMatched) { in pullAndMatchEventsLocked() 436 *data, mWhatMatcherIndex) == MatchingState::kMatched) { in onDataPulled()
|
D | ValueMetricProducer.cpp | 549 MatchingState::kMatched) { in accumulateEvents()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 256 const vector<MatchingState>& eventMatcherValues, in evaluateCondition() 270 eventMatcherValues[mStopAllLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition() 279 eventMatcherValues[mStartLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition() 284 eventMatcherValues[mStopLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
|
D | StateTracker.cpp | 118 const vector<MatchingState>& eventMatcherValues, in evaluateCondition() 131 eventMatcherValues[mStartLogMatcherIndex] != MatchingState::kMatched) { in evaluateCondition()
|
D | CombinationConditionTracker.h | 39 const std::vector<MatchingState>& eventMatcherValues,
|
D | ConditionTracker.h | 72 const std::vector<MatchingState>& eventMatcherValues,
|
D | StateTracker.h | 43 const std::vector<MatchingState>& eventMatcherValues,
|
D | SimpleConditionTracker.h | 44 const std::vector<MatchingState>& eventMatcherValues,
|
D | CombinationConditionTracker.cpp | 134 const LogEvent& event, const std::vector<MatchingState>& eventMatcherValues, in evaluateCondition()
|