Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java142 mBatteryInfo.remainingLabel = TIME_LEFT; in updatePreference_hasRemainingTime_showRemainingLabel()
146 verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel); in updatePreference_hasRemainingTime_showRemainingLabel()
156 verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel); in updatePreference_updateBatteryInfo()
162 mBatteryInfo.remainingLabel = null; in updatePreference_noRemainingTime_showStatusLabel()
172 mBatteryInfo.remainingLabel = TIME_LEFT; in updatePreference_statusAnomalous_showStatusLabel()
219 verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel); in updatePreference_triggerBatteryStatusUpdateFalse_updateBatteryInfo()
229 verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel); in updateBatteryStatus_nullLabel_updateSummaryOnly()
261 verify(mBatteryUsageProgressBarPref).setBottomSummary(mBatteryInfo.remainingLabel); in updateHeaderByBatteryTips_notLowBatteryTip_showRemainingLabel()
329 mBatteryInfo.remainingLabel = TIME_LEFT; in setChargingState()
DBatteryInfoTest.java154 assertThat(info.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX); in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
156 assertThat(info2.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX); in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
173 assertThat(info.remainingLabel.toString()).isEqualTo( in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
175 assertThat(info2.remainingLabel.toString()).isEqualTo( in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
206 assertThat(info.remainingLabel.toString()).isEqualTo( in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
220 assertThat(info.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX); in testGetBatteryInfo_basedOnUsageFalse_usesDefaultString()
221 assertThat(info2.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX); in testGetBatteryInfo_basedOnUsageFalse_usesDefaultString()
233 assertThat(info.remainingLabel.toString()) in testGetBatteryInfo_charging_usesChargeTime()
DBatteryInfoLoaderTest.java80 assertThat(info.remainingLabel).isNotNull(); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
DTopLevelBatteryPreferenceControllerTest.java164 info.remainingLabel = "Phone will shut down soon"; in getDashboardLabel_returnsCorrectLabel()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceController.java114 } else if (info.remainingLabel == null in generateLabel()
121 R.string.battery_state_and_duration, info.statusLabel, info.remainingLabel); in generateLabel()
127 R.string.battery_state_and_duration, powerSaverOn, info.remainingLabel); in generateLabel()
133 R.string.battery_state_and_duration, lowBattery, info.remainingLabel); in generateLabel()
136 return info.remainingLabel; in generateLabel()
DBatteryInfo.java47 public CharSequence remainingLabel; field in BatteryInfo
263 info.remainingLabel = null; in updateBatteryInfoCharging()
275 info.remainingLabel = context.getString( in updateBatteryInfoCharging()
280 info.remainingLabel = null; in updateBatteryInfoCharging()
292 info.remainingLabel = PowerUtil.getBatteryRemainingStringFormatted( in updateBatteryInfoDischarging()
307 info.remainingLabel = null; in updateBatteryInfoDischarging()
DTopLevelBatteryPreferenceController.java154 } else if (info.remainingLabel == null) { in generateLabel()
159 info.remainingLabel); in generateLabel()