Add android.settings.VIEW_ADVANCED_POWER_USAGE_DETAIL
This intent action opens the advanced power usage details screen for a provided application. Test: adb shell am start -a \ "android.settings.VIEW_ADVANCED_POWER_USAGE_DETAIL" -d \ "package:com.google.android.deskclock" --ez \ "request_ignore_background_restriction" 1 Bug: 129901520 Change-Id: Ib5ee1376610acdec119c75944b3774d83a784288
This commit is contained in:
@@ -954,6 +954,20 @@ public final class Settings {
|
||||
public static final String ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS =
|
||||
"android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS";
|
||||
|
||||
/**
|
||||
* Activity Action: Open the advanced power usage details page of an associated app.
|
||||
* <p>
|
||||
* Input: Intent's data URI set with an application name, using the
|
||||
* "package" schema (like "package:com.my.app")
|
||||
* <p>
|
||||
* Output: Nothing.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_VIEW_ADVANCED_POWER_USAGE_DETAIL =
|
||||
"android.settings.VIEW_ADVANCED_POWER_USAGE_DETAIL";
|
||||
|
||||
/**
|
||||
* Activity Action: Show screen for controlling background data
|
||||
* restrictions for a particular application.
|
||||
|
||||
Reference in New Issue
Block a user