Home
last modified time | relevance | path

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

12

/platform_testing/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/
DPortableStorageTests.java58 Thread.sleep(storageHelper.TIMEOUT); in testAdoptAsPortableViaUI()
61 Thread.sleep(storageHelper.TIMEOUT); in testAdoptAsPortableViaUI()
74 storageHelper.TIMEOUT).click(storageHelper.TIMEOUT); in testCopyFromPortable()
76 Pattern.CASE_INSENSITIVE))), storageHelper.TIMEOUT).click(); in testCopyFromPortable()
78 2 * storageHelper.TIMEOUT)); in testCopyFromPortable()
80 storageHelper.TIMEOUT).clickAndWait(Until.newWindow(), storageHelper.TIMEOUT); in testCopyFromPortable()
94 storageHelper.TIMEOUT).click(storageHelper.TIMEOUT); in testDeleteFromPortable()
96 storageHelper.TIMEOUT).clickAndWait(Until.newWindow(), storageHelper.TIMEOUT); in testDeleteFromPortable()
98 2 * storageHelper.TIMEOUT)); in testDeleteFromPortable()
113 Thread.sleep(storageHelper.TIMEOUT * 2); in testExplorePortable()
[all …]
DAdoptableStorageTests.java59 mDevice.wait(Until.findObject(By.text(pattern)), storageHelper.TIMEOUT).click(); in testAdoptAsAdoptableMoveDataLaterUIFlow()
61 mDevice.wait(Until.findObject(By.text(pattern)), storageHelper.TIMEOUT).clickAndWait( in testAdoptAsAdoptableMoveDataLaterUIFlow()
62 Until.newWindow(), storageHelper.TIMEOUT); in testAdoptAsAdoptableMoveDataLaterUIFlow()
64 mDevice.wait(Until.findObject(By.text(pattern)), storageHelper.TIMEOUT).clickAndWait( in testAdoptAsAdoptableMoveDataLaterUIFlow()
65 Until.newWindow(), storageHelper.TIMEOUT); in testAdoptAsAdoptableMoveDataLaterUIFlow()
71 mDevice.wait(Until.findObject(By.textContains("SD card")), 2 * storageHelper.TIMEOUT) in testAdoptAsAdoptableMoveDataLaterUIFlow()
72 .clickAndWait(Until.newWindow(), storageHelper.TIMEOUT); in testAdoptAsAdoptableMoveDataLaterUIFlow()
74 storageHelper.TIMEOUT)); in testAdoptAsAdoptableMoveDataLaterUIFlow()
87 storageHelper.TIMEOUT); in testAdoptableOverflowSettings()
91 assertTrue(mDevice.wait(Until.hasObject(By.text(pattern)), storageHelper.TIMEOUT)); in testAdoptableOverflowSettings()
[all …]
DExternalStorageHelper.java63 public final int TIMEOUT = 2000; field in ExternalStorageHelper
92 Thread.sleep(TIMEOUT); in openSdCardSetUpNotification()
94 .wait(Until.findObject(By.textContains("SD card detected")), TIMEOUT); in openSdCardSetUpNotification()
106 Thread.sleep(TIMEOUT * 2); in openStorageSettings()
114 mDevice.wait(Until.findObject(By.textContains("SD card")), TIMEOUT) in openSDCard()
115 .clickAndWait(Until.newWindow(), TIMEOUT); in openSDCard() local
164 Thread.sleep(TIMEOUT); in getAdoptionDisk()
196 Thread.sleep(TIMEOUT); in getAdoptionVolumeInfo()
205 Thread.sleep(2 * TIMEOUT); in partitionDisk()
209 Thread.sleep(2 * TIMEOUT); in partitionDisk()
[all …]
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java45 public final int TIMEOUT = 1000; field in AppLinkTests
72 mDevice.wait(Until.findObject(By.text("AppLinkTestApp")), TIMEOUT).click(); in testUserSetToJustOnceAndAlways()
73 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT).click(); in testUserSetToJustOnceAndAlways()
74 Thread.sleep(TIMEOUT); in testUserSetToJustOnceAndAlways()
78 mDevice.wait(Until.hasObject(By.text("Open with AppLinkTestApp")), TIMEOUT)); in testUserSetToJustOnceAndAlways()
79 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT) in testUserSetToJustOnceAndAlways()
80 .clickAndWait(Until.newWindow(), TIMEOUT); in testUserSetToJustOnceAndAlways() local
81 Thread.sleep(TIMEOUT); in testUserSetToJustOnceAndAlways()
87 mDevice.wait(Until.findObject(By.res("android:id/button_always")), TIMEOUT).click(); in testUserSetToJustOnceAndAlways()
98 Thread.sleep(TIMEOUT); in testVerifiedAppOpenWhenNotVerifiedSetToAlways()
[all …]
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
DLocationSettingsTests.java38 private static final int TIMEOUT = 2000; field in LocationSettingsTests
66 (By.res(SETTINGS_PACKAGE, "dashboard_container")), 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()
98 Thread.sleep(TIMEOUT); in testLocationDeviceOnlyMode()
106 Thread.sleep(TIMEOUT); in testLocationBatterySavingMode()
114 Thread.sleep(TIMEOUT); in testLocationHighAccuracyMode()
124 Thread.sleep(TIMEOUT); in testLocationSettingsElements()
127 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements()
[all …]
DWirelessNetworkSettingsTests.java39 private static final int TIMEOUT = 2000; field in WirelessNetworkSettingsTests
149 TIMEOUT); in testWifiMenuLoadConfigure()
188 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
190 By.text(ADD_NETWORK_MENU_CANCEL_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
195 .clazz(EDIT_TEXT_CLASS)), TIMEOUT) in testAddNetworkMenu_Default()
201 .clazz(SPINNER_CLASS)), TIMEOUT) in testAddNetworkMenu_Default()
207 .clazz(CHECKBOX_CLASS)), TIMEOUT).isChecked()); in testAddNetworkMenu_Default()
218 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
225 assertEquals("None", mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT) in testAddNetworkMenu_Proxy()
230 mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
[all …]
DDataUsageSettingsTests.java34 private static final int TIMEOUT = 2000; field in DataUsageSettingsTests
61 TIMEOUT)); in testElementsOnDataUsageScreen()
64 "color_bar")), TIMEOUT)); in testElementsOnDataUsageScreen()
67 TIMEOUT)); in testElementsOnDataUsageScreen()
70 TIMEOUT)); in testElementsOnDataUsageScreen()
73 TIMEOUT)); in testElementsOnDataUsageScreen()
80 .findObject(By.text("Data usage")), TIMEOUT) in launchDataUsageSettings()
82 Thread.sleep(TIMEOUT * 2); in launchDataUsageSettings()
DMoreWirelessSettingsTests.java37 private static final int TIMEOUT = 2000; field in MoreWirelessSettingsTests
79 UiObject2 nfcSetting = mDevice.wait(Until.findObject(By.text("NFC")), TIMEOUT); in testNFCToggle()
81 Thread.sleep(TIMEOUT*2); in testNFCToggle()
85 Thread.sleep(TIMEOUT*2); in testNFCToggle()
91 Thread.sleep(TIMEOUT*2); in testNFCToggle()
101 .findObject(By.text("Tethering & portable hotspot")), TIMEOUT) in testTetheringMenuLoad()
103 Thread.sleep(TIMEOUT); in testTetheringMenuLoad()
105 .findObject(By.text("USB tethering")), TIMEOUT); in testTetheringMenuLoad()
114 .findObject(By.text("VPN")), TIMEOUT) in testVPNMenuLoad()
116 Thread.sleep(TIMEOUT); in testVPNMenuLoad()
[all …]
DMainSettingsTests.java42 private static final int TIMEOUT = 2000; field in MainSettingsTests
76 TIMEOUT); in testLoadSetting()
100 TIMEOUT); in launchMainSettingsCategory()
110 mDevice.wait(Until.findObject(By.desc("Search settings")), TIMEOUT).click(); in testSearchSetting()
112 TIMEOUT); in testSearchSetting()
116 mDevice.wait(Until.findObject(By.desc("Collapse")), TIMEOUT).click(); in testSearchSetting()
119 mDevice.wait(Until.findObject(By.desc("Collapse")), TIMEOUT).click(); in testSearchSetting()
126 mDevice.wait(Until.findObject(By.desc("More options")), TIMEOUT).click(); in testOverflowSetting()
127 mDevice.wait(Until.findObject(By.text("Help & feedback")), TIMEOUT).click(); in testOverflowSetting()
129 TIMEOUT); in testOverflowSetting()
[all …]
DBluetoothNetworkSettingsTests.java41 private static final int TIMEOUT = 2000; field in BluetoothNetworkSettingsTests
97 Thread.sleep(TIMEOUT * 2); in launchBluetoothSettings()
112 mDevice.wait(Until.findObject(By.desc("More options")), TIMEOUT).click(); in verifyBluetoothOverflowOptions()
113 Thread.sleep(TIMEOUT); in verifyBluetoothOverflowOptions()
115 TIMEOUT); in verifyBluetoothOverflowOptions()
124 UiObject2 loadOption = mDevice.wait(Until.findObject(By.text(optionLoaded)), TIMEOUT); in verifyBluetoothOverflowOptions()
147 .findObject(By.res(SETTINGS_PACKAGE, "switch_widget").text(switchText)), TIMEOUT) in verifyBluetoothOnOrOff()
149 Thread.sleep(TIMEOUT); in verifyBluetoothOnOrOff()
DAboutPhoneSettingsTests.java41 private static final int TIMEOUT = 2000; field in AboutPhoneSettingsTests
77 Thread.sleep(TIMEOUT * 2); in setUp()
83 Until.findObject(By.res(SETTINGS_PACKAGE + ":id/main_content")), TIMEOUT); in setUp()
91 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating in tearDown()
127 Thread.sleep(TIMEOUT * 2); // give UI time to finish animating in call()
129 Thread.sleep(TIMEOUT * 2); in call()
145 UiObject2 item = device.wait(Until.findObject(By.text(itemText)), TIMEOUT); in removeItemsAndTakeAction()
192 TIMEOUT * 2); in searchForItemsAndTakeAction()
DAccessibilitySettingsTests.java36 private static final int TIMEOUT = 2000; field in AccessibilitySettingsTests
183 Thread.sleep(TIMEOUT); in verifyAccessibilitySettingOnOrOff()
194 Thread.sleep(TIMEOUT); in verifySettingToggleAfterScreenLoad()
199 Thread.sleep(TIMEOUT); in verifySettingToggleAfterScreenLoad()
202 TIMEOUT); in verifySettingToggleAfterScreenLoad()
205 Thread.sleep(TIMEOUT); in verifySettingToggleAfterScreenLoad()
214 Thread.sleep(TIMEOUT); in verifySettingToggleAfterScreenLoad()
224 (By.res(SETTINGS_PACKAGE, "list")), TIMEOUT); in findItemOnScreen()
231 setting = mDevice.wait(Until.findObject(By.text(item)), TIMEOUT); in findItemOnScreen()
242 (By.res("android:id/button1")), TIMEOUT*2); in dismissOpenDialog()
DMainSettingsLargeTests.java39 private static final int TIMEOUT = 2000; field in MainSettingsLargeTests
94 Thread.sleep(TIMEOUT * 2); in launchMainSettings()
102 item = mDevice.wait(Until.findObject(By.res("android:id/title").text(title)), TIMEOUT); in launchSettingItems()
106 TIMEOUT); in launchSettingItems()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTests.java68 random.nextInt(2 * mDLAppHelper.TIMEOUT), Boolean.FALSE); in testAddCompletedDownload()
80 By.res("com.android.documentsui:id/container_directory")), mDLAppHelper.TIMEOUT); in testScroll()
119 2 * mDLAppHelper.TIMEOUT).click(); in testToggleViewTypeForDownloadItems()
123 2 * mDLAppHelper.TIMEOUT).click(); in testToggleViewTypeForDownloadItems()
132 mDLAppHelper.TIMEOUT).getChildren().get(1).click(1 * 2 * mDLAppHelper.TIMEOUT); in testCABMenuShow()
136 DownloadAppTestHelper.PACKAGE_NAME))), mDLAppHelper.TIMEOUT)) == null in testCABMenuShow()
141 DownloadAppTestHelper.PACKAGE_NAME))), mDLAppHelper.TIMEOUT)) == null in testCABMenuShow()
146 By.desc("More options")), mDLAppHelper.TIMEOUT)) == null && counter-- > 0) in testCABMenuShow()
150 By.desc("Done")), mDLAppHelper.TIMEOUT)) == null && counter-- > 0) in testCABMenuShow()
154 SystemClock.sleep(2 * mDLAppHelper.TIMEOUT); in testCABMenuShow()
[all …]
/platform_testing/tests/functional/launchertests/src/com/android/launcher/functional/
DHomeScreenTests.java45 private static final int TIMEOUT = 3000; field in HomeScreenTests
77 SystemClock.sleep(TIMEOUT); in launchAppWithIntent()
93 TIMEOUT)); in testHomeToRecentsNavigation()
102 UiObject2 calculatorIcon = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); in testCreateAndDeleteShortcutOnHome()
114 Thread.sleep(TIMEOUT); in testScreenOffOnUsingPowerButton()
117 Thread.sleep(TIMEOUT); in testScreenOffOnUsingPowerButton()
158 mDevice.wait(Until.hasObject(By.res(pageLoadResourceId)), TIMEOUT)); in verifyHomeLongPressMenu()
172 UiObject2 analogClock = mDevice.wait(Until.findObject(By.text("Analog clock")), TIMEOUT); in testAddRemoveWidgetOnHome()
196 (Until.findObject(By.text("Calculator")), TIMEOUT); in testCreateRenameRemoveFolderOnHome()
198 (Until.findObject(By.text("Clock")), TIMEOUT); in testCreateRenameRemoveFolderOnHome()
[all …]
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java106 mDevice.wait(Until.findObject(By.text("GET CONTACT PERMISSION")), pHelper.TIMEOUT).click(); in testPermissionDialogAllow()
108 By.res(PACKAGE_INSTALLER, "permission_allow_button")), pHelper.TIMEOUT).click(); in testPermissionDialogAllow()
123 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); in testPermissionDialogDenyFlow()
124 UiObject2 dontAskChk = mDevice.wait(Until.findObject(dontAskChkSelector), pHelper.TIMEOUT); in testPermissionDialogDenyFlow()
126 mDevice.wait(Until.findObject(denySelctor), pHelper.TIMEOUT).click(); in testPermissionDialogDenyFlow()
127 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); in testPermissionDialogDenyFlow()
128 mDevice.wait(Until.findObject(dontAskChkSelector), pHelper.TIMEOUT).click(); in testPermissionDialogDenyFlow()
129 mDevice.wait(Until.findObject(denySelctor), pHelper.TIMEOUT).click(); in testPermissionDialogDenyFlow()
130 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click();; in testPermissionDialogDenyFlow()
131 assertNull(mDevice.wait(Until.findObject(denySelctor), pHelper.TIMEOUT)); in testPermissionDialogDenyFlow()
DPermissionHelper.java49 public final int TIMEOUT = 500; field in PermissionHelper
210 .wait(Until.findObject(By.res("android:id/list_container")), TIMEOUT); in verifyPermissionSettingStatus()
262 TIMEOUT)) == null)) { in openAppPermissionView()
264 TIMEOUT); in openAppPermissionView()
270 TIMEOUT) in openAppPermissionView()
271 .clickAndWait(Until.newWindow(), TIMEOUT); in openAppPermissionView() local
277 TIMEOUT)) == null)) { in openAppPermissionView()
279 TIMEOUT); in openAppPermissionView()
283 app.clickAndWait(Until.newWindow(), TIMEOUT); in openAppPermissionView() local
285 TIMEOUT).clickAndWait(Until.newWindow(), TIMEOUT); in openAppPermissionView() local
[all …]
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java58 private static final int TIMEOUT = 5000; field in DialerJankTests
100 UiObject2 contacts = mDevice.wait(Until.findObject(By.desc("Contacts")), TIMEOUT); in launchDialer()
102 contacts.clickAndWait(Until.newWindow(), TIMEOUT); in launchDialer() local
105 By.res(RES_PACKAGE_NAME, "cliv_name_textview").text(CONTACT_NAME)), TIMEOUT); in launchDialer()
107 contactName.clickAndWait(Until.newWindow(), TIMEOUT); in launchDialer() local
110 By.res(RES_PACKAGE_NAME2,"header").text(CONTACT_NUMBER)), TIMEOUT); in launchDialer()
112 contactNumber.clickAndWait(Until.newWindow(), TIMEOUT); in launchDialer() local
115 "floating_end_call_action_button")), 2 * TIMEOUT); in launchDialer()
116 endCall.clickAndWait(Until.newWindow(), TIMEOUT);; in launchDialer() local
125 By.res(RES_PACKAGE_NAME2,"header").text(CONTACT_NUMBER)), TIMEOUT); in testDialerCallInit()
[all …]
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTests.java80 By.res("android", "content")), mHelper.TIMEOUT); in testFullscreenOverdraw()
108 By.res("android", "content")), mHelper.TIMEOUT); in testInvalidate()
124 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialAnimation()
140 By.clazz(ListView.class)), mHelper.TIMEOUT); in testTrivialListViewFling()
149 By.clazz(ListView.class)), mHelper.TIMEOUT); in testTrivialListViewFling()
154 By.clazz(ListView.class)), mHelper.TIMEOUT); in testTrivialListViewFling()
171 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
182 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
187 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
206 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling()
[all …]
DUiBenchTextJankTests.java117 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
124 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
129 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
134 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
150 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheLowHitrateFling()
157 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheLowHitrateFling()
162 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheLowHitrateFling()
167 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheLowHitrateFling()
DUiBenchJankTestsHelper.java37 public static final int TIMEOUT = 250; field in UiBenchJankTestsHelper
106 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
110 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
116 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
121 SystemClock.sleep(TIMEOUT); in openTextInList()
DUiBenchRenderingJankTests.java94 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling()
99 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling()
103 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSettingsJankTests.java42 private static final int TIMEOUT = 5000; field in SettingsJankTests
73 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in setUp()
84 UiObject2 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT); in flingSettingsToStart()
87 mDevice.wait(Until.findObject(By.text("SEE ALL")), TIMEOUT).click(); in flingSettingsToStart()
88 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT); in flingSettingsToStart()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTests.java60 By.clazz(ListView.class)), mHelper.TIMEOUT); in openDialogList()
128 By.res("android", "content")), mHelper.TIMEOUT); in openTrivialListView()
144 By.res("android", "content")), mHelper.TIMEOUT); in openTrivialRecyclerListView()
161 By.res("android", "content")), mHelper.TIMEOUT); in openInflatingListView()
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/
DContactsJankTests.java51 private static final int TIMEOUT = 5000; field in ContactsJankTests
91 mDevice.wait(Until.findObject(By.clazz(TextView.class).selected(true)), TIMEOUT)); in launchContacts()
93 By.res(RES_PACKAGE_NAME, "pinned_header_list_layout")), TIMEOUT)); in launchContacts()
117 By.res(RES_PACKAGE_NAME, "pinned_header_list_layout")), TIMEOUT); in testAllContactsFling()

12