| commit | 7be8557f40816300f1eab7ddb069529e0a86c845 | [log] [tgz] |
|---|---|---|
| author | Brian Duddie <bduddie@google.com> | Tue Dec 21 10:44:55 2021 -0800 |
| committer | Brian Duddie <bduddie@google.com> | Fri May 06 00:31:52 2022 +0000 |
| tree | 667491b95c9a5016e95c10b1ca1997b836e2ba10 | |
| parent | 24f2b4c066fda9c5258f1aa8afa0ce7b688fa8f0 [diff] |
Fix batterystats update on sensor connection cleanup
Previous code was stopping battery tracking for *all* sensors activated
by the UID, rather than only the sensors activated in the
SensorEventConnection being cleaned up, leading to under-counting of
sensor activation time.
Fixes: 210559152
Test: verify batterystats correctly updates when one connection is
closed and another remains open
Change-Id: Id6b96929c5534295334eeca3d56506d29bc75b29