Home
last modified time | relevance | path

Searched refs:advanceBy (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowMediaPlayerTest.java278 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 …]
DShadowViewTest.java322 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldPostActionsToTheMessageQueueWithDelay()
333 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldRemovePostedCallbacksFromMessageQueue()
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DSchedulerTest.java137 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 …]
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DScheduler.java88 advanceBy(0); in setIdleState()
232 public synchronized boolean advanceBy(long interval) { in advanceBy() method in Scheduler
233 return advanceBy(interval, TimeUnit.MILLISECONDS); in advanceBy()
241 public synchronized boolean advanceBy(long amount, TimeUnit unit) { in advanceBy() method in Scheduler
353 advanceBy(0); in runOrQueueRunnable()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
DShadowLooper.java273 getScheduler().advanceBy(amount, unit); in idle()
DShadowApplication.java67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()