summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJason Parks <jparks@google.com>2010-07-20 12:39:07 -0500
committerJason Parks <jparks@google.com>2010-07-20 12:39:07 -0500
commit94b916da2ce7b5fb8d87e884fad7132ef3091720 (patch)
tree924328e1c63402342f5d3bbc6f8613656e9a725e /core
parentff7049ab2886acc73e145367118646f7741ce333 (diff)
downloadframeworks_base-94b916da2ce7b5fb8d87e884fad7132ef3091720.zip
frameworks_base-94b916da2ce7b5fb8d87e884fad7132ef3091720.tar.gz
frameworks_base-94b916da2ce7b5fb8d87e884fad7132ef3091720.tar.bz2
Only print out wake locks in the if the wakelock was held.
Change-Id: I742121b70bd0e56ca2efe05fffa9fe3e4ad7b619
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/BatteryStats.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/java/android/os/BatteryStats.java b/core/java/android/os/BatteryStats.java
index e3f3b87..0afd6cd 100644
--- a/core/java/android/os/BatteryStats.java
+++ b/core/java/android/os/BatteryStats.java
@@ -1237,10 +1237,9 @@ public abstract class BatteryStats implements Parcelable {
linePrefix);
if (!linePrefix.equals(": ")) {
sb.append(" realtime");
- } else {
- sb.append(": (nothing executed)");
+ // Only print out wake locks that were held
+ pw.println(sb.toString());
}
- pw.println(sb.toString());
}
}
}
@@ -1453,11 +1452,10 @@ public abstract class BatteryStats implements Parcelable {
"window", which, linePrefix);
if (!linePrefix.equals(": ")) {
sb.append(" realtime");
- } else {
- sb.append(": (nothing executed)");
+ // Only print out wake locks that were held
+ pw.println(sb.toString());
+ uidActivity = true;
}
- pw.println(sb.toString());
- uidActivity = true;
}
}