Home
last modified time | relevance | path

Searched refs:click (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/support/core-ui/tests/java/android/support/v4/view/
DViewPagerWithTabStripTest.java21 import static android.support.test.espresso.action.ViewActions.click;
50 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
54 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
58 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
65 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
69 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Blue"))).perform(click()); in assertStripInteraction()
DViewPagerWithTitleStripTest.java21 import static android.support.test.espresso.action.ViewActions.click;
51 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
55 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
61 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
65 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
69 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Blue"))).perform(click()); in assertStripInteraction()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverActivityTest.java43 import static android.support.test.espresso.action.ViewActions.click;
95 .perform(click()); in twoOptionsAndUserSelectsOne()
97 .perform(click()); in twoOptionsAndUserSelectsOne()
127 onView(withId(R.id.button_once)).perform(click()); in hasLastChosenActivity()
162 .perform(click()); in hasOtherProfileOneOption()
164 .perform(click()); in hasOtherProfileOneOption()
203 .perform(click()); in hasOtherProfileTwoOptionsAndUserSelectsOne()
204 onView(withId(R.id.button_once)).perform(click()); in hasOtherProfileTwoOptionsAndUserSelectsOne()
248 .perform(click()); in hasLastChosenActivityAndOtherProfile()
249 onView(withId(R.id.button_once)).perform(click()); in hasLastChosenActivityAndOtherProfile()
DChooserActivityTest.java42 import static android.support.test.espresso.action.ViewActions.click;
121 .perform(click()); in twoOptionsAndUserSelectsOne()
147 .perform(click()); in updateChooserCountsAndModelAfterUserSelection()
230 .perform(click()); in hasOtherProfileOneOption()
269 .perform(click()); in hasOtherProfileTwoOptionsAndUserSelectsOne()
306 .perform(click()); in hasLastChosenActivityAndOtherProfile()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAlertDialogTest.java20 import static android.support.test.espresso.action.ViewActions.click;
163 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
194 onView(withId(R.id.test_button)).perform(click()); in testMessageString()
209 onView(withId(R.id.test_button)).perform(click()); in testMessageStringPostCreation()
263 onView(withId(R.id.test_button)).perform(click()); in testCustomTitle()
291 onView(withId(R.id.test_button)).perform(click()); in testCustomTitlePostCreation()
332 onView(withId(R.id.test_button)).perform(click()); in testCustomView()
347 onView(withId(R.id.test_button)).perform(click()); in testCustomViewById()
375 onView(withId(R.id.test_button)).perform(click()); in testCustomViewPostCreation()
394 onView(withId(R.id.test_button)).perform(click()); in testCancelCancelableDialog()
[all …]
DAlertDialogCursorTest.java20 import static android.support.test.espresso.action.ViewActions.click;
171 onView(withId(R.id.test_button)).perform(click()); in verifySimpleItemsContent()
197 interactionForClick.inRoot(isDialog()).perform(click()); in verifySimpleItemsContent()
258 onView(withId(R.id.test_button)).perform(click()); in verifyMultiChoiceItemsContent()
278 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
284 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
295 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
376 onView(withId(R.id.test_button)).perform(click()); in verifySingleChoiceItemsContent()
389 interactionForClick.inRoot(isDialog()).perform(click()); in verifySingleChoiceItemsContent()
394 interactionForClick.inRoot(isDialog()).perform(click()); in verifySingleChoiceItemsContent()
[all …]
DBaseKeyEventsTestCase.java20 import static android.support.test.espresso.action.ViewActions.click;
118 onView(withId(R.id.action_search)).perform(click()); in testBackCollapsesActionView()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java79 click(notification, "bug report notification"); in clickOnNotification()
143 public void click(UiObject uiObject, String description) { in click() method in UiBot
145 boolean clicked = uiObject.click(); in click()
166 click(activity, name); in chooseActivity()
DBugreportReceiverTest.java583 mUiBot.click(dontShowAgain, "dont-show-again"); in bugreportFinishedWithWarningTest()
590 mUiBot.click(dontShowAgain, "dont-show-again"); in bugreportFinishedWithWarningTest()
593 mUiBot.click(ok, "ok"); in bugreportFinishedWithWarningTest()
669 mUiBot.click(cancelButton, "cancel_button"); in cancelFromNotification()
1027 mUiBot.click(screenshotButton, "screenshot_button"); in takeScreenshot()
1109 mUiBot.click(detailsButton, "details_button"); in DetailsUi()
1111 mUiBot.click(notification, "notification"); in DetailsUi()
1146 mUiBot.click(nameField, "name_field"); in focusOnName()
1154 mUiBot.click(titleField, "title_field"); // Change focus. in focusAwayFromName()
1160 mUiBot.click(detailsButton, "details_button"); in reOpen()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java22 import static android.support.test.espresso.action.ViewActions.click;
88 onView(withId(R.id.textview)).perform(click()); in testOnTextContextMenuItem()
106 onView(withId(R.id.textview)).perform(click()); in testSelectionActionMode()
128 onView(withId(R.id.textview)).perform(click()); in testInsertionActionMode()
136 onHandleView(com.android.internal.R.id.insertion_handle).perform(click()); in testInsertionActionMode()
157 onView(withId(R.id.textview)).perform(click()); in testSuggestionItems()
195 onView(withId(R.id.textview)).perform(click()); in testMisspelled()
222 onView(withId(R.id.textview)).perform(click()); in testEasyCorrect()
289 onView(withId(R.id.textview)).perform(click()); in testTextAppearanceInSuggestionsPopup()
DEditorCursorTest.java20 import static android.support.test.espresso.action.ViewActions.click;
76 onView(sameInstance(mEditText)).perform(click()); in setUp()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DPopupMenuTest.java20 import static android.support.test.espresso.action.ViewActions.click;
127 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
314 onView(withId(R.id.test_button)).perform(click());
348 onView(withId(R.id.test_button)).perform(click());
372 onView(withId(R.id.test_button)).perform(click());
428 onView(withId(R.id.test_button)).perform(click());
435 .perform(click());
451 onView(withId(R.id.test_button)).perform(click());
477 onView(withId(R.id.test_button)).perform(click());
484 .perform(click());
[all …]
DAppCompatSpinnerTest.java19 import static android.support.test.espresso.action.ViewActions.click;
69 onView(withId(spinnerId)).perform(click()); in verifySpinnerPopupTheming()
89 onView(withText(itemText)).perform(click()); in verifySpinnerPopupTheming()
DListPopupWindowTest.java19 import static android.support.test.espresso.action.ViewActions.click;
112 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
141 onView(withId(R.id.test_button)).perform(click()); in testAnchoring()
166 onView(withId(R.id.test_button)).perform(click()); in testDismissalViaAPI()
194 onView(withId(R.id.test_button)).perform(click()); in testDismissalViaTouch()
270 onView(withId(R.id.test_button)).perform(click()); in testItemClickViaEvent()
280 .perform(click()); in testItemClickViaEvent()
297 onView(withId(R.id.test_button)).perform(click()); in testItemClickViaAPI()
/frameworks/support/design/tests/src/android/support/design/widget/
DBottomNavigationViewTest.java21 import static android.support.test.espresso.action.ViewActions.click;
130 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener()
139 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener()
149 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener()
163 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener()
229 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationReselectionListener()
237 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationReselectionListener()
253 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationReselectionListener()
264 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationReselectionListener()
277 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationReselectionListener()
[all …]
DBottomSheetDialogTest.java85 .perform(ViewActions.click()); in testBasicDialogSetup()
113 .perform(ViewActions.click()); in testTouchInside()
144 .perform(ViewActions.click()); in testClickContent()
192 .perform(ViewActions.click()); in testNonCancelableDialog()
DNavigationViewTest.java40 import static android.support.test.espresso.action.ViewActions.click;
423 .perform(click()) in testHeaderState()
459 .perform(click()) // Check it in testActionViewState()
489 isDescendantOfA(withId(R.id.start_drawer)))).perform(click()); in testNavigationSelectionListener()
501 isDescendantOfA(withId(R.id.start_drawer)))).perform(click()); in testNavigationSelectionListener()
515 isDescendantOfA(withId(R.id.start_drawer)))).perform(click()); in testNavigationSelectionListener()
593 isDescendantOfA(withId(R.id.start_drawer)))).perform(click()); in testCheckedAppearance()
610 isDescendantOfA(withId(R.id.start_drawer)))).perform(click()); in testCheckedAppearance()
644 onView(menuItemMatcher).perform(click()); in testActionLayout()
655 onView(customItemMatcher).perform(click()); in testActionLayout()
DSnackbarTest.java21 import static android.support.test.espresso.action.ViewActions.click;
194 click(), in testDismissViaActionClick()
320 onView(withId(R.id.snackbar_action)).perform(click()); in testActionClickListener()
DBottomSheetBehaviorTouchTest.java94 .perform(ViewActions.click()) // Click outside the bottom sheet in testTouchCoordinatorLayout()
DFloatingActionButtonTest.java36 import static android.support.test.espresso.action.ViewActions.click;
257 onView(withId(R.id.fab_standard)).perform(click()); in testOnClickListener()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java20 import static android.support.test.espresso.action.ViewActions.click;
101 .perform(click()); in toggleOverflow()
226 onFloatingToolBarItem(withText(itemLabel)).perform(click()); in clickFloatingToolbarItem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileBaseView.java108 init(v -> tile.click(), v -> tile.secondaryClick(), view -> { in init()
114 public void init(OnClickListener click, OnClickListener secondaryClick, in init() argument
116 setOnClickListener(click); in init()
DQSTileView.java120 public void init(OnClickListener click, OnClickListener secondaryClick, in init() argument
122 super.init(click, secondaryClick, longClick); in init()
/frameworks/support/
DREADME.md28 If you get “Unregistered VCS root detected” click “Add root” to enable git integration for Android …
42 2. Right-click on a test class or @Test method name and select `Run FooBarTest`
47 3. Right-click on the directory and select `Run android.support.foobar`
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java44 PointF click = new PointF(10, 20); in testGestureShorterThanSampleRate_producesStartAndEnd() local
46 clickPath.moveTo(click.x, click.y); in testGestureShorterThanSampleRate_producesStartAndEnd()
57 numEndsOfStroke(0), hasPoint(click))); in testGestureShorterThanSampleRate_producesStartAndEnd()
59 numEndsOfStroke(1), hasPoint(click))); in testGestureShorterThanSampleRate_producesStartAndEnd()

12