Only print out wake locks in the if the wakelock was held.

Change-Id: I742121b70bd0e56ca2efe05fffa9fe3e4ad7b619
This commit is contained in:
Jason Parks
2010-07-20 12:39:07 -05:00
parent ff7049ab28
commit 94b916da2c

View File

@@ -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;
}
}