Home
last modified time | relevance | path

Searched refs:enqueuedTaskCount (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
DScheduler.java62 if (enqueuedTaskCount() < 1) { in advanceToLastPostedRunnable()
70 if (enqueuedTaskCount() < 1) { in advanceToNextPostedRunnable()
83 if (endingTime - currentTime < 0 || enqueuedTaskCount() < 1) { in advanceTo()
98 if (enqueuedTaskCount() < 1) { in runOneTask()
109 if (enqueuedTaskCount() < howMany) { in runTasks()
122 public int enqueuedTaskCount() { in enqueuedTaskCount() method in Scheduler
159 return enqueuedTaskCount() > 0 && postedRunnables.get(0).scheduledTime <= endingTime; in nextTaskIsScheduledBefore()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DSchedulerTest.java113 assertThat(scheduler.enqueuedTaskCount(), equalTo(3)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
115 assertThat(scheduler.enqueuedTaskCount(), equalTo(1)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DFragmentManagerTest.java211 assertEquals(3, scheduler.enqueuedTaskCount()); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
219 assertEquals(1, scheduler.enqueuedTaskCount()); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()