Add NLS Settings link
Bug: 236932102
Test: general cts test for validating constants
Change-Id: I027a664d29a56c63aa57f96597f5462063fd3e94
diff --git a/core/api/current.txt b/core/api/current.txt
index 815ccfe..3fd4e7b 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -39258,6 +39258,7 @@
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 fb52ed2..bd4a495 100644
--- a/core/java/android/service/notification/NotificationListenerService.java
+++ b/core/java/android/service/notification/NotificationListenerService.java
@@ -391,6 +391,15 @@
*/
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)