Merge "BatteryStats: Don't log BluetoothScanTimer when it doesn't exist" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
daeee0b5d7
@@ -3094,14 +3094,8 @@ public abstract class BatteryStats implements Parcelable {
|
|||||||
dumpControllerActivityLine(pw, uid, category, WIFI_CONTROLLER_DATA,
|
dumpControllerActivityLine(pw, uid, category, WIFI_CONTROLLER_DATA,
|
||||||
u.getWifiControllerActivity(), which);
|
u.getWifiControllerActivity(), which);
|
||||||
|
|
||||||
// Dump Bluetooth scan data, per UID.
|
dumpTimer(pw, uid, category, BLUETOOTH_MISC_DATA, u.getBluetoothScanTimer(),
|
||||||
final long bleScanTimeUs = u.getBluetoothScanTimer().getTotalTimeLocked(
|
|
||||||
rawRealtime, which);
|
rawRealtime, which);
|
||||||
final int bleScanCount = u.getBluetoothScanTimer().getCountLocked(which);
|
|
||||||
if (bleScanTimeUs != 0 || bleScanCount != 0) {
|
|
||||||
dumpLine(pw, uid, category, BLUETOOTH_MISC_DATA,
|
|
||||||
bleScanTimeUs / 1000, bleScanCount);
|
|
||||||
}
|
|
||||||
|
|
||||||
dumpControllerActivityLine(pw, uid, category, BLUETOOTH_CONTROLLER_DATA,
|
dumpControllerActivityLine(pw, uid, category, BLUETOOTH_CONTROLLER_DATA,
|
||||||
u.getBluetoothControllerActivity(), which);
|
u.getBluetoothControllerActivity(), which);
|
||||||
|
|||||||
Reference in New Issue
Block a user