Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp655 vector<MatchingState> matcherResults; in TEST() local
656 matcherResults.push_back(MatchingState::kMatched); in TEST()
657 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
658 matcherResults.push_back(MatchingState::kMatched); in TEST()
660 EXPECT_FALSE(combinationMatch(children, operation, matcherResults)); in TEST()
662 matcherResults.clear(); 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()
667 EXPECT_TRUE(combinationMatch(children, operation, matcherResults)); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
DCombinationLogMatchingTracker.cpp95 vector<MatchingState>& matcherResults) { in onLogEvent() argument
97 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
102 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
108 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
110 child->onLogEvent(event, allTrackers, matcherResults); in onLogEvent()
114 bool matched = combinationMatch(mChildren, mLogicalOperation, matcherResults); in onLogEvent()
115 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DSimpleLogMatchingTracker.cpp55 vector<MatchingState>& matcherResults) { in onLogEvent() argument
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()
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);
DCombinationLogMatchingTracker.h42 std::vector<MatchingState>& matcherResults) override;
DSimpleLogMatchingTracker.h45 std::vector<MatchingState>& matcherResults) override;
DLogMatchingTracker.h63 std::vector<MatchingState>& matcherResults) = 0;