/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowHandlerTest.java | 79 ShadowLooper.pauseLooper(looper1); in testDifferentLoopersGetDifferentQueues() 82 ShadowLooper.pauseLooper(looper2); in testDifferentLoopersGetDifferentQueues() 107 ShadowLooper.idleMainLooper(); in testPostAndIdleMainLooper() 114 ShadowLooper.idleMainLooper(); in postDelayedThenIdleMainLooper_shouldNotRunRunnable() 121 ShadowLooper.runMainLooperOneTask(); in testPostDelayedThenRunMainLooperOneTask() 128 ShadowLooper shadowLooper = shadowOf(handler.getLooper()); in testRemoveCallbacks() 141 ShadowLooper.runMainLooperToNextTask(); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask() 153 ShadowLooper.runMainLooperToNextTask(); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks() 166 ShadowLooper.runMainLooperOneTask(); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask() 181 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask() [all …]
|
D | ShadowLooperTest.java | 90 … assertThat(ShadowLooper.getShadowMainLooper()).isSameInstanceAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper() 96 assertThat(ShadowLooper.getLooperForThread(qt)).isSameInstanceAs(qt.looper); in getLooperForThread_returnsLooperForAThreadThatHasOne() 101 …assertThat(ShadowLooper.getLooperForThread(Thread.currentThread())).isSameInstanceAs(Looper.getMai… in getLooperForThread_returnsLooperForMainThread() 115 ShadowLooper.idleMainLooper(1999); in idleMainLooper_executesScheduledTasks() 117 ShadowLooper.idleMainLooper(1); in idleMainLooper_executesScheduledTasks() 123 ShadowLooper.idleMainLooperConstantly(true); in idleConstantly_runsPostDelayedTasksImmediately() 190 ShadowLooper sLooper = shadowOf(looper); in shouldResetQueue_whenLooperIsReset() 207 ShadowLooper sLooper = shadowOf(looper); in shouldSetNewScheduler_whenLooperIsReset() 217 ShadowLooper.resetThreadLoopers(); in resetThreadLoopers_shouldQuitAllNonMainLoopers() 234 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 | 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 | 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 | ShadowMessageTest.java | 167 ShadowLooper.pauseMainLooper(); in testSendToTarget() 185 ShadowLooper.pauseMainLooper(); in testIsInUse() 226 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 | 293 ShadowLooper.pauseMainLooper(); in shouldPostActionsToTheMessageQueue() 299 ShadowLooper.unPauseMainLooper(); in shouldPostActionsToTheMessageQueue() 305 ShadowLooper.pauseMainLooper(); in shouldPostInvalidateDelayed() 311 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in shouldPostInvalidateDelayed() 317 ShadowLooper.pauseMainLooper(); in shouldPostActionsToTheMessageQueueWithDelay() 874 ShadowLooper.runUiThreadTasks(); in removeAllViews_shouldCallOnAttachedToAndDetachedFromWindow() 877 ShadowLooper.runUiThreadTasks(); in removeAllViews_shouldCallOnAttachedToAndDetachedFromWindow()
|
D | ShadowMessengerTest.java | 22 ShadowLooper.pauseMainLooper(); in testMessengerSend()
|
/external/libchrome/base/android/junit/src/org/chromium/base/ |
D | PromiseTest.java | 15 import org.robolectric.shadows.ShadowLooper; 109 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in promiseChaining() 136 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in promiseChainingAsyncFunctions() 140 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in promiseChainingAsyncFunctions() 152 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectPromiseNoCallbacks() 168 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectPromiseNoHandler() 185 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectPromiseHandled() 201 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectionInformation() 221 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectionChaining() 241 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in rejectOnThrow() [all …]
|
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/test/ |
D | HandlerDispatcherTest.kt | 32 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() 51 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() 70 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() 89 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() 108 val mainLooper = ShadowLooper.getShadowMainLooper() in <lambda>() 130 private suspend fun Job.join(mainLooper: ShadowLooper) { in join()
|
/external/libchrome/base/android/junit/src/org/chromium/base/process_launcher/ |
D | ChildConnectionAllocatorTest.java | 35 import org.robolectric.shadows.ShadowLooper; 205 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in testQueueAllocation() 210 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in testQueueAllocation() 239 ShadowLooper.pauseMainLooper(); in runTestWithConnectionCallbacks() 250 ShadowLooper.unPauseMainLooper(); in runTestWithConnectionCallbacks() 251 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in runTestWithConnectionCallbacks() 306 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); in testFreeConnection()
|
D | ChildProcessConnectionTest.java | 40 import org.robolectric.shadows.ShadowLooper; 307 ShadowLooper.runUiThreadTasks(); in testSetupConnectionBeforeServiceConnected() 322 ShadowLooper.runUiThreadTasks(); in testSetupConnectionAfterServiceConnected() 337 ShadowLooper.runUiThreadTasks(); in testKill() 394 ShadowLooper.runUiThreadTasks(); in testBindingStateCounts()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/video/ |
D | DecoderVideoRendererTest.java | 49 import org.robolectric.shadows.ShadowLooper; 202 ShadowLooper.idleMainLooper(); in enable_withMayRenderStartOfStream_rendersFirstFrameBeforeStart() 230 ShadowLooper.idleMainLooper(); in enable_withoutMayRenderStartOfStream_doesNotRenderFirstFrameBeforeStart() 258 ShadowLooper.idleMainLooper(); in enable_withoutMayRenderStartOfStream_rendersFirstFrameAfterStart() 302 ShadowLooper.idleMainLooper(); in replaceStream_whenStarted_rendersFirstFrameOfNewStream() 345 ShadowLooper.idleMainLooper(); in replaceStream_whenNotStarted_doesNotRenderFirstFrameOfNewStream()
|
/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 | 31 import org.robolectric.shadows.ShadowLooper; 109 ShadowLooper.unPauseMainLooper(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 117 ShadowLooper.pauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 122 ShadowLooper.unPauseMainLooper(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused()
|
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/ |
D | FirstRobolectricTest.kt | 38 val mainLooper = ShadowLooper.getShadowMainLooper() in testDelay() 48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
|
D | CustomizedRobolectricTest.kt | 48 val mainLooper = ShadowLooper.getShadowMainLooper() in checkComponent()
|
/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/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/ |
D | AsynchronousMediaCodecBufferEnqueuerTest.java | 41 import org.robolectric.shadows.ShadowLooper; 103 ShadowLooper shadowLooper = Shadows.shadowOf(looper); in queueInputBuffer_multipleTimes_limitsObjectsAllocation() 162 ShadowLooper shadowLooper = Shadows.shadowOf(looper); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation()
|
/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()
|
/external/libchrome/base/android/junit/src/org/chromium/base/memory/ |
D | MemoryPressureMonitorTest.java | 16 import org.robolectric.shadows.ShadowLooper; 88 ShadowLooper.pauseMainLooper(); in setUp() 99 ShadowLooper.idleMainLooper(delayMs, TimeUnit.MILLISECONDS); in runUiThreadFor()
|