OSDN Git Service

Correctly check expired jobs against active ones
authorChristopher Tate <ctate@google.com>
Wed, 15 Mar 2017 19:01:22 +0000 (12:01 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 17 Mar 2017 20:45:20 +0000 (13:45 -0700)
commitb1d6448ec4f9af79776cc2e9eb951b659212b0bb
tree187401cf1ceabebdde0f392100330e913d5a5040
parentfe1220933424db688722ca609ed98abef1df262e
Correctly check expired jobs against active ones

If a job was run before its deadline, and then the deadline landed
while the job was still running, b/c of the 'deadline trumps all'
it would be considered eligible to run again as soon as the previous
iteration completed.

Fix this by checking against the state of the active queue.

Bug 36253320
Test: CTS: job scheduler TimingConstraintsTest

Change-Id: I4f0c1012091bf88776cfe725d7b59f6dcf602c02
services/core/java/com/android/server/job/JobSchedulerService.java