/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | PatternsTest.java | 34 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 D | PatternsCompatTest.java | 40 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 D | BluetoothDeviceFilter.java | 28 * 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 D | DebugTest.java | 42 assertTrue(callDepth0().matches(EXPECTED_GET_CALLER)); 65 assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS));
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ |
H A D | ScanFilterTest.java | 63 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 D | AbstractAssetMatcher.java | 27 * Returns true if this AssetMatcher matches the asset. 29 public abstract boolean matches(AbstractAsset asset); method in class:AbstractAssetMatcher
|
H A D | WebAssetMatcher.java | 31 public boolean matches(AbstractAsset asset) { method in class:WebAssetMatcher
|
H A D | Relation.java | 71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) { 93 public boolean matches(Relation relation) { method in class:Relation
|
H A D | AndroidAppAssetMatcher.java | 35 public boolean matches(AbstractAsset asset) { method in class:AndroidAppAssetMatcher
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | Filter.java | 34 boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in interface:Filter
|
H A D | AndFilter.java | 28 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 D | OrFilter.java | 28 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 D | SenderFilter.java | 82 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 D | NotFilter.java | 35 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 D | RouteInfoTest.java | 80 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 D | PhoneUtil.java | 50 return match.matches();
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | DragHandleUtils.java | 20 import static android.support.test.espresso.assertion.ViewAssertions.matches; 41 .check(matches(isDisplayed())); 45 .check(matches(isDisplayed()));
|
H A D | FloatingToolbarEspressoUtils.java | 21 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 D | ContextMenuUtils.java | 20 import static android.support.test.espresso.assertion.ViewAssertions.matches; 57 onContextMenu().check(matches(isDisplayed())); 84 onContextMenu().check(matches(
|
H A D | SuggestionsPopupwindowUtils.java | 20 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 D | FloatingActionButtonTest.java | 30 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 D | NightModeTestCase.java | 20 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 D | CharacterEncodingDetector.h | 45 const UCharsetMatch** ucma, size_t matches,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | MockUtils.java | 40 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 D | CharacterEncodingDetector.cpp | 117 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...] |