diff options
-rw-r--r-- | src/com/android/settings/fuelgauge/PowerUsageSummary.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index e0d614d..ea28c59 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -457,6 +457,10 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { } wakelockTime /= 1000; // convert to millis + // Add cost of holding a wake lock + power += (wakelockTime + * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_AWAKE)) / 1000; + // Add cost of data traffic long tcpBytesReceived = u.getTcpBytesReceived(mStatsType); long tcpBytesSent = u.getTcpBytesSent(mStatsType); |