am 941c3b17
: Merge change I61c28c5f into eclair
Merge commit '941c3b1794203b48a8aa2e9d6f04c09d412262bd' into eclair-mr2 * commit '941c3b1794203b48a8aa2e9d6f04c09d412262bd': Use radio hunting time in addition to signal strength for cell standby computation. Fixes #2176141
This commit is contained in:
@@ -445,6 +445,9 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable {
|
||||
* mPowerProfile.getAveragePower(PowerProfile.POWER_RADIO_ON, i);
|
||||
signalTimeMs += strengthTimeMs;
|
||||
}
|
||||
long scanningTimeMs = mStats.getPhoneSignalScanningTime(uSecNow, mStatsType) / 1000;
|
||||
power += scanningTimeMs / 1000 * mPowerProfile.getAveragePower(
|
||||
PowerProfile.POWER_RADIO_SCANNING);
|
||||
BatterySipper bs =
|
||||
addEntry(getString(R.string.power_cell), DrainType.CELL, signalTimeMs,
|
||||
R.drawable.ic_settings_cell_standby, power);
|
||||
|
Reference in New Issue
Block a user