Search in sources :

Example 1 with SmartBatteryTip

use of com.android.settings.fuelgauge.batterytip.tips.SmartBatteryTip in project android_packages_apps_Settings by omnirom.

the class BatteryHeaderPreferenceControllerTest method updateHeaderByBatteryTips_notLowBatteryTip_showRemainingLabel.

@Test
public void updateHeaderByBatteryTips_notLowBatteryTip_showRemainingLabel() {
    setChargingState(/* isDischarging */
    true, /* updatedByStatusFeature */
    false);
    BatteryTip lowBatteryTip = new SmartBatteryTip(BatteryTip.StateType.NEW);
    mController.updateHeaderByBatteryTips(lowBatteryTip, mBatteryInfo);
    verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel);
}
Also used : SmartBatteryTip(com.android.settings.fuelgauge.batterytip.tips.SmartBatteryTip) LowBatteryTip(com.android.settings.fuelgauge.batterytip.tips.LowBatteryTip) SmartBatteryTip(com.android.settings.fuelgauge.batterytip.tips.SmartBatteryTip) BatteryTip(com.android.settings.fuelgauge.batterytip.tips.BatteryTip) Test(org.junit.Test)

Aggregations

BatteryTip (com.android.settings.fuelgauge.batterytip.tips.BatteryTip)1 LowBatteryTip (com.android.settings.fuelgauge.batterytip.tips.LowBatteryTip)1 SmartBatteryTip (com.android.settings.fuelgauge.batterytip.tips.SmartBatteryTip)1 Test (org.junit.Test)1