diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-04-21 09:55:41 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-04-22 14:48:18 -0700 |
commit | 757c6eacc8114613e2a07a5e68628bf202ce97ab (patch) | |
tree | 9a5bdedc4f5f0f2da2c3ff78ee26a349d39cf162 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 6e685dc3c519526a0f38ec5ee9e81e1f57e0fa36 (diff) |
BatteryStats: Fix up semantics of SamplingTimer
SamplingTimer has been losing some data, as well as not correctly handling
entries that have gone away and come back with less data (reset).
This change correctly ends a SamplingTimer sample by adding the accumulated amount
to the total, then reseting the running counter to accept new values.
This is also triggered automatically when the incoming data is less than what is currently
recorded.
Bug:25695597
Change-Id: I6b540906e6be527578d1003485384a75ba211b52
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions