summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2016-03-25 12:18:23 -0700
committerFelipe Leme <felipeal@google.com>2016-03-25 15:08:46 -0700
commitf28983d3a071d4b420886306853617c0264ca342 (patch)
tree0a84cf21084b500b29aa41747cd80fac6d0eb1f9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent1f6bdbca6955ac195807fd82b325bd8010ea6141 (diff)
More Data Saver / Battery Saver modes cleanup
When Battery Saver mode was first implemented, there were no firewall rules on netd, so the solution was to make all network interface metered and re-use the bw_penalty_box chain. Recently, a fw_powersave chain was created with the purpose of separating these 2 concerns, but some scenarios were no properly handled. This change further cleans up the code by: - Creating a updateRestrictionRulesForUidLocked() to be used when both Battery Saver and Power Save rules need to be re-evaluated. - Renaming some methods to be more consistent with others. - Disabling rules for apps that do not have internet permissions. - Updating network stats only when process status changes. - Only updating Battery Saver rules when they changed. BUG: 27127112 BUG: 26685616 Change-Id: I75fbc9733b8989fadcb10ebc154e214e3d256fe9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions