am 29e25bd3: Merge "Only print out wake locks in the if the wakelock was held." into gingerbread

Merge commit '29e25bd3418b04e395119bf99abe92898830a796' into gingerbread-plus-aosp

* commit '29e25bd3418b04e395119bf99abe92898830a796':
  Only print out wake locks in the if the wakelock was held.
This commit is contained in:
Jason Parks
2010-07-20 14:04:41 -07:00
committed by Android Git Automerger

View File

@@ -1237,13 +1237,12 @@ public abstract class BatteryStats implements Parcelable {
linePrefix); linePrefix);
if (!linePrefix.equals(": ")) { if (!linePrefix.equals(": ")) {
sb.append(" realtime"); sb.append(" realtime");
} else { // Only print out wake locks that were held
sb.append(": (nothing executed)");
}
pw.println(sb.toString()); pw.println(sb.toString());
} }
} }
} }
}
for (int iu = 0; iu < NU; iu++) { for (int iu = 0; iu < NU; iu++) {
Uid u = uidStats.valueAt(iu); Uid u = uidStats.valueAt(iu);
@@ -1453,13 +1452,12 @@ public abstract class BatteryStats implements Parcelable {
"window", which, linePrefix); "window", which, linePrefix);
if (!linePrefix.equals(": ")) { if (!linePrefix.equals(": ")) {
sb.append(" realtime"); sb.append(" realtime");
} else { // Only print out wake locks that were held
sb.append(": (nothing executed)");
}
pw.println(sb.toString()); pw.println(sb.toString());
uidActivity = true; uidActivity = true;
} }
} }
}
Map<Integer, ? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats(); Map<Integer, ? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats();
if (sensors.size() > 0) { if (sensors.size() > 0) {