Searched refs:matcher (Results 1 - 25 of 164) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/os/
H A DPatternMatcherTest.java15 PatternMatcher matcher = new PatternMatcher(".", PatternMatcher.PATTERN_ADVANCED_GLOB);
16 assertMatches("a", matcher);
17 assertMatches("b", matcher);
18 assertNotMatches("", matcher);
23 PatternMatcher matcher = new PatternMatcher("[a]", PatternMatcher.PATTERN_ADVANCED_GLOB);
24 assertMatches("a", matcher);
25 assertNotMatches("b", matcher);
27 matcher = new PatternMatcher("[.*+{}\\]\\\\[]", PatternMatcher.PATTERN_ADVANCED_GLOB);
28 assertMatches(".", matcher);
29 assertMatches("*", matcher);
215 assertMatches(String string, PatternMatcher matcher) argument
220 assertNotMatches(String string, PatternMatcher matcher) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DUriMatcherTest.java45 UriMatcher matcher = new UriMatcher(ROOT);
46 matcher.addURI("people", null, PEOPLE);
47 matcher.addURI("people", "#", PEOPLE_ID);
48 matcher.addURI("people", "#/phones", PEOPLE_PHONES);
49 matcher.addURI("people", "#/phones/blah", PEOPLE_PHONES_ID);
50 matcher.addURI("people", "#/phones/#", PEOPLE_PHONES_ID);
51 matcher.addURI("people", "#/addresses", PEOPLE_ADDRESSES);
52 matcher.addURI("people", "#/addresses/#", PEOPLE_ADDRESSES_ID);
53 matcher.addURI("people", "#/contact-methods", PEOPLE_CONTACTMETH);
54 matcher
85 checkAll(UriMatcher matcher) argument
109 check(String uri, int expected, UriMatcher matcher) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java34 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches();
38 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches();
42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches();
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches();
49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
55 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
64 assertTrue("Should match 'com'", pattern.matcher("com").matches());
70 assertTrue("Should match 'me'", pattern.matcher("me").matches());
76 assertTrue("Should match Punycode TLD", pattern.matcher("x
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java50 // Create the matcher
51 Matcher matcher = pattern.matcher(mInput);
52 matcher.region(mOffset, mInput.length());
56 if (matcher.lookingAt()) {
57 updateLineCount(mOffset, matcher.end());
58 mOffset = matcher.end();
59 result = mInput.substring(matcher.start(), matcher.end());
84 // Create the matcher
[all...]
/frameworks/support/compat/tests/java/android/support/v4/util/
H A DPatternsCompatTest.java40 assertTrue("Should match 'com'", pattern.matcher("com").matches());
46 assertTrue("Should match 'me'", pattern.matcher("me").matches());
52 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
58 assertTrue("Should match IRI TLD", pattern.matcher("\uD55C\uAD6D").matches());
64 assertFalse("Should not match 'mem'", pattern.matcher("mem").matches());
70 assertFalse("Should not match invalid Punycode TLD", pattern.matcher("xn").matches());
79 PatternsCompat.WEB_URL.matcher(url).matches());
86 PatternsCompat.WEB_URL.matcher(url).matches());
93 PatternsCompat.WEB_URL.matcher(url).matches());
100 PatternsCompat.WEB_URL.matcher(ur
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DContextMenuUtils.java21 import static android.support.test.espresso.matcher.RootMatchers.withDecorView;
22 import static android.support.test.espresso.matcher.ViewMatchers.hasDescendant;
23 import static android.support.test.espresso.matcher.ViewMatchers.hasFocus;
24 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
25 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
26 import static android.support.test.espresso.matcher.ViewMatchers.isEnabled;
27 import static android.support.test.espresso.matcher.ViewMatchers.withText;
36 import android.support.test.espresso.matcher.ViewMatchers;
H A DDragHandleUtils.java21 import static android.support.test.espresso.matcher.RootMatchers.withDecorView;
22 import static android.support.test.espresso.matcher.ViewMatchers.hasDescendant;
23 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
24 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
25 import static android.support.test.espresso.matcher.ViewMatchers.withId;
H A DSuggestionsPopupwindowUtils.java21 import static android.support.test.espresso.matcher.RootMatchers.withDecorView;
22 import static android.support.test.espresso.matcher.ViewMatchers.hasDescendant;
23 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
24 import static android.support.test.espresso.matcher.ViewMatchers.withId;
25 import static android.support.test.espresso.matcher.ViewMatchers.withText;
48 private static ViewInteraction onSuggestionsPopupItem(Matcher<View> matcher) { argument
49 return onView(matcher).inRoot(withDecorView(hasDescendant(withId(id))));
H A DFloatingToolbarEspressoUtils.java22 import static android.support.test.espresso.matcher.RootMatchers.withDecorView;
23 import static android.support.test.espresso.matcher.ViewMatchers.hasDescendant;
24 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
25 import static android.support.test.espresso.matcher.ViewMatchers.isRoot;
26 import static android.support.test.espresso.matcher.ViewMatchers.withTagValue;
27 import static android.support.test.espresso.matcher.ViewMatchers.withId;
28 import static android.support.test.espresso.matcher.ViewMatchers.withText;
57 * Creates a {@link ViewInteraction} for the floating bar menu item with the given matcher.
59 * @param matcher The matcher fo
61 onFloatingToolBarItem(Matcher<View> matcher) argument
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DPhoneUtil.java49 Matcher match = PHONE_PATTERN.matcher(number);
/frameworks/base/core/java/android/util/
H A DPatterns.java463 * @param matcher The Matcher object from which grouped text will
469 public static final String concatGroups(Matcher matcher) { argument
471 final int numGroups = matcher.groupCount();
474 String s = matcher.group(i);
488 * @param matcher The Matcher object from which digits and plus will
494 public static final String digitsAndPlusOnly(Matcher matcher) { argument
496 String matchingRegion = matcher.group();
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentWithAspectRatioTest.java229 MeasureSpecMatcher matcher = new MeasureSpecMatcher(size, mode);
230 matcher.checkSize = true;
231 matcher.checkMode = true;
232 return matcher;
236 MeasureSpecMatcher matcher = new MeasureSpecMatcher(size, 0);
237 matcher.checkSize = true;
238 matcher.checkMode = false;
239 return matcher;
243 MeasureSpecMatcher matcher = new MeasureSpecMatcher(0, mode);
244 matcher
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DFragmentContentIdTest.java28 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
29 import static android.support.test.espresso.matcher.ViewMatchers.withId;
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java223 Matcher matcher = FLATTENED_PATTERN.matcher(overscanStr);
224 if (!matcher.matches()) {
228 rect.left = Integer.parseInt(matcher.group(1));
229 rect.top = Integer.parseInt(matcher.group(2));
230 rect.right = Integer.parseInt(matcher.group(3));
231 rect.bottom = Integer.parseInt(matcher.group(4));
/frameworks/base/core/java/android/provider/
H A DContactsInternal.java41 /** URI matcher used to parse contact URIs. */
49 final UriMatcher matcher = sContactsUriMatcher;
50 matcher.addURI(ContactsContract.AUTHORITY, "contacts/lookup/*", CONTACTS_URI_LOOKUP);
51 matcher.addURI(ContactsContract.AUTHORITY, "contacts/lookup/*/#", CONTACTS_URI_LOOKUP_ID);
/frameworks/support/core-ui/tests/java/android/support/v4/view/
H A DViewPagerWithTabStripTest.java22 import static android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA;
23 import static android.support.test.espresso.matcher.ViewMatchers.withId;
24 import static android.support.test.espresso.matcher.ViewMatchers.withText;
H A DViewPagerWithTitleStripTest.java22 import static android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA;
23 import static android.support.test.espresso.matcher.ViewMatchers.withId;
24 import static android.support.test.espresso.matcher.ViewMatchers.withText;
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtilsActions.java28 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
29 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
30 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast;
/frameworks/support/compat/tests/java/android/support/v4/testutils/
H A DLayoutDirectionActions.java25 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
H A DTestUtilsAssertions.java27 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
/frameworks/support/percent/tests/java/android/support/percent/
H A DLayoutDirectionActions.java25 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java253 Matcher matcher = getMatcher(expectedRegex, actual);
254 if (!matcher.matches()) {
257 return matcher;
281 Matcher matcher = getMatcher(expectedRegex, actual);
282 if (!matcher.find()) {
285 return matcher;
305 Matcher matcher = getMatcher(expectedRegex, actual);
306 if (matcher.matches()) {
328 Matcher matcher = getMatcher(expectedRegex, actual);
329 if (matcher
[all...]
/frameworks/base/core/java/android/net/
H A DWifiKey.java67 if (!SSID_PATTERN.matcher(ssid).matches()) {
70 if (!BSSID_PATTERN.matcher(bssid).matches()) {
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DRelation.java71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) {
/frameworks/base/media/java/android/media/
H A DTtmlRenderer.java129 Matcher matcher = CLOCK_TIME.matcher(time);
130 if (matcher.matches()) {
131 String hours = matcher.group(1);
133 String minutes = matcher.group(2);
135 String seconds = matcher.group(3);
137 String fraction = matcher.group(4);
139 String frames = matcher.group(5);
141 String subframes = matcher.group(6);
147 matcher
[all...]

Completed in 685 milliseconds

1234567