Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5974,6 +5974,7 @@ package android.app { method public long[] getVibrationPattern(); method public boolean hasUserSetImportance(); method public boolean hasUserSetSound(); method public boolean isConversation(); method public boolean isDemoted(); method public boolean isImportantConversation(); method public void setAllowBubbles(boolean); cmds/statsd/src/atoms.proto +8 −1 Original line number Diff line number Diff line Loading @@ -4280,9 +4280,16 @@ message NotificationChannelModified { optional android.stats.sysui.NotificationImportance old_importance = 5; // New importance setting optional android.stats.sysui.NotificationImportance importance = 6; // whether or not this channel represents a conversation optional bool is_conversation = 7; // Hash of app-assigned notification conversation id optional int32 conversation_id_hash = 8; // whether or not the user demoted this channel out of the conversation space optional bool is_conversation_demoted = 9; // whether this conversation is marked as being a priority optional bool is_conversation_priority = 10; } /** * Logs when a biometric acquire event occurs. * Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5974,6 +5974,7 @@ package android.app { method public long[] getVibrationPattern(); method public boolean hasUserSetImportance(); method public boolean hasUserSetSound(); method public boolean isConversation(); method public boolean isDemoted(); method public boolean isImportantConversation(); method public void setAllowBubbles(boolean); core/java/android/app/NotificationChannel.java +10 −2 Original line number Diff line number Diff line Loading @@ -628,13 +628,21 @@ public final class NotificationChannel implements Parcelable { return mBypassDnd; } /** * Whether or not this channel represents a conversation. */ public boolean isConversation() { return !TextUtils.isEmpty(getConversationId()); } /** * Whether or not notifications in this conversation are considered important. * * <p>Important conversations may get special visual treatment, and might be able to bypass DND. * * <p>This is only valid for channels that represent conversations, that is, those with a valid * {@link #getConversationId() conversation id}. * <p>This is only valid for channels that represent conversations, that is, * where {@link #isConversation()} is true. */ public boolean isImportantConversation() { return mImportantConvo; Loading services/core/java/com/android/server/notification/NotificationChannelLogger.java +7 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,13 @@ public interface NotificationChannelLogger { return SmallHash.hash(channel.getId()); } /** * @return Small hash of the conversation ID, if present, or 0 otherwise. */ static int getConversationIdHash(@NonNull NotificationChannel channel) { return SmallHash.hash(channel.getConversationId()); } /** * @return Small hash of the channel ID, if present, or 0 otherwise. */ Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5974,6 +5974,7 @@ package android.app { method public long[] getVibrationPattern(); method public boolean hasUserSetImportance(); method public boolean hasUserSetSound(); method public boolean isConversation(); method public boolean isDemoted(); method public boolean isImportantConversation(); method public void setAllowBubbles(boolean);
cmds/statsd/src/atoms.proto +8 −1 Original line number Diff line number Diff line Loading @@ -4280,9 +4280,16 @@ message NotificationChannelModified { optional android.stats.sysui.NotificationImportance old_importance = 5; // New importance setting optional android.stats.sysui.NotificationImportance importance = 6; // whether or not this channel represents a conversation optional bool is_conversation = 7; // Hash of app-assigned notification conversation id optional int32 conversation_id_hash = 8; // whether or not the user demoted this channel out of the conversation space optional bool is_conversation_demoted = 9; // whether this conversation is marked as being a priority optional bool is_conversation_priority = 10; } /** * Logs when a biometric acquire event occurs. * Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -5974,6 +5974,7 @@ package android.app { method public long[] getVibrationPattern(); method public boolean hasUserSetImportance(); method public boolean hasUserSetSound(); method public boolean isConversation(); method public boolean isDemoted(); method public boolean isImportantConversation(); method public void setAllowBubbles(boolean);
core/java/android/app/NotificationChannel.java +10 −2 Original line number Diff line number Diff line Loading @@ -628,13 +628,21 @@ public final class NotificationChannel implements Parcelable { return mBypassDnd; } /** * Whether or not this channel represents a conversation. */ public boolean isConversation() { return !TextUtils.isEmpty(getConversationId()); } /** * Whether or not notifications in this conversation are considered important. * * <p>Important conversations may get special visual treatment, and might be able to bypass DND. * * <p>This is only valid for channels that represent conversations, that is, those with a valid * {@link #getConversationId() conversation id}. * <p>This is only valid for channels that represent conversations, that is, * where {@link #isConversation()} is true. */ public boolean isImportantConversation() { return mImportantConvo; Loading
services/core/java/com/android/server/notification/NotificationChannelLogger.java +7 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,13 @@ public interface NotificationChannelLogger { return SmallHash.hash(channel.getId()); } /** * @return Small hash of the conversation ID, if present, or 0 otherwise. */ static int getConversationIdHash(@NonNull NotificationChannel channel) { return SmallHash.hash(channel.getConversationId()); } /** * @return Small hash of the channel ID, if present, or 0 otherwise. */ Loading