Home
last modified time | relevance | path

Searched refs:matcherResults (Results 1 – 8 of 8) sorted by relevance

/packages/modules/StatsD/statsd/src/matchers/
DCombinationAtomMatchingTracker.cpp144 vector<MatchingState>& matcherResults, in onLogEvent() argument
147 if (matcherResults[matcherIndex] != MatchingState::kNotComputed) { in onLogEvent()
152 matcherResults[matcherIndex] = MatchingState::kNotMatched; in onLogEvent()
158 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
160 child->onLogEvent(event, childIndex, allAtomMatchingTrackers, matcherResults, in onLogEvent()
165 bool matched = combinationMatch(mChildren, mLogicalOperation, matcherResults); in onLogEvent()
166 matcherResults[matcherIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DSimpleAtomMatchingTracker.cpp81 vector<MatchingState>& matcherResults, in onLogEvent() argument
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()
Dmatcher_util.cpp38 const vector<MatchingState>& matcherResults) { in combinationMatch() argument
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()
Dmatcher_util.h42 const std::vector<MatchingState>& matcherResults);
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() local
1103 matcherResults.push_back(MatchingState::kMatched); in TEST()
1104 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
1105 matcherResults.push_back(MatchingState::kMatched); in TEST()
1107 EXPECT_FALSE(combinationMatch(children, operation, matcherResults)); in TEST()
1109 matcherResults.clear(); 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()
1114 EXPECT_TRUE(combinationMatch(children, operation, matcherResults)); in TEST()
[all …]