Searched refs:advanceBy (Results 1 – 9 of 9) sorted by relevance
279 scheduler.advanceBy(100); in testPlaybackProgress()285 scheduler.advanceBy(500); in testPlaybackProgress()289 scheduler.advanceBy(499); in testPlaybackProgress()294 scheduler.advanceBy(1); in testPlaybackProgress()300 scheduler.advanceBy(1); in testPlaybackProgress()310 scheduler.advanceBy(300); in testStop()315 scheduler.advanceBy(400); in testStop()323 scheduler.advanceBy(200); in testPauseReschedulesCompletionCallback()325 scheduler.advanceBy(800); in testPauseReschedulesCompletionCallback()330 scheduler.advanceBy(799); in testPauseReschedulesCompletionCallback()[all …]
323 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldPostActionsToTheMessageQueueWithDelay()334 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldRemovePostedCallbacksFromMessageQueue()
88 advanceBy(0); in setIdleState()232 public synchronized boolean advanceBy(long interval) { in advanceBy() method in Scheduler233 return advanceBy(interval, TimeUnit.MILLISECONDS); in advanceBy()241 public synchronized boolean advanceBy(long amount, TimeUnit unit) { in advanceBy() method in Scheduler353 advanceBy(0); in runOrQueueRunnable()
138 assertThat(scheduler.advanceBy(0)).isTrue(); in advanceBy_returnsTrueIffSomeJobWasRun()142 assertThat(scheduler.advanceBy(0)).isFalse(); in advanceBy_returnsTrueIffSomeJobWasRun()145 assertThat(scheduler.advanceBy(1000)).isTrue(); in advanceBy_returnsTrueIffSomeJobWasRun()155 scheduler.advanceBy(1000); in postDelayed_addsAJobToBeRunInTheFuture()159 scheduler.advanceBy(500); in postDelayed_addsAJobToBeRunInTheFuture()162 scheduler.advanceBy(501); in postDelayed_addsAJobToBeRunInTheFuture()166 scheduler.advanceBy(999); in postDelayed_addsAJobToBeRunInTheFuture()227 scheduler.advanceBy(1000); in postDelayed_whenMoreItemsAreAdded_runsJobs()231 scheduler.advanceBy(500); in postDelayed_whenMoreItemsAreAdded_runsJobs()234 scheduler.advanceBy(501); in postDelayed_whenMoreItemsAreAdded_runsJobs()[all …]
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
273 getScheduler().advanceBy(amount, unit); in idle()
67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()
105 Robolectric.getForegroundThreadScheduler().advanceBy(5, TimeUnit.SECONDS); in other_listenableFuture_automaticConnection_workProfileIsTurnedOn_doesNotSetUnavailableProfileException()138 Robolectric.getForegroundThreadScheduler().advanceBy(5, TimeUnit.SECONDS); in other_listenableFuture_automaticConnection_connectionIsDroppedDuringCall_setUnavailableProfileException()
358 Robolectric.getForegroundThreadScheduler().advanceBy(1, SECONDS); in advanceTimeBySeconds()