Home
last modified time | relevance | path

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

/frameworks/base/services/tests/notification/src/com/android/server/notification/
DRankingHelperTest.java294 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXml() local
306 channel2.setGroup(ncg.getId()); in testChannelXml()
310 mHelper.createNotificationChannelGroup(PKG, UID, ncg, true); in testChannelXml()
332 if (ncg.getId().equals(actual.getId())) { in testChannelXml()
334 compareGroups(ncg, actual); in testChannelXml()
353 NotificationChannelGroup ncg = new NotificationChannelGroup("1", "bye"); in testChannelXmlForBackup() local
365 channel2.setGroup(ncg.getId()); in testChannelXmlForBackup()
370 mHelper.createNotificationChannelGroup(PKG, UID, ncg, true); in testChannelXmlForBackup()
402 if (ncg.getId().equals(actual.getId())) { in testChannelXmlForBackup()
404 compareGroups(ncg, actual); in testChannelXmlForBackup()
[all …]
DNotificationManagerServiceTest.java629 NotificationChannelGroup ncg = new NotificationChannelGroup("a", "b/c"); in testDeleteChannelGroupNotifyListener() local
631 when(mRankingHelper.getNotificationChannelGroup(eq(ncg.getId()), eq(PKG), anyInt())) in testDeleteChannelGroupNotifyListener()
632 .thenReturn(ncg); in testDeleteChannelGroupNotifyListener()
634 mBinderService.deleteNotificationChannelGroup(PKG, ncg.getId()); in testDeleteChannelGroupNotifyListener()
636 eq(Process.myUserHandle()), eq(ncg), in testDeleteChannelGroupNotifyListener()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java721 NotificationChannelGroup ncg = groups.get(nc.getGroup()); in getNotificationChannelGroups() local
722 if (ncg == null) { in getNotificationChannelGroups()
723 ncg = r.groups.get(nc.getGroup()).clone(); in getNotificationChannelGroups()
724 groups.put(nc.getGroup(), ncg); in getNotificationChannelGroups() local
727 ncg.addChannel(nc); in getNotificationChannelGroups()