Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/net/
DUriMatcherTest.java45 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/
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()
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/
DPatternScanner.java51 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/
DPatterns.java199 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()
DEventLog.java243 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/
DWm.java180 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/
DMoreAsserts.java250 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/
DTtmlRenderer.java141 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/
DOverlayDisplayAdapter.java139 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/
DRect.java50 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/
DWifiKey.java66 if (!SSID_PATTERN.matcher(ssid).matches()) { in WifiKey()
69 if (!BSSID_PATTERN.matcher(bssid).matches()) { in WifiKey()
DProxy.java243 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate()
244 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList); in validate()
DWebAddress.java82 Matcher m = sAddressPattern.matcher(address); in WebAddress()
/frameworks/multidex/library/src/android/support/multidex/
DMultiDex.java217 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/
DWifiP2pDevice.java185 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/
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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java677 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/
DWifiMonitor.java903 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/
DSmsUsageMonitor.java203 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/
DSQLiteDatabaseConfiguration.java163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY"); in stripPathForLogs()
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/
DBmsgTokenizer.java69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
DObexTime.java37 Matcher m = p.matcher(time); in ObexTime()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
DBmsgTokenizer.java69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
DObexTime.java37 Matcher m = p.matcher(time); in ObexTime()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java381 IsMetadataNotEmpty matcher = new IsMetadataNotEmpty(); in testCaptureResultCallbacks() local
386 argThat(matcher), in testCaptureResultCallbacks()
391 argThat(matcher), in testCaptureResultCallbacks()

123