Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 144) sorted by relevance

123456

/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/core/tests/coretests/src/android/net/
DRouteInfoTest.java79 public boolean matches(InetAddress destination) { in testMatches() method in RouteInfoTest.PatchedRouteInfo
80 return super.matches(destination); in testMatches()
87 assertTrue(r.matches(Address("2001:db8:f00::ace:d00c"))); in testMatches()
88 assertTrue(r.matches(Address("2001:db8:f00::ace:d00d"))); in testMatches()
89 assertFalse(r.matches(Address("2001:db8:f00::ace:d00e"))); in testMatches()
90 assertFalse(r.matches(Address("2001:db8:f00::bad:d00d"))); in testMatches()
91 assertFalse(r.matches(Address("2001:4868:4860::8888"))); in testMatches()
94 assertTrue(r.matches(Address("192.0.2.43"))); in testMatches()
95 assertTrue(r.matches(Address("192.0.3.21"))); in testMatches()
96 assertFalse(r.matches(Address("192.0.0.21"))); in testMatches()
[all …]
/frameworks/base/services/java/com/android/server/usb/
DUsbSettingsManager.java178 private boolean matches(int clasz, int subclass, int protocol) { in matches() method in UsbSettingsManager.DeviceFilter
184 public boolean matches(UsbDevice device) { in matches() method in UsbSettingsManager.DeviceFilter
189 if (matches(device.getDeviceClass(), device.getDeviceSubclass(), in matches()
196 if (matches(intf.getInterfaceClass(), intf.getInterfaceSubclass(), in matches()
203 public boolean matches(DeviceFilter f) { in matches() method in UsbSettingsManager.DeviceFilter
208 return matches(f.mClass, f.mSubclass, f.mProtocol); in matches()
311 public boolean matches(UsbAccessory acc) { in matches() method in UsbSettingsManager.AccessoryFilter
318 public boolean matches(AccessoryFilter f) { in matches() method in UsbSettingsManager.AccessoryFilter
557 if (filter.matches(device)) { in packageMatchesLocked()
563 if (filter.matches(accessory)) { in packageMatchesLocked()
[all …]
/frameworks/base/services/java/com/android/server/firewall/
DSenderFilter.java70 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp,
81 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp,
93 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp,
102 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp,
DOrFilter.java28 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method in OrFilter
31 if (children.get(i).matches(ifw, intent, callerApp, callerUid, callerPid, resolvedType, in matches()
DAndFilter.java28 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method in AndFilter
31 if (!children.get(i).matches(ifw, intent, callerApp, callerUid, callerPid, resolvedType, in matches()
DNotFilter.java35 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method in NotFilter
37 return !mChild.matches(ifw, intent, callerApp, callerUid, callerPid, resolvedType, in matches()
DFilter.java37 boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method
DSenderPermissionFilter.java36 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method in SenderPermissionFilter
DCategoryFilter.java37 public boolean matches(IntentFirewall ifw, Intent intent, ApplicationInfo callerApp, in matches() method in CategoryFilter
/frameworks/base/libs/hwui/
DPatch.cpp75 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, in matches() function in android::uirenderer::Patch
78 bool matches = true; in matches() local
83 matches = false; in matches()
88 matches = false; in matches()
93 matches = false; in matches()
98 matches = false; in matches()
101 return matches; in matches()
DPatch.h55 bool matches(const int32_t* xDivs, const int32_t* yDivs,
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DDebugTest.java42 assertTrue(callDepth0().matches(EXPECTED_GET_CALLER)); in testGetCaller()
65 assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); in testGetCallers()
/frameworks/base/tools/aidl/
Doptions_test.cpp241 int matches[count]; in main() local
256 matches[i] = test(g_tests[i]); in main()
258 if (0 == matches[i]) { in main()
263 result |= matches[i]; in main()
277 if (matches[i]) { in main()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DWifiAssociationTest.java145 if (mPassword.matches("[0-9A-Fa-f]*")) { in testWifiAssociation()
163 if (mPassword.matches("[0-9A-Fa-f]*")) { in testWifiAssociation()
177 if (mPassword.matches("[0-9A-Fa-f]{64}")) { in testWifiAssociation()
191 if (mPassword.matches("[0-9A-Fa-f]{64}")) { in testWifiAssociation()
/frameworks/base/core/java/android/util/
DDebugUtils.java71 if (object.getClass().getSimpleName().matches(selectors[0])) { in isObjectSelected()
91 value.toString() : "null").matches(pair[1]); in isObjectSelected()
DEventLog.java233 if (comment.matcher(line).matches()) continue; in readTagsFile()
236 if (!m.matches()) { in readTagsFile()
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java1186 ArrayList<Header> matches = new ArrayList<Header>(); in findBestMatchingHeader() local
1191 matches.clear(); in findBestMatchingHeader()
1192 matches.add(oh); in findBestMatchingHeader()
1197 matches.add(oh); in findBestMatchingHeader()
1201 matches.add(oh); in findBestMatchingHeader()
1205 matches.add(oh); in findBestMatchingHeader()
1209 final int NM = matches.size(); in findBestMatchingHeader()
1211 return matches.get(0); in findBestMatchingHeader()
1214 Header oh = matches.get(j); in findBestMatchingHeader()
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java683 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
724 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
750 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
779 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
801 if (s == null || !getPattern(criterion).matcher(s).matches()) { in isMatchFor()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerTest.java243 public boolean matches(Object matched) { in matches() method in AccessibilityManagerTest.AccessibilityEventMather
263 public boolean matches(Object matched) { in matches() method in AccessibilityManagerTest.AnyIAccessibilityManagerClientMather
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java204 .matches()) { in getNumberCategory()
208 .matches()) { in getNumberCategory()
212 .matches()) { in getNumberCategory()
215 if (mShortCodePattern != null && mShortCodePattern.matcher(phoneNumber).matches()) { in getNumberCategory()
/frameworks/base/location/java/android/location/
DLocationProvider.java60 if (name.matches(BAD_CHARS_REGEX)) { in LocationProvider()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java334 if (matches(getResources().getDomainSuffixes(), reverse(domain))) { in isValidDomain()
831 if (m.matches()) { in matchURL()
890 if (m.matches()) { in matchURL()
981 if (m.matches()) { in matchURL()
1068 if (m.matches()) { in matchURL()
1073 if (m.matches()) { in matchURL()
1381 private static boolean matches(TrieNode root, String str) { in matches() method in AbstractMessageParser
/frameworks/base/core/java/android/net/
DRouteInfo.java283 protected boolean matches(InetAddress destination) { in matches() method in RouteInfo
312 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
/frameworks/base/core/java/android/webkit/
DMimeTypeMap.java62 Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) { in getFileExtensionFromUrl()

123456