commit | 713fec85b8612256211f09c62b8958a99fe5b9db | [log] [tgz] |
---|---|---|
author | Joe Onorato <joeo@google.com> | Fri Mar 04 10:34:02 2016 -0800 |
committer | Joe Onorato <joeo@google.com> | Wed Mar 09 15:47:24 2016 -0800 |
tree | 6530bf04548b1a4dfe0470c466744cd80868c00e | |
parent | 63c2151b1749b234087a555307a3cb727085614a [diff] [blame] |
Add an API for apps to get their System Health / Battery Stats data. Change-Id: Ib27e1be469b826f6d83d73ce6024102bbdb1d47a
diff --git a/core/java/com/android/internal/os/BatteryStatsImpl.java b/core/java/com/android/internal/os/BatteryStatsImpl.java index 60c9e14..c484121 100644 --- a/core/java/com/android/internal/os/BatteryStatsImpl.java +++ b/core/java/com/android/internal/os/BatteryStatsImpl.java
@@ -5300,6 +5300,12 @@ } @Override + public Timer getProcessStateTimer(int state) { + if (state < 0 || state >= NUM_PROCESS_STATE) return null; + return mProcessStateTimer[state]; + } + + @Override public Timer getVibratorOnTimer() { return mVibratorOnTimer; }