[Battery usage U] Create a flag to guard battery usage features

Bug: 261800937
Fix: 261800937
Test: manual
Change-Id: I891c235228c9ca0709471b496e6f75167fd0a126
This commit is contained in:
Zaiyue Xue
2022-12-08 14:18:07 +08:00
parent 160dacf9ad
commit fa90a4b311
4 changed files with 17 additions and 0 deletions

View File

@@ -29,6 +29,11 @@ import java.util.Set;
*/
public interface PowerUsageFeatureProvider {
/**
* Check whether the battery usage button is enabled in the battery page
*/
boolean isBatteryUsageEnabled(Context context);
/**
* Check whether location setting is enabled
*/