Searched refs:advanceBy (Results 1 – 7 of 7) sorted by relevance
278 scheduler.advanceBy(100); in testPlaybackProgress()284 scheduler.advanceBy(500); in testPlaybackProgress()288 scheduler.advanceBy(499); in testPlaybackProgress()293 scheduler.advanceBy(1); in testPlaybackProgress()299 scheduler.advanceBy(1); in testPlaybackProgress()309 scheduler.advanceBy(300); in testStop()314 scheduler.advanceBy(400); in testStop()322 scheduler.advanceBy(200); in testPauseReschedulesCompletionCallback()324 scheduler.advanceBy(800); in testPauseReschedulesCompletionCallback()329 scheduler.advanceBy(799); in testPauseReschedulesCompletionCallback()[all …]
322 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldPostActionsToTheMessageQueueWithDelay()333 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldRemovePostedCallbacksFromMessageQueue()
137 assertThat(scheduler.advanceBy(0)).isTrue(); in advanceBy_returnsTrueIffSomeJobWasRun()141 assertThat(scheduler.advanceBy(0)).isFalse(); in advanceBy_returnsTrueIffSomeJobWasRun()144 assertThat(scheduler.advanceBy(1000)).isTrue(); in advanceBy_returnsTrueIffSomeJobWasRun()154 scheduler.advanceBy(1000); in postDelayed_addsAJobToBeRunInTheFuture()158 scheduler.advanceBy(500); in postDelayed_addsAJobToBeRunInTheFuture()161 scheduler.advanceBy(501); in postDelayed_addsAJobToBeRunInTheFuture()165 scheduler.advanceBy(999); in postDelayed_addsAJobToBeRunInTheFuture()226 scheduler.advanceBy(1000); in postDelayed_whenMoreItemsAreAdded_runsJobs()230 scheduler.advanceBy(500); in postDelayed_whenMoreItemsAreAdded_runsJobs()233 scheduler.advanceBy(501); in postDelayed_whenMoreItemsAreAdded_runsJobs()[all …]
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()
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
273 getScheduler().advanceBy(amount, unit); in idle()
67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()