Home
last modified time | relevance | path

Searched refs:ShadowLooper (Results 1 – 25 of 25) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerTest.java78 ShadowLooper.pauseLooper(looper1); in testDifferentLoopersGetDifferentQueues()
81 ShadowLooper.pauseLooper(looper2); in testDifferentLoopersGetDifferentQueues()
106 ShadowLooper.idleMainLooper(); in testPostAndIdleMainLooper()
113 ShadowLooper.idleMainLooper(); in postDelayedThenIdleMainLooper_shouldNotRunRunnable()
120 ShadowLooper.runMainLooperOneTask(); in testPostDelayedThenRunMainLooperOneTask()
127 ShadowLooper shadowLooper = shadowOf(handler.getLooper()); in testRemoveCallbacks()
140 ShadowLooper.runMainLooperToNextTask(); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask()
152 ShadowLooper.runMainLooperToNextTask(); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
165 ShadowLooper.runMainLooperOneTask(); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
180 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
[all …]
DShadowLooperTest.java89 assertThat(ShadowLooper.getShadowMainLooper()).isSameAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper()
95 assertThat(ShadowLooper.getLooperForThread(qt)).isSameAs(qt.looper); in getLooperForThread_returnsLooperForAThreadThatHasOne()
100 …assertThat(ShadowLooper.getLooperForThread(Thread.currentThread())).isSameAs(Looper.getMainLooper(… in getLooperForThread_returnsLooperForMainThread()
114 ShadowLooper.idleMainLooper(1999); in idleMainLooper_executesScheduledTasks()
116 ShadowLooper.idleMainLooper(1); in idleMainLooper_executesScheduledTasks()
122 ShadowLooper.idleMainLooperConstantly(true); in idleConstantly_runsPostDelayedTasksImmediately()
189 ShadowLooper sLooper = shadowOf(looper); in shouldResetQueue_whenLooperIsReset()
206 ShadowLooper sLooper = shadowOf(looper); in shouldSetNewScheduler_whenLooperIsReset()
216 ShadowLooper.resetThreadLoopers(); in resetThreadLoopers_shouldQuitAllNonMainLoopers()
233 ShadowLooper.resetThreadLoopers(); in resetThreadLoopers_fromNonMainThread_shouldThrowISE()
[all …]
DShadowOverScrollerTest.java39 ShadowLooper.idleMainLooper(100); in shouldScrollOverTime()
45 ShadowLooper.idleMainLooper(401); in shouldScrollOverTime()
51 ShadowLooper.idleMainLooper(1000); in shouldScrollOverTime()
67 ShadowLooper.idleMainLooper(500); in computeScrollOffsetShouldCalculateWhetherScrollIsFinished()
70 ShadowLooper.idleMainLooper(500); in computeScrollOffsetShouldCalculateWhetherScrollIsFinished()
78 ShadowLooper.idleMainLooper(500); in abortAnimationShouldMoveToFinalPositionImmediately()
90 ShadowLooper.idleMainLooper(500); in forceFinishedShouldFinishWithoutMovingFurther()
DShadowScrollerTest.java37 ShadowLooper.idleMainLooper(334); in shouldScrollOverTime()
43 ShadowLooper.idleMainLooper(166); in shouldScrollOverTime()
49 ShadowLooper.idleMainLooper(500); in shouldScrollOverTime()
55 ShadowLooper.idleMainLooper(1); in shouldScrollOverTime()
67 ShadowLooper.idleMainLooper(500); in computeScrollOffsetShouldCalculateWhetherScrollIsFinished()
70 ShadowLooper.idleMainLooper(500); in computeScrollOffsetShouldCalculateWhetherScrollIsFinished()
DShadowAsyncTaskTest.java45 ShadowLooper.runUiThreadTasks(); in testNormalFlow()
63 ShadowLooper.runUiThreadTasks(); in testCancelBeforeBackground()
83 ShadowLooper.runUiThreadTasks(); in testCancelBeforePostExecute()
107 ShadowLooper.runUiThreadTasks(); in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
171 ShadowLooper.runUiThreadTasks(); in executeOnExecutor_usesPassedExecutor()
DAdapterViewBehavior.java44 ShadowLooper.idleMainLooper(); in shouldIgnoreSetSelectionCallsWithInvalidPosition()
47 ShadowLooper.idleMainLooper(); in shouldIgnoreSetSelectionCallsWithInvalidPosition()
105 ShadowLooper.idleMainLooper(); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem()
123 ShadowLooper.idleMainLooper(); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty()
DShadowMessageTest.java166 ShadowLooper.pauseMainLooper(); in testSendToTarget()
184 ShadowLooper.pauseMainLooper(); in testIsInUse()
225 ShadowLooper.pauseMainLooper(); in recycle_shouldRemoveMessageFromScheduler()
DShadowApplicationTest.java220 ShadowLooper.pauseMainLooper(); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
234 ShadowLooper.unPauseMainLooper(); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
250 ShadowLooper.pauseMainLooper(); in unbindServiceShouldCallOnServiceDisconnectedWhenNotPaused()
254 ShadowLooper.unPauseMainLooper(); in unbindServiceShouldCallOnServiceDisconnectedWhenNotPaused()
274 ShadowLooper.pauseMainLooper(); in declaringServiceUnbindableMakesBindServiceReturnFalse()
283 ShadowLooper.unPauseMainLooper(); in declaringServiceUnbindableMakesBindServiceReturnFalse()
DShadowViewTest.java292 ShadowLooper.pauseMainLooper(); in shouldPostActionsToTheMessageQueue()
298 ShadowLooper.unPauseMainLooper(); in shouldPostActionsToTheMessageQueue()
304 ShadowLooper.pauseMainLooper(); in shouldPostInvalidateDelayed()
310 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in shouldPostInvalidateDelayed()
316 ShadowLooper.pauseMainLooper(); in shouldPostActionsToTheMessageQueueWithDelay()
873 ShadowLooper.runUiThreadTasks(); in removeAllViews_shouldCallOnAttachedToAndDetachedFromWindow()
876 ShadowLooper.runUiThreadTasks(); in removeAllViews_shouldCallOnAttachedToAndDetachedFromWindow()
DShadowMessengerTest.java22 ShadowLooper.pauseMainLooper(); in testMessengerSend()
DShadowBackupManagerTest.java41 ShadowLooper.pauseMainLooper(); in setUp()
DShadowActivityTest.java313 ShadowLooper.pauseMainLooper(); in shouldQueueUiTasksWhenUiThreadIsPaused()
320 ShadowLooper.unPauseMainLooper(); in shouldQueueUiTasksWhenUiThreadIsPaused()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DIntentServiceControllerTest.java19 import org.robolectric.shadows.ShadowLooper;
62 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused()
70 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
75 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
DServiceControllerTest.java19 import org.robolectric.shadows.ShadowLooper;
63 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused()
71 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
76 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
DActivityControllerTest.java30 import org.robolectric.shadows.ShadowLooper;
108 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused()
116 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
121 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DComponentController.java7 import org.robolectric.shadows.ShadowLooper;
14 protected final ShadowLooper shadowMainLooper;
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTest.java32 import org.robolectric.shadows.ShadowLooper;
92 ShadowLooper.idleMainLooper(1999); in idleMainLooper_executesScheduledTasks()
94 ShadowLooper.idleMainLooper(1); in idleMainLooper_executesScheduledTasks()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLooper.java32 public class ShadowLooper { class
143 public static ShadowLooper getShadowMainLooper() { in getShadowMainLooper()
402 private static ShadowLooper shadowOf(Looper looper) { in shadowOf()
DShadowOverScroller.java124 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in getScheduler()
DShadowMessage.java136 private static ShadowLooper shadowOf(Looper looper) { in shadowOf()
DShadowViewGroup.java26 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in addView()
DShadowInstrumentation.java483 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper());
510 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper());
DShadowView.java385 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in removeCallbacks()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java39 import org.robolectric.shadows.ShadowLooper;
57 .isSameAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java60 import org.robolectric.shadows.ShadowLooper;
120 ShadowLooper.getShadowMainLooper().resetScheduler(); in setUpApplicationState()