FakeUid: measured energy for Wifi, Bluetooth
Updates FakeUid for the new BatteryStats APIs: getWifiMeasuredBatteryConsumptionUC() getBluetoothMeasuredBatteryConsumptionUC Test: atest BatteryStatsTests Bug: 174818228 Change-Id: I60b4a7dbc24b5fe6d91502a942cab8a32daacf96
This commit is contained in:
@@ -356,7 +356,7 @@ public class FakeUid extends Uid {
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getScreenOnMeasuredBatteryConsumptionUC() {
|
||||
public long getBluetoothMeasuredBatteryConsumptionUC() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -365,6 +365,16 @@ public class FakeUid extends Uid {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getScreenOnMeasuredBatteryConsumptionUC() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getWifiMeasuredBatteryConsumptionUC() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long[] getCustomConsumerMeasuredBatteryConsumptionUC() {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user