Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 16 of 16) 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/compatibility-common-util/src/com/android/compatibility/common/util/
DCommonTestUtils.java33 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; in waitUntil() local
34 while (System.currentTimeMillis() < timeout) { in waitUntil()
DLogcatInspector.java97 long timeout = System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(timeInSeconds); in numberOfLogcatStringsFound() local
99 while (timeout >= System.currentTimeMillis()) { in numberOfLogcatStringsFound()
DBackupUtils.java350 void waitUntilBackupServiceIsRunning(int userId, long timeout) in waitUntilBackupServiceIsRunning() argument
354 timeout, in waitUntilBackupServiceIsRunning()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/
DAudioCaptureSession.java116 public void awaitStop(long timeout, TimeUnit timeUnit) throws IOException { in awaitStop() argument
119 "id=%d - Waiting for Stop up to %d %s", mSessionId, timeout, timeUnit)); in awaitStop()
123 didFinish = mCaptureChunkStreamObserverOutputStream.awaitClose(timeout, timeUnit); in awaitStop()
137 mSessionId, timeout, timeUnit)); in awaitStop()
DCaptureChunkStreamObserverOutputStream.java178 public boolean awaitClose(long timeout, TimeUnit timeUnit) throws InterruptedException { in awaitClose() argument
179 return mCountDownLatch.await(timeout, timeUnit); in awaitClose()
/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/app-helpers/interfaces/common/src/android/platform/helpers/
DIYouTubeHelper.java100 public boolean waitForVideoToLoad(long timeout); in waitForVideoToLoad() argument
110 public boolean waitForSearchResults(long timeout); in waitForSearchResults() argument
DIGoogleKeyboardHelper.java25 public boolean waitForKeyboard(long timeout); in waitForKeyboard() argument
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfileSuite.java164 long timeout = in getSuiteRunner() local
171 timeout, in getSuiteRunner()
193 BlockJUnit4ClassRunner runner, Scenario scenario, long timeout, boolean shouldIdle) { in getScheduledRunner() argument
196 return new ScheduledScenarioRunner(testClass, scenario, timeout, shouldIdle); in getScheduledRunner()
DScheduledScenarioRunner.java76 Class<?> klass, Scenario scenario, long timeout, boolean shouldIdle) in ScheduledScenarioRunner() argument
78 this(klass, scenario, timeout, shouldIdle, InstrumentationRegistry.getArguments()); in ScheduledScenarioRunner()
83 Class<?> klass, Scenario scenario, long timeout, boolean shouldIdle, Bundle arguments) in ScheduledScenarioRunner() argument
88 mTotalTimeoutMs = max(timeout, 0); in ScheduledScenarioRunner()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DIGoogleCameraHelper.java277 public default void viewTopShot(long timeout) { in viewTopShot() argument
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java275 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument
276 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() local
283 private void waitUntilOneOfTheAppOpen(List<String> appNames, long timeout) { in waitUntilOneOfTheAppOpen() argument
287 while (SystemClock.uptimeMillis() - startTime < timeout) { in waitUntilOneOfTheAppOpen()
303 String.join(", ", appNames), timeout)); in waitUntilOneOfTheAppOpen()
/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