Merge "Only fillLowPowerStats when needed" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e7c2db0c92
@@ -579,8 +579,10 @@ class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStatsSync {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_RPM) != 0) {
|
||||||
// Collect the latest low power stats without holding the mStats lock.
|
// Collect the latest low power stats without holding the mStats lock.
|
||||||
mStats.fillLowPowerStats();
|
mStats.fillLowPowerStats();
|
||||||
|
}
|
||||||
|
|
||||||
final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver);
|
final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver);
|
||||||
final BluetoothActivityEnergyInfo bluetoothInfo = awaitControllerInfo(bluetoothReceiver);
|
final BluetoothActivityEnergyInfo bluetoothInfo = awaitControllerInfo(bluetoothReceiver);
|
||||||
|
|||||||
Reference in New Issue
Block a user