Searched refs:matches (Results 1 - 25 of 189) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java34 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches();
38 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches();
42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches();
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches();
49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
55 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
64 assertTrue("Should match 'com'", pattern.matcher("com").matches());
70 assertTrue("Should match 'me'", pattern.matcher("me").matches());
76 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
[all...]
/frameworks/support/compat/tests/java/android/support/v4/util/
H A DPatternsCompatTest.java40 assertTrue("Should match 'com'", pattern.matcher("com").matches());
46 assertTrue("Should match 'me'", pattern.matcher("me").matches());
52 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
58 assertTrue("Should match IRI TLD", pattern.matcher("\uD55C\uAD6D").matches());
64 assertFalse("Should not match 'mem'", pattern.matcher("mem").matches());
70 assertFalse("Should not match invalid Punycode TLD", pattern.matcher("xn").matches());
79 PatternsCompat.WEB_URL.matcher(url).matches());
86 PatternsCompat.WEB_URL.matcher(url).matches());
93 PatternsCompat.WEB_URL.matcher(url).matches());
100 PatternsCompat.WEB_URL.matcher(url).matches());
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothDeviceFilter.java28 * passed to it matches the specified filter type constant from
36 boolean matches(BluetoothDevice device); method in interface:BluetoothDeviceFilter.Filter
77 /** Filter that matches all devices. */
79 public boolean matches(BluetoothDevice device) { method in class:BluetoothDeviceFilter.AllFilter
84 /** Filter that matches only bonded devices. */
86 public boolean matches(BluetoothDevice device) { method in class:BluetoothDeviceFilter.BondedDeviceFilter
91 /** Filter that matches only unbonded devices. */
93 public boolean matches(BluetoothDevice device) { method in class:BluetoothDeviceFilter.UnbondedDeviceFilter
100 abstract boolean matches(ParcelUuid[] uuids, BluetoothClass btClass); method in class:BluetoothDeviceFilter.ClassUuidFilter
102 public boolean matches(BluetoothDevic method in class:BluetoothDeviceFilter.ClassUuidFilter
110 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { method in class:BluetoothDeviceFilter.AudioFilter
131 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { method in class:BluetoothDeviceFilter.TransferFilter
145 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { method in class:BluetoothDeviceFilter.PanuFilter
159 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { method in class:BluetoothDeviceFilter.NapFilter
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DDebugTest.java42 assertTrue(callDepth0().matches(EXPECTED_GET_CALLER));
65 assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS));
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanFilterTest.java63 assertTrue("setName filter fails", filter.matches(mScanResult));
66 assertFalse("setName filter fails", filter.matches(mScanResult));
73 assertTrue("device filter fails", filter.matches(mScanResult));
76 assertFalse("device filter fails", filter.matches(mScanResult));
83 assertTrue("uuid filter fails", filter.matches(mScanResult));
87 assertFalse("uuid filter fails", filter.matches(mScanResult));
93 assertTrue("uuid filter fails", filter.matches(mScanResult));
102 assertTrue("service data filter fails", filter.matches(mScanResult));
106 assertTrue("service data filter fails", filter.matches(mScanResult));
111 assertTrue("service data filter fails", filter.matches(mScanResul
[all...]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DAbstractAssetMatcher.java27 * Returns true if this AssetMatcher matches the asset.
29 public abstract boolean matches(AbstractAsset asset); method in class:AbstractAssetMatcher
H A DWebAssetMatcher.java31 public boolean matches(AbstractAsset asset) { method in class:WebAssetMatcher
H A DRelation.java71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) {
93 public boolean matches(Relation relation) { method in class:Relation
H A DAndroidAppAssetMatcher.java35 public boolean matches(AbstractAsset asset) { method in class:AndroidAppAssetMatcher
/frameworks/base/services/core/java/com/android/server/firewall/
H A DFilter.java34 boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in interface:Filter
H A DAndFilter.java28 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in class:AndFilter
31 if (!children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid,
H A DOrFilter.java28 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in class:OrFilter
31 if (children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid,
H A DSenderFilter.java82 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent,
90 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent,
98 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent,
107 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent,
H A DNotFilter.java35 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in class:NotFilter
37 return !mChild.matches(ifw, resolvedComponent, intent, callerUid, callerPid, resolvedType,
/frameworks/base/core/tests/coretests/src/android/net/
H A DRouteInfoTest.java80 public boolean matches(InetAddress destination) {
81 return mRouteInfo.matches(destination);
88 assertTrue(r.matches(Address("2001:db8:f00::ace:d00c")));
89 assertTrue(r.matches(Address("2001:db8:f00::ace:d00d")));
90 assertFalse(r.matches(Address("2001:db8:f00::ace:d00e")));
91 assertFalse(r.matches(Address("2001:db8:f00::bad:d00d")));
92 assertFalse(r.matches(Address("2001:4868:4860::8888")));
93 assertFalse(r.matches(Address("8.8.8.8")));
96 assertTrue(r.matches(Address("192.0.2.43")));
97 assertTrue(r.matches(Addres
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DPhoneUtil.java50 return match.matches();
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DDragHandleUtils.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
41 .check(matches(isDisplayed()));
45 .check(matches(isDisplayed()));
H A DFloatingToolbarEspressoUtils.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
72 onFloatingToolBar().check(matches(isDisplayed()));
82 onFloatingToolBar().check(matches(isDisplayed()));
109 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel))));
118 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel))));
147 onFloatingToolBarItem(withText(itemLabel)).check(matches(isDisplayed()));
H A DContextMenuUtils.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
57 onContextMenu().check(matches(isDisplayed()));
84 onContextMenu().check(matches(
H A DSuggestionsPopupwindowUtils.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
58 onSuggestionsPopup().check(matches(isDisplayed()));
68 onSuggestionsPopup().check(matches(isDisplayed()));
82 onSuggestionsPopupItem(withText(itemLabel)).check(matches(isDisplayed()));
/frameworks/support/design/tests/src/android/support/design/widget/
H A DFloatingActionButtonTest.java30 import static android.support.test.espresso.assertion.ViewAssertions.matches;
58 .check(matches(withFabBackgroundFill(colorAccent)));
65 .check(matches(withFabBackgroundFill(Color.GREEN)));
71 .check(matches(withFabBackgroundFill(Color.MAGENTA)));
78 .check(matches(withFabBackgroundFill(Color.GREEN)));
94 .check(matches(withFabContentHeight(miniSize)));
106 .check(matches(withFabContentHeight(miniSize)));
110 .check(matches(withFabContentHeight(normalSize)));
117 .check(matches(withFabContentAreaOnMargins(Gravity.LEFT | Gravity.TOP)));
121 .check(matches(withFabContentAreaOnMargin
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DNightModeTestCase.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
57 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY)));
63 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT)));
79 onView(withId(R.id.view_background)).check(matches(isBackground(dayColor)));
84 onView(withId(R.id.view_background)).check(matches(isBackground(nightColor)));
98 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY)));
119 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT)));
/frameworks/av/include/media/
H A DCharacterEncodingDetector.h45 const UCharsetMatch** ucma, size_t matches,
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java40 public boolean matches(Object item) {
56 public boolean matches(Object item) {
72 public boolean matches(Object item) {
89 public boolean matches(Object item) {
/frameworks/av/media/libmedia/
H A DCharacterEncodingDetector.cpp117 int32_t matches; local
118 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status);
122 ucma, matches, &goodmatch, &highest);
148 ucma = ucsdet_detectAll(csd, &matches, &status);
150 ucma, matches, &goodmatch, &highest);
268 * When ICU detects multiple encoding matches, apply additional heuristics to determine
272 * - decode the input using each of the matches found
286 Vector<const UCharsetMatch*> matches; local
289 ALOGV("%zu matches", nummatches);
294 matches
[all...]

Completed in 566 milliseconds

12345678