OSDN Git Service

Treat named standby states as ceilings of behavioral categories
authorChristopher Tate <ctate@google.com>
Tue, 27 Mar 2018 23:04:14 +0000 (16:04 -0700)
committerChris Tate <ctate@android.com>
Mon, 16 Apr 2018 19:45:54 +0000 (19:45 +0000)
commitf215971e8322c681c61fe049756fe58dba9fe75e
tree41f59cb1c789f3378ca053271e19ba1748daf05c
parent61ac57283fecb20d4287b81b293a2579d0386c15
Treat named standby states as ceilings of behavioral categories

For purposes of alarm dispatch & job execution, intermediate standby
states are now treated as the ceilings of the range associated with each
bucket, rather than as the floor.  So, for example, a value that is
between STANDBY_BUCKET_WORKING_SET and STANDBY_BUCKET_ACTIVE is now
treated as equivalent to STANDBY_BUCKET_WORKING_SET.

Bug: 77154340
Test: atest CtsJobSchedulerTestCases
Change-Id: I84d010863eecaac011dd117205980254487bfa64
services/core/java/com/android/server/AlarmManagerService.java
services/core/java/com/android/server/job/JobSchedulerService.java