Battery: report calculated power, tweak signal strength colors.

BatteryHistoryHelper now computes the total power to be the total
including the unaccounted, so we don't go > 100%.  However for the
unaccounted/over-counted details, we want to report the actual
computed amount.  Use a new API to do this.

Also tweak the signal strength colors so that the "no signal" state
is stronger, by being reddish instead of bright yellow.

Change-Id: I6af9fbcce8c3324883db0184f7ac215cb41b6230
This commit is contained in:
Dianne Hackborn
2014-01-22 14:18:39 -08:00
parent e179bb0133
commit 18083b1eb7
2 changed files with 3 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ public class PowerUsageDetail extends Fragment implements Button.OnClickListener
};
values = new double[] {
helper.getPowerProfile().getBatteryCapacity(),
helper.getTotalPower(),
helper.getComputedPower(),
helper.getMinDrainedPower(),
helper.getMaxDrainedPower(),
};