/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 | 199 public static final String concatGroups(Matcher matcher) { in concatGroups() argument 201 final int numGroups = matcher.groupCount(); in concatGroups() 204 String s = matcher.group(i); in concatGroups() 224 public static final String digitsAndPlusOnly(Matcher matcher) { in digitsAndPlusOnly() argument 226 String matchingRegion = matcher.group(); in digitsAndPlusOnly()
|
D | EventLog.java | 255 if (comment.matcher(line).matches()) continue; in readTagsFile() 257 Matcher m = tag.matcher(line); in readTagsFile()
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
D | Wm.java | 220 Matcher matcher = FLATTENED_PATTERN.matcher(overscanStr); in runDisplayOverscan() local 221 if (!matcher.matches()) { in runDisplayOverscan() 225 rect.left = Integer.parseInt(matcher.group(1)); in runDisplayOverscan() 226 rect.top = Integer.parseInt(matcher.group(2)); in runDisplayOverscan() 227 rect.right = Integer.parseInt(matcher.group(3)); in runDisplayOverscan() 228 rect.bottom = Integer.parseInt(matcher.group(4)); in runDisplayOverscan()
|
/frameworks/base/test-runner/src/android/test/ |
D | MoreAsserts.java | 250 Matcher matcher = getMatcher(expectedRegex, actual); in assertMatchesRegex() local 251 if (!matcher.matches()) { in assertMatchesRegex() 254 return matcher; in assertMatchesRegex() 278 Matcher matcher = getMatcher(expectedRegex, actual); in assertContainsRegex() local 279 if (!matcher.find()) { in assertContainsRegex() 282 return matcher; in assertContainsRegex() 302 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotMatchesRegex() local 303 if (matcher.matches()) { in assertNotMatchesRegex() 325 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotContainsRegex() local 326 if (matcher.find()) { in assertNotContainsRegex() [all …]
|
/frameworks/base/media/java/android/media/ |
D | TtmlRenderer.java | 129 Matcher matcher = CLOCK_TIME.matcher(time); in parseTimeExpression() local 130 if (matcher.matches()) { in parseTimeExpression() 131 String hours = matcher.group(1); in parseTimeExpression() 133 String minutes = matcher.group(2); in parseTimeExpression() 135 String seconds = matcher.group(3); in parseTimeExpression() 137 String fraction = matcher.group(4); in parseTimeExpression() 139 String frames = matcher.group(5); in parseTimeExpression() 141 String subframes = matcher.group(6); in parseTimeExpression() 147 matcher = OFFSET_TIME.matcher(time); in parseTimeExpression() 148 if (matcher.matches()) { in parseTimeExpression() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Rect.java | 51 return FLATTENED_PATTERN.matcher(str); in getMatcher() 168 Matcher matcher = UnflattenHelper.getMatcher(str); in unflattenFromString() local 169 if (!matcher.matches()) { in unflattenFromString() 172 return new Rect(Integer.parseInt(matcher.group(1)), in unflattenFromString() 173 Integer.parseInt(matcher.group(2)), in unflattenFromString() 174 Integer.parseInt(matcher.group(3)), in unflattenFromString() 175 Integer.parseInt(matcher.group(4))); in unflattenFromString()
|
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
D | BaseCompilationTest.java | 167 final Matcher matcher = VARIABLES.matcher(contents); in copyResourceTo() local 169 while (matcher.find()) { in copyResourceTo() 170 int start = matcher.start(); in copyResourceTo() 174 final String key = matcher.group(1); in copyResourceTo() 179 location = matcher.end(); in copyResourceTo()
|
/frameworks/base/core/java/android/net/ |
D | WifiKey.java | 67 if (!SSID_PATTERN.matcher(ssid).matches()) { in WifiKey() 70 if (!BSSID_PATTERN.matcher(bssid).matches()) { in WifiKey()
|
D | Proxy.java | 214 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate() 215 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | Relation.java | 71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) { in create()
|
/frameworks/base/core/java/android/provider/ |
D | ContactsInternal.java | 48 final UriMatcher matcher = sContactsUriMatcher; 49 matcher.addURI(ContactsContract.AUTHORITY, "contacts/lookup/*/#", CONTACTS_URI_LOOKUP_ID); in matcher.addURI()
|
/frameworks/multidex/library/src/android/support/multidex/ |
D | MultiDex.java | 217 Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(versionString); in isVMMultidexCapable() local 218 if (matcher.matches()) { in isVMMultidexCapable() 220 int major = Integer.parseInt(matcher.group(1)); in isVMMultidexCapable() 221 int minor = Integer.parseInt(matcher.group(2)); in isVMMultidexCapable()
|
/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/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiSelector.java | 677 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor() 718 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor() 744 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor() 773 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor() 795 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 955 Matcher match = mAssocRejectEventPattern.matcher(eventData); in dispatchEvent() 1029 Matcher match = mTargetBSSIDPattern.matcher(eventStr); in handleTargetBSSIDEvent() 1038 Matcher match = mAssociatedPattern.matcher(eventStr); in handleAssociatedBSSIDEvent() 1048 Matcher match = p.matcher(dataString); in handleWpsFailEvent() 1309 Matcher match = mRequestIdentityPattern.matcher(requestName); in handleRequests() 1322 Matcher matchGsm = mRequestGsmAuthPattern.matcher(requestName); in handleRequests() 1323 Matcher matchUmts = mRequestUmtsAuthPattern.matcher(requestName); in handleRequests() 1414 match = mConnectedEventPattern.matcher(data); in handleNetworkStateChange() 1427 match = mDisconnectedEventPattern.matcher(data); in handleNetworkStateChange()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/ |
D | IntentFilterVerificationReceiver.java | 140 if (!ANDROID_PACKAGE_NAME_PATTERN.matcher(packageName).matches()) { in createAndroidAssetString() 152 if (!Patterns.DOMAIN_NAME.matcher(host).matches()) { in createWebAssetString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 204 if (mFreeShortCodePattern != null && mFreeShortCodePattern.matcher(phoneNumber) in getNumberCategory() 208 if (mStandardShortCodePattern != null && mStandardShortCodePattern.matcher(phoneNumber) in getNumberCategory() 212 if (mPremiumShortCodePattern != null && mPremiumShortCodePattern.matcher(phoneNumber) in getNumberCategory() 216 if (mShortCodePattern != null && mShortCodePattern.matcher(phoneNumber).matches()) { in getNumberCategory()
|
/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/bluetooth/src/android/bluetooth/client/map/utils/ |
D | BmsgTokenizer.java | 69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/ |
D | BmsgTokenizer.java | 69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
|