/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/ |
H A D | TestCoroutineScopeTest.kt | 28 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 D | TestScopeTest.kt | 29 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 D | TestCoroutineDispatchers.kt | 80 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 D | TestCoroutineScheduler.kt | 26 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 D | TestScope.kt | 43 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 D | kotlinx-coroutines-test.api | 36 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 D | TestCoroutineScope.kt | 52 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 D | TestCoroutineDispatcher.kt | 24 …stCoroutineDispatcher(public override val scheduler: TestCoroutineScheduler = TestCoroutineSchedul…
|
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/ |
H A D | README.md | 12 | [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 D | MIGRATION.md | 43 … 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 D | TestCoroutineSchedulerUtils.kt | 22 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/ |
D | CoroutineTestRule.kt | 19 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 D | FakeBluetoothRepository.kt | 21 import kotlinx.coroutines.test.TestCoroutineScheduler 34 private val scheduler = TestCoroutineScheduler()
|
H A D | BluetoothRepositoryImplTest.kt | 29 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 D | RunMonotonicClockTest.kt | 7 import kotlinx.coroutines.test.TestCoroutineScheduler 49 val testScheduler: TestCoroutineScheduler,
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/ |
H A D | CoroutineTestScopeModule.kt | 28 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 D | ActionIntentExecutorTest.kt | 31 import kotlinx.coroutines.test.TestCoroutineScheduler 42 private val scheduler = TestCoroutineScheduler()
|
H A D | ActionExecutorTest.kt | 32 import kotlinx.coroutines.test.TestCoroutineScheduler 45 private val scheduler = TestCoroutineScheduler()
|
/aosp_15_r20/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ |
D | EnterTransitionAnimationDelegateTest.kt | 28 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 D | BluetoothTileDialogDelegateTest.kt | 44 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 D | FooterActionsInteractorTest.kt | 44 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 D | FooterActionsTestUtils.kt | 60 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 D | ClockRegistryTest.kt | 44 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 D | FakeKeyguardTransitionRepository.kt | 40 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/ |
D | ImagePreviewImageLoaderTest.kt | 44 import kotlinx.coroutines.test.TestCoroutineScheduler 70 private val scheduler = TestCoroutineScheduler()
|