Home
last modified time | relevance | path

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

12345678

/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/packages/DocumentsUI/tests/src/com/android/documentsui/
DRenameDocumentUiTest.java79 bots.main.menuRename().click(); in testRenameFile_OkButton()
83 bots.main.findDialogOkButton().click(); in testRenameFile_OkButton()
94 bots.main.menuRename().click(); in testRenameFile_Enter()
108 bots.main.menuRename().click(); in testRenameFile_Cancel()
112 bots.main.findDialogCancelButton().click(); in testRenameFile_Cancel()
126 bots.main.menuRename().click(); in testRenameDir()
141 bots.main.menuRename().click(); in testRename_NameExists()
DFilesActivityUiTest.java119 bots.main.menuNewFolder().click(); in testCreateDirectory()
134 bots.main.menuDelete().click(); in testDeleteDocument()
136 bots.main.findDialogOkButton().click(); in testDeleteDocument()
148 bots.main.menuDelete().click(); in testDeleteDocument_Cancel()
150 bots.main.findDialogCancelButton().click(); in testDeleteDocument_Cancel()
217 doc.click(); in testDownload_RetryUnsuccessful()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAlertDialogTest.java50 import static android.support.test.espresso.action.ViewActions.click;
128 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
159 onView(withId(R.id.test_button)).perform(click()); in testMessageString()
174 onView(withId(R.id.test_button)).perform(click()); in testMessageStringPostCreation()
228 onView(withId(R.id.test_button)).perform(click()); in testCustomTitle()
256 onView(withId(R.id.test_button)).perform(click()); in testCustomTitlePostCreation()
297 onView(withId(R.id.test_button)).perform(click()); in testCustomView()
312 onView(withId(R.id.test_button)).perform(click()); in testCustomViewById()
340 onView(withId(R.id.test_button)).perform(click()); in testCustomViewPostCreation()
359 onView(withId(R.id.test_button)).perform(click()); in testCancelCancelableDialog()
[all …]
DAlertDialogCursorTest.java44 import static android.support.test.espresso.action.ViewActions.click;
153 onView(withId(R.id.test_button)).perform(click()); in verifySimpleItemsContent()
179 interactionForClick.inRoot(isDialog()).perform(click()); in verifySimpleItemsContent()
241 onView(withId(R.id.test_button)).perform(click()); in verifyMultiChoiceItemsContent()
261 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
267 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
278 interactionForClick.inRoot(isDialog()).perform(click()); in verifyMultiChoiceItemsContent()
359 onView(withId(R.id.test_button)).perform(click()); in verifySingleChoiceItemsContent()
372 interactionForClick.inRoot(isDialog()).perform(click()); in verifySingleChoiceItemsContent()
377 interactionForClick.inRoot(isDialog()).perform(click()); in verifySingleChoiceItemsContent()
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java67 click(notification, "bug report notification"); in clickOnNotification()
121 public void click(UiObject uiObject, String description) { in click() method in UiBot
123 boolean clicked = uiObject.click(); in click()
167 click(activity, name); in chooseActivity()
182 click(justOnce, "Just Once"); in clickJustOnce()
DBugreportReceiverTest.java239 mUiBot.click(cancelButton, "cancel_button"); in testProgress_cancel()
524 mUiBot.click(dontShowAgain, "dont-show-again"); in bugreportFinishedWithWarningTest()
531 mUiBot.click(dontShowAgain, "dont-show-again"); in bugreportFinishedWithWarningTest()
534 mUiBot.click(ok, "ok"); in bugreportFinishedWithWarningTest()
905 mUiBot.click(screenshotButton, "screenshot_button"); in takeScreenshot()
961 mUiBot.click(detailsButton, "details_button"); in DetailsUi()
963 mUiBot.click(notification, "notification"); in DetailsUi()
998 mUiBot.click(nameField, "name_field"); in focusOnName()
1006 mUiBot.click(titleField, "title_field"); // Change focus. in focusAwayFromName()
1013 mUiBot.click(detailsButton, "details_button"); in reOpen()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java38 import static android.support.test.espresso.action.ViewActions.click;
70 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag()
94 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag_reverse()
105 onView(withId(R.id.textview)).perform(click()); in testContextMenu()
156 onView(withId(R.id.textview)).perform(click()); in testDragAndDrop()
173 onView(withId(R.id.textview)).perform(click()); in testDragAndDrop_longClick()
190 onView(withId(R.id.textview)).perform(click()); in testSelectTextByLongClick()
215 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDoubleClick()
240 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDoubleClickAndDrag()
251 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDoubleClickAndDrag_reverse()
[all …]
DTextViewActivityTest.java38 import static android.support.test.espresso.action.ViewActions.click;
78 onView(withId(R.id.textview)).perform(click()); in testTypedTextIsOnScreen()
87 onView(withId(R.id.textview)).perform(click()); in testPositionCursorAtTextAtIndex()
101 onView(withId(R.id.textview)).perform(click()); in testPositionCursorAtTextAtIndex_arabic()
122 onView(withId(R.id.textview)).perform(click()); in testPositionCursorAtTextAtIndex_devanagari()
136 onView(withId(R.id.textview)).perform(click()); in testLongPressToSelect()
147 onView(withId(R.id.textview)).perform(click()); in testLongPressEmptySpace()
160 onView(withId(R.id.textview)).perform(click()); in testLongPressAndDragToSelect()
171 onView(withId(R.id.textview)).perform(click()); in testDragAndDrop()
193 onView(withId(R.id.textview)).perform(click()); in testDoubleTapToSelect()
[all …]
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()
/frameworks/base/docs/html/training/basics/firstapp/
Drunning-app.jd61 <li>In Android Studio, select your project and click
66 select your device, and click <strong>OK</strong>.</li>
85 <li>On the AVD Manager main screen, click <strong>Create Virtual Device</strong>.</li>
87 then click <strong>Next</strong>.
90 click <strong>Next</strong>.
93 settings as they are), and then click <strong>Finish</strong>.
102 <li>In <strong>Android Studio</strong>, select your project and click
107 select your emulator and click <strong>OK</strong>.</li>
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DPopupMenuTest.java20 import static android.support.test.espresso.action.ViewActions.click;
106 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
269 onView(withId(R.id.test_button)).perform(click());
292 onView(withId(R.id.test_button)).perform(click());
316 onView(withId(R.id.test_button)).perform(click());
372 onView(withId(R.id.test_button)).perform(click());
379 .perform(click());
395 onView(withId(R.id.test_button)).perform(click());
421 onView(withId(R.id.test_button)).perform(click());
428 .perform(click());
[all …]
DListPopupWindowTest.java43 import static android.support.test.espresso.action.ViewActions.click;
98 onView(withId(R.id.test_button)).perform(click()); in testBasicContent()
126 onView(withId(R.id.test_button)).perform(click()); in testAnchoring()
151 onView(withId(R.id.test_button)).perform(click()); in testDismissalViaAPI()
174 onView(withId(R.id.test_button)).perform(click()); in testDismissalViaTouch()
250 onView(withId(R.id.test_button)).perform(click()); in testItemClickViaEvent()
260 .perform(click()); in testItemClickViaEvent()
277 onView(withId(R.id.test_button)).perform(click()); in testItemClickViaAPI()
DAppCompatSpinnerTest.java30 import static android.support.test.espresso.action.ViewActions.click;
67 onView(withId(spinnerId)).perform(click()); in verifySpinnerPopupTheming()
87 onView(withText(itemText)).perform(click()); in verifySpinnerPopupTheming()
/frameworks/base/docs/html/guide/topics/ui/controls/
Dcheckbox.jd26 separately and you must register a click listener for each one.</p>
31 on-click event.</p>
33 <p>To define the click event handler for a checkbox, add the <code><a
37 to a click event. The {@link android.app.Activity} hosting the layout must then implement the
62 click event for both checkboxes:</p>
Dradiobutton.jd35 android.widget.RadioButton} object receives an on-click event.</p>
37 <p>To define the click event handler for a button, add the <code><a
41 to a click event. The {@link android.app.Activity} hosting the layout must then implement the
69 click event for both radio buttons:</p>
Dbutton.jd73 an on-click event.</p>
75 <p>To define the click event handler for a button, add the {@link
78 to a click event. The {@link android.app.Activity} hosting the layout must then implement the
95 the click event:</p>
100 // Do something in response to button click
116 <p>You can also declare the click event handler programmatically rather than in an XML layout. This
118 declare the click behavior in a {@link android.app.Fragment} subclass.</p>
128 // Do something in response to button click
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
DUiBot.java98 searchView.click(); in openSearchView()
112 obj.click(); in openOverflowMenu()
124 mode.click(); in switchViewMode()
126 menuListMode().click(); in switchViewMode()
DRootsListBot.java56 new UiObject(hamburger).click(); in findRoot()
68 findRoot(label).click(); in openRoot()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java20 import static android.support.test.espresso.action.ViewActions.click;
93 .perform(click()); in toggleOverflow()
152 onFloatingToolBarItem(withText(itemLabel)).perform(click()); in clickFloatingToolbarItem()
/frameworks/support/design/tests/src/android/support/design/widget/
DTextInputLayoutTest.java25 import static android.support.test.espresso.action.ViewActions.click;
111 onView(withId(R.id.text_input_password_toggle)).perform(click()); in testPasswordToggleClick()
149 onView(withId(R.id.text_input_password_toggle)).perform(click()); in testPasswordToggleDisableWhenVisible()
161 onView(withId(R.id.textinput_edittext)).perform(click()); in testSetEnabledFalse()
/frameworks/base/docs/html/samples/
Dindex.jd13 share a link to a specific line you can double-click it to the get the URL.</p>
26 <li>Select a sample to import and click <strong>Next</strong>.</li>
47 <p>If you want to download a complete project, just click on any source file in the project and
48 click the <strong>Download</strong> link in the upper right of the source page.</p>
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DDocumentHolderTest.java56 click(); in testClickActivates()
65 public void click() { in click() method in DocumentHolderTest
DMultiSelectManagerTest.java83 click(11); in testMouseClick_NoPosition_ClearsSelection()
84 click(RecyclerView.NO_POSITION); in testMouseClick_NoPosition_ClearsSelection()
341 private void click(int position) { in click() method in MultiSelectManagerTest
342 mManager.onSingleTapUp(TestInputEvent.click(position)); in click()

12345678