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

123456

/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/search/
H A DDefaultAppSearchAlgorithmTest.java40 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("white cow"), "cow", MATCHER));
41 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whiteCow"), "cow", MATCHER));
42 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whiteCOW"), "cow", MATCHER));
43 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecowCOW"), "cow", MATCHER));
44 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("white2cow"), "cow", MATCHER));
46 assertFalse(DefaultAppSearchAlgorithm.matches(getInfo("whitecow"), "cow", MATCHER));
47 assertFalse(DefaultAppSearchAlgorithm.matches(getInfo("whitEcow"), "cow", MATCHER));
49 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecowCow"), "cow", MATCHER));
50 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecow cow"), "cow", MATCHER));
51 assertFalse(DefaultAppSearchAlgorithm.matches(getInf
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DItemInfoMatcher.java37 public abstract boolean matches(ItemInfo info, ComponentName cn); method in class:ItemInfoMatcher
40 * Filters {@param infos} to those satisfying the {@link #matches(ItemInfo, ComponentName)}.
48 if (cn != null && matches(info, cn)) {
55 if (cn != null && matches(s, cn)) {
62 if (cn != null && matches(info, cn)) {
77 public boolean matches(ItemInfo info, ComponentName cn) {
78 return that.matches(info, cn) || matcher.matches(info, cn);
90 public boolean matches(ItemInfo info, ComponentName cn) {
91 return that.matches(inf
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DMatchers.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
43 vi.check(matches(matcher));
44 vi.check(matches(isDisplayed()));
47 // Catch AssertionFailedError because vi.check(matches(isDisplayed())) throws that if
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DBluetoothNameUtils.java30 * matches string that
47 if (!matcher.matches()) {
71 if (!matcher.matches()) {
80 if (!cm.matches()) {
93 * Check if the name matches the expected format for a hub Bluetooth name.
95 * @return true if the pattern matches, false if it doesn't.
99 return matcher.matches();
/packages/apps/Settings/tests/app/src/com/android/settings/notification/
H A DZenModeSettingsIntegrationTest.java5 import static android.support.test.espresso.assertion.ViewAssertions.matches;
41 onView(withText("Automatic rules")).check(matches(isDisplayed()));
42 onView(withText("Weekend")).check(matches(isDisplayed()));
43 onView(withText("Add more")).check(matches(isDisplayed())).perform(click());
44 onView(withText("Choose rule type")).check(matches(isDisplayed()));
H A DSoundSettingsIntegrationTest.java19 import static android.support.test.espresso.assertion.ViewAssertions.matches;
58 onView(withText(R.string.sound_settings_summary_silent)).check(matches(isDisplayed()));
68 onView(withText(R.string.sound_settings_summary_vibrate)).check(matches(isDisplayed()));
81 onView(withText(containsString(TRUNCATED_SUMMARY))).check(matches(isDisplayed()));
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharMatcher.java34 * this.matches(c)} returns {@code true}".
132 @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) {
377 * Returns a {@code char} matcher that matches only one specified character.
381 @Override public boolean matches(cha
534 public abstract boolean matches(char c); method in class:CharMatcher
578 @Override public boolean matches(char c) { method in class:CharMatcher.And
609 @Override public boolean matches(char c) { method in class:CharMatcher.Or
[all...]
/packages/apps/Settings/tests/app/src/com/android/settings/
H A DManagedAccessSettingsLowRamTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
61 onView(withText(label)).check(matches(isDisplayed()));
74 onView(withText(label)).check(matches(isDisplayed()));
88 onView(withText(label)).check(matches(isDisplayed()));
102 onView(withText(label)).check(matches(isDisplayed()));
116 onView(withText(label)).check(matches(isDisplayed()));
/packages/apps/Settings/tests/app/src/com/android/settings/password/
H A DSetupChooseLockPasswordAppTest.java22 import static android.support.test.espresso.assertion.ViewAssertions.matches;
62 .check(matches(withText(R.string.skip_label)))
63 .check(matches(isDisplayed()))
65 onView(withId(android.R.id.button1)).check(matches(isDisplayed())).perform(click());
73 onView(withId(R.id.clear_button)).check(matches(
82 onView(withId(R.id.clear_button)).check(matches(isDisplayed()))
83 .check(matches(not(isEnabled())));
93 onView(withId(R.id.clear_button)).check(matches(isDisplayed()));
H A DChooseLockPasswordTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
59 onView(withId(R.id.clear_button)).check(matches(
68 onView(withId(R.id.clear_button)).check(matches(isDisplayed()))
69 .check(matches(not(isEnabled())));
79 onView(withId(R.id.clear_button)).check(matches(isDisplayed()));
H A DConfirmLockPasswordTest.java22 import static android.support.test.espresso.assertion.ViewAssertions.matches;
57 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin)));
67 onView(withId(R.id.errorText)).check(matches(withText(R.string.lockpassword_invalid_pin)));
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
H A DContactsMatchers.java73 public boolean matches(Object o) {
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/Contacts/src/com/android/contacts/quickcontact/
H A DResolveCache.java135 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent,
140 final int size = matches.size();
142 bestResolve = matches.get(0);
144 bestResolve = getBestResolve(intent, matches);
168 protected ResolveInfo getBestResolve(Intent intent, List<ResolveInfo> matches) { argument
182 for (ResolveInfo info : matches) {
193 return firstSystem != null ? firstSystem : matches.get(0);
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
H A DSavedNetworkSettingsTest.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
72 onView(withText(resourceId(STRING, WIFI_ADD_NETWORK))).check(matches(isDisplayed()))
74 onView(withText(resourceId(STRING, WIFI_NETWORK_LABEL))).check(matches(isDisplayed()));
H A DWifiSettingsUiTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
192 matches(isDisplayed()));
203 matches(not(isDisplayed())));
225 withEffectiveVisibility(VISIBLE))).check(matches(isDisplayed()));
236 matches(isDisplayed()));
259 matches(isDisplayed()));
271 matches(isDisplayed()));
305 onView(withText(TEST_SSID)).check(matches(isDisplayed()));
308 onView(withText(TEST_SSID)).check(matches(isDisplayed()));
311 onView(withText(TEST_SSID)).check(matches(isDisplaye
[all...]
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
H A DFuzzyPhoneNumberMatcher.java31 public static boolean matches(@NonNull String lhs, @NonNull String rhs) { method in class:FuzzyPhoneNumberMatcher
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DLevenshteinSuggestionFormatter.java45 final int[] matches = findMatches(queryTokens, suggestionTokens);
49 Log.d(TAG, "matches = " + matches);
53 final int matchesLen = matches.length;
57 int thisMatch = matches[i];
78 * position i means that target token i matches source token n. A negative value means that
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
H A DWifiTetherSettingsTest.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
75 onView(withText("Network name")).check(matches(isDisplayed()));
76 onView(withText("Password")).check(matches(isDisplayed()));
77 onView(withText("Select AP Band")).check(matches(isDisplayed()));
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
H A DNameDistance.java110 int matches = 0;
127 matches++;
133 if (matches == 0) {
151 float m = matches;
H A DRawContactMatcher.java73 // Returned value when we found multiple matches and that was not allowed
101 * with the former rather than the latter. This is why "reverse" matches have slightly lower
102 * scores than direct matches.
310 final List<MatchScore> matches = new ArrayList<>();
318 matches.add(score);
325 matches.add(score);
328 return matches;
332 * Returns matches in the order of descending score.
336 List<MatchScore> matches = mScoreList.subList(0, mScoreCount);
337 Collections.sort(matches);
[all...]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
H A DTermsActivityTest.java21 import static android.support.test.espresso.assertion.ViewAssertions.matches;
100 onView(withText(HEADER_0_TOP)).check(matches(isDisplayed()));
102 onView(withText(d.mHeader)).check(matches(isDisplayed()));
110 onView(withText(CONTENT_1)).check(matches(isDisplayed()));
115 onView(withText(CONTENT_3)).check(matches(isDisplayed()));
124 onView(withText(CONTENT_1)).check(matches(isDisplayed()));
128 onView(withId(R.id.disclaimer_content)).check(matches(withText("item1\nitem2\n")));
137 matches(not(isDisplayed()));
/packages/apps/Settings/tests/app/src/com/android/settings/search/
H A DSearchFragmentEspressoTest.java32 import static android.support.test.espresso.assertion.ViewAssertions.matches;
49 .check(matches(withClassName(containsString(SearchView.class.getName()))));
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
H A DManageApplicationsLaunchTest.java31 import static android.support.test.espresso.assertion.ViewAssertions.matches;
54 onView(allOf(withText("Calculator"))).check(matches(isDisplayed()));
/packages/apps/StorageManager/tests/app/src/com/android/storagemanager/deletionhelper/
H A DDeletionHelperActivityTest.java20 import static android.support.test.espresso.assertion.ViewAssertions.matches;
43 onView(withText(R.string.deletion_helper_apps_group_title)).check(matches(isDisplayed()));
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAllAppsList.java90 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName,
93 for (LauncherActivityInfo info : matches) {
121 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName,
123 if (matches.size() > 0) {
131 if (!findActivity(matches, component, user)) {
141 int count = matches.size();
143 final LauncherActivityInfo info = matches.get(i);

Completed in 2017 milliseconds

123456