summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2020-12-21 12:44:47 -0800
committerSuprabh Shukla <suprabh@google.com>2021-01-11 12:23:38 -0800
commit17f6e2007fd1e455dd52e4ff7fa50db84f848540 (patch)
tree99be06e48627abd5723c798f28675f6dc3373239 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5ff940635092bf4bb4675eb770c462a79b2114bd (diff)
Adding Battery saver policy to alarms
Adding a separate policy to control whether alarms are eligible to go off or not. This decouples battery saver and user applied background restriction (a.k.a. forced-app-standby) logic, which have diverged due to a lot of special exceptions in battery saver policy. This should make it easier to maintain both in the future. A side effect of this separation of logic is that any alarms that were due before battery saver was turned on but were held back due to user FAS will be delivered when the user turns off FAS, even when battery saver is on. This also has the benefit of deferring the relevant alarms before setting the kernel timer so no redundant wakeups are incurred. Also fixed a bug where adding an app to the power exemption list was not unblocking restricted alarms for that app. Test: atest CtsAlarmManagerTestCases atest FrameworksMockingServicesTests:com.android.server.alarm atest FrameworksMockingServicesTests:AppStateTrackerTest Bug: 158795479 Bug: 170279979 Change-Id: Ic05e06c2576113a82d4f39ee61b86af63c23ac02
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions