/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | DeviceHelpers.kt | 67 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 …]
|
D | WaitUtils.kt | 64 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/ |
D | nearby_connection_wrapper.py | 94 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 …]
|
D | CHANGELOG.md | 10 * Increase 1G file transfer timeout to 400s.
|
/platform_testing/tests/bettertogether/betocq/ |
D | nearby_connection_wrapper.py | 95 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 …]
|
D | android_wifi_utils.py | 96 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/ |
D | DPadUtil2.java | 67 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()
|
D | DPadUtil.java | 68 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/ |
D | WaitForIdleTimeoutRuleTest.java | 78 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/ |
D | CommonTestUtils.java | 33 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; in waitUntil() local 34 while (System.currentTimeMillis() < timeout) { in waitUntil()
|
D | LogcatInspector.java | 97 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/ |
D | AudioCaptureSession.java | 116 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()
|
D | CaptureChunkStreamObserverOutputStream.java | 178 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/ |
D | IYouTubeHelper.java | 100 public boolean waitForVideoToLoad(long timeout); in waitForVideoToLoad() argument 110 public boolean waitForSearchResults(long timeout); in waitForSearchResults() argument
|
D | IGoogleKeyboardHelper.java | 25 public boolean waitForKeyboard(long timeout); in waitForKeyboard() argument
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | AbstractStandardAppHelper2.java | 540 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 …]
|
D | AbstractStandardAppHelper.java | 581 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/ |
D | NohupCommandHelper.java | 43 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/ |
D | ProfileSuite.java | 174 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()
|
D | ScheduledScenarioRunner.java | 77 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/ |
D | RegexUtils.java | 120 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/ |
D | IGoogleCameraHelper.java | 277 public default void viewTopShot(long timeout) { in viewTopShot() argument
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/ |
D | AutoLauncherStrategy.java | 260 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/ |
D | AutoLauncherStrategy.java | 275 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/ |
D | SysuiRestarter.kt | 77 timeout = Duration.ofSeconds(10).platformAdjust(), in assertLockscreenVisibility()
|