summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2019-04-05 15:51:42 -0700
committerChristopher Tate <ctate@google.com>2019-07-30 15:18:02 -0700
commitef7eef60c9c9998266a181e24765aeeb76760b6b (patch)
treee06e8f99f32f3bcb7fd2b4b56172975cd4b49581 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdec3796249e0578d938c4727063cb86feaee29d2 (diff)
Fix job persistence & re-inflation
We were persisting jobs' battery-not-low constraints but were not properly restoring that constraint when the job was inflated at boot. This could result in a runtime bootloop (!) if the job had no other constraints, requiring a factory reset to restore the device to usability. We now: * properly inflate the battery-not-low constraint; * persist & inflate the storage-not-low constraint, which previously was being stripped entirely and could result in a similar crash-at-boot; * ignore the job rather than crash the system if one is inflated into a non-viable state; and * formally test previously-untested constraint persistence Bug: 130012063 Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/job/JobStoreTest.java Test: atest CtsJobSchedulerTestCases Test: JobStoreTest with forced throw in JobInfo.Builder#build() Change-Id: Ia3ab1eb16aeaa85336409368b4340622cec19f4c Merged-In: Ia3ab1eb16aeaa85336409368b4340622cec19f4c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions