Home
last modified time | relevance | path

Searched refs:chargeLabel (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java118 assertThat(info.chargeLabel.toString()).isEqualTo(STATUS_CHARGING_TIME); in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime()
127 assertThat(info.chargeLabel.toString()).isEqualTo(STATUS_CHARGING_NO_TIME); in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime()
138 assertThat(info.chargeLabel.toString()).isEqualTo("50% - 1 min left until full"); in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData()
203 assertThat(info.chargeLabel.toString()).isEqualTo( in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
245 assertThat(info.chargeLabel).isEqualTo("100%"); in testGetBatteryInfo_pluggedInWithFullBattery_onlyShowBatteryLevel()
261 assertThat(info.chargeLabel).isEqualTo("50% - Charging temporarily limited"); in testGetBatteryInfo_chargingWithOverheated_updateChargeLabel()
DTopLevelBatteryPreferenceControllerTest.java169 info.chargeLabel = "5% - charging"; in getDashboardLabel_returnsCorrectLabel()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java46 public CharSequence chargeLabel; field in BatteryInfo
265 info.chargeLabel = in updateBatteryInfoCharging()
277 info.chargeLabel = context.getString(resId, info.batteryPercentString, timeString); in updateBatteryInfoCharging()
281 info.chargeLabel = info.batteryLevel == 100 ? info.batteryPercentString : in updateBatteryInfoCharging()
298 info.chargeLabel = PowerUtil.getBatteryRemainingStringFormatted( in updateBatteryInfoDischarging()
309 info.chargeLabel = info.batteryPercentString; in updateBatteryInfoDischarging()
DTopLevelBatteryPreferenceController.java152 if (!info.discharging && info.chargeLabel != null) { in generateLabel()
153 return info.chargeLabel; in generateLabel()