Home
last modified time | relevance | path

Searched refs:batteryPercentString (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryInfo.java48 public String batteryPercentString; field in BatteryInfo
229 info.batteryPercentString = Utils.formatPercentage(info.batteryLevel); in getBatteryInfo()
259 info.chargeLabel = context.getString(resId, info.batteryPercentString, timeString); in updateBatteryInfoCharging()
264 info.chargeLabel = info.batteryLevel == 100 ? info.batteryPercentString : in updateBatteryInfoCharging()
265 resources.getString(R.string.power_charging, info.batteryPercentString, in updateBatteryInfoCharging()
284 info.batteryPercentString, in updateBatteryInfoDischarging()
292 info.chargeLabel = info.batteryPercentString; in updateBatteryInfoDischarging()
DTopLevelBatteryPreferenceController.java86 label = info.batteryPercentString; in getDashboardLabel()
89 formatter.unicodeWrap(info.batteryPercentString), in getDashboardLabel()
DBatteryHistoryPreference.java84 ((TextView) view.findViewById(R.id.charge)).setText(mBatteryInfo.batteryPercentString); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java50 public String batteryPercentString; field in BatteryInfo
232 info.batteryPercentString = Utils.formatPercentage(info.batteryLevel); in getBatteryInfo()
262 info.chargeLabel = context.getString(resId, info.batteryPercentString, timeString); in updateBatteryInfoCharging()
267 info.chargeLabel = info.batteryLevel == 100 ? info.batteryPercentString : in updateBatteryInfoCharging()
268 resources.getString(R.string.power_charging, info.batteryPercentString, in updateBatteryInfoCharging()
287 info.batteryPercentString, in updateBatteryInfoDischarging()
295 info.chargeLabel = info.batteryPercentString; in updateBatteryInfoDischarging()
DTopLevelBatteryPreferenceController.java86 label = info.batteryPercentString; in getDashboardLabel()
89 formatter.unicodeWrap(info.batteryPercentString), in getDashboardLabel()
DBatteryHistoryPreference.java84 ((TextView) view.findViewById(R.id.charge)).setText(mBatteryInfo.batteryPercentString); in onBindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DTopLevelBatteryPreferenceControllerTest.java59 info.batteryPercentString = "3%"; in getDashboardLabel_returnsCorrectLabel()
60 assertThat(getDashboardLabel(mContext, info)).isEqualTo(info.batteryPercentString); in getDashboardLabel_returnsCorrectLabel()