Home
last modified time | relevance | path

Searched refs:itemLabel (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java91 private static void asssertContextMenuContainsItemWithEnabledState(String itemLabel, in asssertContextMenuContainsItemWithEnabledState() argument
94 hasDescendant(getVisibleMenuItemMatcher(itemLabel, enabled)))); in asssertContextMenuContainsItemWithEnabledState()
97 private static Matcher<View> getVisibleMenuItemMatcher(String itemLabel, boolean enabled) { in getVisibleMenuItemMatcher() argument
100 hasDescendant(withText(itemLabel)), in getVisibleMenuItemMatcher()
111 public static void assertContextMenuContainsItemEnabled(String itemLabel) { in assertContextMenuContainsItemEnabled() argument
112 asssertContextMenuContainsItemWithEnabledState(itemLabel, true); in assertContextMenuContainsItemEnabled()
121 public static void assertContextMenuContainsItemDisabled(String itemLabel) { in assertContextMenuContainsItemDisabled() argument
122 asssertContextMenuContainsItemWithEnabledState(itemLabel, false); in assertContextMenuContainsItemDisabled()
172 public static boolean isMenuItemClickable(String itemLabel) { in isMenuItemClickable() argument
175 hasDescendant(getVisibleMenuItemMatcher(itemLabel, true)))); in isMenuItemClickable()
[all …]
DFloatingToolbarEspressoUtils.java122 public static void assertFloatingToolbarContainsItem(String itemLabel) { in assertFloatingToolbarContainsItem() argument
124 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
133 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
179 public static void assertFloatingToolbarDoesNotContainItem(String itemLabel) { in assertFloatingToolbarDoesNotContainItem() argument
182 && itemLabel.equals(((MenuItem) view.getTag()).getTitle().toString()); in assertFloatingToolbarDoesNotContainItem()
231 public static void clickFloatingToolbarItem(String itemLabel) { in clickFloatingToolbarItem() argument
233 onFloatingToolBarItem(withText(itemLabel)).check(matches(isDisplayed())); in clickFloatingToolbarItem()
238 onFloatingToolBarItem(withText(itemLabel)).perform(click()); in clickFloatingToolbarItem()
DSuggestionsPopupwindowUtils.java85 public static void assertSuggestionsPopupContainsItem(String itemLabel) { in assertSuggestionsPopupContainsItem() argument
86 onSuggestionsPopupItem(withText(itemLabel)).check(matches(isDisplayed())); in assertSuggestionsPopupContainsItem()
94 public static void clickSuggestionsPopupItem(String itemLabel) { in clickSuggestionsPopupItem() argument
95 onSuggestionsPopupItem(withText(itemLabel)).perform(new SuggestionItemClickAction()); in clickSuggestionsPopupItem()