Searched refs:enqueuedTaskCount (Results 1 – 3 of 3) sorted by relevance
62 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 Scheduler159 return enqueuedTaskCount() > 0 && postedRunnables.get(0).scheduledTime <= endingTime; in nextTaskIsScheduledBefore()
113 assertThat(scheduler.enqueuedTaskCount(), equalTo(3)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()115 assertThat(scheduler.enqueuedTaskCount(), equalTo(1)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
211 assertEquals(3, scheduler.enqueuedTaskCount()); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()219 assertEquals(1, scheduler.enqueuedTaskCount()); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()