Add one more param to isChargingOptimizationMode() for flexibility
Adds a new param about the charging policy to see if it's currently under CHARGING_POLICY_ADAPTIVE_LONGLIFE for more flexibility to check whether the charging optimization mode is enabled. Bug: 391270019 Flag: EXEMPT bugfix Test: atest SettingsRoboTests Change-Id: Ie773d9a2a13d1a37ac9fd5940f10a100eccf77ca
This commit is contained in:
@@ -60,7 +60,7 @@ public interface BatterySettingsFeatureProvider {
|
||||
@NonNull Context context, long remainingTimeMs, long currentTimeMs);
|
||||
|
||||
/** Return true if it's in the charging optimization mode. */
|
||||
boolean isChargingOptimizationMode(@NonNull Context context);
|
||||
boolean isChargingOptimizationMode(@NonNull Context context, boolean isLongLife);
|
||||
|
||||
/** Return a charging remaining time label for charging optimization mode. */
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user