From ac62b4b3605062bb46873b0f69dd940d09884fad Mon Sep 17 00:00:00 2001 From: Daniel Nishi Date: Thu, 5 May 2016 13:56:32 -0700 Subject: [PATCH] Add an Activity action to go into the Deletion Helper. Applications may want to jump to the Deletion Helper to free up storage when the device is under storage pressure. Bug: 28675265 Change-Id: I709c39f3e699ab5f51f4ad1272468583276ff050 --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + core/java/android/provider/Settings.java | 11 +++++++++++ 4 files changed, 14 insertions(+) diff --git a/api/current.txt b/api/current.txt index 8fc009a43d737..9787f51bf16b9 100644 --- a/api/current.txt +++ b/api/current.txt @@ -32346,6 +32346,7 @@ package android.provider { field public static final java.lang.String ACTION_CAST_SETTINGS = "android.settings.CAST_SETTINGS"; field public static final java.lang.String ACTION_DATA_ROAMING_SETTINGS = "android.settings.DATA_ROAMING_SETTINGS"; field public static final java.lang.String ACTION_DATE_SETTINGS = "android.settings.DATE_SETTINGS"; + field public static final java.lang.String ACTION_DELETION_HELPER_SETTINGS = "android.settings.DELETION_HELPER_SETTINGS"; field public static final java.lang.String ACTION_DEVICE_INFO_SETTINGS = "android.settings.DEVICE_INFO_SETTINGS"; field public static final java.lang.String ACTION_DISPLAY_SETTINGS = "android.settings.DISPLAY_SETTINGS"; field public static final java.lang.String ACTION_DREAM_SETTINGS = "android.settings.DREAM_SETTINGS"; diff --git a/api/system-current.txt b/api/system-current.txt index 978c29b84bbca..dc1f3ee9d0555 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -35045,6 +35045,7 @@ package android.provider { field public static final java.lang.String ACTION_CAST_SETTINGS = "android.settings.CAST_SETTINGS"; field public static final java.lang.String ACTION_DATA_ROAMING_SETTINGS = "android.settings.DATA_ROAMING_SETTINGS"; field public static final java.lang.String ACTION_DATE_SETTINGS = "android.settings.DATE_SETTINGS"; + field public static final java.lang.String ACTION_DELETION_HELPER_SETTINGS = "android.settings.DELETION_HELPER_SETTINGS"; field public static final java.lang.String ACTION_DEVICE_INFO_SETTINGS = "android.settings.DEVICE_INFO_SETTINGS"; field public static final java.lang.String ACTION_DISPLAY_SETTINGS = "android.settings.DISPLAY_SETTINGS"; field public static final java.lang.String ACTION_DREAM_SETTINGS = "android.settings.DREAM_SETTINGS"; diff --git a/api/test-current.txt b/api/test-current.txt index 5c3ae0bb76472..ac2fedb8aa105 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -32419,6 +32419,7 @@ package android.provider { field public static final java.lang.String ACTION_CAST_SETTINGS = "android.settings.CAST_SETTINGS"; field public static final java.lang.String ACTION_DATA_ROAMING_SETTINGS = "android.settings.DATA_ROAMING_SETTINGS"; field public static final java.lang.String ACTION_DATE_SETTINGS = "android.settings.DATE_SETTINGS"; + field public static final java.lang.String ACTION_DELETION_HELPER_SETTINGS = "android.settings.DELETION_HELPER_SETTINGS"; field public static final java.lang.String ACTION_DEVICE_INFO_SETTINGS = "android.settings.DEVICE_INFO_SETTINGS"; field public static final java.lang.String ACTION_DISPLAY_SETTINGS = "android.settings.DISPLAY_SETTINGS"; field public static final java.lang.String ACTION_DREAM_SETTINGS = "android.settings.DREAM_SETTINGS"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 6da6c4fbfbbf3..f04b2d47e747d 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1277,6 +1277,17 @@ public final class Settings { @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_WEBVIEW_SETTINGS = "android.settings.WEBVIEW_SETTINGS"; + /** + * Activity Action: Show the Deletion Helper settings. + *

+ * Input: Nothing. + *

+ * Output: Nothing. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_DELETION_HELPER_SETTINGS + = "android.settings.DELETION_HELPER_SETTINGS"; + // End of Intent actions for Settings /**