From c870d6abe90f53646eaca9701fa84f877d7e508b Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 2 Jul 2019 12:22:38 -0400 Subject: [PATCH] Make a setting intent public Specifically, to the DND automatic rule listing page Test: cts in same topic Bug: 132272452 Change-Id: I45abdad411a1beccfafba0929d9367d09e1b30dc --- api/current.txt | 1 + core/java/android/provider/Settings.java | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 2cfdd872768f1..25801cac203e4 100644 --- a/api/current.txt +++ b/api/current.txt @@ -38638,6 +38638,7 @@ package android.provider { field public static final String ACTION_CAPTIONING_SETTINGS = "android.settings.CAPTIONING_SETTINGS"; field public static final String ACTION_CAST_SETTINGS = "android.settings.CAST_SETTINGS"; field public static final String ACTION_CHANNEL_NOTIFICATION_SETTINGS = "android.settings.CHANNEL_NOTIFICATION_SETTINGS"; + field public static final String ACTION_CONDITION_PROVIDER_SETTINGS = "android.settings.ACTION_CONDITION_PROVIDER_SETTINGS"; field public static final String ACTION_DATA_ROAMING_SETTINGS = "android.settings.DATA_ROAMING_SETTINGS"; field public static final String ACTION_DATA_USAGE_SETTINGS = "android.settings.DATA_USAGE_SETTINGS"; field public static final String ACTION_DATE_SETTINGS = "android.settings.DATE_SETTINGS"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 9e1bb941004a0..c8893eb81f380 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -42,6 +42,7 @@ import android.annotation.UserIdInt; import android.app.ActivityThread; import android.app.AppOpsManager; import android.app.Application; +import android.app.AutomaticZenRule; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.SearchManager; @@ -1313,7 +1314,17 @@ public final class Settings { "android.settings.NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS"; /** - * @hide + * Activity Action: Show the automatic do not disturb rule listing page + *

+ * Users can add, enable, disable, and remove automatic do not disturb rules from this + * screen. See {@link NotificationManager#addAutomaticZenRule(AutomaticZenRule)} for more + * details. + *

+ *

+ * Input: Nothing + * Output: Nothing + *

+ * */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_CONDITION_PROVIDER_SETTINGS