Home
last modified time | relevance | path

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

/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 …]
/packages/modules/StatsD/statsd/src/matchers/
DCombinationAtomMatchingTracker.cpp115 vector<MatchingState>& matcherResults) { in onLogEvent() argument
117 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
122 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
128 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
130 child->onLogEvent(event, allAtomMatchingTrackers, matcherResults); in onLogEvent()
134 bool matched = combinationMatch(mChildren, mLogicalOperation, matcherResults); in onLogEvent()
135 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DSimpleAtomMatchingTracker.cpp63 vector<MatchingState>& matcherResults) { in onLogEvent() argument
64 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
70 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
75 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
Dmatcher_util.cpp33 const vector<MatchingState>& matcherResults) { in combinationMatch() argument
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()
Dmatcher_util.h37 const std::vector<MatchingState>& matcherResults);
DCombinationAtomMatchingTracker.h45 std::vector<MatchingState>& matcherResults) override;
DSimpleAtomMatchingTracker.h48 std::vector<MatchingState>& matcherResults) override;
DAtomMatchingTracker.h73 std::vector<MatchingState>& matcherResults) = 0;