/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | PatternMatcherTest.java | 15 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 D | UriMatcherTest.java | 45 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 D | PatternsTest.java | 34 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 D | PatternScanner.java | 50 // 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 D | PatternsCompatTest.java | 40 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 D | ContextMenuUtils.java | 21 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 D | DragHandleUtils.java | 21 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 D | SuggestionsPopupwindowUtils.java | 21 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 D | FloatingToolbarEspressoUtils.java | 22 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 D | PhoneUtil.java | 49 Matcher match = PHONE_PATTERN.matcher(number);
|
/frameworks/base/core/java/android/util/ |
H A D | Patterns.java | 463 * @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 D | BaseWrapContentWithAspectRatioTest.java | 229 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 D | FragmentContentIdTest.java | 28 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 D | Wm.java | 223 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 D | ContactsInternal.java | 41 /** 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 D | ViewPagerWithTabStripTest.java | 22 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 D | ViewPagerWithTitleStripTest.java | 22 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 D | TestUtilsActions.java | 28 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 D | LayoutDirectionActions.java | 25 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
H A D | TestUtilsAssertions.java | 27 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
/frameworks/support/percent/tests/java/android/support/percent/ |
H A D | LayoutDirectionActions.java | 25 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
/frameworks/base/test-runner/src/android/test/ |
H A D | MoreAsserts.java | 253 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 D | WifiKey.java | 67 if (!SSID_PATTERN.matcher(ssid).matches()) { 70 if (!BSSID_PATTERN.matcher(bssid).matches()) {
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | Relation.java | 71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) {
|
/frameworks/base/media/java/android/media/ |
H A D | TtmlRenderer.java | 129 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...] |