Searched refs:chargeLabel (Results 1 – 4 of 4) sorted by relevance
118 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()
169 info.chargeLabel = "5% - charging"; in getDashboardLabel_returnsCorrectLabel()
46 public CharSequence chargeLabel; field in BatteryInfo265 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()
152 if (!info.discharging && info.chargeLabel != null) { in generateLabel()153 return info.chargeLabel; in generateLabel()