diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-09-18 20:26:07 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-18 20:26:07 +0000 |
commit | 680553957e4ff47343334881c34de6969b2ed977 (patch) | |
tree | 7843a32acca4f93b1856c413cdf8d79dd3fc967b /core/java/android/os | |
parent | 1b67a6b84d133e1fdac352d0821034ceca739a71 (diff) | |
parent | 6832f39416cbe2cc9655af4eabefe39c5d272254 (diff) | |
download | frameworks_base-680553957e4ff47343334881c34de6969b2ed977.zip frameworks_base-680553957e4ff47343334881c34de6969b2ed977.tar.gz frameworks_base-680553957e4ff47343334881c34de6969b2ed977.tar.bz2 |
Merge "BatteryStats: Better big-little CPU accounting" into mnc-dr-dev
Diffstat (limited to 'core/java/android/os')
-rw-r--r-- | core/java/android/os/BatteryStats.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/java/android/os/BatteryStats.java b/core/java/android/os/BatteryStats.java index bad94fc..8e86a53 100644 --- a/core/java/android/os/BatteryStats.java +++ b/core/java/android/os/BatteryStats.java @@ -463,13 +463,15 @@ public abstract class BatteryStats implements Parcelable { public abstract long getCpuPowerMaUs(int which); /** - * Returns the approximate cpu time (in milliseconds) spent at a certain CPU speed. + * Returns the approximate cpu time (in milliseconds) spent at a certain CPU speed for a + * given CPU cluster. + * @param cluster the index of the CPU cluster. * @param step the index of the CPU speed. This is not the actual speed of the CPU. * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT. - * @see BatteryStats#getCpuSpeedSteps() + * @see PowerProfile.getNumCpuClusters() + * @see PowerProfile.getNumSpeedStepsInCpuCluster(int) */ - @Deprecated - public abstract long getTimeAtCpuSpeed(int step, int which); + public abstract long getTimeAtCpuSpeed(int cluster, int step, int which); public static abstract class Sensor { /* @@ -2276,9 +2278,6 @@ public abstract class BatteryStats implements Parcelable { public abstract Map<String, ? extends Timer> getKernelWakelockStats(); - /** Returns the number of different speeds that the CPU can run at */ - public abstract int getCpuSpeedSteps(); - public abstract void writeToParcelWithoutUids(Parcel out, int flags); private final static void formatTimeRaw(StringBuilder out, long seconds) { |