Home
last modified time | relevance | path

Searched refs:advanceTimeBy (Results 1 – 17 of 17) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DTestCoroutineSchedulerTest.kt32 testScheduler.advanceTimeBy(15.milliseconds) in <lambda>()
43 scheduler.advanceTimeBy((-1).milliseconds) in testAdvanceTimeByWithNegativeDelay()
69 testScheduler.advanceTimeBy(Duration.INFINITE) in <lambda>()
99 advanceTimeBy(2.seconds) in <lambda>()
102 advanceTimeBy(2.milliseconds) in <lambda>()
124 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>()
128 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>()
147 scheduler.advanceTimeBy(SLOW.milliseconds) in <lambda>()
150 scheduler.advanceTimeBy(SLOW.milliseconds) in <lambda>()
DTestScopeTest.kt253 advanceTimeBy(199.milliseconds) // should work the same for the background tasks in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/migration/
DDelayController.kt72 public fun advanceTimeBy(delayTimeMillis: Long): Long in advanceTimeBy() method
168 override fun advanceTimeBy(delayTimeMillis: Long): Long { in advanceTimeBy() method
170 scheduler.advanceTimeBy(delayTimeMillis) in advanceTimeBy()
DTestCoroutineScope.kt245 public fun TestCoroutineScope.advanceTimeBy(delayTimeMillis: Long): Unit = in advanceTimeBy() method
248 testScheduler.advanceTimeBy(delayTimeMillis) in advanceTimeBy()
252 controller.advanceTimeBy(delayTimeMillis) in advanceTimeBy()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestScope.kt121 public fun TestScope.advanceTimeBy(delayTimeMillis: Long): Unit = testScheduler.advanceTimeBy(delay… in advanceUntilIdle() method
131 public fun TestScope.advanceTimeBy(delayTime: Duration): Unit = testScheduler.advanceTimeBy(delayTi… in advanceUntilIdle() method
DTestCoroutineScheduler.kt157 …public fun advanceTimeBy(delayTimeMillis: Long): Unit = advanceTimeBy(delayTimeMillis.milliseconds) in advanceTimeBy() method in kotlinx.coroutines.test.TestCoroutineScheduler
165 public fun advanceTimeBy(delayTime: Duration) { in advanceTimeBy() method in kotlinx.coroutines.test.TestCoroutineScheduler
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestCoroutineDispatcherOrderTest.kt34 dispatcher.advanceTimeBy(2_000) in testAdvanceTimeBy_progressesOnEachDelay()
37 dispatcher.advanceTimeBy(2) in testAdvanceTimeBy_progressesOnEachDelay()
DTestRunBlockingTest.kt242 advanceTimeBy(SLOW) in <lambda>()
346 advanceTimeBy(SLOW) in <lambda>()
DTestBuildersTest.kt97 scope.advanceTimeBy(1_000) in whenInAsync_runBlocking_nestsProperly()
DRunBlockingTestOnTestScopeTest.kt242 advanceTimeBy(199) // should work the same for the background tasks in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api2 public abstract fun advanceTimeBy (J)J
38 public fun advanceTimeBy (J)J
69 public final fun advanceTimeBy (J)V
70 public final fun advanceTimeBy-LRDsOJo (J)V
88 public static final fun advanceTimeBy (Lkotlinx/coroutines/test/TestCoroutineScope;J)V
121 public static final fun advanceTimeBy (Lkotlinx/coroutines/test/TestScope;J)V
122 public static final fun advanceTimeBy-HG0u8IE (Lkotlinx/coroutines/test/TestScope;J)V
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DTestScheduledExecutorService.java108 public void advanceTimeBy(long timeout, TimeUnit unit) throws Exception { in advanceTimeBy() method
DRobolectricTestUtilities.java365 scheduledExecutorService.advanceTimeBy(1, SECONDS); in advanceTimeBySeconds()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DREADME.md198 * `advanceTimeBy(timeDelta)` runs the enqueued tasks until the current virtual time advances by `ti…
208 println(2) // executes during advanceTimeBy(2_000)
210 println(3) // also executes during advanceTimeBy(2_000)
219 …testScheduler.advanceTimeBy(2.seconds) // progress time, this will cause two calls to `delay` to r…
DMIGRATION.md123 ## Replace `advanceTimeBy(n)` with `advanceTimeBy(n); runCurrent()`
125 For `TestCoroutineScope` and `DelayController`, the `advanceTimeBy` method is deprecated.
276 Be wary though of this approach: using `runCurrent`, `advanceTimeBy`, or `advanceUntilIdle` is, ess…
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/
DOtherProfileListenableFutureTest.java151 scheduledExecutorService.advanceTimeBy(10, TimeUnit.MINUTES); in other_listenableFuture_doesNotTimeout()
DOtherProfileAsyncTest.java181 scheduledExecutorService.advanceTimeBy(10, TimeUnit.MINUTES); in other_async_doesNotTimeOut()