Merge changes from topic 'battery_smear_move' into oc-dev am: 883db32859
am: bd499f9319
Change-Id: I2add2be471c83285f104f137e45a9a8bbb2b8ce7
This commit is contained in:
@@ -3336,7 +3336,10 @@ public abstract class BatteryStats implements Parcelable {
|
||||
label = "???";
|
||||
}
|
||||
dumpLine(pw, uid, category, POWER_USE_ITEM_DATA, label,
|
||||
BatteryStatsHelper.makemAh(bs.totalPowerMah));
|
||||
BatteryStatsHelper.makemAh(bs.totalPowerMah),
|
||||
bs.shouldHide ? 1 : 0,
|
||||
BatteryStatsHelper.makemAh(bs.screenPowerMah),
|
||||
BatteryStatsHelper.makemAh(bs.proportionalSmearMah));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4365,6 +4368,26 @@ public abstract class BatteryStats implements Parcelable {
|
||||
}
|
||||
pw.print(" )");
|
||||
}
|
||||
|
||||
// If there is additional smearing information, include it.
|
||||
if (bs.totalSmearedPowerMah != bs.totalPowerMah) {
|
||||
pw.print(" Including smearing: ");
|
||||
printmAh(pw, bs.totalSmearedPowerMah);
|
||||
pw.print(" (");
|
||||
if (bs.screenPowerMah != 0) {
|
||||
pw.print(" screen=");
|
||||
printmAh(pw, bs.screenPowerMah);
|
||||
}
|
||||
if (bs.proportionalSmearMah != 0) {
|
||||
pw.print(" proportional=");
|
||||
printmAh(pw, bs.proportionalSmearMah);
|
||||
}
|
||||
pw.print(" )");
|
||||
}
|
||||
if (bs.shouldHide) {
|
||||
pw.print(" Excluded from smearing");
|
||||
}
|
||||
|
||||
pw.println();
|
||||
}
|
||||
pw.println();
|
||||
|
||||
Reference in New Issue
Block a user