Home
last modified time | relevance | path

Searched refs:TIMEOUT (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java45 private static final int TIMEOUT = 2000; field in MoreWirelessSettingsTest2
157 (By.text(CONFIGURE_WIFI_PREFERENCE_TEXT)), TIMEOUT); in testWifiMenuLoadConfigure()
177 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
179 By.text(ADD_NETWORK_MENU_CANCEL_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
184 .clazz(EDIT_TEXT_CLASS)), TIMEOUT*2) in testAddNetworkMenu_Default()
190 .clazz(SPINNER_CLASS)), TIMEOUT) in testAddNetworkMenu_Default()
196 .clazz(CHECKBOX_CLASS)), TIMEOUT).isChecked()); in testAddNetworkMenu_Default()
208 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); 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()
[all …]
DLocationSettingsTests.java35 private static final int TIMEOUT = 2000; field in LocationSettingsTests
66 (By.res(SETTINGS_PACKAGE, "main_content")), TIMEOUT); in testLoadingLocationSettings()
70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); in testLoadingLocationSettings()
78 Thread.sleep(TIMEOUT); in testLoadingLocationSettings()
80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); in testLoadingLocationSettings()
100 Thread.sleep(TIMEOUT); in testLocationDeviceOnlyMode()
108 Thread.sleep(TIMEOUT); in testLocationBatterySavingMode()
116 Thread.sleep(TIMEOUT); in testLocationHighAccuracyMode()
126 Thread.sleep(TIMEOUT); in testLocationSettingsElements()
129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements()
[all …]
DNotificationSettingsTests.java40 private static final int TIMEOUT = 2000; field in NotificationSettingsTests
62 Thread.sleep(TIMEOUT * 2); in setUp()
70 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown()
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()
[all …]
DAppsSettingsTests.java37 private static final int TIMEOUT = 2000; field in AppsSettingsTests
68 Thread.sleep(TIMEOUT * 2); in setUp()
72 Until.findObject(By.text("All apps")), TIMEOUT); in setUp()
80 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown()
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()
104 mDevice.waitForIdle(TIMEOUT); in testDisablingAndEnablingSystemApp()
106 Until.findObject(By.res(SETTINGS_PACKAGE, "list")), TIMEOUT); in testDisablingAndEnablingSystemApp()
109 Until.findObject(By.text("DISABLE")), TIMEOUT); in testDisablingAndEnablingSystemApp()
[all …]
DAppsSettingsRetainFilterTests.java39 private static final int TIMEOUT = 2000; field in AppsSettingsRetainFilterTests
55 mDevice.waitForIdle(TIMEOUT); in setUp()
63 Until.findObject(By.text("Calculator")), TIMEOUT); in testDisablingSystemAppAndRotateDevice()
66 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice()
69 Until.findObject(By.text("DISABLE")), TIMEOUT); in testDisablingSystemAppAndRotateDevice()
72 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice()
76 Until.findObject(By.text("DISABLE APP")), TIMEOUT); in testDisablingSystemAppAndRotateDevice()
79 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice()
82 Until.findObject(By.text("ENABLE")), TIMEOUT); in testDisablingSystemAppAndRotateDevice()
86 mDevice.waitForIdle(TIMEOUT); in testDisablingSystemAppAndRotateDevice()
[all …]
DDataUsageSettingsTests.java31 private static final int TIMEOUT = 2000; field in DataUsageSettingsTests
58 TIMEOUT)); in testElementsOnDataUsageScreen()
61 "color_bar")), TIMEOUT)); in testElementsOnDataUsageScreen()
64 TIMEOUT)); in testElementsOnDataUsageScreen()
67 TIMEOUT)); in testElementsOnDataUsageScreen()
74 .findObject(By.text("Network & Internet")), TIMEOUT) in launchDataUsageSettings()
76 Thread.sleep(TIMEOUT * 2); in launchDataUsageSettings()
78 Until.findObject(By.text("Data usage")), TIMEOUT)); in launchDataUsageSettings()
80 .findObject(By.text("Data usage")), TIMEOUT) in launchDataUsageSettings()
DMoreWirelessSettingsTests.java34 private static final int TIMEOUT = 2000; field in MoreWirelessSettingsTests
76 .findObject(By.text("Hotspot & tethering")), TIMEOUT) in testTetheringMenuLoad()
78 Thread.sleep(TIMEOUT); in testTetheringMenuLoad()
80 .findObject(By.text("USB tethering")), TIMEOUT); in testTetheringMenuLoad()
89 .findObject(By.text("VPN")), TIMEOUT) in testVPNMenuLoad()
91 Thread.sleep(TIMEOUT); in testVPNMenuLoad()
93 .findObject(By.res(SETTINGS_PACKAGE, "vpn_create")), TIMEOUT); in testVPNMenuLoad()
122 .findObject(By.text("Airplane mode")), TIMEOUT) in toggleAirplaneModeSwitch()
124 Thread.sleep(TIMEOUT); in toggleAirplaneModeSwitch()
DAboutPhoneSettingsTests.java51 private static final int TIMEOUT = 2000; field in AboutPhoneSettingsTests
75 Thread.sleep(TIMEOUT * 2); in setUp()
81 Until.findObject(By.res(SETTINGS_PACKAGE + ":id/main_content")), TIMEOUT); in setUp()
92 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown()
112 UiObject2 item = device.wait(Until.findObject(By.text(itemText)), TIMEOUT); in removeItemsAndTakeAction()
140 TIMEOUT * 2); in searchForItemsAndTakeAction()
DConnectedDeviceTests.java46 private static final int TIMEOUT = 2000; field in ConnectedDeviceTests
78 UiObject2 nfcSetting = mDevice.wait(Until.findObject(By.text("NFC")), TIMEOUT); in testNFCToggle()
80 Thread.sleep(TIMEOUT * 2); in testNFCToggle()
84 Thread.sleep(TIMEOUT * 2); in testNFCToggle()
89 Thread.sleep(TIMEOUT * 2); in testNFCToggle()
DSoundSettingsTest.java36 private static final int TIMEOUT = 2000; field in SoundSettingsTest
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()
313 Thread.sleep(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()
DZonePickerSettingsTest.java19 import static com.android.settings.ui.testutils.SettingsTestUtils.TIMEOUT;
85 mDevice.waitForIdle(TIMEOUT * 2); in tearDown()
182 if (!scrollable.waitForExists(TIMEOUT)) { in selectScrollableItem()
196 UiObject2 item = mDevice.wait(Until.findObject(selector), TIMEOUT); in wait()
DStorageWizardTest.java49 private static final int TIMEOUT = 5000; field in StorageWizardTest
74 mDevice.waitForIdle(TIMEOUT); in tearDown()
126 return waitFor(selector, TIMEOUT); in waitFor()
/packages/apps/Traceur/uitests/src/com/android/settings/ui/
DTraceurAppTests.java43 private static final int TIMEOUT = 7000; // milliseconds field in TraceurAppTests
74 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); in setUp()
90 TIMEOUT)); in testElementsOnMainScreen()
93 TIMEOUT)); in testElementsOnMainScreen()
96 TIMEOUT)); in testElementsOnMainScreen()
99 TIMEOUT)); in testElementsOnMainScreen()
102 TIMEOUT)); in testElementsOnMainScreen()
105 TIMEOUT)); in testElementsOnMainScreen()
108 TIMEOUT)); in testElementsOnMainScreen()
111 TIMEOUT)); in testElementsOnMainScreen()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBots.java38 private static final int TIMEOUT = 5000; field in Bots
53 main = new UiBot(device, context, TIMEOUT); in Bots()
54 breadcrumb = new BreadBot(device, context, TIMEOUT, main); in Bots()
55 roots = new SidebarBot(device, context, TIMEOUT); in Bots()
56 directory = new DirectoryListBot(device, automation, context, TIMEOUT); in Bots()
57 sort = new SortBot(device, context, TIMEOUT, main); in Bots()
58 keyboard = new KeyboardBot(device, context, TIMEOUT); in Bots()
59 search = new SearchBot(device, context, TIMEOUT); in Bots()
60 gesture = new GestureBot(device, automation, context, TIMEOUT); in Bots()
61 menu = new MenuBot(device, context, TIMEOUT); in Bots()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java95 public static final int TIMEOUT = 100000; field in SimImportActivityTest
146 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); in shouldDisplaySimContacts()
162 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in shouldHaveEmptyState()
173 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState()
179 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState()
191 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("Name One")), TIMEOUT)); in smokeRotateInNonEmptyState()
197 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("Name One")), TIMEOUT)); in smokeRotateInNonEmptyState()
263 assertTrue(mDevice.wait(Until.hasObject(By.desc("Show more")), TIMEOUT)); in selectionsAreImportedAndDisabledOnSubsequentImports()
265 mDevice.findObject(By.desc("Show more")).clickAndWait(Until.newWindow(), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports() local
268 assertTrue(mDevice.wait(Until.hasObject(By.text("Skip Two")), TIMEOUT)); in selectionsAreImportedAndDisabledOnSubsequentImports()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDtmfLocalTonePlayerTest.java39 private static final int TIMEOUT = 2000; field in DtmfLocalTonePlayerTest
59 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testSupportedStart() local
69 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testUnsupportedStart() local
80 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenUninitialized() local
91 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenInitialized() local
102 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenUninitialized() local
113 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenInitialized() local
124 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testProperTeardown() local
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DChooseLockGenericTest.java67 private static final long TIMEOUT = 5 * DateUtils.SECOND_IN_MILLIS; field in ChooseLockGenericTest
162 if (view.waitForExists(TIMEOUT)) { in setPassword()
170 assertTrue("password_entry", view.waitForExists(TIMEOUT)); in setPassword()
179 if (view.waitForExists(TIMEOUT)) { in setPassword()
203 if (!view.waitForExists(TIMEOUT)) { in clearPassword()
208 assertTrue("password_entry", view.waitForExists(TIMEOUT)); in clearPassword()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/
DSettingsTestUtils.java30 public static final int TIMEOUT = 2000; field in SettingsTestUtils
38 TIMEOUT); in scrollToTop()
49 item = device.wait(Until.findObject(By.res("android:id/title").text(title)), TIMEOUT); in assertTitleMatch()
53 TIMEOUT); in assertTitleMatch()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/inputmethods/
DDataSaverSummaryUITest.java19 import static com.android.settings.ui.testutils.SettingsTestUtils.TIMEOUT;
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()
68 Thread.sleep(TIMEOUT * 2); in launchDataSaverSettings()
DSpellCheckerSettingsUITest.java19 import static com.android.settings.ui.testutils.SettingsTestUtils.TIMEOUT;
56 mUiDevice.wait(Until.findObject(By.text("Use spell checker")), TIMEOUT); in launchSettings_hasSwitchBar()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DInstallPackageTaskTest.java74 private static final long TIMEOUT = 10000; field in InstallPackageTaskTest
153 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess()
178 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testSuccess_allowTestOnly()
203 verify(mCallback, timeout(TIMEOUT)).onSuccess(mTask); in testInstallFailedVersionDowngrade()
227 verify(mCallback, timeout(TIMEOUT)).onError(mTask, ERROR_INSTALLATION_FAILED); in testInstallFailedOtherError()
248 verify(mCallback, timeout(TIMEOUT)).onError(mTask, ERROR_PACKAGE_INVALID); in testDifferentPackageName()
/packages/apps/Contacts/tests/src/com/android/contacts/
DNoPermissionsLaunchSmokeTest.java45 private static final long TIMEOUT = 5000; field in NoPermissionsLaunchSmokeTest
75 device.wait(Until.hasObject(By.textStartsWith("Allow Contacts")), TIMEOUT); in launchingMainActivityDoesntCrash()
80 device.wait(Until.hasObject(By.textEndsWith("make and manage phone calls?")), TIMEOUT); in launchingMainActivityDoesntCrash()
90 grantPhonePermissionButton.clickAndWait(Until.newWindow(), TIMEOUT); in launchingMainActivityDoesntCrash() local
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DLifecycleEventHandlingTest.java46 private static final long TIMEOUT = 2000; field in LifecycleEventHandlingTest
74 TIMEOUT); in launchDashboard_shouldSeeFooter()
77 assertThat(mDevice.wait(Until.findObject(By.text(footerText)), TIMEOUT)) in launchDashboard_shouldSeeFooter()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/network/
DWallpaperRequester.java65 .apply(RequestOptions.option(HttpGlideUrlLoader.TIMEOUT, LONG_TIMEOUT_MS)) in loadImageFile()
81 .apply(RequestOptions.option(HttpGlideUrlLoader.TIMEOUT, LONG_TIMEOUT_MS)) in loadImageFileWithActivity()
92 .apply(RequestOptions.option(HttpGlideUrlLoader.TIMEOUT, LONG_TIMEOUT_MS)) in loadImageBitmap()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java58 private static final int TIMEOUT = 30; field in TimeoutPreferenceControllerTest
86 mController.onPreferenceChange(mPreference, Integer.toString(TIMEOUT)); in testOnPreferenceChange_SetTimeout_ReturnCorrectTimeout()
90 assertThat(mode).isEqualTo(TIMEOUT); in testOnPreferenceChange_SetTimeout_ReturnCorrectTimeout()

12