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

12

/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.java31 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 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/base/core/java/android/util/
H A DPatterns.java181 * @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 DEventLog.java233 if (comment.matcher(line).matches()) continue;
235 Matcher m = tag.matcher(line);
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java180 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 DMoreAsserts.java224 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 DOverlayDisplayAdapter.java136 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 DLoadTestsAutoTest.java73 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 DFsUtils.java165 line1 = trailingSpace.matcher(line1).replaceAll("");
170 line2 = trailingSpace.matcher(line2).replaceAll("");
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DSummarizer.java380 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 DSQLiteDatabaseConfiguration.java163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY");
/frameworks/base/graphics/java/android/graphics/
H A DRect.java155 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 DHttpDateTime.java93 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 DWifiP2pDevice.java185 match = twoTokenPattern.matcher(string);
192 match = threeTokenPattern.matcher(string);
199 match = detailedDevicePattern.matcher(string);
/frameworks/base/core/java/android/net/
H A DWebAddress.java76 Matcher m = sAddressPattern.matcher(address);
H A DProxy.java250 Matcher match = HOSTNAME_PATTERN.matcher(hostname);
251 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList);
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java492 Matcher matcher = sProductTypePattern.matcher(sKernelCmdLine);
493 if (matcher.find()) {
494 productType = matcher.group(1);
/frameworks/ex/common/java/com/android/common/
H A DRfc822Validator.java70 matcher(tokens[0].getAddress()).matches();
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiSelector.java677 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 DSmsUsageMonitor.java119 /** 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 DAbstractMessageParser.java830 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 DTelephony.java1379 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 DLinkify.java189 * @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 DFileUtils.java140 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches();

Completed in 802 milliseconds

12