commit | 561a8d9d604edd609da1ed0ee2340ae68f98e7b8 | [log] [tgz] |
---|---|---|
author | Mike Ma <yanmin@google.com> | Tue Mar 20 18:24:05 2018 -0700 |
committer | Mike Ma <yanmin@google.com> | Wed Mar 21 13:09:28 2018 -0700 |
tree | 7febc9760bae278284c3354a65c5912c4c300469 | |
parent | 31d58db7c32b6ec3ec901b8204c23d524aae131e [diff] |
Record Bluetooth Cumulative Stats Properly updateBluetoothStateLocked does not check for null values, causing NPE. This patch reverts part of the change in 3445570. Instead, an update method is added to LongSamplingCounter, which accepts cumulative values. Fixes: 75963520 Test: LongSamplingCounterTest Change-Id: I89eba8e20f8f055c60f4ff250653345a22536189