Searched refs:chargeLabel (Results 1 – 4 of 4) sorted by relevance
50 public CharSequence chargeLabel; field in BatteryInfo392 info.chargeLabel = context.getString(chargingLimitedResId, info.batteryPercentString); in updateBatteryInfoCharging()398 final CharSequence chargeLabel = in updateBatteryInfoCharging() local405 if (chargeLabel != null) { in updateBatteryInfoCharging()414 info.chargeLabel = chargeLabel; in updateBatteryInfoCharging()438 info.chargeLabel = in updateBatteryInfoCharging()450 info.chargeLabel = in updateBatteryInfoCharging()457 info.chargeLabel = in updateBatteryInfoCharging()547 info.chargeLabel = info.remainingLabel; in updateBatteryInfoDischarging()554 info.chargeLabel = info.batteryPercentString; in updateBatteryInfoDischarging()
164 if (info.chargeLabel != null && featureProvider.isChargingOptimizationMode(mContext)) { in generateLabel()165 return info.chargeLabel; in generateLabel()170 } else if (!info.discharging && info.chargeLabel != null) { in generateLabel()171 return info.chargeLabel; in generateLabel()
164 assertThat(info.chargeLabel.toString()).isEqualTo(STATUS_CHARGING_TIME); in getBatteryInfo_doNotShowChargingMethod_hasRemainingTime()178 assertThat(info.chargeLabel.toString()).ignoringCase().isEqualTo(STATUS_CHARGING_NO_TIME); in getBatteryInfo_doNotShowChargingMethod_noRemainingTime()195 assertThat(info.chargeLabel.toString()).isEqualTo("50% - 1 min left until full"); in getBatteryInfo_pluggedInUsingShortString_usesCorrectData()305 assertThat(info.chargeLabel).isEqualTo("100%"); in getBatteryInfo_pluggedInWithFullBattery_onlyShowBatteryLevel()328 assertThat(info.chargeLabel.toString()).contains(STATUS_CHARGING_PAUSED); in getBatteryInfo_chargingWithDefender_updateChargeLabel()391 assertThat(info.chargeLabel.toString()).contains(STATUS_CHARGING_PAUSED); in getBatteryInfo_dockDefenderActive_updateChargeString()416 assertThat(info.chargeLabel.toString()).contains(STATUS_CHARGING_TIME); in getBatteryInfo_dockDefenderTemporarilyBypassed_updateChargeLabel()437 assertThat(info.chargeLabel.toString()).contains(STATUS_CHARGING_FUTURE_BYPASS); in getBatteryInfo_dockDefenderFutureBypass_updateChargeLabel()853 .that(info.chargeLabel.toString()) in assertGetBatteryInfo()
123 info.chargeLabel = "5% - charging"; in getDashboardLabel_returnsChargeLabel()125 assertThat(mController.getDashboardLabel(mContext, info, true)).isEqualTo(info.chargeLabel); in getDashboardLabel_returnsChargeLabel()