Home
last modified time | relevance | path

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

12345678

/packages/modules/StatsD/statsd/src/
DFieldValue.h25 struct Matcher;
187 bool matches(const Matcher& that) const;
220 struct Matcher { struct
221 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher() function
255 bool isEqualWithoutPositionBits(const Matcher& that) const { in isEqualWithoutPositionBits() argument
260 inline bool operator!=(const Matcher& that) const {
264 inline bool operator==(const Matcher& that) const {
269 inline Matcher getSimpleMatcher(int32_t tag, size_t field) { in getSimpleMatcher()
270 return Matcher(Field(tag, getSimpleField(field)), 0xff7f0000); in getSimpleMatcher()
273 inline Matcher getFirstUidMatcher(int32_t atomId) { in getFirstUidMatcher()
[all …]
DHashableDimensionKey.h43 std::vector<Matcher> metricFields;
44 std::vector<Matcher> conditionFields;
49 std::vector<Matcher> metricFields;
50 std::vector<Matcher> stateFields;
174 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values,
187 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values,
207 bool filterValues(const std::vector<Matcher>& dimKeyMatcherFields,
208 const std::vector<Matcher>& valueMatcherFields,
230 void filterGaugeValues(const std::vector<Matcher>& matchers, const std::vector<FieldValue>& values,
DFieldValue.cpp47 bool Field::matches(const Matcher& matcher) const { in matches()
63 std::vector<Matcher> dedupFieldMatchers(const std::vector<Matcher>& fieldMatchers) { in dedupFieldMatchers()
64 std::vector<Matcher> dedupedFieldMatchers; in dedupFieldMatchers()
75 std::vector<Matcher>* output) { in translateFieldMatcher()
114 output->push_back(Matcher(Field(tag, pos, depth), encodeMatcherMask(mask, depth))); in translateFieldMatcher()
122 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output) { in translateFieldMatcher()
485 bool equalDimensions(const std::vector<Matcher>& dimension_a, in equalDimensions()
486 const std::vector<Matcher>& dimension_b) { in equalDimensions()
497 bool subsetDimensions(const std::vector<Matcher>& dimension_a, in subsetDimensions()
498 const std::vector<Matcher>& dimension_b) { in subsetDimensions()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DContactsMatchers.java27 import org.hamcrest.Matcher;
44 public static Matcher<Cursor> hasMimeType(String type) { in hasMimeType()
48 public static Matcher<Cursor> hasName(final String name) { in hasName()
55 public static Matcher<Cursor> hasPhone(final String phone) { in hasPhone()
62 public static Matcher<Cursor> hasEmail(final String email) { in hasEmail()
70 public static Matcher<Cursor> hasCount(final int count) { in hasCount()
85 public static Matcher<Cursor> hasValueForColumn(final String column, final String value) {
104 public static Matcher<Cursor> hasRowMatching(final Matcher<Cursor> rowMatcher) {
127 public static Matcher<SimContact> isSimContactWithNameAndPhone(final String name,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DViewMatchers.kt23 import org.hamcrest.Matcher
36 fun withIndex(matcher: Matcher<View?>, index: Int): Matcher<View?> { in withIndex()
52 fun atPosition(position: Int, itemMatcher: Matcher<View?>): Matcher<View?> { in atPosition()
69 fun isAbove(otherViewMatcher: Matcher<View>): TypeSafeMatcher<View> { in isAbove()
95 private fun View.findViewByMatcher(matcher: Matcher<View>): View? { in findViewByMatcher()
DWaitForViewAction.kt27 import org.hamcrest.Matcher
31 class WaitForViewAction(private val mMatcher: Matcher<View>, private val mWaitTimeMillis: Long) :
33 override fun getConstraints(): Matcher<View> { in getConstraints()
66 fun waitForView(matcher: Matcher<View>, waitTimeMillis: Long = 500): ViewAction { in waitForView()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationOtpDetectionHelper.java53 import java.util.regex.Matcher;
67 private static final ArrayMap<String, ThreadLocal<Matcher>> EXTRA_LANG_OTP_REGEX =
120 private static final ThreadLocal<Matcher> OTP_REGEX = ThreadLocal.withInitial(() ->
131 private static final ThreadLocal<Matcher> DATE_WITH_DASHES_REGEX = ThreadLocal.withInitial(() ->
144 private static final ThreadLocal<Matcher> FALSE_POSITIVE_REGEX = ThreadLocal.withInitial(() ->
160 private static Matcher createDictionaryRegex(String[] words) { in createDictionaryRegex()
201 Matcher otpMatcher = OTP_REGEX.get(); in containsOtp()
213 Matcher languageSpecificMatcher = getLanguageSpecificRegex(sensitiveText, tc); in containsOtp()
236 Matcher falsePositiveRegex) { in allOtpMatchesAreFalsePositives()
241 Matcher otpMatcher = OTP_REGEX.get(); in allOtpMatchesAreFalsePositives()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothNameUtils.java21 import java.util.regex.Matcher;
46 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getSetupType()
70 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getColorConfiguration()
79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration()
98 Matcher matcher = NAME_PATTERN.matcher(name); in isValidName()
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp83 vector<Matcher> output; in TEST()
104 vector<Matcher> output; in TEST()
128 vector<Matcher> matchers; in TEST()
174 vector<Matcher> matchers; in TEST()
202 vector<Matcher> matchers; in TEST()
224 vector<Matcher> matchers; in TEST()
246 vector<Matcher> matchers; in TEST()
271 vector<Matcher> matchers; in TEST()
295 vector<Matcher> matchers; in TEST()
320 vector<Matcher> matchers; in TEST()
[all …]
/packages/services/Car/car_product/car_ui_portrait/test/hostsidetests/car/src/android/car/ui/test/
DTaskInfo.java21 import java.util.regex.Matcher;
54 Matcher matcher = taskPattern.matcher(string); in getComponentName()
63 Matcher matcher = taskPattern.matcher(string); in getVisibility()
73 Matcher matcher = taskIdGroupPattern.matcher(string); in getTaskId()
77 Matcher idMather = taskIdGroupPattern.matcher(idGroup); in getTaskId()
90 Matcher matcher = taskPattern.matcher(stackList); in getActiveComponents()
/packages/providers/MediaProvider/errorprone/src/com/android/providers/media/
DMimeTypeChecker.java28 import com.google.errorprone.matchers.Matcher;
47 private static final Matcher<ExpressionTree> STRING_EQUALS =
49 private static final Matcher<ExpressionTree> STRING_STARTS_WITH =
51 private static final Matcher<ExpressionTree> STRING_REGION_MATCHES =
53 private static final Matcher<ExpressionTree> OBJECTS_EQUALS =
91 implements Matcher<ExpressionTree>, Predicate<ExpressionTree> {
DLocaleRootChecker.java29 import com.google.errorprone.matchers.Matcher;
40 private static final Matcher<ExpressionTree> STRING_TO_UPPER_CASE =
42 private static final Matcher<ExpressionTree> STRING_TO_LOWER_CASE =
44 private static final Matcher<ExpressionTree> LOCALE_ROOT =
47 private static final Matcher<ExpressionTree> MISSING_LOCALE_ROOT = Matchers.anyOf(
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java58 import org.hamcrest.Matcher;
74 private static final Matcher<View> TOOLBAR = allOf(
79 private static final Matcher<View> ACTIONBAR = allOf(
83 private static final Matcher<View> TEXT_ENTRY = allOf(
87 private static final Matcher<View> TOOLBAR_OVERFLOW = allOf(
92 private static final Matcher<View> ACTIONBAR_OVERFLOW = allOf(
311 private static Matcher<Object> withToolbarTitle( in withToolbarTitle()
312 final Matcher<CharSequence> textMatcher) { in withToolbarTitle()
DMatchers.java29 import org.hamcrest.Matcher;
38 public static boolean present(Matcher<View> matcher) { in present()
42 public static boolean present(ViewInteraction vi, Matcher<View> matcher) { in present()
DSortBot.java49 import org.hamcrest.Matcher;
131 private static final Matcher<View> MATCHER = withId(R.id.table_header);
134 final Matcher<View> cellMatcher = allOf( in sortBy()
148 private @SortDirection int getDirection(Matcher<View> cellMatcher) { in getDirection()
/packages/providers/MediaProvider/errorprone/src/com/google/errorprone/matchers/
DFieldMatchers.java35 public static Matcher<ExpressionTree> anyFieldInClass(String className) { in anyFieldInClass()
49 public static Matcher<ExpressionTree> staticField(String className, String fieldName) {
63 public static Matcher<ExpressionTree> instanceField(String className, String fieldName) {
77 private abstract static class FieldReferenceMatcher implements Matcher<ExpressionTree> {
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/
DMatcherUtils.java21 import org.hamcrest.Matcher;
32 public static <T> Matcher<T> first(final Matcher<T> matcher) { in first()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/
DHealthConnectDatabaseSchemaParser.java23 import java.util.regex.Matcher;
95 Matcher tableMatcher = tablePattern.matcher(trimmedStatement); in getTableInfo()
133 Matcher defaultMatcher = defaultPattern.matcher(column); in getTableInfo()
160 Matcher checkMatcher = checkPattern.matcher(column); in getTableInfo()
172 Matcher primaryKeyMatcher = primaryKeyPattern.matcher(trimmedStatement); in getTableInfo()
182 Matcher foreignKeyMatcher = foreignKeyPattern.matcher(trimmedStatement); in getTableInfo()
219 Matcher indexMatcher = indexPattern.matcher(sqlStatement); in getIndexInfo()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DSystemPropertiesHelper.java26 import java.util.regex.Matcher;
76 public List<NameValuePair> getAll(NameValuePair.Matcher matcher) { in getAll()
130 public List<NameValuePair> getAll(NameValuePair.Matcher propertyMatcher) { in getAll()
137 Matcher lineMatcher = PROP_LINE_PATTERN.matcher(line); in getAll()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSmsUtils.java31 import java.util.regex.Matcher;
79 final Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec()
99 final Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress()
122 Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DProxyUtils.java25 import java.util.regex.Matcher;
77 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate()
78 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/
DSimpleCpimMessage.java30 import java.util.regex.Matcher;
86 Matcher namespaceMatcher = NAMESPACE_HEADER_PATTERN.matcher(line); in parse()
87 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse()
99 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixel.java19 import java.util.regex.Matcher;
116 Matcher m1 = fixed.matcher(pixel); in BipPixel()
128 Matcher m2 = modifiedRatio.matcher(pixel); in BipPixel()
139 Matcher m3 = fixedRatio.matcher(pixel); in BipPixel()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DCustomSwipeAction.java36 import org.hamcrest.Matcher;
75 private static ViewAction withCustomConstraints(ViewAction action, Matcher<View> constraints) { in withCustomConstraints()
78 public Matcher<View> getConstraints() { in withCustomConstraints()
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyThreadsCompat.java32 import java.util.regex.Matcher;
153 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress()
161 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec()

12345678