Home
last modified time | relevance | path

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

12

/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()
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/
DRegexTest.java36 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/
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.java231 if (comment.matcher(line).matches()) continue; in readTagsFile()
233 Matcher m = tag.matcher(line); in readTagsFile()
/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/graphics/java/android/graphics/
DRect.java143 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/
DHttpDateTime.java93 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/
DFsUtils.java149 line1 = trailingSpace.matcher(line1).replaceAll(""); in diffIgnoreSpaces()
154 line2 = trailingSpace.matcher(line2).replaceAll(""); in diffIgnoreSpaces()
/frameworks/base/core/java/android/net/
DWebAddress.java78 Matcher m = sAddressPattern.matcher(address); in WebAddress()
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java68 matcher(tokens[0].getAddress()).matches(); in isValid()
/frameworks/base/core/java/android/text/util/
DLinkify.java365 Matcher m = p.matcher(s); in addLinks()
427 Matcher m = pattern.matcher(s); in gatherLinks()
/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/os/
DFileUtils.java165 return SAFE_FILENAME_PATTERN.matcher(file.getPath()).matches(); in isFilenameSafe()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmDataConnection.java234 return Patterns.IP_ADDRESS.matcher(apn.mmsProxy).matches(); in isIpAddress()
/frameworks/base/core/java/android/provider/
DTelephony.java1338 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/
DDomainNameValidator.java78 rval = QUICK_IP_PATTERN.matcher(domain).matches(); in isIpAddress()
/frameworks/base/wifi/java/android/net/wifi/
DWifiMonitor.java386 Matcher match = mConnectedEventPattern.matcher(data); in handleNetworkStateChange()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaMmiCode.java105 m = sPatternSuppService.matcher(dialString); in newFromDialString()
/frameworks/base/core/java/android/pim/
DRecurrenceSet.java414 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/
DURLUtil.java399 Matcher m = CONTENT_DISPOSITION_PATTERN.matcher(contentDisposition); in parseContentDisposition()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java187 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) { in buildQueryString()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java776 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/
DTypedProperties.java183 if (!propertyNamePattern.matcher(propertyName).matches()) { in parse()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java384 Matcher m = sFloatPattern.matcher(s); in stringToFloat()
/frameworks/base/core/tests/hosttests/src/android/content/pm/
DPackageManagerHostTestUtils.java568 Matcher m = FAILURE_PATTERN.matcher(line); in processNewLines()

12