Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/net/
DUriMatcherTest.java45 UriMatcher matcher = new UriMatcher(ROOT); in testContentUris() local
46 matcher.addURI("people", null, PEOPLE); in testContentUris()
47 matcher.addURI("people", "#", PEOPLE_ID); in testContentUris()
48 matcher.addURI("people", "#/phones", PEOPLE_PHONES); in testContentUris()
49 matcher.addURI("people", "#/phones/blah", PEOPLE_PHONES_ID); in testContentUris()
50 matcher.addURI("people", "#/phones/#", PEOPLE_PHONES_ID); in testContentUris()
51 matcher.addURI("people", "#/addresses", PEOPLE_ADDRESSES); in testContentUris()
52 matcher.addURI("people", "#/addresses/#", PEOPLE_ADDRESSES_ID); in testContentUris()
53 matcher.addURI("people", "#/contact-methods", PEOPLE_CONTACTMETH); in testContentUris()
54 matcher.addURI("people", "#/contact-methods/#", PEOPLE_CONTACTMETH_ID); in testContentUris()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); in testTldPattern()
35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); in testTldPattern()
39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); in testTldPattern()
43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); in testTldPattern()
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern()
49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); in testTldPattern()
52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); in testTldPattern()
60 t = Patterns.WEB_URL.matcher("http://www.google.com").matches(); in testUrlPattern()
64 t = Patterns.WEB_URL.matcher("http://www.google.me").matches(); in testUrlPattern()
66 t = Patterns.WEB_URL.matcher("google.me").matches(); in testUrlPattern()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DPatternScanner.java51 Matcher matcher = pattern.matcher(mInput); in tryEat() local
52 matcher.region(mOffset, mInput.length()); in tryEat()
56 if (matcher.lookingAt()) { in tryEat()
57 updateLineCount(mOffset, matcher.end()); 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
[all …]
/frameworks/base/core/java/android/util/
DPatterns.java187 public static final String concatGroups(Matcher matcher) { in concatGroups() argument
189 final int numGroups = matcher.groupCount(); in concatGroups()
192 String s = matcher.group(i); in concatGroups()
214 public static final String digitsAndPlusOnly(Matcher matcher) { in digitsAndPlusOnly() argument
216 String matchingRegion = matcher.group(); in digitsAndPlusOnly()
DEventLog.java233 if (comment.matcher(line).matches()) continue; in readTagsFile()
235 Matcher m = tag.matcher(line); in readTagsFile()
/frameworks/base/cmds/wm/src/com/android/commands/wm/
DWm.java180 Matcher matcher = FLATTENED_PATTERN.matcher(overscanStr); in runDisplayOverscan() local
181 if (!matcher.matches()) { in runDisplayOverscan()
185 rect.left = Integer.parseInt(matcher.group(1)); in runDisplayOverscan()
186 rect.top = Integer.parseInt(matcher.group(2)); in runDisplayOverscan()
187 rect.right = Integer.parseInt(matcher.group(3)); in runDisplayOverscan()
188 rect.bottom = Integer.parseInt(matcher.group(4)); in runDisplayOverscan()
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java224 Matcher matcher = getMatcher(expectedRegex, actual); in assertMatchesRegex() local
225 if (!matcher.matches()) { in assertMatchesRegex()
228 return matcher; in assertMatchesRegex()
252 Matcher matcher = getMatcher(expectedRegex, actual); in assertContainsRegex() local
253 if (!matcher.find()) { in assertContainsRegex()
256 return matcher; in assertContainsRegex()
276 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotMatchesRegex() local
277 if (matcher.matches()) { in assertNotMatchesRegex()
299 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotContainsRegex() local
300 if (matcher.find()) { in assertNotContainsRegex()
[all …]
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayAdapter.java136 Matcher matcher = SETTING_PATTERN.matcher(part); in updateOverlayDisplayDevicesLocked() local
137 if (matcher.matches()) { in updateOverlayDisplayDevicesLocked()
143 int width = Integer.parseInt(matcher.group(1), 10); in updateOverlayDisplayDevicesLocked()
144 int height = Integer.parseInt(matcher.group(2), 10); in updateOverlayDisplayDevicesLocked()
145 int densityDpi = Integer.parseInt(matcher.group(3), 10); in updateOverlayDisplayDevicesLocked()
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DSummarizer.java380 Matcher matcher = Pattern.compile("AppleWebKit/([0-9]+?\\.[0-9])").matcher(userAgent); in getWebKitVersionFromUserAgentString() local
381 if (matcher.find()) { in getWebKitVersionFromUserAgentString()
382 return matcher.group(1); in getWebKitVersionFromUserAgentString()
396 Matcher matcher = Pattern.compile("^version=([0-9]+)", Pattern.MULTILINE).matcher( in getWebKitRevision() local
398 if (matcher.find()) { in getWebKitRevision()
399 return matcher.group(1); in getWebKitRevision()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DLoadTestsAutoTest.java73 Matcher matcher = forwardPattern.matcher(forwardInfo); in setUpForwarding() local
74 if (!matcher.matches()) { in setUpForwarding()
77 String host = matcher.group(1); in setUpForwarding()
78 int port = Integer.parseInt(matcher.group(2)); in setUpForwarding()
82 LOCAL_PORT, matcher.group(3), suite, iteration); in setUpForwarding()
DFsUtils.java165 line1 = trailingSpace.matcher(line1).replaceAll(""); in diffIgnoreSpaces()
170 line2 = trailingSpace.matcher(line2).replaceAll(""); in diffIgnoreSpaces()
/frameworks/base/graphics/java/android/graphics/
DRect.java155 Matcher matcher = FLATTENED_PATTERN.matcher(str); in unflattenFromString() local
156 if (!matcher.matches()) { in unflattenFromString()
159 return new Rect(Integer.parseInt(matcher.group(1)), in unflattenFromString()
160 Integer.parseInt(matcher.group(2)), in unflattenFromString()
161 Integer.parseInt(matcher.group(3)), in unflattenFromString()
162 Integer.parseInt(matcher.group(4))); in unflattenFromString()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDevice.java185 match = twoTokenPattern.matcher(string); in WifiP2pDevice()
192 match = threeTokenPattern.matcher(string); in WifiP2pDevice()
199 match = detailedDevicePattern.matcher(string); in WifiP2pDevice()
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString); in parse()
100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString); in parse()
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java683 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
724 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
750 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
779 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
801 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java492 Matcher matcher = sProductTypePattern.matcher(sKernelCmdLine); in getLteOnCdmaModeStatic() local
493 if (matcher.find()) { in getLteOnCdmaModeStatic()
494 productType = matcher.group(1); in getLteOnCdmaModeStatic()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY"); in stripPathForLogs()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java203 if (mFreeShortCodePattern != null && mFreeShortCodePattern.matcher(phoneNumber) in getNumberCategory()
207 if (mStandardShortCodePattern != null && mStandardShortCodePattern.matcher(phoneNumber) in getNumberCategory()
211 if (mPremiumShortCodePattern != null && mPremiumShortCodePattern.matcher(phoneNumber) in getNumberCategory()
215 if (mShortCodePattern != null && mShortCodePattern.matcher(phoneNumber).matches()) { in getNumberCategory()
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java70 matcher(tokens[0].getAddress()).matches(); in isValid()
/frameworks/base/core/java/android/net/
DProxy.java250 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate()
251 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
DWebAddress.java76 Matcher m = sAddressPattern.matcher(address); in WebAddress()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java830 Matcher m = URL_PATTERN.matcher(url); in matchURL()
889 Matcher m = URL_PATTERN.matcher(url); in matchURL()
980 Matcher m = URL_PATTERN.matcher(url); in matchURL()
1067 Matcher m = GROUPING_PATTERN.matcher(url); in matchURL()
1072 m = URL_PATTERN.matcher(url); in matchURL()
/frameworks/base/core/java/android/text/util/
DLinkify.java369 Matcher m = p.matcher(s); in addLinks()
431 Matcher m = pattern.matcher(s); in gatherLinks()
/frameworks/opt/telephony/src/java/android/provider/
DTelephony.java1379 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec()
1399 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress()
1414 Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java154 if (Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) { in findSendToAccount()

12