/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/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | DirectoryListBot.java | 157 return findObject( in findHeaderMessageTextView() 163 return findObject( in findHeaderMessageButton() 169 return findObject( in findPlaceholderMessageTextView() 219 UiObject2 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot() 226 parent = mDevice.findObject(list).findObject(selector); in findSelectionHotspot() 228 return parent.findObject(By.clazz(ImageView.class)); in findSelectionHotspot() 243 return mDevice.wait(Until.findObject(By.text(message)), mTimeout); in getSnackbar() 248 findObject(mTargetPackage + ":id/snackbar_action"); in clickSnackbarAction() 253 mDevice.wait(Until.findObject(SNACK_DELETE), mTimeout); in waitForDeleteSnackbar() 274 return mDevice.findObject(docList.childSelector(new UiSelector().text(label))); in findDocument() [all …]
|
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 | SearchBot.java | 138 return findObject(mTargetPackage + ":id/option_menu_search"); in findSearchView() 142 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewTextField() 147 return findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewClearButton() 152 return findObject(mTargetPackage + ":id/search_view"); in findFragmentSearchView() 156 return findObject(mTargetPackage + ":id/search_view", in findFragmentSearchViewTextField() 161 return findObject(mTargetPackage + ":id/search_view", in findFragmentSearchClearButton() 167 ? findObject(mTargetPackage + ":id/option_menu_search") in findSearchViewIcon() 168 : findObject(mTargetPackage + ":id/option_menu_search", in findSearchViewIcon()
|
D | UiBot.java | 108 UiObject searchHint = mDevice.findObject(selector); in assertSearchBarShow() 209 mDevice.wait(Until.findObject( in waitForActionModeBarToAppear() 232 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog() 239 UiObject title = mDevice.findObject(selector); in findFileRenameDialog() 246 UiObject title = mDevice.findObject(selector); in findRenameErrorMessage() 272 return mDevice.findObject(selector); in findMenuLabelWithName() 282 UiObject2 text = menuItem.findObject(By.text(label)); in findMenuWithName() 298 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/Traceur/uitests/src/com/android/traceur/uitest/ |
D | TraceurAppTests.java | 92 mDevice.wait(Until.findObject(By.text("Record trace")), in testElementsOnMainScreen() 95 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), in testElementsOnMainScreen() 98 mDevice.wait(Until.findObject(By.text("Categories")), in testElementsOnMainScreen() 101 mDevice.wait(Until.findObject(By.text("Restore default categories")), in testElementsOnMainScreen() 104 mDevice.wait(Until.findObject(By.text("Per-CPU buffer size")), in testElementsOnMainScreen() 142 mDevice.wait(Until.findObject(By.text("Record trace")), TIMEOUT); in testSuccessfulTracing() 144 mDevice.findObject(By.text("Record trace")).click(); in testSuccessfulTracing() 146 mDevice.findObject(By.text("Record trace")).click(); in testSuccessfulTracing() 155 mDevice.findObject(By.text("Tap to share your trace")).click(); in testSuccessfulTracing() 159 mDevice.findObject(By.text(Pattern.compile("share", Pattern.CASE_INSENSITIVE))).click(); in testSuccessfulTracing()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 265 mDevice.findObject(By.desc("Show more")).clickAndWait(Until.newWindow(), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports() 266 mDevice.findObject(By.textContains("_targetAccount_")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports() 270 mDevice.findObject(By.text("Skip Two")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports() 271 mDevice.findObject(By.text("Skip Four")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports() 272 mDevice.findObject(By.text("Skip Five")).click(); in selectionsAreImportedAndDisabledOnSubsequentImports() 285 mDevice.findObject(By.text("IMPORT").clickable(true)).click(); in selectionsAreImportedAndDisabledOnSubsequentImports() 326 mDevice.findObject(By.descStartsWith("Show more")).clickAndWait(Until.newWindow(), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports() 327 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/apps/Settings/tests/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()
|
D | TestUtils.java | 68 final UiObject2 editText = uiDevice.findObject(By.res(res)); in setEditTextWithValue() 77 final UiObject2 button = uiDevice.findObject(By.res(res)); in clickButton()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 282 UiObject2 object = mDevice.findObject(By.res("android", "alertTitle")); in getAnomalyMessage() 287 object = mDevice.findObject(By.res("android", "message")); in getAnomalyMessage() 692 Until.findObject(By.res(SYSTEMUI_PACKAGE, resId)), WAIT_TIME_MS); in waitForSystemUiObject() 705 Until.findObject(getLauncherObjectSelector(resName)), in waitForObjectInContainer() 715 Until.findObject(selector), in waitForObjectInContainer() 748 final UiObject2 object = mDevice.wait(Until.findObject(selector), WAIT_TIME_MS); in waitForObjectBySelector() 754 return mDevice.wait(Until.findObject(selector), timeout); in tryWaitForObjectBySelector()
|
/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/apps/Settings/tests/unit/src/com/android/settings/applications/ |
D | AppOpsSettingsTest.java | 123 final UiObject2 switchPref = mUiDevice.wait(Until.findObject(switchSelector), in findAndVerifySwitchState() 137 final UiObject2 preferenceList = mUiDevice.wait(Until.findObject(preferenceListSelector), in testAppList() 171 mUiDevice.wait(Until.findObject(appDetailTitleSelector), START_ACTIVITY_TIMEOUT); in testAppDetailScreenForAppOp()
|
/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()
|