diff options
author | 2022-09-29 14:52:05 -0400 | |
---|---|---|
committer | 2022-10-17 13:58:48 -0400 | |
commit | 62b0335e61db7d89b5c23f626898f214c9a12e4c (patch) | |
tree | cc1a5ab002883ea747e5d1bb96fa7c9b4d59cde7 | |
parent | 3510d130bb35538f0525f77eb5c91468514159fd (diff) |
Add NLS Settings link
Bug: 236932102
Test: general cts test for validating constants
Change-Id: I027a664d29a56c63aa57f96597f5462063fd3e94
-rw-r--r-- | core/api/current.txt | 1 | ||||
-rw-r--r-- | core/java/android/service/notification/NotificationListenerService.java | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 815ccfe0b1c6..3fd4e7bca72a 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -39258,6 +39258,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) |