summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBookatz <bookatz@google.com>2017-05-02 19:25:18 -0700
committerBookatz <bookatz@google.com>2017-05-02 19:25:18 -0700
commit941d98febab09334487e77731bed1355badec094 (patch)
treeca444df79070d4f7fd19e85f804f8642714efd14 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent506a8183fd9de03b73d6f71168da8e95089b8819 (diff)
Wakelock durations are 0 instead of -1 if unused
Previously, wakelock max/current/total durations were initialized to -1, instead of 0. So if, e.g., an app held a full wakelock but not a partial wakelock, then the partial wakelock would return -1 for these data. This cl changes that to be 0. The value will only be -1 if the data is not tracked (as is currently the case for full and window wakelocks), in which case if the wakelock was held, -1 will be given to signify the lack of tracking. Test: manually confirm 0 instead of -1 in batterystats dump. Change-Id: I934022294ba5adafb2e4d9a5be1dc20aab045cb0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions