Update strings for charging optimization mode.

Update the battery settings summary and the charging string on the Battery settings page if charging optimization mode is applied.

Bug: 329020954
Test: atest SettingsRoboTests
Change-Id: Ie906a010d70bcef7fafe235f0287b289ea934705
This commit is contained in:
Yiling Chuang
2024-05-06 03:57:22 +00:00
parent 45cf636b1a
commit 7b77729db6
6 changed files with 182 additions and 19 deletions

View File

@@ -67,4 +67,26 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
@NonNull Context context, long remainingTimeMs, long currentTimeMs) {
return null;
}
@Override
public boolean isChargingOptimizationMode(@NonNull Context context) {
return false;
}
@Nullable
@Override
public CharSequence getChargingOptimizationRemainingLabel(
@NonNull Context context, long chargeRemainingTimeMs, long currentTimeMs) {
return null;
}
@Nullable
@Override
public CharSequence getChargingOptimizationChargeLabel(
@NonNull Context context,
@NonNull String batteryPercentageString,
long chargeRemainingTimeMs,
long currentTimeMs) {
return null;
}
}