diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-09-05 18:05:40 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-09-09 17:07:54 -0700 |
commit | 6832f39416cbe2cc9655af4eabefe39c5d272254 (patch) | |
tree | 7b6a2c99c7938a4d79ffcea8387ddc69365265a7 /services | |
parent | 24a6be463e5628416ad234a3e2e33f1f4cc5b287 (diff) | |
download | frameworks_base-6832f39416cbe2cc9655af4eabefe39c5d272254.zip frameworks_base-6832f39416cbe2cc9655af4eabefe39c5d272254.tar.gz frameworks_base-6832f39416cbe2cc9655af4eabefe39c5d272254.tar.bz2 |
BatteryStats: Better big-little CPU accounting
Generalize cpu clusters so we can measure frequency
and power usage across heterogeneous cpu clusters.
This also brings back reading of cpu-times for power calculation.
Bug:22773176
Change-Id: I9c794ae9756c782c0e971c7f5fcebbe70374b269
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/am/BatteryStatsService.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/BatteryStatsService.java b/services/core/java/com/android/server/am/BatteryStatsService.java index 335288d..62768c3 100644 --- a/services/core/java/com/android/server/am/BatteryStatsService.java +++ b/services/core/java/com/android/server/am/BatteryStatsService.java @@ -171,12 +171,11 @@ public final class BatteryStatsService extends IBatteryStats.Stub public void publish(Context context) { mContext = context; - ServiceManager.addService(BatteryStats.SERVICE_NAME, asBinder()); - mStats.setNumSpeedSteps(new PowerProfile(mContext).getNumSpeedSteps()); mStats.setRadioScanningTimeout(mContext.getResources().getInteger( com.android.internal.R.integer.config_radioScanningTimeout) * 1000L); mStats.setPowerProfile(new PowerProfile(context)); + ServiceManager.addService(BatteryStats.SERVICE_NAME, asBinder()); } /** |