Drop the misc and not smear it.
Bug: 38347725 Test: RunSettingsRoboTests Change-Id: I573e4fb945bc212505c9211d9b92f77a6a9a2739
This commit is contained in:
@@ -132,8 +132,9 @@ public class BatteryUtils {
|
||||
if (shouldHideSipper(sipper)) {
|
||||
sippers.remove(i);
|
||||
if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED
|
||||
&& sipper.drainType != BatterySipper.DrainType.SCREEN) {
|
||||
// Don't add it if it is overcounted or screen
|
||||
&& sipper.drainType != BatterySipper.DrainType.SCREEN
|
||||
&& sipper.drainType != BatterySipper.DrainType.UNACCOUNTED) {
|
||||
// Don't add it if it is overcounted, unaccounted or screen
|
||||
proportionalSmearPowerMah += sipper.totalPowerMah;
|
||||
}
|
||||
}
|
||||
|
@@ -192,8 +192,7 @@ public class BatteryUtilsTest {
|
||||
final double totalUsage = mBatteryUtils.removeHiddenBatterySippers(sippers);
|
||||
|
||||
assertThat(sippers).containsExactly(mNormalBatterySipper);
|
||||
assertThat(totalUsage).isWithin(PRECISION).of(
|
||||
BATTERY_SYSTEM_USAGE + BATTERY_UNACCOUNTED_USAGE);
|
||||
assertThat(totalUsage).isWithin(PRECISION).of(BATTERY_SYSTEM_USAGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user