diff options
author | Kweku Adams <kwekua@google.com> | 2019-02-21 17:51:45 -0800 |
---|---|---|
committer | Kweku Adams <kwekua@google.com> | 2019-02-21 18:57:41 -0800 |
commit | b0488cc862ecacce10bfb3d3ec619bd48fec6d9a (patch) | |
tree | c40a6ec9eb0af6f3f132b37a16612ded2dcad087 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 407761a7683735ecf4e2074e7971396bb1f5dae4 (diff) |
Fix StorageController bugs.
1. StorageController was taking the return value of
setStorageNotLowConstraintSatisfied to be the previous value of the
constraint before the change. However, the return value indicates whether
or not the constraint changed. This meant that StorageController would
sometimes notify JobSchedulerService when a constraint hadn't actually
changed and would sometimes not notify JobSchedulerService when a
constraint had changed.
2. The calls to onRunJobNow and onControllerStateChanged both result in
JobSchedulerService iterating through the JobStore to identify jobs to
run. Calling both of them provides no benefit.
3. StorageController was listening for the STORAGE_LOW intent but wasn't
actually updating job statuses so jobs would continue to run after the
storage became low.
Bug: 125531072
Test: atest android.jobscheduler.cts.StorageConstraintTest
Change-Id: I10fa9bae3bdbd2545c15e5cab647a0820b9fbfa7
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions