summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-07 14:15:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-07 14:15:17 -0700
commit75f0024cf40eadb2cdaa6ae53409c515b68f21c1 (patch)
treeffcf4f192bc279870efc09df2de743dfe013923b /core/java/com
parent05dff838946abb01caa3c3172cf0f367964a0b6d (diff)
parent6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026 (diff)
downloadframeworks_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.java14
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;
}