Home
last modified time | relevance | path

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

12

/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DDeviceHelpers.kt67 timeout: Duration = LONG_WAIT, in waitForObj()
69 ): UiObject2 = DeviceHelpers.waitForObj(selector, timeout, errorProvider)
80 timeout: Duration = LONG_WAIT, in waitForObj()
83 waitFor("$selector object", timeout, errorProvider) { uiDevice.findObject(selector) } in <lambda>()
92 timeout: Duration = LONG_WAIT, in waitForObj()
94 ): UiObject2 = waitFor("$selector object", timeout, errorProvider) { findObject(selector) } in <lambda>()
105 timeout: Duration = SHORT_WAIT, in waitForNullableObj()
106 ): UiObject2? = DeviceHelpers.waitForNullableObj(selector, timeout) in waitForNullableObj()
113 timeout: Duration = SHORT_WAIT, in waitForNullableObj()
115 waitForNullable("nullable $selector objects", timeout) { uiDevice.findObject(selector) } in waitForNullableObj()
[all …]
DWaitUtils.kt64 timeout: Duration = DEFAULT_DEADLINE, in ensureThat()
73 waitToBecomeTrue(description, timeout, condition).run { in ensureThat()
105 timeout: Duration = DEFAULT_DEADLINE, in waitToBecomeTrue()
117 val timeoutMs = timeout.toMillis() in waitToBecomeTrue()
152 timeout: Duration = DEFAULT_DEADLINE, in waitForValueToSettle()
154 defaultWaitForSettleError(minimumSettleTime, description, timeout), in waitForValueToSettle()
160 timeout, in waitForValueToSettle()
192 timeout: Duration = DEFAULT_DEADLINE, in waitForNullableValueToSettle()
194 defaultWaitForSettleError(minimumSettleTime, description, timeout), in waitForNullableValueToSettle()
215 while (now().isBefore(startTime + timeout)) { in waitForNullableValueToSettle()
[all …]
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dnearby_connection_wrapper.py94 self, timeout: datetime.timedelta
108 'onEndpointFound', timeout=timeout.total_seconds()
138 timeout: datetime.timedelta,
163 'onConnectionInitiated', timeout.total_seconds()
186 'onConnectionInitiated', timeout=timeout.total_seconds()
201 self, timeout: datetime.timedelta
219 'onConnectionResult', timeout=timeout.total_seconds()
234 'onConnectionResult', timeout=timeout.total_seconds()
289 timeout=nc_constants.DISCONNECTION_TIMEOUT.total_seconds(),
317 self.start_discovery(timeout=timeouts.discovery_timeout)
[all …]
DCHANGELOG.md10 * Increase 1G file transfer timeout to 400s.
/platform_testing/tests/bettertogether/betocq/
Dnearby_connection_wrapper.py95 def start_discovery(self, timeout: datetime.timedelta) -> None:
108 'onEndpointFound', timeout=timeout.total_seconds()
139 timeout: datetime.timedelta,
163 'onConnectionInitiated', timeout.total_seconds()
184 'onConnectionInitiated', timeout=timeout.total_seconds()
201 self, timeout: datetime.timedelta
219 'onConnectionResult', timeout=timeout.total_seconds()
234 'onConnectionResult', timeout=timeout.total_seconds()
293 timeout=nc_constants.DISCONNECTION_TIMEOUT.total_seconds(),
323 self.start_discovery(timeout=timeouts.discovery_timeout)
[all …]
Dandroid_wifi_utils.py96 timeout = start_time + _DELAY_AFTER_CHANGE_WIFI_STATUS.total_seconds()
97 while time.monotonic() < timeout:
116 timeout = start_time + _DELAY_AFTER_CHANGE_WIFI_STATUS.total_seconds()
117 while time.monotonic() < timeout:
195 timeout: datetime.timedelta = _WAIT_FOR_CONNECTION,
199 timeout = start_time + timeout.total_seconds()
200 while time.monotonic() < timeout:
/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil2.java67 public boolean pressDPad(Direction direction, long repeat, long timeout) { in pressDPad() argument
85 SystemClock.sleep(timeout); in pressDPad()
163 long timeout) { in pressKeyCodeAndWait() argument
165 timeout); in pressKeyCodeAndWait()
168 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
169 return pressKeyCodeAndWait(keyCode, condition, false, timeout); in pressKeyCodeAndWait()
172 public <R> R pressDPadCenterAndWait(EventCondition<R> condition, long timeout) { in pressDPadCenterAndWait() argument
174 condition, timeout); in pressDPadCenterAndWait()
177 public <R> R pressEnterAndWait(EventCondition<R> condition, long timeout) { in pressEnterAndWait() argument
179 condition, timeout); in pressEnterAndWait()
DDPadUtil.java68 public boolean pressDPad(Direction direction, long repeat, long timeout) { in pressDPad() argument
86 SystemClock.sleep(timeout); in pressDPad()
164 long timeout) { in pressKeyCodeAndWait() argument
166 timeout); in pressKeyCodeAndWait()
169 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
170 return pressKeyCodeAndWait(keyCode, condition, false, timeout); in pressKeyCodeAndWait()
173 public <R> R pressDPadCenterAndWait(EventCondition<R> condition, long timeout) { in pressDPadCenterAndWait() argument
175 condition, timeout); in pressDPadCenterAndWait()
178 public <R> R pressEnterAndWait(EventCondition<R> condition, long timeout) { in pressEnterAndWait() argument
180 condition, timeout); in pressEnterAndWait()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DWaitForIdleTimeoutRuleTest.java78 long timeout = 777L; in testSetsAndRestoresTimeout() local
79 WaitForIdleTimeoutRule rule = createRule(timeout, false); in testSetsAndRestoresTimeout()
85 String.format(TestableTimeoutSetter.SET_TIMEOUT_LOG_TEMPLATE, timeout), in testSetsAndRestoresTimeout()
102 private WaitForIdleTimeoutRule createRule(long timeout, Boolean disabled) { in createRule() argument
104 args.putString(WaitForIdleTimeoutRule.TIMEOUT_OPTION, String.valueOf(timeout)); in createRule()
/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
100 while (timeout >= System.currentTimeMillis()) { in numberOfLogcatStringsFound()
/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/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/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java540 protected void waitAndClickById(String packageStr, String id, long timeout) { in waitAndClickById() argument
541 clickOn(mDevice.wait(Until.findObject(By.res(packageStr, id)), timeout)); in waitAndClickById() local
544 protected void waitAndClickByText(String text, long timeout) { in waitAndClickByText() argument
545 clickOn(mDevice.wait(Until.findObject(By.text(text)), timeout)); in waitAndClickByText() local
548 protected void waitAndClickByDescription(String description, long timeout) { in waitAndClickByDescription() argument
549 clickOn(mDevice.wait(Until.findObject(By.desc(description)), timeout)); in waitAndClickByDescription() local
552 protected void checkElementWithIdExists(String packageStr, String id, long timeout) { in checkElementWithIdExists() argument
553 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists()
559 protected void checkElementWithTextExists(String text, long timeout) { in checkElementWithTextExists() argument
560 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
[all …]
DAbstractStandardAppHelper.java581 protected void waitAndClickById(String packageStr, String id, long timeout) { in waitAndClickById() argument
582 clickOn(mDevice.wait(Until.findObject(By.res(packageStr, id)), timeout)); in waitAndClickById() local
585 protected void waitAndClickByText(String text, long timeout) { in waitAndClickByText() argument
586 clickOn(mDevice.wait(Until.findObject(By.text(text)), timeout)); in waitAndClickByText() local
589 protected void waitAndClickByDescription(String description, long timeout) { in waitAndClickByDescription() argument
590 clickOn(mDevice.wait(Until.findObject(By.desc(description)), timeout)); in waitAndClickByDescription() local
593 protected void checkElementWithIdExists(String packageStr, String id, long timeout) { in checkElementWithIdExists() argument
594 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists()
600 protected void checkElementWithTextExists(String text, long timeout) { in checkElementWithTextExists() argument
601 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
[all …]
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DNohupCommandHelper.java43 public static void executeAdbNohupCommand(ITestDevice device, String cmd, int timeout) in executeAdbNohupCommand() argument
83 timeout, in executeAdbNohupCommand()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfileSuite.java174 long timeout = in getSuiteRunner() local
181 timeout, in getSuiteRunner()
203 BlockJUnit4ClassRunner runner, Scenario scenario, long timeout, boolean shouldIdle) { in getScheduledRunner() argument
206 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/sts-common-util/host-side/src/com/android/sts/common/
DRegexUtils.java120 TimeoutCharSequence(CharSequence chars, long timeout) { in TimeoutCharSequence() argument
122 expireTime = System.currentTimeMillis() + timeout; in TimeoutCharSequence()
/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/launcherhelper2/
DAutoLauncherStrategy.java260 private void waitUntilAppOpen(String appName, long timeout) { in waitUntilAppOpen() argument
261 waitUntilOneOfTheAppOpen(Arrays.asList(appName), timeout); in waitUntilAppOpen() local
268 private void waitUntilOneOfTheAppOpen(List<String> appNames, long timeout) { in waitUntilOneOfTheAppOpen() argument
272 while (SystemClock.uptimeMillis() - startTime < timeout) { in waitUntilOneOfTheAppOpen()
288 String.join(", ", appNames), timeout)); in waitUntilOneOfTheAppOpen()
/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/systemui-helper/src/android/platform/helpers/
DSysuiRestarter.kt77 timeout = Duration.ofSeconds(10).platformAdjust(), in assertLockscreenVisibility()

12