Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 14 of 14) sorted by relevance

/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil.java66 public boolean pressDPad(Direction direction, long repeat, long timeout) { in pressDPad() argument
84 SystemClock.sleep(timeout); in pressDPad()
162 long timeout) { in pressKeyCodeAndWait() argument
164 timeout); in pressKeyCodeAndWait()
167 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
168 return pressKeyCodeAndWait(keyCode, condition, false, timeout); in pressKeyCodeAndWait()
171 public <R> R pressDPadCenterAndWait(EventCondition<R> condition, long timeout) { in pressDPadCenterAndWait() argument
173 condition, timeout); in pressDPadCenterAndWait()
176 public <R> R pressEnterAndWait(EventCondition<R> condition, long timeout) { in pressEnterAndWait() argument
178 condition, timeout); in pressEnterAndWait()
/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/
DIYouTubeHelper.java86 public boolean waitForVideoToLoad(long timeout); in waitForVideoToLoad() argument
96 public boolean waitForSearchResults(long timeout); in waitForSearchResults() argument
DIGoogleKeyboardHelper.java25 public boolean waitForKeyboard(long timeout); in waitForKeyboard() argument
/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DUsbDevice.java57 int timeout = (int) mHelper.getTransferTimeout().toMillis(); in controlTransfer() local
58 return controlTransfer(requestType, request, value, index, data, timeout); in controlTransfer()
67 byte requestType, byte request, int value, int index, byte[] data, int timeout) { in controlTransfer() argument
76 timeout); in controlTransfer()
DUsbHelper.java156 public UsbDevice getDevice(@Nonnull String serialNumber, @Nonnull Duration timeout) { in getDevice() argument
160 while (device == null && timeout.compareTo(Duration.between(start, Instant.now())) > 0) { in getDevice()
187 public AoaDevice getAoaDevice(@Nonnull String serialNumber, @Nonnull Duration timeout) { in getAoaDevice() argument
188 UsbDevice device = getDevice(serialNumber, timeout); in getAoaDevice()
DIUsbNative.java131 int timeout); in libusb_control_transfer() argument
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper.java338 protected void waitAndClickById(String packageStr, String id, long timeout) { in waitAndClickById() argument
339 clickOn(mDevice.wait(Until.findObject(By.res(packageStr, id)), timeout)); in waitAndClickById() local
342 protected void waitAndClickByText(String text, long timeout) { in waitAndClickByText() argument
343 clickOn(mDevice.wait(Until.findObject(By.text(text)), timeout)); in waitAndClickByText() local
346 protected void waitAndClickByDescription(String description, long timeout) { in waitAndClickByDescription() argument
347 clickOn(mDevice.wait(Until.findObject(By.desc(description)), timeout)); in waitAndClickByDescription() local
351 protected void checkElementWithIdExists(String packageStr, String id, long timeout) { in checkElementWithIdExists() argument
352 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists()
357 protected void checkElementWithTextExists(String text, long timeout) { in checkElementWithTextExists() argument
358 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
[all …]
DHelperTest.java52 public final TestRule timeout = new Timeout((int)TimeUnit.MINUTES.toMillis(5)); field in HelperTest
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DVolvoLauncherStrategy.java131 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument
132 SystemClock.sleep(timeout); in waitUntilAppOpen()
141 } while ((SystemClock.uptimeMillis() - startTime) < timeout); in waitUntilAppOpen()
146 appName, timeout)); in waitUntilAppOpen()
DAutoLauncherStrategy.java262 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument
263 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() local
270 private void waitUntilOneOfTheAppOpen(List<String> appNames, long timeout) { in waitUntilOneOfTheAppOpen() argument
274 while (SystemClock.uptimeMillis() - startTime < timeout) { in waitUntilOneOfTheAppOpen()
290 String.join(", ", appNames), timeout)); in waitUntilOneOfTheAppOpen()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfileSuite.java141 long timeout = in getSuiteRunner() local
148 timeout, in getSuiteRunner()
169 BlockJUnit4ClassRunner runner, Scenario scenario, long timeout, boolean shouldIdle) { in getScheduledRunner() argument
172 return new ScheduledScenarioRunner(testClass, scenario, timeout, shouldIdle); in getScheduledRunner()
DScheduledScenarioRunner.java77 Class<?> klass, Scenario scenario, long timeout, boolean shouldIdle) in ScheduledScenarioRunner() argument
79 this(klass, scenario, timeout, shouldIdle, InstrumentationRegistry.getArguments()); in ScheduledScenarioRunner()
84 Class<?> klass, Scenario scenario, long timeout, boolean shouldIdle, Bundle arguments) in ScheduledScenarioRunner() argument
89 mTotalTimeoutMs = max(timeout, 0); in ScheduledScenarioRunner()
/platform_testing/libraries/health/runners/longevity/
DREADME.md67 * `suite-timeout_msec <long>` - an overall timeout for the suite.
68 * `timeout_msec <long>` - a timeout for individual test methods.
/platform_testing/utils/crashcollector/src/android/test/crashcollector/
DCollector.java121 private IBinder blockUntilSystemRunning(long timeout) { in blockUntilSystemRunning() argument