Home
last modified time | relevance | path

Searched refs:ncg (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java381 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXml() local
382 ncg.setBlocked(true); in testChannelXml()
383 ncg.setDescription("group desc"); in testChannelXml()
395 channel2.setGroup(ncg.getId()); in testChannelXml()
401 mHelper.createNotificationChannelGroup(PKG_N_MR1, UID_N_MR1, ncg, true); in testChannelXml()
428 if (ncg.getId().equals(actual.getId())) { in testChannelXml()
430 compareGroups(ncg, actual); in testChannelXml()
449 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXmlForBackup() local
461 channel2.setGroup(ncg.getId()); in testChannelXmlForBackup()
466 mHelper.createNotificationChannelGroup(PKG_N_MR1, UID_N_MR1, ncg, true); in testChannelXmlForBackup()
[all …]
DNotificationManagerServiceTest.java2295 NotificationChannelGroup ncg = new NotificationChannelGroup("a", "b/c"); in testDeleteChannelGroupNotifyListener() local
2297 when(mPreferencesHelper.getNotificationChannelGroup(eq(ncg.getId()), eq(PKG), anyInt())) in testDeleteChannelGroupNotifyListener()
2298 .thenReturn(ncg); in testDeleteChannelGroupNotifyListener()
2300 mBinderService.deleteNotificationChannelGroup(PKG, ncg.getId()); in testDeleteChannelGroupNotifyListener()
2302 eq(Process.myUserHandle()), eq(ncg), in testDeleteChannelGroupNotifyListener()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java1255 NotificationChannelGroup ncg = groups.get(nc.getGroup()); in getNotificationChannelGroups() local
1256 if (ncg == null) { in getNotificationChannelGroups()
1257 ncg = r.groups.get(nc.getGroup()).clone(); in getNotificationChannelGroups()
1258 ncg.setChannels(new ArrayList<>()); in getNotificationChannelGroups()
1259 groups.put(nc.getGroup(), ncg); in getNotificationChannelGroups() local
1262 ncg.addChannel(nc); in getNotificationChannelGroups()