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/src/matchers/
DSimpleLogMatchingTracker.cpp57 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()
DEventMatcherWizard.cpp27 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()
DCombinationLogMatchingTracker.cpp97 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()
Dmatcher_util.h35 enum MatchingState { enum
42 const std::vector<MatchingState>& matcherResults);
Dmatcher_util.cpp34 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()
DEventMatcherWizard.h33 MatchingState matchLogEvent(const LogEvent& event, int matcher_index);
DCombinationLogMatchingTracker.h45 std::vector<MatchingState>& matcherResults) override;
DSimpleLogMatchingTracker.h48 std::vector<MatchingState>& matcherResults) override;
DLogMatchingTracker.h63 std::vector<MatchingState>& matcherResults) = 0;
/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp658 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/
DMetricsManager.cpp376 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()
DGaugeMetricProducer.cpp356 MatchingState::kMatched) { in pullAndMatchEventsLocked()
436 *data, mWhatMatcherIndex) == MatchingState::kMatched) { in onDataPulled()
DValueMetricProducer.cpp549 MatchingState::kMatched) { in accumulateEvents()
/frameworks/base/cmds/statsd/src/condition/
DSimpleConditionTracker.cpp256 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()
DStateTracker.cpp118 const vector<MatchingState>& eventMatcherValues, in evaluateCondition()
131 eventMatcherValues[mStartLogMatcherIndex] != MatchingState::kMatched) { in evaluateCondition()
DCombinationConditionTracker.h39 const std::vector<MatchingState>& eventMatcherValues,
DConditionTracker.h72 const std::vector<MatchingState>& eventMatcherValues,
DStateTracker.h43 const std::vector<MatchingState>& eventMatcherValues,
DSimpleConditionTracker.h44 const std::vector<MatchingState>& eventMatcherValues,
DCombinationConditionTracker.cpp134 const LogEvent& event, const std::vector<MatchingState>& eventMatcherValues, in evaluateCondition()