From b5fe4900ea2b752664993d01be66b87b4a81e3c4 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Tue, 24 Mar 2020 09:32:42 -0400 Subject: [PATCH] Added Settings intents And settings enums Test: manual Bug: 152212779 Change-Id: I6f3d145c482364c4796d69ba5d1c4bd3736094d7 --- core/java/android/provider/Settings.java | 18 ++++++++++++++++++ core/proto/android/app/settings_enums.proto | 10 ++++++++++ 2 files changed, 28 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index e2d0c49d9d137..9612d118585f5 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1869,6 +1869,24 @@ public final class Settings { @UnsupportedAppUsage public static final String EXTRA_APP_UID = "app_uid"; + /** + * Activity Action: Show power menu settings. + * + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_POWER_MENU_SETTINGS = + "android.settings.ACTION_POWER_MENU_SETTINGS"; + + /** + * Activity Action: Show controls settings. + * + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_DEVICE_CONTROLS_SETTINGS = + "android.settings.ACTION_DEVICE_CONTROLS_SETTINGS"; + /** * Activity Action: Show a dialog with disabled by policy message. *

If an user action is disabled by policy, this dialog can be triggered to let diff --git a/core/proto/android/app/settings_enums.proto b/core/proto/android/app/settings_enums.proto index 6321651c1345d..3e007e4704a4e 100644 --- a/core/proto/android/app/settings_enums.proto +++ b/core/proto/android/app/settings_enums.proto @@ -2674,4 +2674,14 @@ enum PageId { // CATEGORY: SETTINGS // OS: R FUELGAUGE_ADVANCED_BATTERY_OPTION = 1842; + + // OPEN: Settings > System > Gestures > Power menu + // CATEGORY: SETTINGS + // OS: R + POWER_MENU_SETTINGS = 1843; + + // OPEN: Settings > System > Gestures > Power menu > Device controls + // CATEGORY: SETTINGS + // OS: R + DEVICE_CONTROLS_SETTINGS = 1844; }