Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5258,7 +5258,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int); api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5390,7 +5390,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int); api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5258,7 +5258,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int); core/java/android/app/NotificationManager.java +21 −8 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ public class NotificationManager /** * Notification policy configuration. Represents user-preferences for notification * filtering and prioritization. * filtering. */ public static class Policy implements android.os.Parcelable { /** Reminder notifications are prioritized. */ Loading Loading @@ -707,13 +707,13 @@ public class NotificationManager */ public static final int SUPPRESSED_EFFECTS_UNSET = -1; /** * Whether notification suppressed by DND should not interruption visually when the screen * is off. * Whether notifications suppressed by DND should not interrupt visually (e.g. with * notification lights or by turning the screen on) when the screen is off. */ public static final int SUPPRESSED_EFFECT_SCREEN_OFF = 1 << 0; /** * Whether notification suppressed by DND should not interruption visually when the screen * is on. * Whether notifications suppressed by DND should not interrupt visually when the screen * is on (e.g. by peeking onto the screen). */ public static final int SUPPRESSED_EFFECT_SCREEN_ON = 1 << 1; Loading @@ -728,13 +728,27 @@ public class NotificationManager */ public final int suppressedVisualEffects; @Deprecated /** * Constructs a policy for Do Not Disturb priority mode behavior. * * @param priorityCategories bitmask of categories of notifications that can bypass DND. * @param priorityCallSenders which callers can bypass DND. * @param priorityMessageSenders which message senders can bypass DND. */ public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders) { this(priorityCategories, priorityCallSenders, priorityMessageSenders, SUPPRESSED_EFFECTS_UNSET); } /** * Constructs a policy for Do Not Disturb priority mode behavior. * * @param priorityCategories bitmask of categories of notifications that can bypass DND. * @param priorityCallSenders which callers can bypass DND. * @param priorityMessageSenders which message senders can bypass DND. * @param suppressedVisualEffects which visual interruptions should be suppressed from * notifications that are filtered by DND. */ public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders, int suppressedVisualEffects) { this.priorityCategories = priorityCategories; Loading Loading @@ -865,7 +879,6 @@ public class NotificationManager return new Policy[size]; } }; } /** Loading Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5258,7 +5258,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int);
api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5390,7 +5390,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int);
api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5258,7 +5258,7 @@ package android.app { } public static class NotificationManager.Policy implements android.os.Parcelable { ctor public deprecated NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int); ctor public NotificationManager.Policy(int, int, int, int); method public int describeContents(); method public static java.lang.String priorityCategoriesToString(int);
core/java/android/app/NotificationManager.java +21 −8 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ public class NotificationManager /** * Notification policy configuration. Represents user-preferences for notification * filtering and prioritization. * filtering. */ public static class Policy implements android.os.Parcelable { /** Reminder notifications are prioritized. */ Loading Loading @@ -707,13 +707,13 @@ public class NotificationManager */ public static final int SUPPRESSED_EFFECTS_UNSET = -1; /** * Whether notification suppressed by DND should not interruption visually when the screen * is off. * Whether notifications suppressed by DND should not interrupt visually (e.g. with * notification lights or by turning the screen on) when the screen is off. */ public static final int SUPPRESSED_EFFECT_SCREEN_OFF = 1 << 0; /** * Whether notification suppressed by DND should not interruption visually when the screen * is on. * Whether notifications suppressed by DND should not interrupt visually when the screen * is on (e.g. by peeking onto the screen). */ public static final int SUPPRESSED_EFFECT_SCREEN_ON = 1 << 1; Loading @@ -728,13 +728,27 @@ public class NotificationManager */ public final int suppressedVisualEffects; @Deprecated /** * Constructs a policy for Do Not Disturb priority mode behavior. * * @param priorityCategories bitmask of categories of notifications that can bypass DND. * @param priorityCallSenders which callers can bypass DND. * @param priorityMessageSenders which message senders can bypass DND. */ public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders) { this(priorityCategories, priorityCallSenders, priorityMessageSenders, SUPPRESSED_EFFECTS_UNSET); } /** * Constructs a policy for Do Not Disturb priority mode behavior. * * @param priorityCategories bitmask of categories of notifications that can bypass DND. * @param priorityCallSenders which callers can bypass DND. * @param priorityMessageSenders which message senders can bypass DND. * @param suppressedVisualEffects which visual interruptions should be suppressed from * notifications that are filtered by DND. */ public Policy(int priorityCategories, int priorityCallSenders, int priorityMessageSenders, int suppressedVisualEffects) { this.priorityCategories = priorityCategories; Loading Loading @@ -865,7 +879,6 @@ public class NotificationManager return new Policy[size]; } }; } /** Loading