Loading src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java +0 −3 Original line number Diff line number Diff line Loading @@ -67,9 +67,6 @@ public class BatteryTipLoader extends AsyncLoaderCompat<List<BatteryTip>> { tips.add(new LowBatteryDetector(context, policy, batteryInfo, isPowerSaveMode).detect()); tips.add(new HighUsageDetector(context, policy, mBatteryUsageStats, batteryInfo).detect()); tips.add(new SmartBatteryDetector( context, policy, batteryInfo, context.getContentResolver(), isPowerSaveMode) .detect()); tips.add(new BatteryDefenderDetector(batteryInfo, context).detect()); tips.add(new DockDefenderDetector(batteryInfo, context).detect()); tips.add(new IncompatibleChargerDetector(context).detect()); Loading tests/robotests/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoaderTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -54,8 +54,7 @@ public class BatteryTipLoaderTest { BatteryTip.TipType.BATTERY_DEFENDER, BatteryTip.TipType.DOCK_DEFENDER, BatteryTip.TipType.INCOMPATIBLE_CHARGER, BatteryTip.TipType.HIGH_DEVICE_USAGE, BatteryTip.TipType.SMART_BATTERY_MANAGER}; BatteryTip.TipType.HIGH_DEVICE_USAGE}; @Mock(answer = Answers.RETURNS_DEEP_STUBS) private BatteryUsageStats mBatteryUsageStats; @Mock Loading Loading
src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java +0 −3 Original line number Diff line number Diff line Loading @@ -67,9 +67,6 @@ public class BatteryTipLoader extends AsyncLoaderCompat<List<BatteryTip>> { tips.add(new LowBatteryDetector(context, policy, batteryInfo, isPowerSaveMode).detect()); tips.add(new HighUsageDetector(context, policy, mBatteryUsageStats, batteryInfo).detect()); tips.add(new SmartBatteryDetector( context, policy, batteryInfo, context.getContentResolver(), isPowerSaveMode) .detect()); tips.add(new BatteryDefenderDetector(batteryInfo, context).detect()); tips.add(new DockDefenderDetector(batteryInfo, context).detect()); tips.add(new IncompatibleChargerDetector(context).detect()); Loading
tests/robotests/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoaderTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -54,8 +54,7 @@ public class BatteryTipLoaderTest { BatteryTip.TipType.BATTERY_DEFENDER, BatteryTip.TipType.DOCK_DEFENDER, BatteryTip.TipType.INCOMPATIBLE_CHARGER, BatteryTip.TipType.HIGH_DEVICE_USAGE, BatteryTip.TipType.SMART_BATTERY_MANAGER}; BatteryTip.TipType.HIGH_DEVICE_USAGE}; @Mock(answer = Answers.RETURNS_DEEP_STUBS) private BatteryUsageStats mBatteryUsageStats; @Mock Loading