Home
last modified time | relevance | path

Searched refs:MatchingState (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp129 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 …]
DStateTracker_test.cpp69 vector<MatchingState> matcherState; in TEST()
70 matcherState.push_back(MatchingState::kMatched); in TEST()
/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp655 vector<MatchingState> matcherResults; in TEST()
656 matcherResults.push_back(MatchingState::kMatched); in TEST()
657 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
658 matcherResults.push_back(MatchingState::kMatched); in TEST()
663 matcherResults.push_back(MatchingState::kMatched); in TEST()
664 matcherResults.push_back(MatchingState::kMatched); in TEST()
665 matcherResults.push_back(MatchingState::kMatched); in TEST()
679 vector<MatchingState> matcherResults; in TEST()
680 matcherResults.push_back(MatchingState::kMatched); in TEST()
681 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
DCombinationLogMatchingTracker.cpp95 vector<MatchingState>& matcherResults) { in onLogEvent()
97 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
102 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
108 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
115 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DSimpleLogMatchingTracker.cpp55 vector<MatchingState>& matcherResults) { in onLogEvent()
56 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
62 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
67 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DEventMatcherWizard.cpp24 MatchingState EventMatcherWizard::matchLogEvent(const LogEvent& event, int matcher_index) { in matchLogEvent()
26 return MatchingState::kNotComputed; in matchLogEvent()
28 vector<MatchingState> matcherCache(mAllEventMatchers.size(), MatchingState::kNotComputed); in matchLogEvent()
Dmatcher_util.h30 enum MatchingState { enum
37 const std::vector<MatchingState>& matcherResults);
Dmatcher_util.cpp33 const vector<MatchingState>& matcherResults) { in combinationMatch()
39 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch()
49 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch()
57 matched = matcherResults[children[0]] == MatchingState::kNotMatched; in combinationMatch()
62 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch()
71 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch()
DEventMatcherWizard.h33 MatchingState matchLogEvent(const LogEvent& event, int matcher_index);
DCombinationLogMatchingTracker.h42 std::vector<MatchingState>& matcherResults) override;
DSimpleLogMatchingTracker.h45 std::vector<MatchingState>& matcherResults) override;
DLogMatchingTracker.h63 std::vector<MatchingState>& matcherResults) = 0;
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp387 vector<MatchingState> matcherCache(mAllAtomMatchers.size(), MatchingState::kNotComputed); in onLogEvent()
399 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent()
421 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent()
435 if (matcherCache[pair.first] == MatchingState::kMatched) { in onLogEvent()
482 if (matcherCache[i] == MatchingState::kMatched) { in onLogEvent()
DGaugeMetricProducer.cpp354 MatchingState::kMatched) { in pullAndMatchEventsLocked()
434 *data, mWhatMatcherIndex) == MatchingState::kMatched) { in onDataPulled()
DValueMetricProducer.cpp544 MatchingState::kMatched) { in accumulateEvents()
/frameworks/base/cmds/statsd/src/condition/
DSimpleConditionTracker.cpp252 const vector<MatchingState>& eventMatcherValues, in evaluateCondition()
266 eventMatcherValues[mStopAllLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
275 eventMatcherValues[mStartLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
280 eventMatcherValues[mStopLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
DStateTracker.cpp118 const vector<MatchingState>& eventMatcherValues, in evaluateCondition()
131 eventMatcherValues[mStartLogMatcherIndex] != MatchingState::kMatched) { in evaluateCondition()
DCombinationConditionTracker.h39 const std::vector<MatchingState>& eventMatcherValues,
DStateTracker.h43 const std::vector<MatchingState>& eventMatcherValues,
DConditionTracker.h70 const std::vector<MatchingState>& eventMatcherValues,
DSimpleConditionTracker.h44 const std::vector<MatchingState>& eventMatcherValues,
DCombinationConditionTracker.cpp129 const LogEvent& event, const std::vector<MatchingState>& eventMatcherValues, in evaluateCondition()