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:
Sean Stout
2019-04-05 12:43:01 -07:00
parent dd07ae579c
commit aeb8c50660

View File

@@ -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.