summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2017-02-13 10:08:42 -0800
committerDianne Hackborn <hackbod@google.com>2017-02-27 10:54:06 -0800
commita06ec6a9435f9555142e700f54cf20278bc1982f (patch)
tree5306c01db543ca4bad12570705a75d4d6ea284a2 /libs/hwui/ProgramCache.cpp
parentff8351a311045cd91962f0cb5d03f15425d2401e (diff)
Add new job scheduler constraints for "battery not low".
Clean up the implementation of boolean constraints so that they are in a single flags value that gets propagated all of the way from JobInfo.Builder in to the JobStatus. Much simpler and easier to add new constraints! Also introduce some shell commands to make it easier to write tests against the job scheduler (and other things tied to power). One of the big things here is that there is a new sequence number that propagates with battery updates, which we can look for in the job scheduler to determine when a change the test has made to battery state has actually gotten applied, to allow it to safely and minimally wait until executing the condition being tested. Test: New BatteryConstraintTest suite added. Change-Id: I11076d90b80ec25ee604c29b6a6dc2337fd867ce
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions