Searched refs:getShadowMainLooper (Results 1 – 7 of 7) 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()
32 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>()
38 val mainLooper = ShadowLooper.getShadowMainLooper() in testDelay()48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
90 … 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()
57 .isSameInstanceAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
120 ShadowLooper.getShadowMainLooper().resetScheduler(); in setUpApplicationState()