/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 | 243 if (comment.matcher(line).matches()) continue; in readTagsFile() 245 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 | 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 | 141 Matcher matcher = CLOCK_TIME.matcher(time); in parseTimeExpression() local 142 if (matcher.matches()) { in parseTimeExpression() 143 String hours = matcher.group(1); in parseTimeExpression() 145 String minutes = matcher.group(2); in parseTimeExpression() 147 String seconds = matcher.group(3); in parseTimeExpression() 149 String fraction = matcher.group(4); in parseTimeExpression() 151 String frames = matcher.group(5); in parseTimeExpression() 153 String subframes = matcher.group(6); in parseTimeExpression() 159 matcher = OFFSET_TIME.matcher(time); in parseTimeExpression() 160 if (matcher.matches()) { in parseTimeExpression() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | OverlayDisplayAdapter.java | 139 Matcher matcher = SETTING_PATTERN.matcher(part); in updateOverlayDisplayDevicesLocked() local 140 if (matcher.matches()) { in updateOverlayDisplayDevicesLocked() 146 int width = Integer.parseInt(matcher.group(1), 10); in updateOverlayDisplayDevicesLocked() 147 int height = Integer.parseInt(matcher.group(2), 10); in updateOverlayDisplayDevicesLocked() 148 int densityDpi = Integer.parseInt(matcher.group(3), 10); in updateOverlayDisplayDevicesLocked() 149 String flagString = matcher.group(4); in updateOverlayDisplayDevicesLocked()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Rect.java | 50 return FLATTENED_PATTERN.matcher(str); in getMatcher() 167 Matcher matcher = UnflattenHelper.getMatcher(str); in unflattenFromString() local 168 if (!matcher.matches()) { in unflattenFromString() 171 return new Rect(Integer.parseInt(matcher.group(1)), in unflattenFromString() 172 Integer.parseInt(matcher.group(2)), in unflattenFromString() 173 Integer.parseInt(matcher.group(3)), in unflattenFromString() 174 Integer.parseInt(matcher.group(4))); in unflattenFromString()
|
/frameworks/base/core/java/android/net/ |
D | WifiKey.java | 66 if (!SSID_PATTERN.matcher(ssid).matches()) { in WifiKey() 69 if (!BSSID_PATTERN.matcher(bssid).matches()) { in WifiKey()
|
D | Proxy.java | 243 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate() 244 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
|
D | WebAddress.java | 82 Matcher m = sAddressPattern.matcher(address); in WebAddress()
|
/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/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 | 903 Matcher match = mAssocRejectEventPattern.matcher(eventData); in dispatchEvent() 973 Matcher match = mTargetBSSIDPattern.matcher(eventStr); in handleTargetBSSIDEvent() 982 Matcher match = mAssociatedPattern.matcher(eventStr); in handleAssociatedBSSIDEvent() 992 Matcher match = p.matcher(dataString); in handleWpsFailEvent() 1199 Matcher match = mRequestIdentityPattern.matcher(requestName); in handleRequests() 1212 Matcher match = mRequestGsmAuthPattern.matcher(requestName); in handleRequests() 1295 match = mConnectedEventPattern.matcher(data); in handleNetworkStateChange() 1308 match = mDisconnectedEventPattern.matcher(data); in handleNetworkStateChange()
|
/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/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/pbap/utils/ |
D | BmsgTokenizer.java | 69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
|
D | ObexTime.java | 37 Matcher m = p.matcher(time); in ObexTime()
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
D | BmsgTokenizer.java | 69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
|
D | ObexTime.java | 37 Matcher m = p.matcher(time); in ObexTime()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraDeviceBinderTest.java | 381 IsMetadataNotEmpty matcher = new IsMetadataNotEmpty(); in testCaptureResultCallbacks() local 386 argThat(matcher), in testCaptureResultCallbacks() 391 argThat(matcher), in testCaptureResultCallbacks()
|