Skip to content
Commit 765c9bc2 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix job preemption logic

We try to find the lowest-priority running job for preemption. The code
was looking at the wrong piece of information for deciding which to
select, leading to preemption of inappropriate jobs.

Along the way, fix the mock-based JobSchedulerServiceTest, which had not
yet been updated to track AppStandInternal LocalService changes.

Bug: 137019975
Test: atest com.android.server.job.JobSchedulerServiceTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I902a7626e4a14c288388544f8a6b263770805a7f
parent 22bf81a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment