Home
last modified time | relevance | path

Searched refs:mainLooper (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java246 Looper mainLooper = Looper.getMainLooper(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() local
247 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 …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLooper.java41 private static Looper mainLooper; field in ShadowLooper
71 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()
DShadowAccessibilityManager.java161 MyHandler(Looper mainLooper, AccessibilityManager accessibilityManager) { in MyHandler() argument
162 super(mainLooper); in MyHandler()
DShadowViewRootImpl.java31 public static IWindowSession getWindowSession(Looper mainLooper) { in getWindowSession() argument