Home
last modified time | relevance | path

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

123456

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java132 @Override public boolean matches(char c) {
144 @Override public boolean matches(char c) {
154 @Override public boolean matches(char c) {
164 @Override public boolean matches(char c) {
174 @Override public boolean matches(char c) {
243 @Override public boolean matches(char c) {
310 @Override public boolean matches(char c) {
381 @Override public boolean matches(char c) { in is()
390 return other.matches(match) ? this : NONE; in is()
393 return other.matches(match) ? other : super.or(other); in is()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DDefaultAppSearchAlgorithmTest.java47 assertTrue(mAlgorithm.matches(getInfo("white cow"), "cow")); in testMatches()
48 assertTrue(mAlgorithm.matches(getInfo("whiteCow"), "cow")); in testMatches()
49 assertTrue(mAlgorithm.matches(getInfo("whiteCOW"), "cow")); in testMatches()
50 assertTrue(mAlgorithm.matches(getInfo("whitecowCOW"), "cow")); in testMatches()
51 assertTrue(mAlgorithm.matches(getInfo("white2cow"), "cow")); in testMatches()
53 assertFalse(mAlgorithm.matches(getInfo("whitecow"), "cow")); in testMatches()
54 assertFalse(mAlgorithm.matches(getInfo("whitEcow"), "cow")); in testMatches()
56 assertTrue(mAlgorithm.matches(getInfo("whitecowCow"), "cow")); in testMatches()
57 assertTrue(mAlgorithm.matches(getInfo("whitecow cow"), "cow")); in testMatches()
58 assertFalse(mAlgorithm.matches(getInfo("whitecowcow"), "cow")); in testMatches()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java24 import static android.support.test.espresso.assertion.ViewAssertions.matches;
245 onView(withText(errorMsgId)).check(matches(isDisplayed())); in testErrorNoFactoryReset()
249 .check(matches(withText(R.string.device_owner_error_ok))) in testErrorNoFactoryReset()
266 onView(withText(errorMsgId)).check(matches(isDisplayed())); in testErrorFactoryReset()
270 .check(matches(withText(R.string.reset))) in testErrorFactoryReset()
286 onView(withText(R.string.profile_owner_cancel_message)).check(matches(isDisplayed())); in testCancelProfileOwner()
290 .check(matches(withText(R.string.profile_owner_cancel_cancel))) in testCancelProfileOwner()
300 onView(withText(R.string.profile_owner_cancel_message)).check(matches(isDisplayed())); in testCancelProfileOwner()
304 .check(matches(withText(R.string.profile_owner_cancel_ok))) in testCancelProfileOwner()
353 onView(withText(R.string.profile_owner_cancel_message)).check(matches(isDisplayed())); in testCancelProfileOwner_CompProvisioningWithoutSkipConsent()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java36 public abstract boolean matches(ItemInfo info, ComponentName cn); in matches() method in ItemInfoMatcher
47 if (cn != null && matches(info, cn)) { in filterItemInfos()
54 if (cn != null && matches(s, cn)) { in filterItemInfos()
61 if (cn != null && matches(info, cn)) { in filterItemInfos()
72 public boolean matches(ItemInfo info, ComponentName cn) { in ofUser()
82 public boolean matches(ItemInfo info, ComponentName cn) {
92 public boolean matches(ItemInfo info, ComponentName cn) {
101 public boolean matches(ItemInfo info, ComponentName cn) {
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivityTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
100 onView(withText(HEADER_0_TOP)).check(matches(isDisplayed())); in expanderTest()
102 onView(withText(d.mHeader)).check(matches(isDisplayed())); in expanderTest()
110 onView(withText(CONTENT_1)).check(matches(isDisplayed())); in expanderTest()
115 onView(withText(CONTENT_3)).check(matches(isDisplayed())); in expanderTest()
124 onView(withText(CONTENT_1)).check(matches(isDisplayed())); in expanderTest()
128 onView(withId(R.id.disclaimer_content)).check(matches(withText("item1\nitem2\n"))); in expanderTest()
137 matches(not(isDisplayed())); in isNotDisplayed()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java135 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent, in getEntry() local
140 final int size = matches.size(); in getEntry()
142 bestResolve = matches.get(0); in getEntry()
144 bestResolve = getBestResolve(intent, matches); in getEntry()
168 protected ResolveInfo getBestResolve(Intent intent, List<ResolveInfo> matches) { in getBestResolve() argument
182 for (ResolveInfo info : matches) { in getBestResolve()
193 return firstSystem != null ? firstSystem : matches.get(0); in getBestResolve()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DRawContactMatcher.java310 final List<MatchScore> matches = new ArrayList<>(); in pickBestMatches() local
318 matches.add(score); in pickBestMatches()
325 matches.add(score); in pickBestMatches()
328 return matches; in pickBestMatches()
336 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches() local
337 Collections.sort(matches); in pickBestMatches()
340 MatchScore matchScore = matches.get(i); in pickBestMatches()
348 return matches.subList(0, count); in pickBestMatches()
DNameDistance.java110 int matches = 0; in getDistance() local
127 matches++; in getDistance()
133 if (matches == 0) { in getDistance()
151 float m = matches; in getDistance()
DContactMatcher.java349 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches() local
350 Collections.sort(matches); in pickBestMatches()
353 MatchScore matchScore = matches.get(i); in pickBestMatches()
361 return matches.subList(0, count); in pickBestMatches()
/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java90 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in addPackage() local
93 for (LauncherActivityInfo info : matches) { in addPackage()
121 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in updatePackage() local
123 if (matches.size() > 0) { in updatePackage()
131 if (!findActivity(matches, component, user)) { in updatePackage()
141 int count = matches.size(); in updatePackage()
143 final LauncherActivityInfo info = matches.get(i); in updatePackage()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java261 private boolean matches(int clasz, int subclass, int protocol) { in matches() method in UsbDeviceHandlerResolver.DeviceFilter
267 public boolean matches(UsbDevice device) { in matches() method in UsbDeviceHandlerResolver.DeviceFilter
297 if (matches(device.getDeviceClass(), device.getDeviceSubclass(), in matches()
306 if (matches(intf.getInterfaceClass(), intf.getInterfaceSubclass(), in matches()
473 List<Pair<ResolveInfo, DeviceFilter>> matches = getDeviceMatches(device, intent, false); in doHandleResolveHandlers() local
475 Log.d(TAG, "matches size: " + matches.size()); in doHandleResolveHandlers()
477 List<UsbDeviceSettings> settings = new ArrayList<>(matches.size()); in doHandleResolveHandlers()
478 for (Pair<ResolveInfo, DeviceFilter> info : matches) { in doHandleResolveHandlers()
572 List<Pair<ResolveInfo, DeviceFilter>> matches = new ArrayList<>(); in getDeviceMatches() local
579 matches.add(Pair.create(resolveInfo, filter)); in getDeviceMatches()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAllAppsList.java102 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in addPackage() local
105 for (LauncherActivityInfo info : matches) { in addPackage()
131 if (matcher.matches(info, info.componentName)) { in updateDisabledFlags()
153 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName, in updatePackage() local
155 if (matches.size() > 0) { in updatePackage()
162 if (!findActivity(matches, applicationInfo.componentName)) { in updatePackage()
171 for (final LauncherActivityInfo info : matches) { in updatePackage()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
159 onView(withText(WIFI_PREFERENCES)).check(matches(isDisplayed())); in shouldShowWifiPreferences()
169 onView(withText(SAVED_NETWORKS)).check(matches(not(isDisplayed()))); in noSavedNetworks_shouldNotShowSavedNetworksButton()
180 withEffectiveVisibility(VISIBLE))).check(matches(isDisplayed())); in savedNetworksExist_shouldShowSavedNetworksButton()
190 onView(withText(startsWith(WIFI_OFF_MESSAGE))).check(matches(isDisplayed())); in onDisableWifi_seeOffMessage()
211 onView(withText(CONNECTED)).check(matches(isDisplayed())); in onConnected_shouldSeeConnectedMessage()
222 onView(withText(CONNECTED)).check(matches(isDisplayed())); in resumingAp_shouldNotForceUpdateWhenExistingAPsAreListed()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/
DUsbDeviceHandlerResolver.java251 private boolean matches(int clasz, int subclass, int protocol) { in matches() method in UsbDeviceHandlerResolver.DeviceFilter
262 public boolean matches(UsbDevice device) { in matches() method in UsbDeviceHandlerResolver.DeviceFilter
292 if (matches(device.getDeviceClass(), device.getDeviceSubclass(), in matches()
301 if (matches(intf.getInterfaceClass(), intf.getInterfaceSubclass(), in matches()
496 List<Pair<ResolveInfo, DeviceFilter>> matches = getDeviceMatches(device, intent, false); in doHandleResolveHandlers() local
498 Log.d(TAG, "matches size: " + matches.size()); in doHandleResolveHandlers()
500 for (Pair<ResolveInfo, DeviceFilter> info : matches) { in doHandleResolveHandlers()
640 List<Pair<ResolveInfo, DeviceFilter>> matches = new ArrayList<>(); in getDeviceMatches() local
647 matches.add(Pair.create(resolveInfo, filter)); in getDeviceMatches()
650 return matches; in getDeviceMatches()
[all …]
/packages/apps/Settings/tests/app/src/com/android/settings/notification/
DZenModeSettingsIntegrationTest.java5 import static android.support.test.espresso.assertion.ViewAssertions.matches;
41 onView(withText("Automatic rules")).check(matches(isDisplayed())); in testAutomaticRulesAppear()
42 onView(withText("Weekend")).check(matches(isDisplayed())); in testAutomaticRulesAppear()
43 onView(withText("Add more")).check(matches(isDisplayed())).perform(click()); in testAutomaticRulesAppear()
44 onView(withText("Choose rule type")).check(matches(isDisplayed())); in testAutomaticRulesAppear()
DSoundSettingsIntegrationTest.java19 import static android.support.test.espresso.assertion.ViewAssertions.matches;
58 onView(withText(R.string.sound_settings_summary_silent)).check(matches(isDisplayed())); in soundPreferenceShowsCorrectSummaryOnSilentMode()
68 onView(withText(R.string.sound_settings_summary_vibrate)).check(matches(isDisplayed())); in soundPreferenceShowsCorrectSummaryOnVibrateMode()
81 onView(withText(containsString(TRUNCATED_SUMMARY))).check(matches(isDisplayed())); in soundPreferenceShowsCorrectSummaryOnMaxVolume()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DContactsMatchers.java73 public boolean matches(Object o) { in hasCount()
89 public boolean matches(Object o) {
107 public boolean matches(Object o) {
113 if (rowMatcher.matches(cursor)) return true;
131 public boolean matches(Object o) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothNameUtils.java47 if (!matcher.matches()) { in getSetupType()
71 if (!matcher.matches()) { in getColorConfiguration()
80 if (!cm.matches()) { in getColorConfiguration()
99 return matcher.matches(); in isValidName()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java562 ArrayList<ResolveInfo> matches = new ArrayList<ResolveInfo>(); in tryTech() local
580 if (!matches.contains(info.resolveInfo)) { in tryTech()
581 matches.add(info.resolveInfo); in tryTech()
586 if (matches.size() == 1) { in tryTech()
588 ResolveInfo info = matches.get(0); in tryTech()
595 } else if (matches.size() > 1) { in tryTech()
600 matches); in tryTech()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java389 private static void findPhoneNumber(String text, String[] matches) { in findPhoneNumber() argument
394 if (results.length / 2 != matches.length) { in findPhoneNumber()
395 fail("Text '" + text + "': expected " + matches.length in findPhoneNumber()
401 assertEquals(matches[i], seq); in findPhoneNumber()
475 private static void findLinks(String text, URLSpan[] matches, boolean lastDitchGeo) { in findLinks() argument
478 assertEquals(matches.length, spansFound.length); in findLinks()
481 ArrayList<URLSpan> matchesArrayList = new ArrayList<URLSpan>(Arrays.asList(matches)); in findLinks()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java45 final int[] matches = findMatches(queryTokens, suggestionTokens); in formatSuggestion() local
49 Log.d(TAG, "matches = " + matches); in formatSuggestion()
53 final int matchesLen = matches.length; in formatSuggestion()
57 int thisMatch = matches[i]; in formatSuggestion()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
97 .check(matches(withToolbarTitle(is(expected)))); in assertWindowTitle()
124 .check(matches(withText(is(expected)))); in assertDialogText()
216 onView(withId(android.R.id.button1)).check(matches(hasFocus())); in assertDialogOkButtonFocused()
269 return textMatcher.matches(toolbar.getTitle()); in withToolbarTitle()
DMatchers.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
43 vi.check(matches(matcher)); in present()
44 vi.check(matches(isDisplayed())); in present()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java61 return firstLine.matches( in isCombinedDictionary()
107 if (args[0].matches(CombinedFormatUtils.WORD_TAG + "=.*")) { in readDictionaryCombined()
151 } else if (args[0].matches(CombinedFormatUtils.SHORTCUT_TAG + "=.*")) { in readDictionaryCombined()
170 } else if (args[0].matches(CombinedFormatUtils.BIGRAM_TAG + "=.*")) { in readDictionaryCombined()
/packages/apps/Settings/tests/app/src/com/android/settings/
DConfirmLockPasswordTest.java22 import static android.support.test.espresso.assertion.ViewAssertions.matches;
55 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin))); in enterWrongPin_shouldShowErrorMessage()
65 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin))); in enterWrongPin_darkTheme_shouldShowErrorMessage()

123456