Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5872,6 +5872,7 @@ package android.app { method public android.service.notification.StatusBarNotification[] getActiveNotifications(); method public android.app.AutomaticZenRule getAutomaticZenRule(String); method public java.util.Map<java.lang.String,android.app.AutomaticZenRule> getAutomaticZenRules(); method @Nullable public android.app.NotificationManager.Policy getConsolidatedNotificationPolicy(); method public final int getCurrentInterruptionFilter(); method public int getImportance(); method public android.app.NotificationChannel getNotificationChannel(String); core/java/android/app/NotificationManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -997,8 +997,13 @@ public class NotificationManager { } /** * @hide * <p> * Gets the currently applied notification policy. If {@link #getCurrentInterruptionFilter} * is equal to {@link #INTERRUPTION_FILTER_ALL}, then the consolidated notification policy * will match the default notification policy returned by {@link #getNotificationPolicy}. * </p> */ @Nullable public NotificationManager.Policy getConsolidatedNotificationPolicy() { INotificationManager service = getService(); try { Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5872,6 +5872,7 @@ package android.app { method public android.service.notification.StatusBarNotification[] getActiveNotifications(); method public android.app.AutomaticZenRule getAutomaticZenRule(String); method public java.util.Map<java.lang.String,android.app.AutomaticZenRule> getAutomaticZenRules(); method @Nullable public android.app.NotificationManager.Policy getConsolidatedNotificationPolicy(); method public final int getCurrentInterruptionFilter(); method public int getImportance(); method public android.app.NotificationChannel getNotificationChannel(String);
core/java/android/app/NotificationManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -997,8 +997,13 @@ public class NotificationManager { } /** * @hide * <p> * Gets the currently applied notification policy. If {@link #getCurrentInterruptionFilter} * is equal to {@link #INTERRUPTION_FILTER_ALL}, then the consolidated notification policy * will match the default notification policy returned by {@link #getNotificationPolicy}. * </p> */ @Nullable public NotificationManager.Policy getConsolidatedNotificationPolicy() { INotificationManager service = getService(); try { Loading