commit | 5f212c86a4fce26e5f87413df3dbfee181fa1ff8 | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Mar 13 12:25:13 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Mon Mar 13 22:39:24 2017 +0000 |
tree | aaabc4bcdfc42822a9a6f3c297f92981e87464f3 | |
parent | 208e2644618af7474f399089c264f0da1cfb0c81 [diff] |
BatteryStats: Prevent double-detaching Counter Detaching a Counter from a TimeBase means you can't use it anymore. Only newly constructed Counters are automatically attached to a TimeBase. Bug: 34200689 Test: make FrameworkCoreTests && adb install ... && adb shell am instrument -w -e class com.android.internal.os.BatteryStatsSensorTest com.android.frameworks.coretests Change-Id: I9309000d5625aa6fe61a3c05f135e5828137d8ce