/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowHandlerTest.java | 78 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 …]
|
D | ShadowLooperTest.java | 89 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 …]
|
D | ShadowOverScrollerTest.java | 39 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()
|
D | ShadowScrollerTest.java | 37 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()
|
D | ShadowAsyncTaskTest.java | 45 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()
|
D | AdapterViewBehavior.java | 44 ShadowLooper.idleMainLooper(); in shouldIgnoreSetSelectionCallsWithInvalidPosition() 47 ShadowLooper.idleMainLooper(); in shouldIgnoreSetSelectionCallsWithInvalidPosition() 105 ShadowLooper.idleMainLooper(); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem() 123 ShadowLooper.idleMainLooper(); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty()
|
D | ShadowMessageTest.java | 166 ShadowLooper.pauseMainLooper(); in testSendToTarget() 184 ShadowLooper.pauseMainLooper(); in testIsInUse() 225 ShadowLooper.pauseMainLooper(); in recycle_shouldRemoveMessageFromScheduler()
|
D | ShadowApplicationTest.java | 220 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()
|
D | ShadowViewTest.java | 292 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()
|
D | ShadowMessengerTest.java | 22 ShadowLooper.pauseMainLooper(); in testMessengerSend()
|
D | ShadowBackupManagerTest.java | 41 ShadowLooper.pauseMainLooper(); in setUp()
|
D | ShadowActivityTest.java | 313 ShadowLooper.pauseMainLooper(); in shouldQueueUiTasksWhenUiThreadIsPaused() 320 ShadowLooper.unPauseMainLooper(); in shouldQueueUiTasksWhenUiThreadIsPaused()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | IntentServiceControllerTest.java | 19 import org.robolectric.shadows.ShadowLooper; 62 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 70 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 75 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
|
D | ServiceControllerTest.java | 19 import org.robolectric.shadows.ShadowLooper; 63 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 71 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 76 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
|
D | ActivityControllerTest.java | 30 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/ |
D | ComponentController.java | 7 import org.robolectric.shadows.ShadowLooper; 14 protected final ShadowLooper shadowMainLooper;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | RobolectricTest.java | 32 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/ |
D | ShadowLooper.java | 32 public class ShadowLooper { class 143 public static ShadowLooper getShadowMainLooper() { in getShadowMainLooper() 402 private static ShadowLooper shadowOf(Looper looper) { in shadowOf()
|
D | ShadowOverScroller.java | 124 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in getScheduler()
|
D | ShadowMessage.java | 136 private static ShadowLooper shadowOf(Looper looper) { in shadowOf()
|
D | ShadowViewGroup.java | 26 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in addView()
|
D | ShadowInstrumentation.java | 483 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); 510 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper());
|
D | ShadowView.java | 385 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in removeCallbacks()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 39 import org.robolectric.shadows.ShadowLooper; 57 .isSameAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | ParallelUniverse.java | 60 import org.robolectric.shadows.ShadowLooper; 120 ShadowLooper.getShadowMainLooper().resetScheduler(); in setUpApplicationState()
|