diff options
author | Siddharth Ray <siddharthr@google.com> | 2018-06-17 18:28:44 -0700 |
---|---|---|
committer | Siddharth Ray <siddharthr@google.com> | 2018-06-27 15:43:03 -0700 |
commit | 97f62bf61db50288d3057127ea184b0937437df9 (patch) | |
tree | f9124212ee40463679c41240fe555e10f07d1424 /libs/hwui/renderthread/CacheManager.cpp | |
parent | 726df7efc9e8faad94ee8133fcb4fd976b66ebda (diff) |
Fix in Wifi activity updates
When Wifi firmware resets link layer stats, it sometimes returns a value
for On time which is much larger than the duration of the report.
On time = Idle time + Rx time + Tx time.
This change prevents those errors from affecting Wifi power metrics.
BUG:110325882
Test:
adb shell dumpsys batterystats
WiFi Scan time: 12s 302ms
WiFi Idle time: 5m 48s 634ms
WiFi Rx time: 24s 232ms
WiFi Tx time: 10s 510ms
Change-Id: I7b69fc728b275f89154dd0c1d7382576ebfadc29
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
0 files changed, 0 insertions, 0 deletions