Loading res/values/strings.xml +2 −2 Original line number Diff line number Diff line Loading @@ -6278,9 +6278,9 @@ <!-- Summary for the battery high usage tip, which presents apps with highest usage [CHAR LIMIT=NONE] --> <string name="battery_tip_high_usage_summary">See apps with highest usage</string> <!-- Title for the battery limited temporarily tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_title">Charging temporarily limited</string> <string name="battery_tip_limited_temporarily_title">Charging is paused</string> <!-- Summary for the battery limited temporarily tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_summary">To preserve your battery. Learn more.</string> <string name="battery_tip_limited_temporarily_summary">Protecting battery to extend battery lifespan\nTap to learn more</string> <!-- Summary for the battery limited temporarily extra tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_extra_summary"><xliff:g id="percent" example="10%">%1$s</xliff:g></string> <!-- Text of battery limited temporarily tip resume charge button. [CHAR LIMIT=NONE] --> tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,8 @@ public class BatteryInfoTest { @Test public void testGetBatteryInfo_chargingWithOverheated_updateChargeLabel() { final String expectedString = mContext.getString(R.string.battery_tip_limited_temporarily_title); doReturn(TEST_CHARGE_TIME_REMAINING) .when(mBatteryUsageStats) .getChargeTimeRemainingMs(); Loading @@ -260,7 +262,7 @@ public class BatteryInfoTest { false /* shortString */); assertThat(info.isOverheated).isTrue(); assertThat(info.chargeLabel).isEqualTo("50% - Charging temporarily limited"); assertThat(info.chargeLabel.toString()).contains(expectedString); } // Make our battery stats return a sequence of battery events. Loading Loading
res/values/strings.xml +2 −2 Original line number Diff line number Diff line Loading @@ -6278,9 +6278,9 @@ <!-- Summary for the battery high usage tip, which presents apps with highest usage [CHAR LIMIT=NONE] --> <string name="battery_tip_high_usage_summary">See apps with highest usage</string> <!-- Title for the battery limited temporarily tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_title">Charging temporarily limited</string> <string name="battery_tip_limited_temporarily_title">Charging is paused</string> <!-- Summary for the battery limited temporarily tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_summary">To preserve your battery. Learn more.</string> <string name="battery_tip_limited_temporarily_summary">Protecting battery to extend battery lifespan\nTap to learn more</string> <!-- Summary for the battery limited temporarily extra tip [CHAR LIMIT=NONE] --> <string name="battery_tip_limited_temporarily_extra_summary"><xliff:g id="percent" example="10%">%1$s</xliff:g></string> <!-- Text of battery limited temporarily tip resume charge button. [CHAR LIMIT=NONE] -->
tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,8 @@ public class BatteryInfoTest { @Test public void testGetBatteryInfo_chargingWithOverheated_updateChargeLabel() { final String expectedString = mContext.getString(R.string.battery_tip_limited_temporarily_title); doReturn(TEST_CHARGE_TIME_REMAINING) .when(mBatteryUsageStats) .getChargeTimeRemainingMs(); Loading @@ -260,7 +262,7 @@ public class BatteryInfoTest { false /* shortString */); assertThat(info.isOverheated).isTrue(); assertThat(info.chargeLabel).isEqualTo("50% - Charging temporarily limited"); assertThat(info.chargeLabel.toString()).contains(expectedString); } // Make our battery stats return a sequence of battery events. Loading