Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp658 vector<MatchingState> matcherResults; in TEST() local
659 matcherResults.push_back(MatchingState::kMatched); in TEST()
660 matcherResults.push_back(MatchingState::kNotMatched); in TEST()
661 matcherResults.push_back(MatchingState::kMatched); in TEST()
663 EXPECT_FALSE(combinationMatch(children, operation, matcherResults)); in TEST()
665 matcherResults.clear(); 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()
670 EXPECT_TRUE(combinationMatch(children, operation, matcherResults)); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
DCombinationLogMatchingTracker.cpp97 vector<MatchingState>& matcherResults) { in onLogEvent() argument
99 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
104 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
110 if (matcherResults[childIndex] == MatchingState::kNotComputed) { in onLogEvent()
112 child->onLogEvent(event, allTrackers, matcherResults); in onLogEvent()
116 bool matched = combinationMatch(mChildren, mLogicalOperation, matcherResults); in onLogEvent()
117 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
DSimpleLogMatchingTracker.cpp57 vector<MatchingState>& matcherResults) { in onLogEvent() argument
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()
Dmatcher_util.cpp34 const vector<MatchingState>& matcherResults) { in combinationMatch() argument
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()
Dmatcher_util.h42 const std::vector<MatchingState>& matcherResults);
DCombinationLogMatchingTracker.h45 std::vector<MatchingState>& matcherResults) override;
DSimpleLogMatchingTracker.h48 std::vector<MatchingState>& matcherResults) override;
DLogMatchingTracker.h63 std::vector<MatchingState>& matcherResults) = 0;