Add support for early warning query
This CL adds the necessary code to enable the early warning query from the provider. Test: robotests in topic Bug: 71593245 Bug: 71812931 Change-Id: I32e10d1b9f752af672b5d1c6ccb8ba9f2f9cc387
This commit is contained in:
@@ -109,4 +109,13 @@ public interface PowerUsageFeatureProvider {
|
||||
* Checks whether to display the battery v2.
|
||||
*/
|
||||
boolean isBatteryV2Enabled();
|
||||
|
||||
/**
|
||||
* Returns a signal to indicate if the device will need to warn the user they may not make it
|
||||
* to their next charging time.
|
||||
*
|
||||
* @param id Optional string used to identify the caller for metrics. Usually the class name of
|
||||
* the caller
|
||||
*/
|
||||
boolean getEarlyWarningSignal(Context context, String id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user