Home
last modified time | relevance | path

Searched refs:getShadowMainLooper (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLooper.java143 public static ShadowLooper getShadowMainLooper() { in getShadowMainLooper() method in ShadowLooper
186 getShadowMainLooper().pause(); in pauseMainLooper()
195 getShadowMainLooper().unPause(); in unPauseMainLooper()
199 getShadowMainLooper().idle(); in idleMainLooper()
209 getShadowMainLooper().idle(amount, unit); in idleMainLooper()
213 getShadowMainLooper().idleConstantly(shouldIdleConstantly); in idleMainLooperConstantly()
217 getShadowMainLooper().runOneTask(); in runMainLooperOneTask()
221 getShadowMainLooper().runToNextTask(); in runMainLooperToNextTask()
233 getShadowMainLooper().idle(); in runUiThreadTasks()
246 getShadowMainLooper().runToEndOfTasks(); in runUiThreadTasksIncludingDelayedTasks()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/test/
DHandlerDispatcherTest.kt32 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>()
51 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>()
70 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>()
89 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>()
108 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/
DFirstRobolectricTest.kt38 val mainLooper = ShadowLooper.getShadowMainLooper() in testDelay()
48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
DCustomizedRobolectricTest.kt48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java90 … assertThat(ShadowLooper.getShadowMainLooper()).isSameInstanceAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper()
281 ShadowLooper sMainLooper = ShadowLooper.getShadowMainLooper(); in reset_setsGlobalScheduler_forMainLooper_byDefault()
291 ShadowLooper sMainLooper = ShadowLooper.getShadowMainLooper(); in reset_setsGlobalScheduler_forMainLooper_withAdvancedScheduling()
414 Scheduler s = ShadowLooper.getShadowMainLooper().getScheduler(); in withAdvancedScheduling_shouldDispatchMessagesOnBothLoopers_whenAdvancingForegroundThread()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java57 .isSameInstanceAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java120 ShadowLooper.getShadowMainLooper().resetScheduler(); in setUpApplicationState()