summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMike Ma <yanmin@google.com>2018-03-15 14:40:37 -0700
committerBookatz <bookatz@google.com>2019-03-18 16:17:36 -0700
commit99e57c3c4091c37abeafccd5424e6cade9245c81 (patch)
tree0b62930a13b18573527519c2d6ea042515105a60 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent47119cf9772dd704cad8106c2930197805566d3e (diff)
Remove which from BatteryStats
BatteryStats tracks three "which" states: STATS_SINCE_CHARGED, STATS_CURRENT, STATS_SINCE_UNPLUGGED However, only STATS_SINCE_CHARGED is really needed; the other two just take up a lot of unjustifiable RAM. We therefore remove them from the implementation here. We also remove mLastTime and mLastCount from Timers and Counters, since it was always zero anyway. While the other two "whiches" are left as constants, they are ignored, and all functions treat any which as STATS_SINCE_CHARGED. In particular, SystemHealthManager now uses STATS_SINCE_CHARGED, rather than STATS_SINCE_UNPLUGGED for all of its Battery statistics. This is adapted from ag/4310406, but slimmed down to just the 'which' removal parts. Bug: 70892428 Test: com.android.internal.os.BatteryStatsTests Change-Id: I86f2743ff30afc15bbaa12c68f3206ea528857a1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions