/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriMatcherTest.java | 45 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/ |
D | PatternsTest.java | 31 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/ |
D | PatternScanner.java | 51 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/ |
D | Patterns.java | 187 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()
|
D | EventLog.java | 233 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/ |
D | Wm.java | 180 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/ |
D | MoreAsserts.java | 224 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/ |
D | OverlayDisplayAdapter.java | 136 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/ |
D | Summarizer.java | 380 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/ |
D | LoadTestsAutoTest.java | 73 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()
|
D | FsUtils.java | 165 line1 = trailingSpace.matcher(line1).replaceAll(""); in diffIgnoreSpaces() 170 line2 = trailingSpace.matcher(line2).replaceAll(""); in diffIgnoreSpaces()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Rect.java | 155 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/ |
D | WifiP2pDevice.java | 185 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/ |
D | HttpDateTime.java | 93 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/ |
D | UiSelector.java | 683 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/ |
D | TelephonyManager.java | 492 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/ |
D | SQLiteDatabaseConfiguration.java | 163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY"); in stripPathForLogs()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 203 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/ |
D | Rfc822Validator.java | 70 matcher(tokens[0].getAddress()).matches(); in isValid()
|
/frameworks/base/core/java/android/net/ |
D | Proxy.java | 250 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate() 251 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
|
D | WebAddress.java | 76 Matcher m = sAddressPattern.matcher(address); in WebAddress()
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 830 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/ |
D | Linkify.java | 369 Matcher m = p.matcher(s); in addLinks() 431 Matcher m = pattern.matcher(s); in gatherLinks()
|
/frameworks/opt/telephony/src/java/android/provider/ |
D | Telephony.java | 1379 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/ |
D | BugreportReceiver.java | 154 if (Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) { in findSendToAccount()
|