Home
last modified time | relevance | path

Searched refs:Matcher (Results 1 – 25 of 127) sorted by relevance

123456

/frameworks/base/cmds/statsd/src/
DFieldValue.h25 struct Matcher;
183 bool matches(const Matcher& that) const;
217 struct Matcher { struct
218 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher() argument
251 inline bool operator!=(const Matcher& that) const { argument
255 inline bool operator==(const Matcher& that) const {
260 inline Matcher getSimpleMatcher(int32_t tag, size_t field) { in getSimpleMatcher()
261 return Matcher(Field(tag, getSimpleField(field)), 0xff7f0000); in getSimpleMatcher()
392 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output);
396 bool equalDimensions(const std::vector<Matcher>& dimension_a,
[all …]
DHashableDimensionKey.h33 std::vector<Matcher> metricFields;
34 std::vector<Matcher> conditionFields;
132 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values,
141 void filterGaugeValues(const std::vector<Matcher>& matchers, const std::vector<FieldValue>& values,
DFieldValue.cpp45 bool Field::matches(const Matcher& matcher) const { in matches()
62 std::vector<Matcher>* output) { in translateFieldMatcher()
101 output->push_back(Matcher(Field(tag, pos, depth), encodeMatcherMask(mask, depth))); in translateFieldMatcher()
109 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output) { in translateFieldMatcher()
430 bool equalDimensions(const std::vector<Matcher>& dimension_a, in equalDimensions()
431 const std::vector<Matcher>& dimension_b) { in equalDimensions()
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.h33 const vector<Matcher> primaryKeys);
58 const vector<Matcher>& dimensionFields,
71 const vector<Matcher>& dimensionFields,
91 const vector<Matcher>& dimensions) const override { in equalOutputDimensions()
112 std::vector<Matcher> mOutputDimensions;
113 std::vector<Matcher> mPrimaryKeys;
DConditionWizard.h43 const vector<Matcher>& dimensionFields,
49 const int index, const vector<Matcher>& dimensionFields,
56 bool equalOutputDimensions(const int index, const vector<Matcher>& dimensions);
DConditionWizard.cpp25 const vector<Matcher>& dimensionFields, in query()
38 const int index, const vector<Matcher>& dimensionFields, in getMetConditionDimension()
72 bool ConditionWizard::equalOutputDimensions(const int index, const vector<Matcher>& dimensions) { in equalOutputDimensions()
DSimpleConditionTracker.h51 const vector<Matcher>& dimensionFields,
59 const vector<Matcher>& dimensionFields,
97 const vector<Matcher>& dimensions) const override { in equalOutputDimensions()
117 std::vector<Matcher> mOutputDimensions;
DCombinationConditionTracker.h46 const vector<Matcher>& dimensionFields,
54 const vector<Matcher>& dimensionFields,
90 const vector<Matcher>& dimensions) const override;
DConditionTracker.h97 const vector<Matcher>& dimensionFields,
105 const vector<Matcher>& dimensionFields,
141 const vector<Matcher>& dimensions) const = 0;
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockUtils.java32 import org.hamcrest.Matcher;
43 final Matcher<UserHandle> m = new BaseMatcher<UserHandle>() { in checkUserHandle()
59 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentComponent()
75 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentAction()
91 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntent()
111 final Matcher<Bundle> m = new BaseMatcher<Bundle>() { in checkUserRestrictions()
127 final Matcher<Set<String>> m = new BaseMatcher<Set<String>>() { in checkApps()
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DBatteryStatsParser.java21 import java.util.regex.Matcher;
54 Matcher lineMatcher = LINE_PATTERN.matcher(line); in parseLine()
59 Matcher timeMatcher = TIME_PATTERN.matcher(lineMatcher.group(1)); in parseLine()
80 Matcher timeMatcher = TIME_PATTERN.matcher(group); in getTime()
DMemInfoParser.java21 import java.util.regex.Matcher;
56 Matcher lineMatcher = LINE_PATTERN.matcher(line); in parseLine()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DPatternScanner.java20 import java.util.regex.Matcher;
51 Matcher matcher = pattern.matcher(mInput); in tryEat()
85 Matcher matcher = pattern.matcher(mInput); in peek()
93 Matcher matcher = pattern.matcher(mInput); in skip()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java40 import org.hamcrest.Matcher;
78 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection()
108 public static ViewAssertion hasInsertionPointerAtIndex(final Matcher<Integer> index) { in hasInsertionPointerAtIndex()
160 private final Matcher<String> mSelection;
162 public TextSelectionAssertion(Matcher<String> selection) {
DSuggestionsPopupwindowUtils.java39 import org.hamcrest.Matcher;
51 private static ViewInteraction onSuggestionsPopupItem(Matcher<View> matcher) { in onSuggestionsPopupItem()
111 public Matcher<View> getConstraints() { in getConstraints()
DViewClickAction.java29 import org.hamcrest.Matcher;
41 public Matcher<View> getConstraints() { in getConstraints()
/frameworks/base/core/java/android/webkit/
DFindAddress.java21 import java.util.regex.Matcher;
270 Matcher suffixMatcher = sSuffixedNumberRe.matcher(houseNumber); in checkHouseNumber()
301 Matcher matcher = sHouseNumberRe.matcher(content).region(offset, content.length()); in matchHouseNumber()
320 Matcher stateMatcher = sStateRe.matcher(content).region(offset, content.length()); in matchState()
373 Matcher matcher = sWordRe.matcher(content); in attemptMatch()
431 Matcher zipMatcher = sWordRe.matcher(content); in attemptMatch()
463 Matcher houseNumberMatcher = sHouseNumberRe.matcher(content); in findAddress()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DInMatcher.java21 import org.hamcrest.Matcher;
66 public static <T> Matcher<T> in(T... operand) { in in()
71 public static <T> Matcher<T> in(Collection<T> operand) { in in()
/frameworks/opt/chips/src/com/android/ex/chips/
DPhoneUtil.java22 import java.util.regex.Matcher;
49 Matcher match = PHONE_PATTERN.matcher(number); in isPhoneNumber()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java30 import org.hamcrest.Matcher;
289 Matcher<GestureStep> numTouchPointsIs(final int numTouchPoints) { in numTouchPointsIs()
303 Matcher<GestureStep> numStartsOfStroke(final int numStarts) {
323 Matcher<GestureStep> numEndsOfStroke(final int numEnds) {
343 Matcher<GestureStep> hasPoint(final PointF point) {
363 Matcher<GestureStep> hasStrokeId(final int strokeId) {
382 Matcher<GestureStep> continuesStrokeId(final int strokeId) {
401 Matcher<GestureStep> isAtTime(final long time) {
415 Matcher<GestureStep> noStartsOrEnds() {
/frameworks/base/core/java/android/util/
DPatterns.java19 import java.util.regex.Matcher;
469 public static final String concatGroups(Matcher matcher) { in concatGroups()
494 public static final String digitsAndPlusOnly(Matcher matcher) { in digitsAndPlusOnly()
/frameworks/base/cmds/statsd/tests/metrics/
DOringDurationTracker_test.cpp54 vector<Matcher> dimensionInCondition; in TEST()
87 vector<Matcher> dimensionInCondition; in TEST()
120 vector<Matcher> dimensionInCondition; in TEST()
150 vector<Matcher> dimensionInCondition; in TEST()
189 vector<Matcher> dimensionInCondition; in TEST()
227 vector<Matcher> dimensionInCondition; in TEST()
269 vector<Matcher> dimensionInCondition; in TEST()
309 vector<Matcher> dimensionInCondition; in TEST()
374 vector<Matcher> dimensionInCondition; in TEST()
418 vector<Matcher> dimensionInCondition; in TEST()
[all …]
DMaxDurationTracker_test.cpp55 vector<Matcher> dimensionInCondition; in TEST()
91 vector<Matcher> dimensionInCondition; in TEST()
127 vector<Matcher> dimensionInCondition; in TEST()
168 vector<Matcher> dimensionInCondition; in TEST()
205 vector<Matcher> dimensionInCondition; in TEST()
249 vector<Matcher> dimensionInCondition; in TEST()
298 vector<Matcher> dimensionInCondition; in TEST()
384 vector<Matcher> dimensionInCondition; in TEST()
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DNotInitializedRegex.java23 import java.util.regex.Matcher;
36 Matcher m = Pattern.compile(args[0]).matcher(""); in main()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java22 import java.util.regex.Matcher;
93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString); in parse()
100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString); in parse()

123456