Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/test/
DHandlerDispatcherTest.kt32 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() constant
33 mainLooper.pause() in <lambda>()
42 job.join(mainLooper) in <lambda>()
51 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() constant
52 mainLooper.pause() in <lambda>()
61 job.join(mainLooper) in <lambda>()
70 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() constant
71 mainLooper.pause() in <lambda>()
80 job.join(mainLooper) in <lambda>()
89 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() constant
[all …]
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/
DFirstRobolectricTest.kt38 val mainLooper = ShadowLooper.getShadowMainLooper() in testDelay() constant
39 mainLooper.pause() in testDelay()
41 mainLooper.runToNextTask() in testDelay()
43 mainLooper.runToNextTask() in testDelay()
48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent() constant
49 mainLooper.pause() in checkComponent()
52 mainLooper.unPause() in checkComponent()
DCustomizedRobolectricTest.kt48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent() constant
49 mainLooper.pause() in checkComponent()
52 mainLooper.unPause() in checkComponent()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java247 Looper mainLooper = Looper.getMainLooper(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() local
248 Scheduler scheduler = shadowOf(mainLooper).getScheduler(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
249 shadowOf(mainLooper).quit = true; in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
250 …sertThat(ApplicationProvider.getApplicationContext().getMainLooper()).isSameInstanceAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
262 …ertWithMessage("Looper.getMainLooper()").that(Looper.getMainLooper()).isSameInstanceAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
263 …tWithMessage("app.getMainLooper()").that(application.getMainLooper()).isSameInstanceAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
264 …assertWithMessage("scheduler").that(shadowOf(mainLooper).getScheduler()).isNotSameInstanceAs(sched… in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
265 assertWithMessage("scheduler").that(shadowOf(mainLooper).getScheduler()).isSameInstanceAs(s); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
266 assertWithMessage("quit").that(shadowOf(mainLooper).hasQuit()).isFalse(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
370 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.java32 public static IWindowSession getWindowSession(Looper mainLooper) { in getWindowSession() argument