Searched refs:mainLooper (Results 1 – 4 of 4) sorted by relevance
246 Looper mainLooper = Looper.getMainLooper(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() local247 Scheduler scheduler = shadowOf(mainLooper).getScheduler(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()248 shadowOf(mainLooper).quit = true; in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()249 assertThat(ApplicationProvider.getApplicationContext().getMainLooper()).isSameAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()261 assertThat(Looper.getMainLooper()).named("Looper.getMainLooper()").isSameAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()262 assertThat(application.getMainLooper()).named("app.getMainLooper()").isSameAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()263 assertThat(shadowOf(mainLooper).getScheduler()).named("scheduler").isNotSameAs(scheduler); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()264 assertThat(shadowOf(mainLooper).getScheduler()).named("scheduler").isSameAs(s); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()265 assertThat(shadowOf(mainLooper).hasQuit()).named("quit").isFalse(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()369 Looper mainLooper = Looper.getMainLooper(); in getMainLooper_shouldBeInitialized_onBackgroundThread_evenWhenRobolectricApplicationIsNull()[all …]
41 private static Looper mainLooper; field in ShadowLooper71 if (mainLooper != null) { in resetThreadLoopers()72 shadowOf(mainLooper).reset(); in resetThreadLoopers()80 mainLooper = realObject; in __constructor__()89 return mainLooper; in getMainLooper()148 return isMainThread(thread) ? mainLooper : loopingLoopers.get(thread); in getLooperForThread()
161 MyHandler(Looper mainLooper, AccessibilityManager accessibilityManager) { in MyHandler() argument162 super(mainLooper); in MyHandler()
31 public static IWindowSession getWindowSession(Looper mainLooper) { in getWindowSession() argument