Provide different ways to detect battery defender.
Bug: 335567248 Test: robotests Change-Id: Ie1d3d7da99fa698468ffd124410cfd3b56bc0c34
This commit is contained in:
@@ -151,4 +151,7 @@ public interface PowerUsageFeatureProvider {
|
||||
|
||||
/** Whether the app optimization mode is valid to restore */
|
||||
boolean isValidToRestoreOptimizationMode(ArrayMap<String, String> deviceInfoMap);
|
||||
|
||||
/** Whether the device is under the battery defender mode */
|
||||
boolean isBatteryDefend(BatteryInfo info);
|
||||
}
|
||||
|
Reference in New Issue
Block a user