Home
last modified time | relevance | path

Searched refs:simpleMatcher (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp120 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
121 simpleMatcher->set_atom_id(TAG_ID); in TEST()
127 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
130 simpleMatcher->set_atom_id(TAG_ID + 1); in TEST()
131 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
145 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
146 simpleMatcher->set_atom_id(TAG_ID); in TEST()
149 auto attributionMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
157 auto fieldMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
162 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.h40 const SimpleAtomMatcher& simpleMatcher, const LogEvent& wrapper);
Dmatcher_util.cpp356 bool matchesSimple(const UidMap& uidMap, const SimpleAtomMatcher& simpleMatcher, in matchesSimple() argument
358 if (event.GetTagId() != simpleMatcher.atom_id()) { in matchesSimple()
362 for (const auto& matcher : simpleMatcher.field_value_matcher()) { in matchesSimple()