Home
last modified time | relevance | path

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

12

/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
H A DTestCoroutineScopeTest.kt28 assertNotNull(scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
34 assertSame(dispatcher.scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
38 val scheduler = TestCoroutineScheduler() in <lambda>()
40 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
45 val scheduler = TestCoroutineScheduler() in <lambda>()
48 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
53 val scheduler = TestCoroutineScheduler() in <lambda>()
58 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
69 val scheduler = TestCoroutineScheduler() in <lambda>()
71 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
[all …]
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
H A DTestScopeTest.kt29 assertNotNull(scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
35 assertSame(dispatcher.scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
39 val scheduler = TestCoroutineScheduler() in <lambda>()
41 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
46 val scheduler = TestCoroutineScheduler() in <lambda>()
49 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
59 val scheduler = TestCoroutineScheduler() in <lambda>()
64 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
75 val scheduler = TestCoroutineScheduler() in <lambda>()
77 assertSame(scheduler, scope.coroutineContext[TestCoroutineScheduler]) in <lambda>()
[all …]
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
H A DTestCoroutineDispatchers.kt80 scheduler: TestCoroutineScheduler? = null, in UnconfinedTestDispatcher()
83 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in UnconfinedTestDispatcher()
86 override val scheduler: TestCoroutineScheduler, in UnconfinedTestDispatcher()
139 scheduler: TestCoroutineScheduler? = null, in StandardTestDispatcher()
142 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in StandardTestDispatcher()
145 override val scheduler: TestCoroutineScheduler = TestCoroutineScheduler(), in StandardTestDispatcher()
H A DTestCoroutineScheduler.kt26 public class TestCoroutineScheduler : AbstractCoroutineContextElement(TestCoroutineScheduler), class
30 public companion object Key : CoroutineContext.Key<TestCoroutineScheduler>
255 internal fun checkSchedulerInContext(scheduler: TestCoroutineScheduler, context: CoroutineContext) { in checkSchedulerInContext()
256 context[TestCoroutineScheduler]?.let { in checkSchedulerInContext()
H A DTestScope.kt43 public val testScheduler: TestCoroutineScheduler in <lambda>()
187 val ctxScheduler = get(TestCoroutineScheduler) in withDelaySkipping()
196 null -> StandardTestDispatcher(get(TestCoroutineScheduler)) in withDelaySkipping()
205 override val testScheduler get() = context[TestCoroutineScheduler]!!
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
H A Dkotlinx-coroutines-test.api36 public fun <init> (Lkotlinx/coroutines/test/TestCoroutineScheduler;)V
37 …public synthetic fun <init> (Lkotlinx/coroutines/test/TestCoroutineScheduler;ILkotlin/jvm/internal…
44 public fun getScheduler ()Lkotlinx/coroutines/test/TestCoroutineScheduler;
53 …public static final fun StandardTestDispatcher (Lkotlinx/coroutines/test/TestCoroutineScheduler;Lj…
54 …tic fun StandardTestDispatcher$default (Lkotlinx/coroutines/test/TestCoroutineScheduler;Ljava/lang…
55 …public static final fun UnconfinedTestDispatcher (Lkotlinx/coroutines/test/TestCoroutineScheduler;…
56 …c fun UnconfinedTestDispatcher$default (Lkotlinx/coroutines/test/TestCoroutineScheduler;Ljava/lang…
66 public final class kotlinx/coroutines/test/TestCoroutineScheduler : kotlin/coroutines/AbstractCorou…
67 public static final field Key Lkotlinx/coroutines/test/TestCoroutineScheduler$Key;
77 public final class kotlinx/coroutines/test/TestCoroutineScheduler$Key : kotlin/coroutines/Coroutine…
[all …]
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/migration/
H A DTestCoroutineScope.kt52 public val testScheduler: TestCoroutineScheduler in <lambda>()
80 override val testScheduler: TestCoroutineScheduler
81 get() = coroutineContext[TestCoroutineScheduler]!!
141 val scheduler = context[TestCoroutineScheduler] ?: TestCoroutineScheduler() in TestCoroutineScope()
H A DTestCoroutineDispatcher.kt24 …stCoroutineDispatcher(public override val scheduler: TestCoroutineScheduler = TestCoroutineSchedul…
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/
H A DREADME.md12 | [TestCoroutineScheduler] | The shared source of virtual time, used for controlling execution orde…
13 … A [CoroutineScope] that integrates with [runTest], providing access to [TestCoroutineScheduler]. |
14 …tDispatcher] | A [CoroutineDispatcher] whose delays are controlled by a [TestCoroutineScheduler]. |
15 … using the provided one. If mocked with a [TestDispatcher], its [TestCoroutineScheduler] is used e…
21 …simple dispatcher with no special behavior other than being linked to a [TestCoroutineScheduler]. |
77 If `Main` is overridden with a [TestDispatcher], then its [TestCoroutineScheduler] is used when new…
78 [TestScope] instances are created without [TestCoroutineScheduler] being passed as an argument.
193 Inside [runTest], the execution is scheduled by [TestCoroutineScheduler], which is a virtual time s…
228 The virtual time is controlled by an entity called the [TestCoroutineScheduler], which behaves as t…
231 Several dispatchers can be created that use the same [TestCoroutineScheduler], in which case they w…
[all …]
H A DMIGRATION.md43 … to have a shared knowledge of the virtual time, either the same `TestCoroutineScheduler` should be
99 If it does break something, it means that you already supplied a `TestCoroutineScheduler` to some s…
126 It is not deprecated for `TestCoroutineScheduler` and `TestScope`, but has a different meaning: it …
424 The point of this pattern is to ensure that the test runs with the same `TestCoroutineScheduler` as…
446 The reason this works is that all entities that depend on `TestCoroutineScheduler` will attempt to …
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/coroutines/
H A DTestCoroutineSchedulerUtils.kt22 import kotlinx.coroutines.test.TestCoroutineScheduler
29 fun TestCoroutineScheduler.advanceTimeBy(duration: Duration) { in TestCoroutineScheduler() method
/aosp_15_r20/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DCoroutineTestRule.kt19 import kotlinx.coroutines.test.TestCoroutineScheduler
28 private val scheduler = TestCoroutineScheduler()
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/bluetooth/
H A DFakeBluetoothRepository.kt21 import kotlinx.coroutines.test.TestCoroutineScheduler
34 private val scheduler = TestCoroutineScheduler()
H A DBluetoothRepositoryImplTest.kt29 import kotlinx.coroutines.test.TestCoroutineScheduler in <lambda>()
45 private lateinit var scheduler: TestCoroutineScheduler in <lambda>()
57 scheduler = TestCoroutineScheduler() in <lambda>()
/aosp_15_r20/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/test/
H A DRunMonotonicClockTest.kt7 import kotlinx.coroutines.test.TestCoroutineScheduler
49 val testScheduler: TestCoroutineScheduler,
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
H A DCoroutineTestScopeModule.kt28 import kotlinx.coroutines.test.TestCoroutineScheduler
37 @get:Provides val scheduler: TestCoroutineScheduler = dispatcher.scheduler,
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/screenshot/
H A DActionIntentExecutorTest.kt31 import kotlinx.coroutines.test.TestCoroutineScheduler
42 private val scheduler = TestCoroutineScheduler()
H A DActionExecutorTest.kt32 import kotlinx.coroutines.test.TestCoroutineScheduler
45 private val scheduler = TestCoroutineScheduler()
/aosp_15_r20/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DEnterTransitionAnimationDelegateTest.kt28 import kotlinx.coroutines.test.TestCoroutineScheduler
45 private val scheduler = TestCoroutineScheduler()
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
H A DBluetoothTileDialogDelegateTest.kt44 import kotlinx.coroutines.test.TestCoroutineScheduler
94 private lateinit var scheduler: TestCoroutineScheduler
103 scheduler = TestCoroutineScheduler() in setUp()
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/footer/domain/interactor/
H A DFooterActionsInteractorTest.kt44 import kotlinx.coroutines.test.TestCoroutineScheduler
59 utils = FooterActionsTestUtils(context, TestableLooper.get(this), TestCoroutineScheduler()) in setUp()
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/footer/
H A DFooterActionsTestUtils.kt60 import kotlinx.coroutines.test.TestCoroutineScheduler
69 private val scheduler: TestCoroutineScheduler,
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shared/clocks/
H A DClockRegistryTest.kt44 import kotlinx.coroutines.test.TestCoroutineScheduler
65 private lateinit var scheduler: TestCoroutineScheduler
163 scheduler = TestCoroutineScheduler() in setUp()
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
H A DFakeKeyguardTransitionRepository.kt40 import kotlinx.coroutines.test.TestCoroutineScheduler in <lambda>()
187 testScheduler: TestCoroutineScheduler, in <lambda>()
/aosp_15_r20/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt44 import kotlinx.coroutines.test.TestCoroutineScheduler
70 private val scheduler = TestCoroutineScheduler()

12