Searched refs:TIMEOUT_MS (Results 1 – 8 of 8) sorted by relevance
| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | UntilTest.java | 43 private static final long TIMEOUT_MS = 5_000; field in UntilTest 52 assertTrue(mDevice.wait(Until.gone(target), TIMEOUT_MS)); in testGone() local 63 assertTrue(mDevice.wait(Until.hasObject(target), TIMEOUT_MS)); in testHasObject() local 74 assertNotNull(mDevice.wait(Until.findObject(target), TIMEOUT_MS)); in testFindObject() local 85 assertNotNull(mDevice.wait(Until.findObjects(target), TIMEOUT_MS)); in testFindObjects() local 96 assertTrue(target.wait(Until.checked(true), TIMEOUT_MS)); in testChecked() local 107 assertTrue(target.wait(Until.clickable(true), TIMEOUT_MS)); in testClickable() local 118 assertTrue(target.wait(Until.enabled(true), TIMEOUT_MS)); in testEnabled() local 129 assertTrue(target.wait(Until.focusable(true), TIMEOUT_MS)); in testFocusable() local 140 assertTrue(target.wait(Until.focused(true), TIMEOUT_MS)); in testFocused() local [all …]
|
| D | UiDeviceTest.java | 60 private static final long TIMEOUT_MS = 5_000; field in UiDeviceTest 113 Until.newWindow(), TIMEOUT_MS)); in testPerformActionAndWait() local 143 assertTrue(textView.wait(Until.textEquals("keycode menu pressed; "), TIMEOUT_MS)); in testPressMenu() 152 assertTrue(textView.wait(Until.textEquals("keycode back pressed; "), TIMEOUT_MS)); in testPressBack() 161 assertTrue(textView.wait(Until.textEquals("keycode search pressed; "), TIMEOUT_MS)); in testPressSearch() 170 assertTrue(textView.wait(Until.textEquals("keycode dpad center pressed; "), TIMEOUT_MS)); in testPressDPadCenter() 179 assertTrue(textView.wait(Until.textEquals("keycode dpad down pressed; "), TIMEOUT_MS)); in testPressDPadDown() 188 assertTrue(textView.wait(Until.textEquals("keycode dpad up pressed; "), TIMEOUT_MS)); in testPressDPadUp() 197 assertTrue(textView.wait(Until.textEquals("keycode dpad left pressed; "), TIMEOUT_MS)); in testPressDPadLeft() 206 assertTrue(textView.wait(Until.textEquals("keycode dpad right pressed; "), TIMEOUT_MS)); in testPressDPadRight() [all …]
|
| D | UiObject2Test.java | 59 private static final int TIMEOUT_MS = 10_000; field in UiObject2Test 72 assertTrue(mDevice.wait(Until.hasObject(emptyText), TIMEOUT_MS)); in testClear() local 83 button1.wait(Until.textEquals("text1_clicked"), TIMEOUT_MS); in testClick() 97 button2.wait(Until.textEquals("text2_clicked"), TIMEOUT_MS); in testClick_point() 104 button3.wait(Until.textEquals("text3_clicked"), TIMEOUT_MS); in testClick_point() 116 button4.wait(Until.textEquals("text4_clicked"), TIMEOUT_MS); in testClick_duration() 123 button5.wait(Until.textEquals("text5_long_clicked"), TIMEOUT_MS); in testClick_duration() 135 button6.wait(Until.textEquals("text6_clicked"), TIMEOUT_MS); in testClick_pointAndDuration() 143 button7.wait(Until.textEquals("text7_long_clicked"), TIMEOUT_MS); in testClick_pointAndDuration() 153 assertTrue(button.clickAndWait(Until.newWindow(), TIMEOUT_MS)); in testClickAndWait_conditionAndTimeout() local [all …]
|
| D | UiObjectTest.java | 53 }, TIMEOUT_MS)); in awaitTrue() 118 assertTrue(expectedDragDest.waitForExists(TIMEOUT_MS)); in testDragTo_destObjAndSteps() 137 assertTrue(expectedDragDest.waitForExists(TIMEOUT_MS)); in testDragTo_destXAndDestYAndSteps() 158 assertTrue(expectedSwipeRegion.waitForExists(TIMEOUT_MS)); in testSwipeUp() 177 assertTrue(expectedSwipeRegion.waitForExists(TIMEOUT_MS)); in testSwipeDown() 196 assertTrue(expectedSwipeRegion.waitForExists(TIMEOUT_MS)); in testSwipeLeft() 215 assertTrue(expectedSwipeRegion.waitForExists(TIMEOUT_MS)); in testSwipeRight() 230 assertTrue(expectedButton1.waitForExists(TIMEOUT_MS)); in testClick() 578 assertTrue(expectedText1.waitForExists(TIMEOUT_MS)); in testWaitForExists() 602 assertTrue(expectedText1.waitUntilGone(TIMEOUT_MS)); in testWaitUntilGone() [all …]
|
| D | ComposeTest.java | 52 UiObject2 text = mDevice.wait(Until.findObject(By.text("Initial")), TIMEOUT_MS); in testEndToEnd() 56 text.wait(Until.textEquals("Updated"), TIMEOUT_MS)); in testEndToEnd()
|
| D | MultiWindowTest.java | 51 assertTrue(mDevice.wait(Until.hasObject(firstWindowSelector), TIMEOUT_MS)); in testMultiWindow_splitScreen() local 56 assertTrue(mDevice.wait(Until.hasObject(secondWindowSelector), TIMEOUT_MS)); in testMultiWindow_splitScreen() local
|
| D | BaseTest.java | 49 protected static final long TIMEOUT_MS = 10_000; field in BaseTest 87 mDevice.wait(Until.hasObject(By.pkg(TEST_APP)), TIMEOUT_MS)); in launchTestActivity()
|
| D | MultiDisplayTest.java | 90 assertTrue(button.wait(Until.textEquals("text1_clicked"), TIMEOUT_MS)); in testMultiDisplay_click()
|