Update the flow of charging optimization strings.

Bug: 329020954
Test: atest SettingsRoboTests
Change-Id: I73738602036d79568fe4739a63534af1c64bd9d1
This commit is contained in:
Yiling Chuang
2024-05-09 10:52:30 +00:00
parent c5571e5530
commit 8bcaab7cc8
8 changed files with 122 additions and 41 deletions

View File

@@ -76,7 +76,11 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
@Nullable
@Override
public CharSequence getChargingOptimizationRemainingLabel(
@NonNull Context context, long chargeRemainingTimeMs, long currentTimeMs) {
@NonNull Context context,
int batteryLevel,
int pluggedStatus,
long chargeRemainingTimeMs,
long currentTimeMs) {
return null;
}
@@ -84,7 +88,8 @@ public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatur
@Override
public CharSequence getChargingOptimizationChargeLabel(
@NonNull Context context,
@NonNull String batteryPercentageString,
int batteryLevel,
String batteryPercentageString,
long chargeRemainingTimeMs,
long currentTimeMs) {
return null;