Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83d2698f authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread

parents 91ba0709 21023464
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);