Searched refs:matcher (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/net/
H A DUriMatcherTest.java45 UriMatcher matcher = new UriMatcher(ROOT);
46 matcher.addURI("people", null, PEOPLE);
47 matcher.addURI("people", "#", PEOPLE_ID);
48 matcher.addURI("people", "#/phones", PEOPLE_PHONES);
49 matcher.addURI("people", "#/phones/blah", PEOPLE_PHONES_ID);
50 matcher.addURI("people", "#/phones/#", PEOPLE_PHONES_ID);
51 matcher.addURI("people", "#/addresses", PEOPLE_ADDRESSES);
52 matcher.addURI("people", "#/addresses/#", PEOPLE_ADDRESSES_ID);
53 matcher.addURI("people", "#/contact-methods", PEOPLE_CONTACTMETH);
54 matcher
85 checkAll(UriMatcher matcher) argument
109 check(String uri, int expected, UriMatcher matcher) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches();
35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches();
39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches();
43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches();
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
60 t = Patterns.WEB_URL.matcher("http://www.google.com").matches();
64 t = Patterns.WEB_URL.matcher("http://www.google.me").matches();
66 t = Patterns.WEB_URL.matcher("googl
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java50 // Create the matcher
51 Matcher matcher = pattern.matcher(mInput);
52 matcher.region(mOffset, mInput.length());
56 if (matcher.lookingAt()) {
57 updateLineCount(mOffset, matcher.end());
58 mOffset = matcher.end();
59 result = mInput.substring(matcher.start(), matcher.end());
84 // Create the matcher
[all...]
/frameworks/base/core/java/android/util/
H A DPatterns.java193 * @param matcher The Matcher object from which grouped text will
199 public static final String concatGroups(Matcher matcher) { argument
201 final int numGroups = matcher.groupCount();
204 String s = matcher.group(i);
218 * @param matcher The Matcher object from which digits and plus will
224 public static final String digitsAndPlusOnly(Matcher matcher) { argument
226 String matchingRegion = matcher.group();
H A DEventLog.java243 if (comment.matcher(line).matches()) continue;
245 Matcher m = tag.matcher(line);
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java180 Matcher matcher = FLATTENED_PATTERN.matcher(overscanStr);
181 if (!matcher.matches()) {
185 rect.left = Integer.parseInt(matcher.group(1));
186 rect.top = Integer.parseInt(matcher.group(2));
187 rect.right = Integer.parseInt(matcher.group(3));
188 rect.bottom = Integer.parseInt(matcher.group(4));
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java250 Matcher matcher = getMatcher(expectedRegex, actual);
251 if (!matcher.matches()) {
254 return matcher;
278 Matcher matcher = getMatcher(expectedRegex, actual);
279 if (!matcher.find()) {
282 return matcher;
302 Matcher matcher = getMatcher(expectedRegex, actual);
303 if (matcher.matches()) {
325 Matcher matcher = getMatcher(expectedRegex, actual);
326 if (matcher
[all...]
/frameworks/base/core/java/android/net/
H A DWifiKey.java66 if (!SSID_PATTERN.matcher(ssid).matches()) {
69 if (!BSSID_PATTERN.matcher(bssid).matches()) {
H A DWebAddress.java82 Matcher m = sAddressPattern.matcher(address);
H A DProxy.java243 Matcher match = HOSTNAME_PATTERN.matcher(hostname);
244 Matcher listMatch = EXCLLIST_PATTERN.matcher(exclList);
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayAdapter.java139 Matcher matcher = SETTING_PATTERN.matcher(part);
140 if (matcher.matches()) {
146 int width = Integer.parseInt(matcher.group(1), 10);
147 int height = Integer.parseInt(matcher.group(2), 10);
148 int densityDpi = Integer.parseInt(matcher.group(3), 10);
149 String flagString = matcher.group(4);
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDatabaseConfiguration.java163 return EMAIL_IN_DB_PATTERN.matcher(path).replaceAll("XX@YY");
/frameworks/base/graphics/java/android/graphics/
H A DRect.java50 return FLATTENED_PATTERN.matcher(str);
167 Matcher matcher = UnflattenHelper.getMatcher(str);
168 if (!matcher.matches()) {
171 return new Rect(Integer.parseInt(matcher.group(1)),
172 Integer.parseInt(matcher.group(2)),
173 Integer.parseInt(matcher.group(3)),
174 Integer.parseInt(matcher.group(4)));
/frameworks/base/media/java/android/media/
H A DTtmlRenderer.java141 Matcher matcher = CLOCK_TIME.matcher(time);
142 if (matcher.matches()) {
143 String hours = matcher.group(1);
145 String minutes = matcher.group(2);
147 String seconds = matcher.group(3);
149 String fraction = matcher.group(4);
151 String frames = matcher.group(5);
153 String subframes = matcher.group(6);
159 matcher
[all...]
/frameworks/base/core/java/com/android/internal/http/
H A DHttpDateTime.java93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString);
100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString);
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DBmsgTokenizer.java69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str);
H A DObexTime.java37 Matcher m = p.matcher(time);
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/
H A DBmsgTokenizer.java69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str);
H A DObexTime.java37 Matcher m = p.matcher(time);
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDevice.java185 match = twoTokenPattern.matcher(string);
192 match = threeTokenPattern.matcher(string);
199 match = detailedDevicePattern.matcher(string);
/frameworks/multidex/library/src/android/support/multidex/
H A DMultiDex.java217 Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(versionString);
218 if (matcher.matches()) {
220 int major = Integer.parseInt(matcher.group(1));
221 int minor = Integer.parseInt(matcher.group(2));
/frameworks/ex/common/java/com/android/common/
H A DRfc822Validator.java100 matcher(tokens[0].getAddress()).matches();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiMonitor.java903 Matcher match = mAssocRejectEventPattern.matcher(eventData);
973 Matcher match = mTargetBSSIDPattern.matcher(eventStr);
982 Matcher match = mAssociatedPattern.matcher(eventStr);
992 Matcher match = p.matcher(dataString);
1199 Matcher match = mRequestIdentityPattern.matcher(requestName);
1212 Matcher match = mRequestGsmAuthPattern.matcher(requestName);
1295 match = mConnectedEventPattern.matcher(data);
1308 match = mDisconnectedEventPattern.matcher(data);
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiSelector.java677 if (s == null || !getPattern(criterion).matcher(s).matches()) {
718 if (s == null || !getPattern(criterion).matcher(s).matches()) {
744 if (s == null || !getPattern(criterion).matcher(s).matches()) {
773 if (s == null || !getPattern(criterion).matcher(s).matches()) {
795 if (s == null || !getPattern(criterion).matcher(s).matches()) {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraDeviceBinderTest.java381 IsMetadataNotEmpty matcher = new IsMetadataNotEmpty();
386 argThat(matcher),
391 argThat(matcher),

Completed in 773 milliseconds

123