/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 | 31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); 35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); 39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); 43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); 46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); 49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); 52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); 60 t = Patterns.WEB_URL.matcher("http://www.google.com").matches(); 64 t = Patterns.WEB_URL.matcher("http://www.google.me").matches(); 66 t = Patterns.WEB_URL.matcher("googl [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/base/core/java/android/util/ |
H A D | Patterns.java | 181 * @param matcher The Matcher object from which grouped text will 187 public static final String concatGroups(Matcher matcher) { argument 189 final int numGroups = matcher.groupCount(); 192 String s = matcher.group(i); 208 * @param matcher The Matcher object from which digits and plus will 214 public static final String digitsAndPlusOnly(Matcher matcher) { argument 216 String matchingRegion = matcher.group();
|
H A D | EventLog.java | 233 if (comment.matcher(line).matches()) continue; 235 Matcher m = tag.matcher(line);
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
H A D | Wm.java | 180 Matcher matcher = FLATTENED_PATTERN.matcher(overscanStr); 181 if (!matcher.matches()) { 185 rect.left = Integer.parseInt(matcher.group(1)); 186 rect.top = Integer.parseInt(matcher.group(2)); 187 rect.right = Integer.parseInt(matcher.group(3)); 188 rect.bottom = Integer.parseInt(matcher.group(4));
|
/frameworks/base/test-runner/src/android/test/ |
H A D | MoreAsserts.java | 224 Matcher matcher = getMatcher(expectedRegex, actual); 225 if (!matcher.matches()) { 228 return matcher; 252 Matcher matcher = getMatcher(expectedRegex, actual); 253 if (!matcher.find()) { 256 return matcher; 276 Matcher matcher = getMatcher(expectedRegex, actual); 277 if (matcher.matches()) { 299 Matcher matcher = getMatcher(expectedRegex, actual); 300 if (matcher [all...] |
/frameworks/base/services/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 136 Matcher matcher = SETTING_PATTERN.matcher(part); 137 if (matcher.matches()) { 143 int width = Integer.parseInt(matcher.group(1), 10); 144 int height = Integer.parseInt(matcher.group(2), 10); 145 int densityDpi = Integer.parseInt(matcher.group(3), 10);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | LoadTestsAutoTest.java | 73 Matcher matcher = forwardPattern.matcher(forwardInfo); 74 if (!matcher.matches()) { 77 String host = matcher.group(1); 78 int port = Integer.parseInt(matcher.group(2)); 82 LOCAL_PORT, matcher.group(3), suite, iteration);
|
H A D | FsUtils.java | 165 line1 = trailingSpace.matcher(line1).replaceAll(""); 170 line2 = trailingSpace.matcher(line2).replaceAll("");
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
H A D | Summarizer.java | 380 Matcher matcher = Pattern.compile("AppleWebKit/([0-9]+?\\.[0-9])").matcher(userAgent); 381 if (matcher.find()) { 382 return matcher.group(1); 396 Matcher matcher = Pattern.compile("^version=([0-9]+)", Pattern.MULTILINE).matcher( 398 if (matcher.find()) { 399 return matcher.group(1);
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabaseConfiguration.java | 163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY");
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Rect.java | 155 Matcher matcher = FLATTENED_PATTERN.matcher(str); 156 if (!matcher.matches()) { 159 return new Rect(Integer.parseInt(matcher.group(1)), 160 Integer.parseInt(matcher.group(2)), 161 Integer.parseInt(matcher.group(3)), 162 Integer.parseInt(matcher.group(4)));
|
/frameworks/base/core/java/com/android/internal/http/ |
H A D | HttpDateTime.java | 93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString); 100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString);
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDevice.java | 185 match = twoTokenPattern.matcher(string); 192 match = threeTokenPattern.matcher(string); 199 match = detailedDevicePattern.matcher(string);
|
/frameworks/base/core/java/android/net/ |
H A D | WebAddress.java | 76 Matcher m = sAddressPattern.matcher(address);
|
H A D | Proxy.java | 250 Matcher match = HOSTNAME_PATTERN.matcher(hostname); 251 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList);
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | TelephonyManager.java | 492 Matcher matcher = sProductTypePattern.matcher(sKernelCmdLine); 493 if (matcher.find()) { 494 productType = matcher.group(1);
|
/frameworks/ex/common/java/com/android/common/ |
H A D | Rfc822Validator.java | 70 matcher(tokens[0].getAddress()).matches();
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiSelector.java | 677 if (s == null || !getPattern(criterion).matcher(s).matches()) { 718 if (s == null || !getPattern(criterion).matcher(s).matches()) { 744 if (s == null || !getPattern(criterion).matcher(s).matches()) { 773 if (s == null || !getPattern(criterion).matcher(s).matches()) { 795 if (s == null || !getPattern(criterion).matcher(s).matches()) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsUsageMonitor.java | 119 /** Country code for the cached short code pattern matcher. */ 122 /** Cached short code pattern matcher for {@link #mCurrentCountry}. */ 183 * SMS short code regex pattern matcher for a specific country. 203 if (mFreeShortCodePattern != null && mFreeShortCodePattern.matcher(phoneNumber) 207 if (mStandardShortCodePattern != null && mStandardShortCodePattern.matcher(phoneNumber) 211 if (mPremiumShortCodePattern != null && mPremiumShortCodePattern.matcher(phoneNumber) 215 if (mShortCodePattern != null && mShortCodePattern.matcher(phoneNumber).matches()) { 274 * Return a pattern matcher object for the specified country. 383 * This makes it difficult for malware to fool the user or the short code pattern matcher
|
/frameworks/base/core/java/com/google/android/util/ |
H A D | AbstractMessageParser.java | 830 Matcher m = URL_PATTERN.matcher(url); 889 Matcher m = URL_PATTERN.matcher(url); 980 Matcher m = URL_PATTERN.matcher(url); 1067 Matcher m = GROUPING_PATTERN.matcher(url); 1072 m = URL_PATTERN.matcher(url);
|
/frameworks/opt/telephony/src/java/android/provider/ |
H A D | Telephony.java | 1379 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); 1399 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); 1414 Matcher match = Patterns.PHONE.matcher(number);
|
/frameworks/base/core/java/android/text/util/ |
H A D | Linkify.java | 189 * @param match The regex matcher state that found this URL text 369 Matcher m = p.matcher(s); 431 Matcher m = pattern.matcher(s);
|
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 140 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches();
|