Home
last modified time | relevance | path

Searched refs:findObject (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java160 UiObject2 configureWiFiHeading = mDevice.wait(Until.findObject in testWifiMenuLoadConfigure()
180 assertFalse(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
182 assertTrue(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
186 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
192 assertEquals("None", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
198 assertFalse(mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
210 mDevice.wait(Until.findObject(By in testAddNetworkMenu_Proxy()
219 assertEquals("None", mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT) in testAddNetworkMenu_Proxy()
224 mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
225 mDevice.wait(Until.findObject(By.text("Manual")), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
[all …]
DNotificationSettingsTests.java81 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForCalculator()
83 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator()
85 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForCalculator()
89 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForCalculator()
91 UiObject2 app = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); in testNotificationsSettingsListForCalculator()
99 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForPhone()
101 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForPhone()
103 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForPhone()
107 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForPhone()
111 UiObject2 apps = mDevice.wait(Until.findObject(preferenceListSelector), TIMEOUT); in testNotificationsSettingsListForPhone()
[all …]
DLocationSettingsTests.java68 UiObject2 settingsPanel = mDevice.wait(Until.findObject in testLoadingLocationSettings()
73 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); in testLoadingLocationSettings()
83 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); in testLoadingLocationSettings()
132 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements()
142 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements()
145 mDevice.wait(Until.findObject(By.text("Scanning")), TIMEOUT)); in testLocationSettingsOverflowMenuElements()
165 mDevice.wait(Until.findObject(By.text("Mode")), TIMEOUT).click(); in verifyLocationSettingsMode()
167 assertNotNull("Location mode screen not loaded", mDevice.wait(Until.findObject in verifyLocationSettingsMode()
170 mDevice.wait(Until.findObject(By.text(textMode)), TIMEOUT).click(); in verifyLocationSettingsMode()
173 mDevice.wait(Until.findObject(By.desc("Navigate up")), TIMEOUT).click(); in verifyLocationSettingsMode()
[all …]
DMoreWirelessSettingsTests.java77 .findObject(By.text("Hotspot & tethering")), TIMEOUT) in testTetheringMenuLoad()
81 .findObject(By.text("USB tethering")), TIMEOUT); in testTetheringMenuLoad()
89 mDevice.findObject(By.res(SETTINGS_PACKAGE, "main_content")) in testVPNMenuLoad()
90 .scrollUntil(Direction.DOWN, Until.findObject(By.text("VPN"))) in testVPNMenuLoad()
94 .findObject(By.res(SETTINGS_PACKAGE, "vpn_create")), TIMEOUT); in testVPNMenuLoad()
123 .findObject(By.text("Airplane mode")), TIMEOUT) in toggleAirplaneModeSwitch()
DSoundSettingsTest.java260 mDevice.wait(Until.findObject(By.text("SAVE")), TIMEOUT).click(); in verifyRingtone()
263 mDevice.wait(Until.findObject(By.text("OK")), TIMEOUT).click(); in verifyRingtone()
300 UiObject2 more = mDevice.wait(Until.findObject(By.text("Advanced")), TIMEOUT); in clickMore()
310 UiObject2 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
315 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
/packages/apps/Settings/tests/uitests/src/com/android/settings/biometrics2/ui/view/
DFingerprintEnrollmentActivityTest.kt158 while (i < more && device.findObject(By.text("More")).also { moreBtn = it } != null) { in <lambda>()
178 val agreeBtn = device.findObject(By.text("I agree")) in <lambda>()
184 val lottie = device.findObject( in <lambda>()
189 val startBtn = device.findObject(By.text("Start")) in <lambda>()
213 val agreeBtn = device.findObject(By.text("I agree")) in <lambda>()
219 val lottie = device.findObject(By.res(SETTINGS_PACKAGE_NAME, "illustration_lottie")) in <lambda>()
222 val startBtn = device.findObject(By.text("Start")) in <lambda>()
246 val agreeBtn = device.findObject(By.text("I agree")) in <lambda>()
252 val lottie = device.findObject( in <lambda>()
276 val agreeBtn = device.findObject(By.text("I agree")) in <lambda>()
[all …]
/packages/apps/Settings/tests/Enable16KbTests/test_16kb_app/src/com/android/settings/development/test/
DEnable16KbDeviceTest.java93 mDevice.wait(Until.findObject(By.text(EXT4_CONFIRMATION)), TIMEOUT).click(); in enable16k_switchToExt4()
108 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in enable16k_switchTo16Kb()
122 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in enable16k_switchTo4Kb()
129 Until.findObject(By.scrollable(true).clazz(ANDROID_WIDGET_SCROLLVIEW)), in clickOnObject()
143 return mDevice.findObject(target); in scrollTo()
147 UiObject2 targetObject = mDevice.wait(Until.findObject(By.text(displayedText)), TIMEOUT); in verifyTextOnScreen()
154 mDevice.wait(Until.findObject(By.text(title)), TIMEOUT).click(); in openPersistentNotification()
157 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in openPersistentNotification()
166 mDevice.wait(Until.findObject(By.text(USE_DEVELOPER_OPTIONS)), TIMEOUT).click(); in enable16k_disableDeveloperOption()
168 mDevice.wait(Until.findObject(By.text(OKAY)), TIMEOUT).click(); in enable16k_disableDeveloperOption()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBots.java89 UiObject2 candidate = mDevice.findObject(By.res(resourceName)); in assertHasFocus()
91 candidate.findObject(By.focused(true))); in assertHasFocus()
95 mDevice.wait(Until.findObject(selector), mTimeout); in find()
96 return mDevice.findObject(selector); in find()
99 protected UiObject findObject(String resourceId) { in findObject() method in Bots.BaseBot
101 return mDevice.findObject(object); in findObject()
104 protected UiObject findObject(String parentResourceId, String childResourceId) { in findObject() method in Bots.BaseBot
108 return mDevice.findObject(selector); in findObject()
DDirectoryListBot.java160 return findObject( in findHeaderMessageTextView()
166 return findObject( in findHeaderMessageButton()
172 return findObject( in findPlaceholderMessageTextView()
226 UiObject2 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot()
233 return parent.findObject(By.res(mIconId)); in findSelectionHotspot()
248 return mDevice.wait(Until.findObject(By.text(message)), mTimeout); in getSnackbar()
253 findObject(mTargetPackage + ":id/snackbar_action"); in clickSnackbarAction()
258 mDevice.wait(Until.findObject(SNACK_DELETE), mTimeout); in waitForDeleteSnackbar()
284 return mDevice.findObject(docList.childSelector(new UiSelector().text(label))); in findDocument()
298 final UiObject2 text = mDevice.findObject(list).findObject(By.text(label)); in hasDocumentPreview()
[all …]
DSearchBot.java85 mDevice.findObject(history.getSelector().childSelector(historyItemSelector)).click(); in clickSearchHistory()
138 return findObject(mTargetPackage + ":id/option_menu_search"); in findSearchView()
142 return findObject(mTargetPackage + ":id/history_list"); in findSearchHistoryView()
146 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewTextField()
151 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewClearButton()
157 ? findObject(mTargetPackage + ":id/option_menu_search") in findSearchViewIcon()
158 : findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewIcon()
DUiBot.java109 UiObject searchHint = mDevice.findObject(selector); in assertSearchBarShow()
218 mDevice.wait(Until.findObject( in waitForActionModeBarToAppear()
241 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog()
248 UiObject title = mDevice.findObject(selector); in findFileRenameDialog()
255 UiObject title = mDevice.findObject(selector); in findRenameErrorMessage()
281 return mDevice.findObject(selector); in findMenuLabelWithName()
285 UiObject2 list = mDevice.findObject(By.clazz("android.widget.ListView")); in findMenuWithName()
292 UiObject2 text = menuItem.findObject(By.text(label)); in findMenuWithName()
308 return mDevice.findObject(selector); in findMenuMoreOptions()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppNotificationTest.java200 UiObject2 title = device.findObject(By.text(titleString)); in updateActiveNotification()
272 UiObject2 title = device.findObject(By.text(titleString)); in updateCompletedNotification_withOutBoundShare_showsNoti()
281 assertThat(device.findObject(By.text(titleString))).isNull(); in updateCompletedNotification_withOutBoundShare_showsNoti()
352 UiObject2 title = device.findObject(By.text(titleString)); in updateCompletedNotification_withInBoundShare_showsNoti()
361 assertThat(device.findObject(By.text(titleString))).isNull(); in updateCompletedNotification_withInBoundShare_showsNoti()
429 UiObject2 title = device.findObject(By.text(titleString)); in updateIncomingFileConfirmationNotification()
430 UiObject2 buttonOk = device.findObject(By.text(confirmString)); in updateIncomingFileConfirmationNotification()
433 buttonOk = device.findObject(By.text(confirmString.toUpperCase())); in updateIncomingFileConfirmationNotification()
436 UiObject2 buttonDecline = device.findObject(By.text(declineString)); in updateIncomingFileConfirmationNotification()
439 buttonDecline = device.findObject(By.text(declineString.toUpperCase())); in updateIncomingFileConfirmationNotification()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/
DSettingsTestUtils.kt36 wait(Until.findObject(bySelector), TIMEOUT) in waitObject()
68 findObject(By.res(SETTINGS_PACKAGE, "main_content")) in assertHasTexts()
69 ?: findObject(By.scrollable(true)) in assertHasTexts()
73 findObject(selector) in assertHasTexts()
74 ?: scrollableObj.scrollUntil(Direction.DOWN, Until.findObject(selector)) in assertHasTexts()
/packages/modules/AdServices/adservices/tests/cts/ui/libs/src/com/android/adservices/tests/ui/libs/
DUiUtils.java301 UiObject2 scroller = device.findObject(By.res(SYSTEM_UI_RESOURCE_ID)); in verifyNotification()
310 scroller.findObject(By.text(getString(context, notificationTitle))); in verifyNotification()
362 device.findObject(By.res("com.android.systemui:id/notification_stack_scroller")); in clearNotifications()
364 scroller2.findObject( in clearNotifications()
384 device.findObject(By.res("com.android.systemui:id/notification_stack_scroller")); in verifyNotificationAndSettingsPage()
391 UiObject2 notificationCard = scroller.findObject(By.text(targetStr)); in verifyNotificationAndSettingsPage()
451 device.findObject(By.clazz(ANDROID_WIDGET_SCROLLVIEW).scrollable(true)); in scrollToElement()
454 Direction.DOWN, Until.findObject(By.textContains(targetStr))); in scrollToElement()
458 return device.findObject(By.textContains(targetStr)); in scrollToElement()
476 device.findObject(By.scrollable(true).clazz(ANDROID_WIDGET_SCROLLVIEW)); in gentleSwipe()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/
DCarPackageManagerServiceTest.java114 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_doActivity_isNotBlocked()
124 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_doActivity_showingDialog_isNotBlocked()
134 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_doTemplateActivity_isNotBlocked()
143 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_multipleDoTemplateActivity_notBlocked()
148 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_multipleDoTemplateActivity_notBlocked()
157 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
169 assertThat(mDevice.wait(Until.findObject(By.res(ACTIVITY_BLOCKING_ACTIVITY_TEXTVIEW_ID)), in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
196 assertThat(mDevice.wait(Until.findObject(By.text(NonDoActivity.class.getSimpleName())), in testBlockingActivityShownForNdoActivity()
209 assertThat(mDevice.wait(Until.findObject(By.text(DoActivity.class.getSimpleName())), in testBlockingActivity_DoLaunchesNonDoOnCreate_isBlocked()
330 assertThat(mDevice.wait(Until.findObject(By.res(ACTIVITY_BLOCKING_ACTIVITY_TEXTVIEW_ID)), in assertBlockingActivityFound()
[all …]
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DApkTestUtil.java99 UiObject2 obj = device.findObject(By.text(getString(resId))); in click()
115 Until.findObject(By.scrollable(true).clazz(ANDROID_WIDGET_SCROLLVIEW)), in gentleSwipe()
135 Until.findObject(By.scrollable(true).clazz(ANDROID_WIDGET_SCROLLVIEW)), in scrollToFindElement()
140 UiObject2 element = scrollView.scrollUntil(Direction.DOWN, Until.findObject(selector)); in scrollToFindElement()
144 : scrollView.scrollUntil(Direction.UP, Until.findObject(selector)); in scrollToFindElement()
159 Until.findObject(By.text(targetStr)), in getElement()
162 obj = device.findObject(By.text(targetStr.toUpperCase(Locale.getDefault()))); in getElement()
184 return device.findObject(new UiSelector().text(getString(resId))); in getPageElement()
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java324 return mDevice.wait(Until.findObject(By.text(text)), UI_TIMEOUT_MS); in findObjectOnMainScreenByText()
343 UiObject2 shareNotification = mDevice.wait(Until.findObject( in tapShareNotification()
357 UiObject2 shareDialog = mDevice.wait(Until.findObject( in clickThroughShareSteps()
363 UiObject2 shareButton = mDevice.wait(Until.findObject( in clickThroughShareSteps()
374 UiObject2 shareSheet = mDevice.wait(Until.findObject( in clickThroughShareSteps()
416 UiObject2 categoriesSummary = categoriesButton.getParent().wait(Until.findObject( in getCategoriesSummary()
427 UiObject2 categoriesListView = mDevice.wait(Until.findObject( in getTraceCategories()
442 UiObject2 confirmButton = mDevice.wait(Until.findObject( in toggleFirstTraceCategory()
/packages/apps/CellBroadcastReceiver/tests/compliancetests/src/com/android/cellbroadcastreceiver/compliancetests/
DCellBroadcastUiTest.java106 UiObject2 yesButton = sDevice.wait(Until.findObject(YES_BUTTON), 100); in beforeTest()
112 UiObject2 okItem = sDevice.wait(Until.findObject( in beforeTest()
133 UiObject2 yesButton = sDevice.wait(Until.findObject(YES_BUTTON), 1000); in afterTest()
227 UiObject2 item = sDevice.wait(Until.findObject(By.res(packageName, "alertTitle")), in verifyAlertDialogTitle()
246 UiObject2 okItem = sDevice.wait(Until.findObject( in verifyAlertDialogTitle()
278 UiObject object = sDevice.findObject(notificationStackScroller); in dismissNotificationAsNeeded()
282 UiObject2 okItem = sDevice.wait(Until.findObject( in dismissNotificationAsNeeded()
373 UiObject2 viewObject = sDevice.wait(Until.findObject(FULL_SCREEN_DIALOG), in checkForFullScreenGuide()
377 UiObject2 okButton = sDevice.wait(Until.findObject(CLOSE_BUTTON), UI_TIMEOUT); in checkForFullScreenGuide()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DCameraMicIndicatorsPermissionTest.kt178 uiDevice.findObject(By.text("Close"))?.click() in <lambda>()
373 uiDevice.findObject(UiSelector().packageName(APP_PKG)) in <lambda>()
375 uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in <lambda>()
505 var micPrivacyChip = uiDevice.findObject(By.res(carMicPrivacyChipId)) in <lambda>()
506 var cameraPrivacyChip = uiDevice.findObject(By.res(carCameraPrivacyChipId)) in <lambda>()
529 val micLabelView = uiDevice.findObject(UiSelector().textContains(micLabel)) in <lambda>()
531 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in <lambda>()
535 val cameraLabelView = uiDevice.findObject(UiSelector().textContains(cameraLabel)) in <lambda>()
537 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in <lambda>()
541 val micLabelView = uiDevice.findObject(UiSelector().textContains(micLabel)) in <lambda>()
[all …]
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/
DTestAppHelper.java234 Until.findObject(By.res(ODP_CLIENT_TEST_APP_PACKAGE_NAME, GET_AD_BUTTON_RESOURCE_ID)), in getGetAdButton()
243 Until.findObject( in getRenderedView()
262 Until.findObject(By.desc(text)), in getUiObjectByText()
268 Until.findObject(By.res( in getReportConversionTextBox()
275 Until.findObject(By.res( in getReportConversionButton()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsTestUtils.java42 .that(uiDevice.findObject( in verifySettingsActivityIsVisible()
54 .that(uiDevice.findObject(new UiSelector().textContains(cloudAccount)) in verifySettingsCloudProviderAccountIsVisible()
64 final UiObject selectorExtraWidget = uiDevice.findObject(new UiSelector() in findAndClickSettingsProviderOptionExtraWidget()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java268 mDevice.findObject(By.desc("Show more")).clickAndWait(Until.newWindow(), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports()
269 mDevice.findObject(By.textContains("_targetAccount_")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
273 mDevice.findObject(By.text("Skip Two")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
274 mDevice.findObject(By.text("Skip Four")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
275 mDevice.findObject(By.text("Skip Five")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
288 mDevice.findObject(By.text("IMPORT").clickable(true)).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
330 mDevice.findObject(By.descStartsWith("Show more")).clickAndWait(Until.newWindow(), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports()
331 mDevice.findObject(By.textContains(targetAccount.name)).click(); in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/television/
DTelevisionUtils.kt34 get() = wait(Until.findObject(SELECTOR_RES_ID_PC_DECOR_TITLE), WAIT_DELAY)?.text
38 wait(Until.findObject(SELECTOR_FOCUSED), WAIT_DELAY) ?: error("Focused item is not found")
42 wait(Until.findObject(SELECTOR_RES_ID_ANDROID_TITLE), WAIT_DELAY)
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/accounts/
DAccountsSettingsTest.java69 mDevice.findObject(new UiSelector().text(testAccountName)).click(); in testExternalAccountInfoExists()
70 final UiObject testPreference = mDevice.findObject(new UiSelector().text(PREF_TITLE)); in testExternalAccountInfoExists()
89 mDevice.findObject(new UiSelector().text(titleAccounts)).click(); in launchAccountsSettings()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java85 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_longTimeWhileRunning_report()
106 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_shortTime_notReport()
129 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_longTimeWhileNotRunning_notReport()

123