diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-09-07 14:15:17 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-07 14:15:17 -0700 |
commit | 75f0024cf40eadb2cdaa6ae53409c515b68f21c1 (patch) | |
tree | ffcf4f192bc279870efc09df2de743dfe013923b /core/java/com | |
parent | 05dff838946abb01caa3c3172cf0f367964a0b6d (diff) | |
parent | 6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026 (diff) | |
download | frameworks_base-75f0024cf40eadb2cdaa6ae53409c515b68f21c1.zip frameworks_base-75f0024cf40eadb2cdaa6ae53409c515b68f21c1.tar.gz frameworks_base-75f0024cf40eadb2cdaa6ae53409c515b68f21c1.tar.bz2 |
am 6e86915e: Merge "Fixes to battery stats debug output." into gingerbread
Merge commit '6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026' into gingerbread-plus-aosp
* commit '6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026':
Fixes to battery stats debug output.
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/os/BatteryStatsImpl.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/core/java/com/android/internal/os/BatteryStatsImpl.java b/core/java/com/android/internal/os/BatteryStatsImpl.java index 0a1c8ff..a6a031a 100644 --- a/core/java/com/android/internal/os/BatteryStatsImpl.java +++ b/core/java/com/android/internal/os/BatteryStatsImpl.java @@ -3345,11 +3345,6 @@ public final class BatteryStatsImpl extends BatteryStats { } } - public class Pid { - long mWakeSum; - long mWakeStart; - } - /** * Retrieve the statistics object for a particular process, creating * if needed. @@ -3364,6 +3359,10 @@ public final class BatteryStatsImpl extends BatteryStats { return ps; } + public SparseArray<? extends Pid> getPidStats() { + return mPids; + } + public Pid getPidStatsLocked(int pid) { Pid p = mPids.get(pid); if (p == null) { @@ -3588,6 +3587,11 @@ public final class BatteryStatsImpl extends BatteryStats { } @Override + public long getHistoryBaseTime() { + return mHistoryBaseTime; + } + + @Override public int getStartCount() { return mStartCount; } |