Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp148 vector<MatchingState> matcherState; in TEST()
156 matcherState.push_back(MatchingState::kNotMatched); // On matcher not matched in TEST()
157 matcherState.push_back(MatchingState::kMatched); // Off matcher matched in TEST()
169 matcherState.push_back(MatchingState::kMatched); // On matcher matched in TEST()
170 matcherState.push_back(MatchingState::kNotMatched); // Off matcher not matched in TEST()
202 vector<MatchingState> matcherState; in TEST()
210 matcherState.push_back(MatchingState::kNotMatched); // On matcher not matched in TEST()
211 matcherState.push_back(MatchingState::kMatched); // Off matcher matched in TEST()
223 matcherState.push_back(MatchingState::kMatched); // On matcher matched in TEST()
224 matcherState.push_back(MatchingState::kNotMatched); // Off matcher not matched in TEST()
[all …]
/packages/modules/StatsD/statsd/src/matchers/
DSimpleAtomMatchingTracker.cpp81 vector<MatchingState>& matcherResults, in onLogEvent()
83 if (matcherResults[matcherIndex] != MatchingState::kNotComputed) { in onLogEvent()
89 matcherResults[matcherIndex] = MatchingState::kNotMatched; in onLogEvent()
94 matcherResults[matcherIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DCombinationAtomMatchingTracker.cpp144 vector<MatchingState>& matcherResults, in onLogEvent()
147 if (matcherResults[matcherIndex] != MatchingState::kNotComputed) { in onLogEvent()
152 matcherResults[matcherIndex] = MatchingState::kNotMatched; in onLogEvent()
158 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
166 matcherResults[matcherIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DEventMatcherWizard.h26 MatchingState matchingState;
35 mMatcherCache(eventTrackers.size(), MatchingState::kNotComputed), in EventMatcherWizard()
44 std::vector<MatchingState> mMatcherCache;
Dmatcher_util.h30 enum MatchingState { enum
42 const std::vector<MatchingState>& matcherResults);
DEventMatcherWizard.cpp24 return {MatchingState::kNotComputed, nullptr}; in matchLogEvent()
26 std::fill(mMatcherCache.begin(), mMatcherCache.end(), MatchingState::kNotComputed); in matchLogEvent()
Dmatcher_util.cpp38 const vector<MatchingState>& matcherResults) { in combinationMatch()
44 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch()
54 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch()
62 matched = matcherResults[children[0]] == MatchingState::kNotMatched; in combinationMatch()
67 if (matcherResults[childIndex] != MatchingState::kMatched) { in combinationMatch()
76 if (matcherResults[childIndex] == MatchingState::kMatched) { in combinationMatch()
DCombinationAtomMatchingTracker.h47 std::vector<MatchingState>& matcherResults,
DSimpleAtomMatchingTracker.h49 std::vector<MatchingState>& matcherResults,
DAtomMatchingTracker.h81 std::vector<MatchingState>& matcherResults,
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp1102 vector<MatchingState> matcherResults; in TEST()
1103 matcherResults.push_back(MatchingState::kMatched); in TEST()
1104 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
1105 matcherResults.push_back(MatchingState::kMatched); in TEST()
1110 matcherResults.push_back(MatchingState::kMatched); in TEST()
1111 matcherResults.push_back(MatchingState::kMatched); in TEST()
1112 matcherResults.push_back(MatchingState::kMatched); in TEST()
1126 vector<MatchingState> matcherResults; in TEST()
1127 matcherResults.push_back(MatchingState::kMatched); in TEST()
1128 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp269 const vector<MatchingState>& eventMatcherValues, in evaluateCondition()
283 eventMatcherValues[mStopAllLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
292 eventMatcherValues[mStartLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
297 eventMatcherValues[mStopLogMatcherIndex] == MatchingState::kMatched) { in evaluateCondition()
DCombinationConditionTracker.h46 const std::vector<MatchingState>& eventMatcherValues,
DConditionTracker.h95 const std::vector<MatchingState>& eventMatcherValues,
DSimpleConditionTracker.h51 const std::vector<MatchingState>& eventMatcherValues,
DCombinationConditionTracker.cpp203 const LogEvent& event, const std::vector<MatchingState>& eventMatcherValues, in evaluateCondition()
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.cpp607 vector<MatchingState> matcherCache(mAllAtomMatchingTrackers.size(), in onLogEvent()
608 MatchingState::kNotComputed); in onLogEvent()
622 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent()
643 if (matcherCache[it.first] == MatchingState::kMatched) { in onLogEvent()
659 if (matcherCache[matcherIndex] == MatchingState::kMatched) { in onLogEvent()
710 if (matcherCache[i] == MatchingState::kMatched) { in onLogEvent()
DNumericValueMetricProducer.cpp275 if (matchResult != MatchingState::kMatched) { in accumulateEvents()
307 if (matchResult == MatchingState::kMatched) { in accumulateEvents()
DGaugeMetricProducer.cpp424 if (matchResult == MatchingState::kMatched) { in pullAndMatchEventsLocked()
517 if (matchResult == MatchingState::kMatched) { in onDataPulled()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp811 vector<MatchingState> eventMatcherValues(6, MatchingState::kNotMatched); in TEST_F()
812 eventMatcherValues[1] = MatchingState::kMatched; in TEST_F()
2629 vector<MatchingState> matchingStates(8, MatchingState::kNotMatched); in TEST_F()