/frameworks/base/core/tests/coretests/src/com/android/internal/notification/ |
D | NotificationChannelGroupsHelperTest.java | 28 import android.app.NotificationChannelGroup; 47 private Map<String, NotificationChannelGroup> mGroups; 71 mGroups = Map.of("a", new NotificationChannelGroup("a", "a"), in setUp() 72 "b", new NotificationChannelGroup("b", "b"), in setUp() 73 "c", new NotificationChannelGroup("c", "c"), in setUp() 74 "d", new NotificationChannelGroup("d", "d")); in setUp() 79 NotificationChannelGroup res = getGroupWithChannels("a", mChannels, mGroups, false); in testGetGroup_noDeleted() 89 NotificationChannelGroup res = getGroupWithChannels("c", mChannels, mGroups, true); in testGetGroup_includeDeleted() 98 NotificationChannelGroup res = getGroupWithChannels("d", mChannels, mGroups, true); in testGetGroup_empty() 105 NotificationChannelGroup res = getGroupWithChannels("c", mChannels, mGroups, false); in testGetGroup_emptyBecauseNoChannelMatch() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationChannelGroupTest.java | 44 NotificationChannelGroup group = new NotificationChannelGroup("my_group_01", "groupName"); in testLongStringFields() 69 NotificationChannelGroup fromParcel = in testLongStringFields() 70 NotificationChannelGroup.CREATOR.createFromParcel(parcel); in testLongStringFields() 71 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields() 72 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields() 73 assertEquals(NotificationChannelGroup.MAX_TEXT_LENGTH, in testLongStringFields() 79 NotificationChannelGroup group = new NotificationChannelGroup("my_group_01", null); in testNullableFields() 85 NotificationChannelGroup fromParcel = in testNullableFields() 86 NotificationChannelGroup.CREATOR.createFromParcel(parcel); in testNullableFields()
|
D | NotificationManagerTest.java | 485 NotificationChannelGroup g1 = new NotificationChannelGroup("g1", "group one"); in getNotificationChannelGroup_cachedUntilInvalidated() 505 NotificationChannelGroup unused = mNotificationManager.getNotificationChannelGroup( in getNotificationChannelGroup_cachedUntilInvalidated() 511 NotificationChannelGroup receivedG1 = mNotificationManager.getNotificationChannelGroup( in getNotificationChannelGroup_cachedUntilInvalidated() 527 NotificationChannelGroup g1 = new NotificationChannelGroup("g1", "group one"); in getNotificationChannelGroups_cachedUntilInvalidated() 528 NotificationChannelGroup g2 = new NotificationChannelGroup("g2", "group two"); in getNotificationChannelGroups_cachedUntilInvalidated() 542 List<NotificationChannelGroup> unused = in getNotificationChannelGroups_cachedUntilInvalidated() 548 List<NotificationChannelGroup> result = mNotificationManager.getNotificationChannelGroups(); in getNotificationChannelGroups_cachedUntilInvalidated() 553 NotificationChannelGroup expectedG1 = g1.clone(); in getNotificationChannelGroups_cachedUntilInvalidated() 555 NotificationChannelGroup expectedG2 = g2.clone(); in getNotificationChannelGroups_cachedUntilInvalidated() 565 NotificationChannelGroup g1 = new NotificationChannelGroup("g1", "group one"); in getNotificationChannelGroup_localModificationDoesNotChangeCache() [all …]
|
/frameworks/base/core/java/com/android/internal/notification/ |
D | NotificationChannelGroupsHelper.java | 26 import android.app.NotificationChannelGroup; 118 public static @Nullable NotificationChannelGroup getGroupWithChannels(@NonNull String groupId, in getGroupWithChannels() 120 @NonNull Map<String, NotificationChannelGroup> allGroups, in getGroupWithChannels() 122 NotificationChannelGroup group = null; in getGroupWithChannels() 144 public static @NonNull List<NotificationChannelGroup> getGroupsWithChannels( in getGroupsWithChannels() 146 @NonNull Map<String, NotificationChannelGroup> allGroups, in getGroupsWithChannels() 148 Map<String, NotificationChannelGroup> outputGroups = new ArrayMap<>(); in getGroupsWithChannels() 149 NotificationChannelGroup nonGrouped = new NotificationChannelGroup(null, null); in getGroupsWithChannels() 161 NotificationChannelGroup ncg = outputGroups.get(nc.getGroup()); in getGroupsWithChannels() 178 for (NotificationChannelGroup group : allGroups.values()) { in getGroupsWithChannels()
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannelGroup.java | 43 public final class NotificationChannelGroup implements Parcelable { class 86 public NotificationChannelGroup(String id, CharSequence name) { in NotificationChannelGroup() method in NotificationChannelGroup 94 protected NotificationChannelGroup(Parcel in) { in NotificationChannelGroup() method in NotificationChannelGroup 111 mChannels = in.readParcelable(NotificationChannelGroup.class.getClassLoader(), in NotificationChannelGroup() 295 public static final @android.annotation.NonNull Creator<NotificationChannelGroup> CREATOR = 296 new Creator<NotificationChannelGroup>() { 298 public NotificationChannelGroup createFromParcel(Parcel in) { 299 return new NotificationChannelGroup(in); 303 public NotificationChannelGroup[] newArray(int size) { 304 return new NotificationChannelGroup[size]; [all …]
|
D | NotificationChannelGroup.aidl | 19 parcelable NotificationChannelGroup;
|
D | INotificationManager.aidl | 24 import android.app.NotificationChannelGroup; 104 …NotificationChannelGroup getNotificationChannelGroupForPackage(String groupId, String pkg, int uid… in getNotificationChannelGroupForPackage() 105 …NotificationChannelGroup getPopulatedNotificationChannelGroupForPackage(String pkg, int uid, Strin… in getPopulatedNotificationChannelGroupForPackage() 107 …void updateNotificationChannelGroupForPackage(String pkg, int uid, in NotificationChannelGroup gro… in updateNotificationChannelGroupForPackage() 122 NotificationChannelGroup getNotificationChannelGroup(String pkg, String channelGroupId); in getNotificationChannelGroup() 181 …in INotificationListener token, String pkg, in UserHandle user, in NotificationChannelGroup group); in updateNotificationChannelGroupFromPrivilegedListener()
|
D | NotificationManager.java | 1189 public void createNotificationChannelGroup(@NonNull NotificationChannelGroup group) { in createNotificationChannelGroup() 1198 public void createNotificationChannelGroups(@NonNull List<NotificationChannelGroup> groups) { in createNotificationChannelGroups() 1406 public NotificationChannelGroup getNotificationChannelGroup(String channelGroupId) { in getNotificationChannelGroup() 1412 Map<String, NotificationChannelGroup> groupHeaders = in getNotificationChannelGroup() 1414 NotificationChannelGroup ncg = NotificationChannelGroupsHelper.getGroupWithChannels( in getNotificationChannelGroup() 1431 public List<NotificationChannelGroup> getNotificationChannelGroups() { in getNotificationChannelGroups() 1436 Map<String, NotificationChannelGroup> groupHeaders = in getNotificationChannelGroups() 1438 List<NotificationChannelGroup> populatedGroupList = in getNotificationChannelGroups() 1441 List<NotificationChannelGroup> out = new ArrayList<>(); in getNotificationChannelGroups() 1442 for (NotificationChannelGroup g : populatedGroupList) { in getNotificationChannelGroups() [all …]
|
/frameworks/base/core/java/android/app/people/ |
D | ConversationChannel.java | 21 import android.app.NotificationChannelGroup; 40 private NotificationChannelGroup mNotificationChannelGroup; 60 NotificationChannelGroup parentNotificationChannelGroup, long lastEventTimestamp, in ConversationChannel() 72 NotificationChannelGroup parentNotificationChannelGroup, long lastEventTimestamp, in ConversationChannel() 90 …in.readParcelable(NotificationChannelGroup.class.getClassLoader(), android.app.NotificationChannel… in ConversationChannel() 127 public NotificationChannelGroup getNotificationChannelGroup() { in getNotificationChannelGroup()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationChannelLogger.java | 23 import android.app.NotificationChannelGroup; 86 default void logNotificationChannelGroup(@NonNull NotificationChannelGroup channelGroup, in logNotificationChannelGroup() 98 default void logNotificationChannelGroupDeleted(@NonNull NotificationChannelGroup channelGroup, in logNotificationChannelGroupDeleted() 136 @NonNull NotificationChannelGroup channelGroup, int uid, String pkg, in logNotificationChannelGroup() 227 static int getIdHash(@NonNull NotificationChannelGroup group) { in getIdHash() 255 static int getImportance(@NonNull NotificationChannelGroup channelGroup) { in getImportance()
|
D | RankingConfig.java | 19 import android.app.NotificationChannelGroup; 39 Collection<NotificationChannelGroup> getNotificationChannelGroupsWithoutChannels(String pkg, in getNotificationChannelGroupsWithoutChannels() 41 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup()
|
D | NotificationChannelLoggerImpl.java | 20 import android.app.NotificationChannelGroup; 54 NotificationChannelGroup channelGroup, int uid, String pkg, boolean wasBlocked) { in logNotificationChannelGroup()
|
D | NotificationManagerInternal.java | 21 import android.app.NotificationChannelGroup; 32 NotificationChannelGroup getNotificationChannelGroup(String pkg, int uid, String channelId); in getNotificationChannelGroup()
|
D | PreferencesHelper.java | 56 import android.app.NotificationChannelGroup; 408 NotificationChannelGroup group = 409 new NotificationChannelGroup(id, groupName); 795 for (NotificationChannelGroup group : r.groups.values()) { 998 NotificationChannelGroup group = r.groups.get(groupId); 1019 public void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, 1040 final NotificationChannelGroup oldGroup = r.groups.get(group.getId()); 1052 group.lockFields(NotificationChannelGroup.USER_LOCKED_BLOCKED_STATE); 1677 public NotificationChannelGroup getNotificationChannelGroupWithChannels(String pkg, 1690 public NotificationChannelGroup getNotificationChannelGroup(String groupId, String pkg, [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 105 import android.app.NotificationChannelGroup; 477 private void compareGroups(NotificationChannelGroup expected, NotificationChannelGroup actual) { in compareGroups() 620 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXml() 623 NotificationChannelGroup ncg2 = new NotificationChannelGroup("2", "hello"); in testChannelXml() 691 List<NotificationChannelGroup> actualGroups = mXmlHelper.getNotificationChannelGroups( in testChannelXml() 695 for (NotificationChannelGroup actual : actualGroups) { in testChannelXml() 706 for (NotificationChannelGroup actual : actualGroups) { in testChannelXml() 717 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXmlForBackup() 718 NotificationChannelGroup ncg2 = new NotificationChannelGroup("2", "hello"); in testChannelXmlForBackup() 776 List<NotificationChannelGroup> actualGroups = mXmlHelper.getNotificationChannelGroups( in testChannelXmlForBackup() [all …]
|
D | NotificationChannelLoggerFake.java | 21 import android.app.NotificationChannelGroup; 82 NotificationChannelGroup channelGroup, int uid, String pkg, boolean wasBlocked) { in logNotificationChannelGroup()
|
D | NotificationListenersTest.java | 57 import android.app.NotificationChannelGroup; 667 final NotificationChannelGroup updated = new NotificationChannelGroup("id", "name"); in testUpdateGroup_notifyTwoListeners() 675 NotificationChannelGroup existing = new NotificationChannelGroup("id", "name"); in testUpdateGroup_notifyTwoListeners() 1167 final NotificationChannelGroup toParcel) in getParcelingListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogController.kt | 23 import android.app.NotificationChannelGroup in <lambda>() 92 private val channelGroupList = mutableListOf<NotificationChannelGroup>() in <lambda>() 145 groupList: Sequence<NotificationChannelGroup> in <lambda>() 219 private fun fetchNotificationChannelGroups(): List<NotificationChannelGroup> { in <lambda>() 222 .list as? List<NotificationChannelGroup> ?: listOf() in <lambda>()
|
D | PartialConversationInfo.java | 21 import android.app.NotificationChannelGroup; 197 final NotificationChannelGroup notificationChannelGroup =
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 21 import android.app.NotificationChannelGroup 58 private lateinit var group: NotificationChannelGroup 83 group = NotificationChannelGroup(TEST_GROUP_ID, TEST_GROUP_NAME) in setup() 117 val group2 = NotificationChannelGroup("two", "group two") in testPrepareDialogForApp_AddsAllChannelsAllGroups()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AlertWindowNotification.java | 29 import android.app.NotificationChannelGroup; 50 private static NotificationChannelGroup sChannelGroup; 148 sChannelGroup = new NotificationChannelGroup(CHANNEL_PREFIX, in createNotificationChannel()
|
/frameworks/base/core/java/android/service/notification/ |
D | INotificationListener.aidl | 21 import android.app.NotificationChannelGroup; 51 …ChannelGroupModification(String pkgName, in UserHandle user, in NotificationChannelGroup group, in… in onNotificationChannelGroupModification()
|
D | NotificationListenerService.java | 33 import android.app.NotificationChannelGroup; 659 NotificationChannelGroup group, @ChannelOrGroupModificationTypes int modificationType) { in onNotificationChannelGroupModified() 976 public final List<NotificationChannelGroup> getNotificationChannelGroups(@NonNull String pkg, in getNotificationChannelGroups() 1696 NotificationChannelGroup group, in onNotificationChannelGroupModification() 2540 NotificationChannelGroup group = (NotificationChannelGroup) args.arg3; in handleMessage()
|
/frameworks/base/core/proto/android/app/ |
D | notification_channel_group.proto | 26 * An android.app.NotificationChannelGroup object.
|
D | notification_channel.proto | 54 // Provided by the app but will match a NotificationChannelGroup id.
|