summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Julia Reynolds <juliacr@google.com> 2022-10-18 19:32:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-10-18 19:32:23 +0000
commit38b3e5585802378cebd48b60ece70ba6edd79586 (patch)
tree268b08d7b9a8c7205523a22977c6dca8f477b6b5
parentf3ee72ce56a5a517ecdfd1cce625c1efd1d9d5f0 (diff)
parent62b0335e61db7d89b5c23f626898f214c9a12e4c (diff)
Merge "Add NLS Settings link"
-rw-r--r--core/api/current.txt1
-rw-r--r--core/java/android/service/notification/NotificationListenerService.java9
2 files changed, 10 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 9c6dac27f0c9..74ff6726cad2 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -39324,6 +39324,7 @@ package android.service.notification {
field public static final int HINT_HOST_DISABLE_CALL_EFFECTS = 4; // 0x4
field public static final int HINT_HOST_DISABLE_EFFECTS = 1; // 0x1
field public static final int HINT_HOST_DISABLE_NOTIFICATION_EFFECTS = 2; // 0x2
+ field public static final String INTENT_CATEGORY_SETTINGS_HOME = "android.service.notification.category.SETTINGS_HOME";
field public static final int INTERRUPTION_FILTER_ALARMS = 4; // 0x4
field public static final int INTERRUPTION_FILTER_ALL = 1; // 0x1
field public static final int INTERRUPTION_FILTER_NONE = 3; // 0x3
diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java
index fb52ed2b20fa..bd4a4957775e 100644
--- a/core/java/android/service/notification/NotificationListenerService.java
+++ b/core/java/android/service/notification/NotificationListenerService.java
@@ -391,6 +391,15 @@ public abstract class NotificationListenerService extends Service {
*/
public static final int NOTIFICATION_CHANNEL_OR_GROUP_DELETED = 3;
+ /**
+ * An optional activity intent category that shows additional settings for what notifications
+ * should be processed by this notification listener service. If defined, the OS may link to
+ * this activity from the system notification listener service filter settings page.
+ */
+ @SdkConstant(SdkConstant.SdkConstantType.INTENT_CATEGORY)
+ public static final String INTENT_CATEGORY_SETTINGS_HOME =
+ "android.service.notification.category.SETTINGS_HOME";
+
private final Object mLock = new Object();
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)