Add auto restriction preference
1. Add method in feature provider to check whether smart battery
is supported
2. Hook up above method to controllers
3. Add auto restriction preference
4. Add tests
Bug: 73002171
Test: RunSettingsRoboTests
Change-Id: Ic314f61ad52e9bedb629b308731cb968bb4b1773
Merged-In: Ic314f61ad52e9bedb629b308731cb968bb4b1773
(cherry picked from commit ab0b0add0a
)
This commit is contained in:
@@ -118,4 +118,9 @@ public interface PowerUsageFeatureProvider {
|
||||
* the caller
|
||||
*/
|
||||
boolean getEarlyWarningSignal(Context context, String id);
|
||||
|
||||
/**
|
||||
* Checks whether smart battery feature is supported in this device
|
||||
*/
|
||||
boolean isSmartBatterySupported();
|
||||
}
|
||||
|
Reference in New Issue
Block a user