/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() 42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern() 45 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); in testTldPattern() 48 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); in testTldPattern() 56 t = Patterns.WEB_URL.matcher("http://www.google.com").matches(); in testUrlPattern() 60 t = Patterns.WEB_URL.matcher("http://www.google.me").matches(); in testUrlPattern() 62 t = Patterns.WEB_URL.matcher("google.me").matches(); in testUrlPattern() 66 t = Patterns.WEB_URL.matcher("http://xn--fsqu00a.xn--0zwm56d").matches(); in testUrlPattern() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | RegexTest.java | 36 Matcher m = p.matcher("bcd"); in testMatches() 41 m = p.matcher("abcdefg"); in testMatches() 45 m = p.matcher("bcdefg"); in testMatches() 49 m = p.matcher("abcd"); in testMatches() 54 m = p.matcher("abc"); in testMatches() 60 m = p.matcher("abc"); in testMatches() 98 Matcher m = p.matcher("1 (919) 555-1212"); in testGroupCount() 107 Matcher m = p.matcher("abcdefg"); in testGroups() 123 Matcher m = p.matcher("abc"); in testFind() 141 Matcher m = p.matcher("fooaabfooaabfooabfoob"); in testReplaceAll() [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 | 231 if (comment.matcher(line).matches()) continue; in readTagsFile() 233 Matcher m = tag.matcher(line); in readTagsFile()
|
/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/graphics/java/android/graphics/ |
D | Rect.java | 143 Matcher matcher = FLATTENED_PATTERN.matcher(str); in unflattenFromString() local 144 if (!matcher.matches()) { in unflattenFromString() 147 return new Rect(Integer.parseInt(matcher.group(1)), in unflattenFromString() 148 Integer.parseInt(matcher.group(2)), in unflattenFromString() 149 Integer.parseInt(matcher.group(3)), in unflattenFromString() 150 Integer.parseInt(matcher.group(4))); in unflattenFromString()
|
/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/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | FsUtils.java | 149 line1 = trailingSpace.matcher(line1).replaceAll(""); in diffIgnoreSpaces() 154 line2 = trailingSpace.matcher(line2).replaceAll(""); in diffIgnoreSpaces()
|
/frameworks/base/core/java/android/net/ |
D | WebAddress.java | 78 Matcher m = sAddressPattern.matcher(address); in WebAddress()
|
/frameworks/ex/common/java/com/android/common/ |
D | Rfc822Validator.java | 68 matcher(tokens[0].getAddress()).matches(); in isValid()
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 365 Matcher m = p.matcher(s); in addLinks() 427 Matcher m = pattern.matcher(s); in gatherLinks()
|
/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/os/ |
D | FileUtils.java | 165 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches(); in isFilenameSafe()
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmDataConnection.java | 234 return Patterns.IP_ADDRESS.matcher(apn.mmsProxy).matches(); in isIpAddress()
|
/frameworks/base/core/java/android/provider/ |
D | Telephony.java | 1338 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec() 1358 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress() 1373 Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | DomainNameValidator.java | 78 rval = QUICK_IP_PATTERN.matcher(domain).matches(); in isIpAddress()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiMonitor.java | 386 Matcher match = mConnectedEventPattern.matcher(data); in handleNetworkStateChange()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | CdmaMmiCode.java | 105 m = sPatternSuppService.matcher(dialString); in newFromDialString()
|
/frameworks/base/core/java/android/pim/ |
D | RecurrenceSet.java | 414 return FOLD_RE.matcher(unfoldedIcalContent).replaceAll("$0\r\n "); in fold() 418 return IGNORABLE_ICAL_WHITESPACE_RE.matcher( in unfold()
|
/frameworks/base/core/java/android/webkit/ |
D | URLUtil.java | 399 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteQueryBuilder.java | 187 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) { in buildQueryString()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 776 Matcher m = p.matcher(retString); in calledPartyBCDToString() 802 m = p.matcher(retString); in calledPartyBCDToString() 929 Matcher match = GLOBAL_PHONE_NUMBER_PATTERN.matcher(phoneNumber); in isGlobalPhoneNumber()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TypedProperties.java | 183 if (!propertyNamePattern.matcher(propertyName).matches()) { in parse()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 384 Matcher m = sFloatPattern.matcher(s); in stringToFloat()
|
/frameworks/base/core/tests/hosttests/src/android/content/pm/ |
D | PackageManagerHostTestUtils.java | 568 Matcher m = FAILURE_PATTERN.matcher(line); in processNewLines()
|