Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb344651 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Adjust queue for test jobs." into tm-dev am: 172a02ec"

parents c9b0c272 371b889a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -182,8 +182,10 @@ class PendingJobQueue {
        if (earliestQueue != null) {
            final JobStatus job = earliestQueue.next();
            // Change the front of the queue if we've pulled pullLimit jobs from the current head
            // or we're dealing with test jobs
            // or the current head has no more jobs to provide.
            if (++mPullCount >= pullLimit
                    || (job != null && earliestQueue.peekNextOverrideState() != job.overrideState)
                    || earliestQueue.peekNextTimestamp() == AppJobQueue.NO_NEXT_TIMESTAMP) {
                mOrderedQueues.poll();
                if (earliestQueue.peekNextTimestamp() != AppJobQueue.NO_NEXT_TIMESTAMP) {