Home
last modified time | relevance | path

Searched refs:setMain (Results 1 – 15 of 15) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DTestDispatchersTest.kt15 Dispatchers.setMain(StandardTestDispatcher()) in setUp()
58 assertFailsWith<IllegalArgumentException> { Dispatchers.setMain(Dispatchers.Main) } in testSelfSet()
63 Dispatchers.setMain(ImmediateDispatcher()) in <lambda>()
69 Dispatchers.setMain(RegularDispatcher()) in <lambda>()
DStandardTestDispatcherTest.kt69 Dispatchers.setMain(dispatcher1) in <lambda>()
DTestScopeTest.kt63 Dispatchers.setMain(mainDispatcher) in <lambda>()
75 Dispatchers.setMain(mainDispatcher) in <lambda>()
DUnconfinedTestDispatcherTest.kt158 Dispatchers.setMain(dispatcher1) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/
DMultithreadingTest.kt28 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()
34 Dispatchers.setMain(threadPool) in <lambda>()
45 Dispatchers.setMain(Dispatchers.Unconfined) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DREADME.md15 | [Dispatchers.setMain] | Mocks the main dispatcher using the provided one. If mocked with a [TestD…
37 `Dispatchers.setMain` will override the `Main` dispatcher in test scenarios.
46 The `Main` implementation can be overridden using [Dispatchers.setMain][setMain] method with any [C…
57 Dispatchers.setMain(mainThreadSurrogate)
75 Calling `setMain` or `resetMain` immediately changes the `Main` dispatcher globally.
284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler))
443 [Dispatchers.setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlin…
446 [setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines…
DMIGRATION.md44 …passed to each of them, or all of them should be constructed after `Dispatchers.setMain` is called…
410 Dispatchers.setMain(dispatcher)
432 Dispatchers.setMain(StandardTestDispatcher())
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestCoroutineScopeTest.kt56 Dispatchers.setMain(mainDispatcher) in <lambda>()
68 Dispatchers.setMain(mainDispatcher) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestDispatchers.kt22 public fun Dispatchers.setMain(dispatcher: CoroutineDispatcher) { in setMain() method
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/
DFirstMockedMainTest.kt18 Dispatchers.setMain(Dispatchers.Unconfined) in setUp()
DCustomizedRobolectricTest.kt42 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
DFirstRobolectricTest.kt31 Dispatchers.setMain(Dispatchers.Unconfined) in testComponentAfterReset()
/external/kotlinx.coroutines/
DREADME.md45 * [Dispatchers.setMain] to override [Dispatchers.Main] in tests;
244 [Dispatchers.setMain]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlin…
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api110 …public static final fun setMain (Lkotlinx/coroutines/Dispatchers;Lkotlinx/coroutines/CoroutineDisp…
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/props/
DUnicodeProperty.java1285 public BaseProperty setMain(String alias, String shortAlias, in setMain() method in UnicodeProperty.BaseProperty