/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | MoreWirelessSettingsTest2.java | 156 UiObject2 configureWiFiHeading = mDevice.wait(Until.findObject in testWifiMenuLoadConfigure() 176 assertFalse(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default() 178 assertTrue(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default() 182 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default() 188 assertEquals("None", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default() 194 assertFalse(mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default() 206 mDevice.wait(Until.findObject(By in testAddNetworkMenu_Proxy() 215 assertEquals("None", mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT) in testAddNetworkMenu_Proxy() 220 mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT).click(); in testAddNetworkMenu_Proxy() 221 mDevice.wait(Until.findObject(By.text("Manual")), TIMEOUT).click(); in testAddNetworkMenu_Proxy() [all …]
|
D | NotificationSettingsTests.java | 77 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForCalculator() 79 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator() 81 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForCalculator() 85 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForCalculator() 87 UiObject2 app = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); in testNotificationsSettingsListForCalculator() 95 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForPhone() 97 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForPhone() 99 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForPhone() 103 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForPhone() 107 UiObject2 apps = mDevice.wait(Until.findObject(preferenceListSelector), TIMEOUT); in testNotificationsSettingsListForPhone() [all …]
|
D | LocationSettingsTests.java | 65 UiObject2 settingsPanel = mDevice.wait(Until.findObject in testLoadingLocationSettings() 70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); in testLoadingLocationSettings() 80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); in testLoadingLocationSettings() 129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements() 139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements() 142 mDevice.wait(Until.findObject(By.text("Scanning")), TIMEOUT)); in testLocationSettingsOverflowMenuElements() 162 mDevice.wait(Until.findObject(By.text("Mode")), TIMEOUT).click(); in verifyLocationSettingsMode() 164 assertNotNull("Location mode screen not loaded", mDevice.wait(Until.findObject 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() [all …]
|
D | AppsSettingsTests.java | 72 Until.findObject(By.text("All apps")), TIMEOUT); in setUp() 87 Until.findObject(By.text("Calculator")), TIMEOUT); in testAppSettingsListForCalculator() 92 Until.findObject(By.text(setting)), TIMEOUT); in testAppSettingsListForCalculator() 102 Until.findObject(By.text("Calculator")), TIMEOUT); in testDisablingAndEnablingSystemApp() 106 Until.findObject(By.res(SETTINGS_PACKAGE, "list")), TIMEOUT); in testDisablingAndEnablingSystemApp() 109 Until.findObject(By.text("DISABLE")), TIMEOUT); in testDisablingAndEnablingSystemApp() 114 Until.findObject(By.text("DISABLE APP")), TIMEOUT).click(); in testDisablingAndEnablingSystemApp() 117 Until.findObject(By.text("ENABLE")), TIMEOUT); in testDisablingAndEnablingSystemApp() 122 Until.findObject(By.text("DISABLE")), TIMEOUT); in testDisablingAndEnablingSystemApp()
|
D | DataUsageSettingsTests.java | 57 mDevice.wait(Until.findObject(By.text("Usage")), in testElementsOnDataUsageScreen() 60 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, in testElementsOnDataUsageScreen() 63 mDevice.wait(Until.findObject(By.text("Wi-Fi data usage")), in testElementsOnDataUsageScreen() 66 mDevice.wait(Until.findObject(By.text("Network restrictions")), in testElementsOnDataUsageScreen() 74 .findObject(By.text("Network & Internet")), TIMEOUT) in launchDataUsageSettings() 78 Until.findObject(By.text("Data usage")), TIMEOUT)); in launchDataUsageSettings() 80 .findObject(By.text("Data usage")), TIMEOUT) in launchDataUsageSettings()
|
D | AppsSettingsRetainFilterTests.java | 63 Until.findObject(By.text("Calculator")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 69 Until.findObject(By.text("DISABLE")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 76 Until.findObject(By.text("DISABLE APP")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 82 Until.findObject(By.text("ENABLE")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 89 Until.findObject(By.text("All apps")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 94 Until.findObject(By.text("Disabled apps")), TIMEOUT); in testDisablingSystemAppAndRotateDevice() 114 Until.findObject(By.text("Disabled apps")), TIMEOUT); in testDisablingSystemAppAndRotateDevice()
|
D | MoreWirelessSettingsTests.java | 76 .findObject(By.text("Hotspot & tethering")), TIMEOUT) in testTetheringMenuLoad() 80 .findObject(By.text("USB tethering")), TIMEOUT); in testTetheringMenuLoad() 89 .findObject(By.text("VPN")), TIMEOUT) in testVPNMenuLoad() 93 .findObject(By.res(SETTINGS_PACKAGE, "vpn_create")), TIMEOUT); in testVPNMenuLoad() 122 .findObject(By.text("Airplane mode")), TIMEOUT) in toggleAirplaneModeSwitch()
|
D | SoundSettingsTest.java | 270 mDevice.wait(Until.findObject(By.text("SAVE")), TIMEOUT).click(); in verifyRingtone() 273 mDevice.wait(Until.findObject(By.text("OK")), TIMEOUT).click(); in verifyRingtone() 310 UiObject2 more = mDevice.wait(Until.findObject(By.text("Advanced")), TIMEOUT); in clickMore() 320 UiObject2 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList() 325 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
|
D | AboutPhoneSettingsTests.java | 81 Until.findObject(By.res(SETTINGS_PACKAGE + ":id/main_content")), TIMEOUT); in setUp() 112 UiObject2 item = device.wait(Until.findObject(By.text(itemText)), TIMEOUT); in removeItemsAndTakeAction() 139 Until.findObject(By.res(SETTINGS_PACKAGE + ":id/main_content")), in searchForItemsAndTakeAction()
|
D | ZonePickerSettingsTest.java | 141 UiObject2 selectedTimeZone = selectTimeZone.findObject(summarySelector); in testSelectTimeZone() 187 UiObject child = mDevice.findObject(childSelector); in selectScrollableItem() 196 UiObject2 item = mDevice.wait(Until.findObject(selector), TIMEOUT); in wait()
|
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/ |
D | TraceurAppTests.java | 131 mDevice.wait(Until.findObject(By.text("Record trace")), in testElementsOnMainScreen() 134 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), in testElementsOnMainScreen() 137 mDevice.wait(Until.findObject(By.text("Categories")), in testElementsOnMainScreen() 140 mDevice.wait(Until.findObject(By.text("Restore default categories")), in testElementsOnMainScreen() 143 mDevice.wait(Until.findObject(By.text("Per-CPU buffer size")), in testElementsOnMainScreen() 146 mDevice.wait(Until.findObject(By.text("Clear saved traces")), in testElementsOnMainScreen() 149 mDevice.wait(Until.findObject(By.text("Long traces")), in testElementsOnMainScreen() 152 mDevice.wait(Until.findObject(By.text("Maximum long trace size")), in testElementsOnMainScreen() 155 mDevice.wait(Until.findObject(By.text("Maximum long trace duration")), in testElementsOnMainScreen() 158 mDevice.wait(Until.findObject(By.text("Show Quick Settings tile")), in testElementsOnMainScreen() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | Bots.java | 89 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()
|
D | DirectoryListBot.java | 159 return findObject( in findHeaderMessageTextView() 165 return findObject( in findHeaderMessageButton() 171 return findObject( in findPlaceholderMessageTextView() 225 UiObject2 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot() 232 return parent.findObject(By.res(mIconId)); in findSelectionHotspot() 247 return mDevice.wait(Until.findObject(By.text(message)), mTimeout); in getSnackbar() 252 findObject(mTargetPackage + ":id/snackbar_action"); in clickSnackbarAction() 257 mDevice.wait(Until.findObject(SNACK_DELETE), mTimeout); in waitForDeleteSnackbar() 283 return mDevice.findObject(docList.childSelector(new UiSelector().text(label))); in findDocument() 297 final UiObject2 text = mDevice.findObject(list).findObject(By.text(label)); in hasDocumentPreview() [all …]
|
D | SearchBot.java | 84 mDevice.findObject(history.getSelector().childSelector(historyItemSelector)).click(); in clickSearchHistory() 137 return findObject(mTargetPackage + ":id/option_menu_search"); in findSearchView() 141 return findObject(mTargetPackage + ":id/history_list"); in findSearchHistoryView() 145 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewTextField() 150 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewClearButton() 156 ? findObject(mTargetPackage + ":id/option_menu_search") in findSearchViewIcon() 157 : findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewIcon()
|
D | UiBot.java | 109 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()
|
D | MenuBot.java | 40 return mDevice.findObject(By.text(menuLabel)) != null; in hasMenuItem() 44 return mDevice.findObject(By.desc(menuDesc)) != null; in hasMenuItemByDesc()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 268 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/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/ |
D | SettingsTestUtils.java | 37 Until.findObject(By.res(SETTINGS_PACKAGE, "main_content")), in scrollToTop() 49 item = device.wait(Until.findObject(By.res("android:id/title").text(title)), TIMEOUT); in assertTitleMatch() 52 Until.findObject(By.res(SETTINGS_PACKAGE, "main_content")), in assertTitleMatch()
|
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/television/ |
D | TelevisionUtils.kt | 34 get() = wait(Until.findObject(SELECTOR_RES_ID_PC_DECOR_TITLE), WAIT_DELAY)?.text 37 get() = wait(Until.findObject(SELECTOR_FOCUSED), WAIT_DELAY) 41 get() = wait(Until.findObject(SELECTOR_RES_ID_ANDROID_TITLE), WAIT_DELAY)
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/accounts/ |
D | AccountsSettingsTest.java | 69 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/ |
D | WakelockAnomalyTest.java | 85 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()
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | ParentalControlsTest.java | 85 .findObject( in testRatingDependentSelect() 109 .findObject( in assertRatingViewIsChecked() 150 .findObject(ByResource.id(controller.getTargetResources(), R.id.check_box)); in prepareParentalControl()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/ |
D | ActivityBlockingActivityTest.java | 94 assertThat(mDevice.wait(Until.findObject(By.text( in testBlockingActivity_doActivity_isNotBlocked() 104 assertThat(mDevice.wait(Until.findObject(By.res(ACTIVITY_BLOCKING_ACTIVITY_TEXTVIEW_ID)), in testBlockingActivity_nonDoActivity_isBlocked() 144 assertThat(mDevice.wait(Until.findObject(By.res(ACTIVITY_BLOCKING_ACTIVITY_TEXTVIEW_ID)), in testBlockingActivity_nonDoNoHistory_isBlocked()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 353 UiObject2 object = mDevice.findObject(By.res("android", "alertTitle")); in getSystemAnomalyMessage() 358 object = mDevice.findObject(By.res("android", "message")); in getSystemAnomalyMessage() 890 Until.findObject(By.res(SYSTEMUI_PACKAGE, resId)), WAIT_TIME_MS); in waitForSystemUiObject() 898 return container.findObject(selector); in findObjectInContainer() 919 Until.findObject(getLauncherObjectSelector(resName)), in waitForObjectInContainer() 944 Until.findObject(selector), in waitForObjectInContainer() 990 Until.findObject(By.res(ANDROID_PACKAGE, resId)), WAIT_TIME_MS); in waitForAndroidObject() 996 final UiObject2 object = mDevice.wait(Until.findObject(selector), WAIT_TIME_MS); in waitForObjectBySelector() 1002 return mDevice.wait(Until.findObject(selector), timeout); in tryWaitForObjectBySelector()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/inputmethods/ |
D | DataSaverSummaryUITest.java | 56 mUiDevice.wait(Until.findObject(By.text("Use Data Saver")), TIMEOUT); in launchSettings_hasSwitchBar() 64 mUiDevice.wait(Until.findObject(By.text("Data Saver")), TIMEOUT); in launchDataSaverSettings()
|