summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vadim Tryshev <vadimt@google.com> 2018-10-23 12:24:29 -0700
committer Vadim Tryshev <vadimt@google.com> 2018-10-29 12:36:03 -0700
commitbcd13ccac1af47af2a3ef385bca5a63b718179bf (patch)
tree8d20dc22b97ccba9bcce22004512dd9f748d6ab8
parent5065892001888b76351cd02e9638ea33057b198b (diff)
Exposing intent action for DWB properties as an API
The API is hidden. The intent opens digital wellbeing properties for an app. Bug: 118319143 Test: Building Android Change-Id: I0579f8bd024fd8eaae46d1b387e993992dabc455
-rwxr-xr-xapi/current.txt1
-rw-r--r--core/java/android/provider/Settings.java9
2 files changed, 10 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 21bab7cf5d1e..355bdce1cbd1 100755
--- a/api/current.txt
+++ b/api/current.txt
@@ -37130,6 +37130,7 @@ package android.provider {
field public static final java.lang.String ACTION_APPLICATION_SETTINGS = "android.settings.APPLICATION_SETTINGS";
field public static final java.lang.String ACTION_APP_NOTIFICATION_SETTINGS = "android.settings.APP_NOTIFICATION_SETTINGS";
field public static final java.lang.String ACTION_APP_SEARCH_SETTINGS = "android.settings.APP_SEARCH_SETTINGS";
+ field public static final java.lang.String ACTION_APP_USAGE_SETTINGS = "android.settings.action.APP_USAGE_SETTINGS";
field public static final java.lang.String ACTION_BATTERY_SAVER_SETTINGS = "android.settings.BATTERY_SAVER_SETTINGS";
field public static final java.lang.String ACTION_BLUETOOTH_SETTINGS = "android.settings.BLUETOOTH_SETTINGS";
field public static final java.lang.String ACTION_CAPTIONING_SETTINGS = "android.settings.CAPTIONING_SETTINGS";
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index ad640219a6a5..b74fe4d11ab9 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -819,6 +819,15 @@ public final class Settings {
"android.settings.action.MANAGE_WRITE_SETTINGS";
/**
+ * Activity Action: Show screen for controlling app usage properties for an app.
+ * Input: Intent's extra EXTRA_PACKAGE_NAME must specify the application package name.
+ * Output: Nothing.
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_APP_USAGE_SETTINGS =
+ "android.settings.action.APP_USAGE_SETTINGS";
+
+ /**
* Activity Action: Show screen of details about a particular application.
* <p>
* In some cases, a matching Activity may not exist, so ensure you