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

Commit f290b255 authored by Kweku Adams's avatar Kweku Adams Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17383006

Change-Id: I08cefa2109a1f9fec982f539a9fb35bb62adead9
Signed-off-by: Automerger Merge Worker
parents f4da2c6b 172a02ec
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) {