commit | 154d124ace83350da51e2d6f795f88f7bda6b041 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Thu Feb 16 10:01:48 2017 -0800 |
committer | Amith Yamasani <yamasani@google.com> | Thu Feb 16 10:09:36 2017 -0800 |
tree | de3e1349837e42644aa5b2af26409540a4dbc1f7 | |
parent | b3f417ec3a0c549b4c50d4266680e5223bb3b774 [diff] |
Fix background sensor usage counter being out of sync with total count, due to nesting. Only update the counter if nesting is 1. Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsSensorTest.java Change-Id: Iabb153550a79afa9902569bbbbdb5815decdc613 Fixes: 34750473