Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java34 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); in testTldPattern()
38 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); in testTldPattern()
42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); in testTldPattern()
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); in testTldPattern()
49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern()
52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); in testTldPattern()
55 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); in testTldPattern()
64 assertTrue("Should match 'com'", pattern.matcher("com").matches()); in testIanaTopLevelDomains_matchesValidTld()
70 assertTrue("Should match 'me'", pattern.matcher("me").matches()); in testIanaTopLevelDomains_matchesValidNewTld()
76 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches()); in testIanaTopLevelDomains_matchesPunycodeTld()
[all …]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DBatteryStatsParser.java86 String[] matches = group.split("ms", -1); in getTime() local
87 if (matches.length > 1) { in getTime()
88 group = matches[0]; in getTime()
92 matches = group.split("h"); in getTime()
93 if (matches.length > 1) { in getTime()
94 time += Long.parseLong(matches[0]) * 60 * 60 * 1000; // hours in getTime()
95 group = matches[1]; in getTime()
97 matches = group.split("m"); in getTime()
98 if (matches.length > 1) { in getTime()
99 time += Long.parseLong(matches[0]) * 60 * 1000; // minutes in getTime()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanFilterTest.java63 assertTrue("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter()
66 assertFalse("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter()
73 assertTrue("device filter fails", filter.matches(mScanResult)); in testDeviceFilter()
76 assertFalse("device filter fails", filter.matches(mScanResult)); in testDeviceFilter()
83 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter()
87 assertFalse("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter()
93 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter()
102 assertTrue("service data filter fails", filter.matches(mScanResult)); in testsetServiceDataFilter()
106 assertTrue("service data filter fails", filter.matches(mScanResult)); in testsetServiceDataFilter()
111 assertTrue("service data filter fails", filter.matches(mScanResult)); in testsetServiceDataFilter()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDeviceFilter.java36 boolean matches(BluetoothDevice device); in matches() method
79 public boolean matches(BluetoothDevice device) { in matches() method in BluetoothDeviceFilter.AllFilter
86 public boolean matches(BluetoothDevice device) { in matches() method in BluetoothDeviceFilter.BondedDeviceFilter
93 public boolean matches(BluetoothDevice device) { in matches() method in BluetoothDeviceFilter.UnbondedDeviceFilter
100 abstract boolean matches(ParcelUuid[] uuids, BluetoothClass btClass); in matches() method in BluetoothDeviceFilter.ClassUuidFilter
102 public boolean matches(BluetoothDevice device) { in matches() method in BluetoothDeviceFilter.ClassUuidFilter
103 return matches(device.getUuids(), device.getBluetoothClass()); in matches()
110 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches() method in BluetoothDeviceFilter.AudioFilter
131 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches() method in BluetoothDeviceFilter.TransferFilter
145 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches() method in BluetoothDeviceFilter.PanuFilter
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
Dprocess_newdb_perf_test_logs.py39 matches = re.search(regex, line)
40 if matches:
41 test_name = matches.group(1)
42 duration = int(matches.group(2))
60 matches = re.search(regex, line)
61 if matches:
62 max_write_bytes = max(max_write_bytes, int(matches.group(1)))
/frameworks/base/cmds/incident_helper/tests/
DPsParser_test.cpp216 bool matches = true; in TEST_F() local
220 matches = false; in TEST_F()
229 matches = false; in TEST_F()
233 matches = false; in TEST_F()
237 matches = false; in TEST_F()
241 matches = false; in TEST_F()
245 matches = false; in TEST_F()
249 matches = false; in TEST_F()
253 matches = false; in TEST_F()
257 matches = false; in TEST_F()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPackageMatchingCacheTest.java48 cache.matches(null); in testNulls()
52 cache.matches(""); in testNulls()
60 assertTrue(cache.matches("ret.pkg")); in testCaching()
61 assertTrue(cache.matches("ret.pkg")); in testCaching()
62 assertTrue(cache.matches("ret.pkg")); in testCaching()
70 assertTrue(cache.matches("ret.pkg")); in testGetOnFailure()
73 assertTrue(cache.matches("other.pkg")); in testGetOnFailure()
/frameworks/base/tests/net/common/java/android/net/
DRouteInfoTest.java81 public boolean matches(InetAddress destination) { in testMatches() method in RouteInfoTest.PatchedRouteInfo
82 return mRouteInfo.matches(destination); in testMatches()
89 assertTrue(r.matches(Address("2001:db8:f00::ace:d00c"))); in testMatches()
90 assertTrue(r.matches(Address("2001:db8:f00::ace:d00d"))); in testMatches()
91 assertFalse(r.matches(Address("2001:db8:f00::ace:d00e"))); in testMatches()
92 assertFalse(r.matches(Address("2001:db8:f00::bad:d00d"))); in testMatches()
93 assertFalse(r.matches(Address("2001:4868:4860::8888"))); in testMatches()
94 assertFalse(r.matches(Address("8.8.8.8"))); in testMatches()
97 assertTrue(r.matches(Address("192.0.2.43"))); in testMatches()
98 assertTrue(r.matches(Address("192.0.3.21"))); in testMatches()
[all …]
/frameworks/av/media/libmedia/
DCharacterEncodingDetector.cpp141 int32_t matches; in detectAndConvert() local
142 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
144 ucma, matches, &goodmatch, &highest); in detectAndConvert()
170 ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
172 ucma, matches, &goodmatch, &highest); in detectAndConvert()
212 int32_t matches; in detectAndConvert() local
216 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
218 ucma, matches, &goodmatchSingle, &highestSingle); in detectAndConvert()
328 Vector<const UCharsetMatch*> matches; in getPreferred() local
336 matches.push_back(ucma[i]); in getPreferred()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityTest.java22 import static androidx.test.espresso.assertion.ViewAssertions.matches;
141 onView(withId(R.id.title)).check(matches(withText("chooser test"))); in customTitle()
154 onView(withId(R.id.title)).check(matches(withText(R.string.whichSendApplication))); in customTitleIgnoredForSendIntents()
168 .check(matches(withText(R.string.whichSendApplication))); in emptyTitle()
181 onView(withId(R.id.content_preview_title)).check(matches(not(isDisplayed()))); in emptyPreviewTitleAndThumbnail()
182 onView(withId(R.id.content_preview_thumbnail)).check(matches(not(isDisplayed()))); in emptyPreviewTitleAndThumbnail()
196 onView(withId(R.id.content_preview_title)).check(matches(isDisplayed())); in visiblePreviewTitleWithoutThumbnail()
197 onView(withId(R.id.content_preview_title)).check(matches(withText(previewTitle))); in visiblePreviewTitleWithoutThumbnail()
198 onView(withId(R.id.content_preview_thumbnail)).check(matches(not(isDisplayed()))); in visiblePreviewTitleWithoutThumbnail()
213 onView(withId(R.id.content_preview_title)).check(matches(isDisplayed())); in visiblePreviewTitleWithInvalidThumbnail()
[all …]
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2UtilsTest.java241 assertTrue(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, null)); in requestSettingsSetMatchesPrimitives()
242 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, false)); in requestSettingsSetMatchesPrimitives()
243 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, true)); in requestSettingsSetMatchesPrimitives()
246 assertTrue(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, null)); in requestSettingsSetMatchesPrimitives()
247 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, false)); in requestSettingsSetMatchesPrimitives()
248 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, true)); in requestSettingsSetMatchesPrimitives()
251 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, null)); in requestSettingsSetMatchesPrimitives()
252 assertTrue(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, false)); in requestSettingsSetMatchesPrimitives()
253 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, true)); in requestSettingsSetMatchesPrimitives()
256 assertFalse(setUp.matches(CaptureRequest.CONTROL_AE_LOCK, null)); in requestSettingsSetMatchesPrimitives()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
85 onFloatingToolBar().check(matches(isDisplayed())); in assertFloatingToolbarIsDisplayed()
97 onFloatingToolBar().check(matches(isDisplayed())); in assertFloatingToolbarIsNotDisplayed()
124 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
133 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
148 onFloatingToolBar().check(matches(new TypeSafeMatcher<View>() { in assertFloatingToolbarItemIndex()
201 onFloatingToolBar().check(matches(new TypeSafeMatcher<View>() { in assertFloatingToolbarMenuItem()
233 onFloatingToolBarItem(withText(itemLabel)).check(matches(isDisplayed())); in clickFloatingToolbarItem()
DContextMenuUtils.java21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
66 onContextMenu().check(matches(isDisplayed())); in assertContextMenuIsDisplayed()
93 onContextMenu().check(matches( in asssertContextMenuContainsItemWithEnabledState()
141 onContextMenu().check(matches(new TypeSafeMatcher<View>() { in assertContextMenuAlignment()
174 onContextMenu().check(matches( in isMenuItemClickable()
DSuggestionsPopupwindowUtils.java20 import static androidx.test.espresso.assertion.ViewAssertions.matches;
62 onSuggestionsPopup().check(matches(isDisplayed())); in assertSuggestionsPopupIsDisplayed()
72 onSuggestionsPopup().check(matches(isDisplayed())); in assertSuggestionsPopupIsNotDisplayed()
86 onSuggestionsPopupItem(withText(itemLabel)).check(matches(isDisplayed())); in assertSuggestionsPopupContainsItem()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbProfileGroupSettingsManager.java553 if (deviceFilters.get(i).matches(device)) { in packageMatchesLocked()
566 if (accessoryFilters.get(i).matches(accessory)) { in packageMatchesLocked()
616 private ArrayList<ResolveInfo> preferHighPriority(@NonNull ArrayList<ResolveInfo> matches) { in preferHighPriority() argument
622 int numMatches = matches.size(); in preferHighPriority()
624 ResolveInfo match = matches.get(matchNum); in preferHighPriority()
695 ArrayList<ResolveInfo> matches = new ArrayList<>( in removeForwardIntentIfNotNeeded() local
701 matches.add(rawMatch); in removeForwardIntentIfNotNeeded()
704 return matches; in removeForwardIntentIfNotNeeded()
712 ArrayList<ResolveInfo> matches = new ArrayList<>(); in getDeviceMatchesLocked() local
718 matches.add(resolveInfo); in getDeviceMatchesLocked()
[all …]
/frameworks/base/core/java/android/service/autofill/
DFieldClassification.java41 public FieldClassification(@NonNull ArrayList<Match> matches) { in FieldClassification() argument
42 mMatches = Preconditions.checkNotNull(matches); in FieldClassification()
82 final ArrayList<Match> matches = new ArrayList<>(); in readFromParcel() local
84 matches.add(i, Match.readFromParcel(parcel)); in readFromParcel()
87 return new FieldClassification(matches); in readFromParcel()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockUtils.java45 public boolean matches(Object item) { in checkUserHandle()
61 public boolean matches(Object item) { in checkIntentComponent()
77 public boolean matches(Object item) { in checkIntentAction()
93 public boolean matches(Object item) { in checkIntent()
113 public boolean matches(Object item) { in checkUserRestrictions()
129 public boolean matches(Object item) { in checkApps()
/frameworks/base/core/java/android/companion/
DDeviceFilter.java49 boolean matches(D device); in matches() method
63 static <D extends Parcelable> boolean matches(@Nullable DeviceFilter<D> filter, D device) { in matches() method
64 return filter == null || filter.matches(device); in matches()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberRange.java74 if (!Pattern.matches("[0-9]*", countryCode)) { in PhoneNumberRange()
77 if (!Pattern.matches("[0-9]*", prefix)) { in PhoneNumberRange()
136 if (!Pattern.matches("[0-9]*", lowerBound)) { in validateLowerAndUpperBounds()
139 if (!Pattern.matches("[0-9]*", upperBound)) { in validateLowerAndUpperBounds()
152 public boolean matches(@NonNull String number) { in matches() method in PhoneNumberRange
/frameworks/base/services/core/java/com/android/server/wm/
DPolicyControl.java68 if (sImmersiveStatusFilter != null && sImmersiveStatusFilter.matches(attrs)) { in getSystemUiVisibility()
75 if (sImmersiveNavigationFilter != null && sImmersiveNavigationFilter.matches(attrs)) { in getSystemUiVisibility()
88 if (sImmersiveStatusFilter != null && sImmersiveStatusFilter.matches(attrs)) { in getWindowFlags()
93 if (sImmersiveNavigationFilter != null && sImmersiveNavigationFilter.matches(attrs)) { in getWindowFlags()
101 if (sImmersiveStatusFilter != null && sImmersiveStatusFilter.matches(attrs)) { in adjustClearableFlags()
109 && sImmersivePreconfirmationsFilter.matches(pkg)) in disableImmersiveConfirmation()
199 boolean matches(LayoutParams attrs) { in matches() method in PolicyControl.Filter
209 boolean matches(String packageName) { in matches() method in PolicyControl.Filter
/frameworks/base/services/core/java/com/android/server/firewall/
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,
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DRelation.java71 if (!KIND_PATTERN.matcher(kind).matches() || !DETAIL_PATTERN.matcher(detail).matches()) { in create()
93 public boolean matches(Relation relation) { in matches() method in Relation
/frameworks/base/core/java/android/content/
DMimeTypeFilter.java77 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { in matches() method in MimeTypeFilter
93 public static String matches( in matches() method in MimeTypeFilter
115 public static String matches( in matches() method in MimeTypeFilter
/frameworks/base/tests/net/java/android/net/
DMacAddressTest.java260 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
265 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
270 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
275 assertFalse(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
280 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
285 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DDebugTest.java43 assertTrue(callDepth0().matches(EXPECTED_GET_CALLER)); in testGetCaller()
66 assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS)); in testGetCallers()

1234567891011