Home
last modified time | relevance | path

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

1234567

/aosp12/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
H A DPreviewActivityTest.java19 import static androidx.test.espresso.action.ViewActions.click;
150 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Success_HomeScreen()
178 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Success_LockScreen()
207 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
240 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog()
279 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Fails_LockScreen_ShowsErrorDialog()
319 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_Fails_BothHomeAndLock_ShowsErrorDialog()
358 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_CropsAndScalesWallpaper()
383 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_FailsCroppingAndScalingWallpaper_ShowsErrorDialog()
399 onView(withId(R.id.action_apply)).perform(click()); in testClickSetWallpaper_ShowsDestinationDialog()
[all …]
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/preference/
H A DPreferenceTest.java20 import static androidx.test.espresso.action.ViewActions.click;
115 onView(withText(mEntries[0])).perform(click()); in testListPreference()
140 onView(withText(mEntries[1])).perform(click()); in testListPreference()
222 onView(withText(mEntries[0])).perform(click()); in testMultiSelectListPreference()
223 onView(withText(mEntries[2])).perform(click()); in testMultiSelectListPreference()
539 onView(withText(mEntries[2])).perform(click()); in testDropDownPreference()
670 0)).perform(click()); in testTwoActionIconPreference()
741 0)).perform(click()); in testTwoActionIconPreference_clickableWhileDisabled()
858 0)).perform(click()); in testTwoActionTextPreference_clickableWhileDisabled()
884 0)).perform(click()); in testTwoActionSwitchPreference()
[all …]
H A DNonFullscreenPreferenceFragmentTest.java21 import static androidx.test.espresso.action.ViewActions.click;
84 onView(withText(MULTI_SELECT_LIST_PREFERENCE_TITLE)).perform(click()); in test_fullscreen_changesTitle()
89 onView(withContentDescription(BACK_CONTENT_DESCRIPTION)).perform(click()); in test_fullscreen_changesTitle()
91 onView(withText(LIST_PREFERENCE_TITLE)).perform(click()); in test_fullscreen_changesTitle()
96 onView(withContentDescription(BACK_CONTENT_DESCRIPTION)).perform(click()); in test_fullscreen_changesTitle()
109 onView(withText(MULTI_SELECT_LIST_PREFERENCE_TITLE)).perform(click()); in test_nonFullscreen_doesntChangeTitle()
117 onView(withText(LIST_PREFERENCE_TITLE)).perform(click()); in test_nonFullscreen_doesntChangeTitle()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DUiBot.java20 import static androidx.test.espresso.action.ViewActions.click;
129 obj.click(); in openOverflowMenu()
160 listMode.click(); in switchToListMode()
175 gridMode.click(); in switchToGridMode()
190 onView(withId(id)).perform(click()); in clickToolbarItem()
194 onView(ACTIONBAR_OVERFLOW).perform(click()); in clickNewFolder()
197 onView(withText("New folder")).perform(click()); in clickNewFolder()
201 onView(ACTIONBAR_OVERFLOW).perform(click()); in clickActionbarOverflowItem()
203 onView(withText(label)).perform(click()); in clickActionbarOverflowItem()
207 onView(TOOLBAR_OVERFLOW).perform(click()); in clickToolbarOverflowItem()
[all …]
H A DSortBot.java20 import static androidx.test.espresso.action.ViewActions.click;
113 onView(withText(mContext.getString(labelRes))).perform(click()); in sortByMenu()
121 onView(withText(mContext.getString(labelRes))).perform(click()); in sortByMenu()
138 onView(cellMatcher).perform(click()); in sortBy()
143 onView(cellMatcher).perform(click()); in sortBy()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
H A DToolbarTabDeprecatedTest.java19 import static androidx.test.espresso.action.ViewActions.click;
80 onView(withText("Tab 1")).perform(click()); in test_addTab_works()
81 onView(withText("Tab 1")).perform(click()); in test_addTab_works()
82 onView(withText("Tab 2")).perform(click()); in test_addTab_works()
83 onView(withText("Tab 1")).perform(click()); in test_addTab_works()
84 onView(withText("Tab 2")).perform(click()); in test_addTab_works()
85 onView(withText("Tab 1")).perform(click()); in test_addTab_works()
86 onView(withText("Tab 1")).perform(click()); in test_addTab_works()
H A DToolbarTabTest.java19 import static androidx.test.espresso.action.ViewActions.click;
102 onView(withText("Tab 1")).perform(click()); in test_setTabs_areShown()
103 onView(withText("Tab 1")).perform(click()); in test_setTabs_areShown()
104 onView(withText("Tab 2")).perform(click()); in test_setTabs_areShown()
105 onView(withText("Tab 1")).perform(click()); in test_setTabs_areShown()
106 onView(withText("Tab 2")).perform(click()); in test_setTabs_areShown()
107 onView(withText("Tab 1")).perform(click()); in test_setTabs_areShown()
108 onView(withText("Tab 1")).perform(click()); in test_setTabs_areShown()
H A DToolbarMenuItemsTest.java19 import static androidx.test.espresso.action.ViewActions.click;
117 onView(withText("Button!")).perform(click()); in menuItems_text_shouldShow()
164 onView(withText("Test!")).perform(click()); in menuItems_textAndIcon_shouldShow()
213 onView(isSwitch()).perform(click()); in menuItems_switch_shouldShow()
238 onView(withText("Test title!")).perform(click()); in menuItems_overflowText_shouldWork()
244 onView(withText("Test title 2!")).perform(click()); in menuItems_overflowText_shouldWork()
279 onView(withText("Test title!")).perform(click()); in menuItems_overflowIconAndText_shouldWork()
392 onView(withText("Test!")).perform(click()); in menuItems_setEnabled_shouldDisable()
398 onView(withText("Test!")).perform(click()); in menuItems_setEnabled_shouldDisable()
440 onView(withText("Button!")).perform(click()); in menuItems_changeOnClickListener_shouldCallNewListener()
[all …]
/aosp12/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/
H A DIndividualPickerActivityTest.java19 import static androidx.test.espresso.action.ViewActions.click;
188 onView(withId(R.id.action_rotation)).perform(click()); in testClickDailyRefreshAction_ShowsStartRotationDialog()
203 onView(withId(R.id.action_rotation)).perform(click()); in testStartRotationDialogUiComponents()
234 onView(withId(R.id.action_rotation)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_StartsRotation()
236 onView(withText(android.R.string.ok)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_StartsRotation()
259 onView(withId(R.id.action_rotation)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_Fails_ShowsErrorDialog()
260 onView(withText(android.R.string.ok)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_Fails_ShowsErrorDialog()
284 onView(withId(R.id.action_rotation)).perform(click()); in testStartRotation_WifiOnly_FailOnce_Retry()
313 onView(withId(R.id.action_rotation)).perform(click()); in testShowStartRotationDialog_TurnOffWifiOnly_ClickOK_StartsRotation()
338 onView(withId(R.id.action_rotation)).perform(click()); in testStartRotation_WifiOnly_FailOnce_Retry_ShouldStillHaveWifiTurnedOff()
[all …]
/aosp12/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
H A DMoreWirelessSettingsTest2.java208 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
245 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); in testAddNetworkMenu_IpSettings()
561 .click(); in verifyKeepWiFiOnDuringSleep()
563 .text(settingToBeVerified)), TIMEOUT).click(); in verifyKeepWiFiOnDuringSleep()
587 .click(); in verifyNetworkNotificationsOnOrOff()
608 .click(); in verifyWiFiOnOrOff()
661 .click(); in loadAddNetworkMenu()
681 .clazz(SPINNER_CLASS)).click(); in selectSecurityOption()
689 .click(); in selectEAPMethod()
697 .click(); in selectUserCertificateOption()
[all …]
H A DStorageWizardTest.java90 waitFor(By.res(PACKAGE, "storage_wizard_init_internal")).click(); in testInternal()
94 waitFor(By.clickable(true).text(containsIgnoringCase("Format"))).click(); in testInternal()
98 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal()
102 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal()
106 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal()
118 waitFor(By.res(PACKAGE, "storage_wizard_init_external")).click(); in testExternal()
122 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testExternal()
H A DNotificationSettingsTests.java78 configureNotifications.click(); in testNotificationsSettingsListForCalculator()
82 appNotifications.click(); in testNotificationsSettingsListForCalculator()
96 configureNotifications.click(); in testNotificationsSettingsListForPhone()
100 appNotifications.click(); in testNotificationsSettingsListForPhone()
111 phone.click(); in testNotificationsSettingsListForPhone()
114 incomingCalls.click(); in testNotificationsSettingsListForPhone()
153 view.click(); in launchAppsSettings()
H A DAppsSettingsTests.java88 calculator.click(); in testAppSettingsListForCalculator()
103 calculator.click(); in testDisablingAndEnablingSystemApp()
110 disableButton.click(); in testDisablingAndEnablingSystemApp()
114 Until.findObject(By.text("DISABLE APP")), TIMEOUT).click(); in testDisablingAndEnablingSystemApp()
119 enableButton.click(); in testDisablingAndEnablingSystemApp()
H A DAppsSettingsRetainFilterTests.java65 calculator.click(); in testDisablingSystemAppAndRotateDevice()
71 disableButton.click(); in testDisablingSystemAppAndRotateDevice()
78 dialogDisableButton.click(); in testDisablingSystemAppAndRotateDevice()
91 spinnerHeader.click(); in testDisablingSystemAppAndRotateDevice()
96 optionDisabledApps.click(); in testDisablingSystemAppAndRotateDevice()
H A DLocationSettingsTests.java77 locationTitle.click(); in testLoadingLocationSettings()
162 mDevice.wait(Until.findObject(By.text("Mode")), TIMEOUT).click(); in verifyLocationSettingsMode()
167 mDevice.wait(Until.findObject(By.text(textMode)), TIMEOUT).click(); in verifyLocationSettingsMode()
170 mDevice.wait(Until.findObject(By.desc("Navigate up")), TIMEOUT).click(); in verifyLocationSettingsMode()
201 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, "switch_widget")), TIMEOUT).click(); in verifyLocationSettingsOnOrOff()
230 (By.text("AGREE")), TIMEOUT).click(); in dismissAlertDialogs()
237 previousChoiceYesButton.click(); in dismissAlertDialogs()
/aosp12/packages/apps/Car/Dialer/tests/instrutests/src/com/android/car/dialer/integration/
H A DDialpadTest.java22 import static androidx.test.espresso.action.ViewActions.click;
109 onView(withText(R.string.dialpad_title)).check(matches(isDisplayed())).perform(click()); in launchDialpad()
126 onView(withText(R.string.dialpad_title)).check(matches(isDisplayed())).perform(click()); in dialTest()
127 onView(withId(R.id.five)).perform(bringToFrontAction()).perform(click()); in dialTest()
128 onView(withId(R.id.one)).perform(bringToFrontAction()).perform(click()).perform(click()); in dialTest()
149 onView(withText(R.string.contacts_title)).perform(click()); in typeDownTest()
155 onView(withText(R.string.dialpad_title)).check(matches(isDisplayed())).perform(click()); in typeDownTest()
156 onView(withId(R.id.five)).perform(bringToFrontAction()).perform(click()); in typeDownTest()
159 onView(withId(R.id.contact_result)).perform(click()); in typeDownTest()
H A DFavoriteContactTest.java22 import static androidx.test.espresso.action.ViewActions.click;
115 onView(withText(R.string.favorites_title)).check(matches(isDisplayed())).perform(click()); in setup()
143 .perform(RecyclerViewActions.actionOnItemAtPosition(1, click())); in verifyPhoneFavorite()
163 .perform(RecyclerViewActions.actionOnItemAtPosition(1, click())); in addLocalFavorite()
171 .perform(RecyclerViewActions.actionOnItemAtPosition(0, click())); in addLocalFavorite()
174 onView(withText(R.string.confirm_add_favorites_dialog)).inRoot(isDialog()).perform(click()); in addLocalFavorite()
186 .perform(RecyclerViewActions.actionOnItemAtPosition(1, click())); in addLocalFavorite()
190 onView(withText(R.string.contacts_title)).check(matches(isDisplayed())).perform(click()); in addLocalFavorite()
191 onView(withId(R.id.show_contact_detail_id)).perform(click()); in addLocalFavorite()
197 onView(withText(R.string.favorites_title)).check(matches(isDisplayed())).perform(click()); in addLocalFavorite()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DResolverActivityTest.java113 .perform(click()); in twoOptionsAndUserSelectsOne()
115 .perform(click()); in twoOptionsAndUserSelectsOne()
255 .perform(click()); in hasOtherProfileOneOption()
257 .perform(click()); in hasOtherProfileOneOption()
297 .perform(click()); in hasOtherProfileTwoOptionsAndUserSelectsOne()
343 .perform(click()); in hasLastChosenActivityAndOtherProfile()
491 .perform(click()); in testWorkTab_workProfileHasExpectedNumberOfTargets()
515 .perform(click()); in testWorkTab_selectingWorkTabAppOpensAppInWorkProfile()
521 .perform(click()); in testWorkTab_selectingWorkTabAppOpensAppInWorkProfile()
523 .perform(click()); in testWorkTab_selectingWorkTabAppOpensAppInWorkProfile()
[all …]
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
H A DCarUiListItemTest.java240 onView(withText(title)).perform(click()); in testItem_withCheckbox()
275 onView(withText(title)).perform(click()); in testItem_withCheckboxListItem()
311 onView(withText(body)).perform(click()); in testItem_withSwitch()
339 onView(withText(title)).perform(click()); in testItem_withRadioButton()
388 onView(withText(title)).perform(click()); in testItem_withListener()
391 onView(withText(body)).perform(click()); in testItem_withListener()
395 onView(withDrawable(close)).perform(click()); in testItem_withListener()
428 onView(withText(title)).perform(click()); in testItem_withListenerAndSupplementalIconListener()
433 onView(withDrawable(close)).perform(click()); in testItem_withListenerAndSupplementalIconListener()
464 onView(withDrawable(close)).perform(click()); in testItem_withSupplementalIcon()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
H A DPipAppHelper.kt54 obj.click()
140 uiDevice.click(windowRect.centerX(), windowRect.centerY())
147 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY())
160 uiDevice.click(windowRect.centerX(), windowRect.centerY())
167 uiDevice.click(expandButtonBounds.centerX(), expandButtonBounds.centerY())
177 uiDevice.click(windowRect.centerX(), windowRect.centerY())
178 uiDevice.click(windowRect.centerX(), windowRect.centerY())
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
H A DTermsActivityTest.java22 import static androidx.test.espresso.action.ViewActions.click;
165 onView(withText(HEADER_1)).perform(click()); in expanderTest()
169 onView(withText(HEADER_3_BOTTOM)).perform(click()); in expanderTest()
178 onView(withText(HEADER_1)).perform(click()); in expanderTest()
183 onView(withText("header2")).perform(click()); in expanderTest()
228 onView(withText(HEADER_1)).perform(click()); in expanderTest_automotive()
236 onView(withText(HEADER_3_BOTTOM)).perform(click()); in expanderTest_automotive()
250 onView(withText(HEADER_1)).perform(click()); in expanderTest_automotive()
255 onView(withText("header2")).perform(click()); in expanderTest_automotive()
/aosp12/hardware/interfaces/vibrator/1.0/
H A Dtypes.hal29 * A single click effect.
31 * This effect should produce a sharp, crisp click sensation.
35 * A double click effect.
37 * This effect should produce two sequential sharp, crisp click sensations with a minimal
/aosp12/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/
H A DLoginTest.java21 import static androidx.test.espresso.action.ViewActions.click;
135 onView(withId(R.id.login)).perform(click()); in userLogout()
138 onView(withId(R.id.login)).perform(click()); in userLogout()
150 onView(withId(R.id.login)).perform(click()); in startTokenActivity()
152 onView(withId(R.id.next)).perform(click()); in startTokenActivity()
178 onView(withId(R.id.login)).perform(click()); in returnedFromTokenActivityOK()
180 onView(withId(R.id.next)).perform(click()); in returnedFromTokenActivityOK()
201 onView(withId(R.id.login)).perform(click()); in returnedFromTokenActivityCancelled()
203 onView(withId(R.id.next)).perform(click()); in returnedFromTokenActivityCancelled()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DSuggestionsPopupWindowTest.java34 import static androidx.test.espresso.action.ViewActions.click;
95 onView(withId(R.id.textview)).perform(click()); in testOnTextContextMenuItem()
113 onView(withId(R.id.textview)).perform(click()); in testSelectionActionMode()
135 onView(withId(R.id.textview)).perform(click()); in testInsertionActionMode()
143 onHandleView(com.android.internal.R.id.insertion_handle).perform(click()); in testInsertionActionMode()
164 onView(withId(R.id.textview)).perform(click()); in testSuggestionItems()
202 onView(withId(R.id.textview)).perform(click()); in testMisspelled()
229 onView(withId(R.id.textview)).perform(click()); in testEasyCorrect()
296 onView(withId(R.id.textview)).perform(click()); in testTextAppearanceInSuggestionsPopup()
369 onView(withId(R.id.textview)).perform(click()); in testCursorVisibility()
[all …]
/aosp12/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUiBot.java107 expandBtn.click(); in expandNotification()
125 click(notification, "bug report notification"); in clickOnNotification()
189 public void click(UiObject uiObject, String description) { in click() method in UiBot
191 boolean clicked = uiObject.click(); in click()
218 click(activity, name); in chooseActivity()

1234567