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.java446 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXml() local
447 ncg.setBlocked(true); in testChannelXml()
448 ncg.setDescription("group desc"); in testChannelXml()
460 channel2.setGroup(ncg.getId()); in testChannelXml()
466 mHelper.createNotificationChannelGroup(PKG_N_MR1, UID_N_MR1, ncg, true); in testChannelXml()
493 if (ncg.getId().equals(actual.getId())) { in testChannelXml()
495 compareGroups(ncg, actual); in testChannelXml()
514 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXmlForBackup() local
525 channel2.setGroup(ncg.getId()); in testChannelXmlForBackup()
530 mHelper.createNotificationChannelGroup(PKG_N_MR1, UID_N_MR1, ncg, true); in testChannelXmlForBackup()
[all …]
DNotificationManagerServiceTest.java2461 NotificationChannelGroup ncg = new NotificationChannelGroup("a", "b/c"); in testDeleteChannelGroupNotifyListener() local
2463 when(mPreferencesHelper.getNotificationChannelGroup(eq(ncg.getId()), eq(PKG), anyInt())) in testDeleteChannelGroupNotifyListener()
2464 .thenReturn(ncg); in testDeleteChannelGroupNotifyListener()
2466 mBinderService.deleteNotificationChannelGroup(PKG, ncg.getId()); in testDeleteChannelGroupNotifyListener()
2468 eq(Process.myUserHandle()), eq(ncg), in testDeleteChannelGroupNotifyListener()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java1325 NotificationChannelGroup ncg = groups.get(nc.getGroup()); in getNotificationChannelGroups() local
1326 if (ncg == null) { in getNotificationChannelGroups()
1327 ncg = r.groups.get(nc.getGroup()).clone(); in getNotificationChannelGroups()
1328 ncg.setChannels(new ArrayList<>()); in getNotificationChannelGroups()
1329 groups.put(nc.getGroup(), ncg); in getNotificationChannelGroups() local
1332 ncg.addChannel(nc); in getNotificationChannelGroups()