Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DPatternMatcherTest.java34 assertMatches("a", matcher); in testAdvancedPatternMatchesAnyToken()
35 assertMatches("b", matcher); in testAdvancedPatternMatchesAnyToken()
42 assertMatches("a", matcher); in testAdvancedPatternMatchesSetToken()
46 assertMatches(".", matcher); in testAdvancedPatternMatchesSetToken()
47 assertMatches("*", matcher); in testAdvancedPatternMatchesSetToken()
48 assertMatches("+", matcher); in testAdvancedPatternMatchesSetToken()
49 assertMatches("{", matcher); in testAdvancedPatternMatchesSetToken()
50 assertMatches("}", matcher); in testAdvancedPatternMatchesSetToken()
51 assertMatches("]", matcher); in testAdvancedPatternMatchesSetToken()
53 assertMatches("[", matcher); in testAdvancedPatternMatchesSetToken()
[all …]
H A DBytesMatcherTest.java77 assertTrue(matcher.testMacAddress( in testMacAddress()
79 assertFalse(matcher.testMacAddress( in testMacAddress()
86 assertTrue(matcher.testBluetoothUuid( in testBluetoothUuid()
88 assertFalse(matcher.testBluetoothUuid( in testBluetoothUuid()
99 assertTrue(matcher.testBluetoothUuid( in testBluetoothUuid_Mixed()
101 assertFalse(matcher.testBluetoothUuid( in testBluetoothUuid_Mixed()
103 assertTrue(matcher.testBluetoothUuid( in testBluetoothUuid_Mixed()
105 assertFalse(matcher.testBluetoothUuid( in testBluetoothUuid_Mixed()
112 matcher = BytesMatcher.decode(BytesMatcher.encode(matcher)); in testSerialize_Empty()
134 matcher = BytesMatcher.decode(BytesMatcher.encode(matcher)); in testSerialize_Exact()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/
H A DUriMatcherTest.java49 matcher.addURI("people", null, PEOPLE); in testContentUris()
50 matcher.addURI("people", "#", PEOPLE_ID); in testContentUris()
58 matcher.addURI("calls", null, CALLS); in testContentUris()
59 matcher.addURI("calls", "#", CALLS_ID); in testContentUris()
64 checkAll(matcher); in testContentUris()
70 matcher.addURI("people", null, PEOPLE); in testContentUrisWithLeadingSlash()
79 matcher.addURI("calls", null, CALLS); in testContentUrisWithLeadingSlash()
85 checkAll(matcher); in testContentUrisWithLeadingSlash()
91 matcher.addURI("people", "/", PEOPLE); in testContentUrisWithLeadingSlashAndOnlySlash()
100 matcher.addURI("calls", "/", CALLS); in testContentUrisWithLeadingSlashAndOnlySlash()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java103 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeAndHostname()
110 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
117 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
124 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithProtocol()
131 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol()
138 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesArabicPunycodeUrlWithProtocol()
145 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesArabicPunycodeUrlWithoutProtocol()
152 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlWithUnicodeDomainNameWithProtocol()
159 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlWithUnicodeDomainNameWithoutProtocol()
166 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesUrlWithUnicodeTld()
[all …]
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java51 Matcher matcher = pattern.matcher(mInput); in tryEat() local
52 matcher.region(mOffset, mInput.length()); in tryEat()
56 if (matcher.lookingAt()) { in tryEat()
58 mOffset = matcher.end(); in tryEat()
59 result = mInput.substring(matcher.start(), matcher.end()); in tryEat()
85 Matcher matcher = pattern.matcher(mInput); in peek() local
86 matcher.region(mOffset, mInput.length()); in peek()
89 return matcher.lookingAt(); in peek()
93 Matcher matcher = pattern.matcher(mInput); in skip() local
95 if (matcher.lookingAt()) { in skip()
[all …]
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanRecordTest.java50 final Predicate<byte[]> matcher = (v) -> { in testMatchesAnyField_Eddystone_Parser() local
55 .matchesAnyField(matcher); in testMatchesAnyField_Eddystone_Parser()
68 assertMatchesAnyField(RECORD_URL, matcher); in testMatchesAnyField_Eddystone()
69 assertMatchesAnyField(RECORD_UUID, matcher); in testMatchesAnyField_Eddystone()
70 assertMatchesAnyField(RECORD_TLM, matcher); in testMatchesAnyField_Eddystone()
77 final Predicate<byte[]> matcher = (v) -> { in testMatchesAnyField_iBeacon_Parser() local
82 .matchesAnyField(matcher); in testMatchesAnyField_iBeacon_Parser()
94 assertNotMatchesAnyField(RECORD_URL, matcher); in testMatchesAnyField_iBeacon()
96 assertNotMatchesAnyField(RECORD_TLM, matcher); in testMatchesAnyField_iBeacon()
141 .matchesAnyField(matcher)); in assertMatchesAnyField()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DBluetoothNameUtils.java46 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getSetupType() local
47 if (!matcher.matches()) { in getSetupType()
51 String typeStr = matcher.group(1); in getSetupType()
70 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); in getColorConfiguration() local
71 if (!matcher.matches()) { in getColorConfiguration()
75 final String cs = matcher.group(3); in getColorConfiguration()
79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration()
98 Matcher matcher = NAME_PATTERN.matcher(name); in isValidName() local
99 return matcher.matches(); in isValidName()
/aosp12/packages/modules/StatsD/statsd/src/matchers/
H A Dmatcher_util.cpp118 if (pos == matcher.field()) { in matchesSimple()
123 } else if (pos > matcher.field()) { in matchesSimple()
138 if (matcher.has_position()) { in matchesSimple()
144 switch (matcher.position()) { in matchesSimple()
198 switch (matcher.value_matcher_case()) { in matchesSimple()
238 const auto& str_list = matcher.neq_any_string(); in matchesSimple()
254 const auto& str_list = matcher.eq_any_string(); in matchesSimple()
267 (matcher.eq_int() == values[i].mValue.int_value)) { in matchesSimple()
281 (values[i].mValue.int_value < matcher.lt_int())) { in matchesSimple()
295 (values[i].mValue.int_value > matcher.gt_int())) { in matchesSimple()
[all …]
H A DCombinationAtomMatchingTracker.cpp50 AtomMatcher_Combination matcher = allAtomMatchers[mIndex].combination(); in init() local
53 if (!matcher.has_operation()) { in init()
57 mLogicalOperation = matcher.operation(); in init()
59 if (mLogicalOperation == LogicalOperation::NOT && matcher.matcher_size() != 1) { in init()
63 for (const auto& child : matcher.matcher()) { in init()
97 const AtomMatcher& matcher, const int index, in onConfigUpdated() argument
101 AtomMatcher_Combination combinationMatcher = matcher.combination(); in onConfigUpdated()
102 for (const int64_t child : combinationMatcher.matcher()) { in onConfigUpdated()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
H A DGestureLogParser.java53 Matcher matcher = p.matcher(line); in getMotionEventFromLogLine() local
54 if (matcher.find()) { in getMotionEventFromLogLine()
75 final Matcher matcher = p.matcher(eventText); in findInt() local
76 matcher.find(); in findInt()
77 return Integer.decode(matcher.group(1)); in findInt()
82 final Matcher matcher = p.matcher(eventText); in findFloat() local
83 matcher.find(); in findFloat()
84 return Float.parseFloat(matcher.group(1)); in findFloat()
89 final Matcher matcher = p.matcher(eventText); in findString() local
90 matcher.find(); in findString()
[all …]
/aosp12/frameworks/base/core/java/android/webkit/
H A DFindAddress.java301 Matcher matcher = sHouseNumberRe.matcher(content).region(offset, content.length()); in matchHouseNumber()
302 if (matcher.lookingAt()) { in matchHouseNumber()
340 return sZipCodeRe.matcher(zipCode).matches() in isValidZipCode()
373 Matcher matcher = sWordRe.matcher(content); in attemptMatch() local
375 for (; it < content.length(); lastWord = matcher.group(0), it = matcher.end()) { in attemptMatch()
376 if (!matcher.find(it)) { in attemptMatch()
380 if (matcher.end() - matcher.start() > kMaxAddressNameWordLength) { in attemptMatch()
382 return -matcher.end(); in attemptMatch()
386 while (it < matcher.start()) { in attemptMatch()
409 if (isValidLocationName(matcher.group(0))) { in attemptMatch()
[all …]
/aosp12/packages/modules/StatsD/statsd/src/
H A DFieldValue.cpp45 if (mTag != matcher.mMatcher.getTag()) { in matches()
48 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches()
52 if (matcher.hasAllPositionMatcher() && in matches()
53 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches()
67 pos[depth] = matcher.field(); in translateFieldMatcher()
70 if (matcher.has_position()) { in translateFieldMatcher()
75 switch (matcher.position()) { in translateFieldMatcher()
99 if (matcher.child_size() == 0) { in translateFieldMatcher()
111 int tag = matcher.field(); in translateFieldMatcher()
449 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY()
[all …]
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java102 matcher.clear(); in aggregateContact()
551 ContactMatcher matcher) { in pickBestMatchBasedOnExceptions() argument
671 ContactMatcher matcher) { in updateMatchScoresBasedOnDataMatches() argument
714 ContactMatcher matcher) { in updateMatchScoresBasedOnIdentityMatch() argument
761 ContactMatcher matcher) { in updateMatchScoresBasedOnNameMatches() argument
785 ContactMatcher matcher) { in updateMatchScoresBasedOnEmailMatches() argument
802 ContactMatcher matcher) { in updateMatchScoresBasedOnPhoneMatches() argument
837 ContactMatcher matcher) { in lookupApproximateNameMatches() argument
915 matcher.keepOut(contactId); in findMatchingContacts()
924 matcher); in findMatchingContacts()
[all …]
H A DContactAggregator2.java113 RawContactMatcher matcher = new RawContactMatcher(); in aggregateContact() local
122 matcher); in aggregateContact()
214 matcher.pickBestMatches()); in findRawContactMatchingCandidates()
502 RawContactMatcher matcher) { in updateMatchScoresBasedOnExceptions() argument
556 RawContactMatcher matcher) { in updateMatchScoresBasedOnIdentityMatch() argument
581 RawContactMatcher matcher) { in updateMatchScoresBasedOnNameMatches() argument
610 RawContactMatcher matcher) { in updateMatchScoresBasedOnEmailMatches() argument
667 RawContactMatcher matcher) { in updateMatchScoresBasedOnPhoneMatches() argument
707 RawContactMatcher matcher) { in lookupApproximateNameMatches() argument
837 matcher); in findMatchingContacts()
[all …]
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/
H A DViewActions.java27 public static ViewAction waitForView(Matcher<View> matcher, long waitTimeMillis) { in waitForView() argument
28 return new WaitForViewAction(matcher, waitTimeMillis); in waitForView()
31 public static ViewAction waitForView(Matcher<View> matcher) { in waitForView() argument
32 return new WaitForViewAction(matcher, 500); in waitForView()
35 public static ViewAction waitForNoMatchingView(Matcher<View> matcher, long waitTimeMillis) { in waitForNoMatchingView() argument
36 return new WaitForNoMatchingViewAction(matcher, waitTimeMillis); in waitForNoMatchingView()
39 public static ViewAction waitForNoMatchingView(Matcher<View> matcher) { in waitForNoMatchingView() argument
40 return new WaitForNoMatchingViewAction(matcher, 500); in waitForNoMatchingView()
/aosp12/system/bt/gd/cert/
H A Dbehavior.py55 def begin(self, matcher): argument
91 def wait_until_invoked(self, matcher, times, timeout): argument
105 def __init__(self, behavior, matcher, reply_stage_factory): argument
107 self._matcher = matcher
121 def init(self, behavior, matcher, persistence): argument
123 self._matcher = matcher
132 def __init__(self, matcher, persistence, fn): argument
133 self._matcher = matcher
151 def __init__(self, behavior, matcher, timeout): argument
153 self._matcher = matcher
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/
H A DDialerVvmConfigManager.java42 final CarrierIdentifierMatcher matcher; field in DialerVvmConfigManager.ConfigEntry
45 ConfigEntry(CarrierIdentifierMatcher matcher, PersistableBundle config) { in ConfigEntry() argument
46 this.matcher = matcher; in ConfigEntry()
57 if (!(matcher.gid1().isPresent() && other.matcher.gid1().isPresent())) { in compareTo()
58 if (matcher.gid1().isPresent()) { in compareTo()
60 } else if (other.matcher.gid1().isPresent()) { in compareTo()
66 comparisonChain = comparisonChain.compare(matcher.gid1().get(), other.matcher.gid1().get()); in compareTo()
69 return comparisonChain.compare(matcher.mccMnc(), other.matcher.mccMnc()).result(); in compareTo()
117 if (configEntry.matcher.matches(carrierIdentifier)) { in getConfig()
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
H A DQuery.java122 Matcher matcher = PATTERN_EPISODE.matcher(filePath); in parseEpisode() local
123 if (matcher.find()) { in parseEpisode()
124 MatchResult matchResult = matcher.toMatchResult(); in parseEpisode()
148 Matcher matcher = PATTERN_MOVIE.matcher(filePath); in parseMovie() local
149 if (matcher.find()) { in parseMovie()
150 MatchResult matchResult = matcher.toMatchResult(); in parseMovie()
163 return PATTERN_CLEANUP.matcher(string).replaceAll(" ").trim(); in cleanup()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DContextMenuUtils.java22 import static androidx.test.espresso.matcher.RootMatchers.withDecorView;
23 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
24 import static androidx.test.espresso.matcher.ViewMatchers.hasFocus;
25 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom;
26 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
27 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast;
28 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled;
29 import static androidx.test.espresso.matcher.ViewMatchers.withText;
40 import androidx.test.espresso.matcher.ViewMatchers;
H A DDragHandleUtils.java21 import static androidx.test.espresso.matcher.RootMatchers.isPlatformPopup;
22 import static androidx.test.espresso.matcher.RootMatchers.withDecorView;
23 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
24 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom;
25 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
26 import static androidx.test.espresso.matcher.ViewMatchers.withId;
H A DFloatingToolbarEspressoUtils.java22 import static androidx.test.espresso.matcher.RootMatchers.isPlatformPopup;
23 import static androidx.test.espresso.matcher.RootMatchers.withDecorView;
24 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
25 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
26 import static androidx.test.espresso.matcher.ViewMatchers.isRoot;
27 import static androidx.test.espresso.matcher.ViewMatchers.withId;
28 import static androidx.test.espresso.matcher.ViewMatchers.withTagValue;
29 import static androidx.test.espresso.matcher.ViewMatchers.withText;
75 public static ViewInteraction onFloatingToolBarItem(Matcher<View> matcher) { in onFloatingToolBarItem() argument
76 return onView(matcher) in onFloatingToolBarItem()
H A DSuggestionsPopupwindowUtils.java21 import static androidx.test.espresso.matcher.RootMatchers.withDecorView;
22 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
24 import static androidx.test.espresso.matcher.ViewMatchers.withId;
25 import static androidx.test.espresso.matcher.ViewMatchers.withText;
51 private static ViewInteraction onSuggestionsPopupItem(Matcher<View> matcher) { in onSuggestionsPopupItem() argument
53 return onView(matcher).inRoot(withDecorView(hasDescendant(withId(id)))); in onSuggestionsPopupItem()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/util/
H A DFileUtils.java1069 final Matcher matcher = PATTERN_USER_ID.matcher(data);
1070 if (matcher.find()) {
1079 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data);
1080 if (matcher.find()) {
1089 final Matcher matcher = PATTERN_VOLUME_NAME.matcher(data);
1090 if (matcher.find()) {
1104 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(data);
1105 if (matcher.find()) {
1140 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(path);
1306 final Matcher matcher = FileUtils.PATTERN_EXPIRES_FILE.matcher(displayName);
[all …]
/aosp12/frameworks/base/core/java/android/os/
H A DBytesMatcher.java243 public static @NonNull String encode(@NonNull BytesMatcher matcher) { in encode() argument
245 final int size = matcher.mRules.size(); in encode()
247 final Rule rule = matcher.mRules.get(i); in encode()
270 final BytesMatcher matcher = new BytesMatcher(); in decode() local
271 if (TextUtils.isEmpty(value)) return matcher; in decode()
295 matcher.addExactAcceptRule(ruleValue, ruleMask); in decode()
298 matcher.addExactRejectRule(ruleValue, ruleMask); in decode()
301 matcher.addPrefixAcceptRule(ruleValue, ruleMask); in decode()
304 matcher.addPrefixRejectRule(ruleValue, ruleMask); in decode()
313 return matcher; in decode()
/aosp12/system/timezone/distro/core/src/main/com/android/timezone/distro/
H A DDistroVersion.java69 if (!RULES_VERSION_PATTERN.matcher(rulesVersion).matches()) { in DistroVersion()
79 Matcher matcher = DISTRO_VERSION_PATTERN.matcher(distroVersion); in fromBytes() local
80 if (!matcher.matches()) { in fromBytes()
84 String formatMajorVersion = matcher.group(1); in fromBytes()
85 String formatMinorVersion = matcher.group(2); in fromBytes()
86 String rulesVersion = matcher.group(3); in fromBytes()
87 String revision = matcher.group(4); in fromBytes()

12345678910>>...19