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

123456789

/frameworks/support/core-utils/tests/java/android/support/v4/content/
H A DMimeTypeFilterTest.java41 assertTrue(MimeTypeFilter.matches("image/jpeg", "*/*"));
42 assertTrue(MimeTypeFilter.matches("image/jpeg", "image/*"));
43 assertTrue(MimeTypeFilter.matches("image/jpeg", "image/jpeg"));
44 assertTrue(MimeTypeFilter.matches("image/jpeg", "*/jpeg"));
47 assertFalse(MimeTypeFilter.matches("ImAgE/JpEg", "iMaGe/*"));
48 assertFalse(MimeTypeFilter.matches("IMAGE/JPEG", "image/jpeg"));
49 assertFalse(MimeTypeFilter.matches("image/jpeg", "IMAGE/JPEG"));
51 assertFalse(MimeTypeFilter.matches("image/jpeg", "image/png"));
52 assertFalse(MimeTypeFilter.matches("image/jpeg", "video/jpeg"));
54 assertFalse(MimeTypeFilter.matches((Strin
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java33 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches();
37 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches();
41 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches();
45 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches();
48 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
51 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
54 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
63 assertTrue("Should match 'com'", pattern.matcher("com").matches());
69 assertTrue("Should match 'me'", pattern.matcher("me").matches());
75 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
[all...]
/frameworks/support/compat/tests/java/android/support/v4/util/
H A DPatternsCompatTest.java39 assertTrue("Should match 'com'", pattern.matcher("com").matches());
45 assertTrue("Should match 'me'", pattern.matcher("me").matches());
51 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
57 assertTrue("Should match IRI TLD", pattern.matcher("\uD55C\uAD6D").matches());
63 assertFalse("Should not match 'mem'", pattern.matcher("mem").matches());
69 assertFalse("Should not match invalid Punycode TLD", pattern.matcher("xn").matches());
78 PatternsCompat.WEB_URL.matcher(url).matches());
85 PatternsCompat.WEB_URL.matcher(url).matches());
92 PatternsCompat.WEB_URL.matcher(url).matches());
99 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/java/android/companion/
H A DDeviceFilter.java43 * @return whether the given device matches this filter
47 boolean matches(D device); method in interface:DeviceFilter
56 * A nullsafe {@link #matches(Parcelable)}, returning true if the filter is null
60 static <D extends Parcelable> boolean matches(@Nullable DeviceFilter<D> filter, D device) { method in interface:DeviceFilter
61 return filter == null || filter.matches(device);
/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
/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,
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DNightModeTestCase.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
59 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY)));
66 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT)));
82 onView(withId(R.id.view_background)).check(matches(isBackground(dayColor)));
87 onView(withId(R.id.view_background)).check(matches(isBackground(nightColor)));
101 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY)));
122 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT)));
136 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY)));
156 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT)));
/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/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/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DAppCompatImageViewTest.java19 import static android.support.test.espresso.assertion.ViewAssertions.matches;
43 imageViewInteraction.check(matches(TestUtilsMatchers.drawable(expectedColor)));
/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 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 DAppBarWithCollapsingToolbarStateRestoreTest.java23 import static android.support.test.espresso.assertion.ViewAssertions.matches;
76 .check(matches(hasZ()))
77 .check(matches(isCollapsed()));
93 .check(matches(hasZ()))
94 .check(matches(isCollapsed()));
H A DFloatingActionButtonTest.java37 import static android.support.test.espresso.assertion.ViewAssertions.matches;
78 .check(matches(withFabBackgroundFill(colorAccent)));
86 .check(matches(withFabBackgroundFill(Color.GREEN)));
93 .check(matches(withFabBackgroundFill(Color.MAGENTA)));
101 .check(matches(withFabBackgroundFill(Color.GREEN)));
120 .check(matches(withFabBackgroundFill(normal)))
122 .check(matches(withFabBackgroundFill(notSelected)))
124 .check(matches(withFabBackgroundFill(normal)));
137 .check(matches(withFabBackgroundFill(normal)))
139 .check(matches(withFabBackgroundFil
[all...]
/frameworks/support/core-utils/java/android/support/v4/content/
H A DMimeTypeFilter.java73 * @return True if the {@code mimeType} matches the {@code filter}.
75 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { method in class:MimeTypeFilter
88 * @return The first matching filter, or null if nothing matches.
90 public static String matches( method in class:MimeTypeFilter
109 * @return The first matching MIME type, or null if nothing matches.
111 public static String matches( method in class:MimeTypeFilter
130 * @return The list of matching MIME types, or empty array if nothing matches.
/frameworks/av/include/media/
H A DCharacterEncodingDetector.h45 const UCharsetMatch** ucma, size_t matches,
/frameworks/av/media/libmedia/include/media/
H A DCharacterEncodingDetector.h45 const UCharsetMatch** ucma, size_t matches,

Completed in 663 milliseconds

123456789