Searched refs:getShadowMainLooper (Results 1 – 4 of 4) sorted by relevance
143 public static ShadowLooper getShadowMainLooper() { in getShadowMainLooper() method in ShadowLooper186 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()
89 assertThat(ShadowLooper.getShadowMainLooper()).isSameAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper()280 ShadowLooper sMainLooper = ShadowLooper.getShadowMainLooper(); in reset_setsGlobalScheduler_forMainLooper_byDefault()290 ShadowLooper sMainLooper = ShadowLooper.getShadowMainLooper(); in reset_setsGlobalScheduler_forMainLooper_withAdvancedScheduling()413 Scheduler s = ShadowLooper.getShadowMainLooper().getScheduler(); in withAdvancedScheduling_shouldDispatchMessagesOnBothLoopers_whenAdvancingForegroundThread()
57 .isSameAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
120 ShadowLooper.getShadowMainLooper().resetScheduler(); in setUpApplicationState()