Home
last modified time | relevance | path

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

/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DDeviceHelpers.kt37 import java.time.Duration
42 private val SHORT_WAIT = Duration.ofMillis(1500)
43 private val LONG_WAIT = Duration.ofSeconds(10)
44 private val DOUBLE_TAP_INTERVAL = Duration.ofMillis(100)
67 timeout: Duration = LONG_WAIT, in waitForObj()
80 timeout: Duration = LONG_WAIT, in waitForObj()
92 timeout: Duration = LONG_WAIT, in waitForObj()
105 timeout: Duration = SHORT_WAIT, in waitForNullableObj()
113 timeout: Duration = SHORT_WAIT, in waitForNullableObj()
122 timeout: Duration = SHORT_WAIT, in waitForNullableObj()
[all …]
DWaitUtils.kt25 import java.time.Duration
42 private val DEFAULT_DEADLINE = Duration.ofSeconds(10)
43 private val POLLING_WAIT = Duration.ofMillis(100)
44 private val DEFAULT_SETTLE_TIME = Duration.ofSeconds(3)
64 timeout: Duration = DEFAULT_DEADLINE, in ensureThat()
105 timeout: Duration = DEFAULT_DEADLINE, in waitToBecomeTrue()
151 minimumSettleTime: Duration = DEFAULT_SETTLE_TIME, in waitForValueToSettle()
152 timeout: Duration = DEFAULT_DEADLINE, in waitForValueToSettle()
191 minimumSettleTime: Duration = DEFAULT_SETTLE_TIME, in waitForNullableValueToSettle()
192 timeout: Duration = DEFAULT_DEADLINE, in waitForNullableValueToSettle()
[all …]
DBetterSwipe.kt36 import java.time.Duration in <lambda>()
40 private val DEFAULT_DURATION: Duration = Duration.of(500, MILLIS) in <lambda>()
41 private val PAUSE_DURATION: Duration = Duration.of(250, MILLIS) in <lambda>()
94 duration: Duration = DEFAULT_DURATION, in <lambda>()
120 duration: Duration = DEFAULT_DURATION, in <lambda>()
176 /* timeout= */ Duration.ofMillis(INJECT_EVENT_TIMEOUT_MILLIS), in <lambda>()
195 duration: Duration, in <lambda>()
199 stepTime: Duration in <lambda>()
230 fun moveBy(delta: PointF, duration: Duration = DEFAULT_DURATION): Swipes { in <lambda>()
306 private fun calculateStepTime(displayId: Int = DEFAULT_DISPLAY): Duration { in lerp()
[all …]
DDurationUtils.kt18 import java.time.Duration
33 fun Duration.platformAdjust() = method
DBetterFling.kt28 import java.time.Duration
39 private val DEFAULT_FLING_DURATION = Duration.of(100, ChronoUnit.MILLIS)
40 private val DEFAULT_WAIT_TIMEOUT = Duration.of(5, ChronoUnit.SECONDS)
53 duration: Duration = DEFAULT_FLING_DURATION, in fling()
DBetterScroll.kt10 import java.time.Duration
19 private val DEFAULT_WAIT_TIMEOUT = Duration.ofSeconds(1)
/platform_testing/libraries/audio-test-harness/common/src/main/java/com/android/media/audiotestharness/common/
DDefaults.java22 import java.time.Duration;
64 public static final Duration SYSTEM_TIMEOUT = Duration.ofHours(1);
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DProcessUtil.kt6 import java.time.Duration in <lambda>()
20 ensureThat("All sysui process stopped", Duration.ofSeconds(30L)) { in <lambda>()
23 ensureThat("All sysui process restarted", Duration.ofSeconds(30L)) { in <lambda>()
DLaunchAppUtils.kt26 import java.time.Duration
70 private val MAX_TIMEOUT = Duration.ofSeconds(10)
DSysuiRestarter.kt28 import java.time.Duration
77 timeout = Duration.ofSeconds(10).platformAdjust(), in assertLockscreenVisibility()
/platform_testing/libraries/health/utils/src/android/platform/test/util/
DHealthTestingUtils.java23 import java.time.Duration;
129 /* timeout= */ Duration.ofMillis(timeoutMs),
163 /* minimumSettleTime= */ Duration.ofMillis(minimumSettleTime),
164 /* timeout= */ Duration.ofMillis(timeoutMs),
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/examples/
DAudioTestHarnessCliCapturer.java26 import java.time.Duration;
44 private static final Duration RECORD_TIME = Duration.of(10, ChronoUnit.SECONDS);
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DUnlockScreenRule.java31 import java.time.Duration;
69 assertInvisible(screenLock, /* timeout= */ Duration.ofSeconds(20)); in unlockScreen()
DBaseOrientationRule.kt31 import java.time.Duration
114 timeoutDuration: Duration = Duration.ofSeconds(10) in setOrientationOverride()
DScreenRecordRule.kt36 import java.time.Duration in <lambda>()
213 minimumSettleTime = Duration.ofSeconds(5) in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/
DTemporaryMediaNotification.kt29 import java.time.Duration
41 private val SESSION_DURATION = Duration.ofMinutes(60)
42 private val SESSION_POSITION = Duration.ofMinutes(6)
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/
DAudioTestHarnessImpl.java32 import java.time.Duration;
47 public static final Duration MAX_CAPTURE_DURATION = Duration.ofHours(1);
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DGestures.kt22 import java.time.Duration
30 private val WAIT_TIME = Duration.ofSeconds(10)
/platform_testing/libraries/audio-test-harness/client-lib/src/test/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioCaptureStreamTests.java51 import java.time.Duration;
112 Duration actualScheduledDuration = in create_schedulesCancellationTaskWithProperDeadline()
113 Duration.ofNanos( in create_schedulesCancellationTaskWithProperDeadline()
118 Duration difference = actualScheduledDuration.minus(Duration.ofHours(1)).abs(); in create_schedulesCancellationTaskWithProperDeadline()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DUnfoldAnimationTestingUtils.kt8 import java.time.Duration in <lambda>()
26 return waitFor("Icons moving", Duration.ofSeconds(20)) { in <lambda>()
DFoldableDeviceController.kt32 import java.time.Duration in <lambda>()
217 val DEVICE_STATE_MAX_TIMEOUT = Duration.ofSeconds(10) in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/media/
DMockMediaPlayer.java23 import java.time.Duration;
DMediaInstrumentation.java43 import java.time.Duration;
223 Duration.ofSeconds(10), in assertMediaNotificationVisible()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeToolkit.kt41 import kotlin.time.Duration in <lambda>()
42 import kotlin.time.Duration.Companion.milliseconds in <lambda>()
43 import kotlin.time.Duration.Companion.seconds in <lambda>()
84 timeout: Duration = 20.seconds, in MotionTestRule()
138 suspend fun awaitDelay(duration: Duration) in awaitCondition()
367 override suspend fun awaitDelay(duration: Duration) { in <lambda>()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DComposeToolkitTest.kt57 import kotlin.time.Duration.Companion.milliseconds in <lambda>()