Searched refs:notificationManager (Results 1 – 7 of 7) sorted by relevance
34 private NotificationManager notificationManager; field in ShadowNotificationManagerTest39 notificationManager = in setUp()49 … assertThat(notificationManager.getCurrentInterruptionFilter()).isEqualTo(INTERRUPTION_FILTER_ALL); in getCurrentInterruptionFilter()51 notificationManager.setInterruptionFilter(INTERRUPTION_FILTER_PRIORITY); in getCurrentInterruptionFilter()52 …assertThat(notificationManager.getCurrentInterruptionFilter()).isEqualTo(INTERRUPTION_FILTER_PRIOR… in getCurrentInterruptionFilter()58 assertThat(notificationManager.getNotificationPolicy()).isNull(); in getNotificationPolicy()61 notificationManager.setNotificationPolicy(policy); in getNotificationPolicy()62 assertThat(notificationManager.getNotificationPolicy()).isEqualTo(policy); in getNotificationPolicy()68 notificationManager.createNotificationChannel(new NotificationChannel("id", "name", 1)); in createNotificationChannel()70 assertThat(shadowOf(notificationManager).getNotificationChannels()).hasSize(1); in createNotificationChannel()[all …]
101 NotificationManager notificationManager = in createNotificationChannel() local108 notificationManager.createNotificationChannel(channel); in createNotificationChannel()124 NotificationManager notificationManager = in setNotification() local127 notificationManager.notify(id, notification); in setNotification()129 notificationManager.cancel(id); in setNotification()
70 NotificationManager notificationManager = in runAsForegroundService() local72 notificationManager.createNotificationChannel(mNotificationChannel); in runAsForegroundService()103 NotificationManager notificationManager = in onDestroy() local105 notificationManager.deleteNotificationChannel(CHANNEL_ID); in onDestroy()
51 …e static void createNotificationChannel(Context context, NotificationManager notificationManager) { in createNotificationChannel() argument59 notificationManager.createNotificationChannel(channel); in createNotificationChannel()65 NotificationManager notificationManager = in notify() local67 createNotificationChannel(context, notificationManager); in notify()81 notificationManager.notify(NotificationIdFactory.create(), note); in notify()
108 NotificationManager notificationManager = getNotificationManager(); in createNotificationChannel() local116 notificationManager.createNotificationChannel(channel); in createNotificationChannel()
364 private final NotificationManagerCompat notificationManager; field in PlayerNotificationManager615 notificationManager = NotificationManagerCompat.from(context); in PlayerNotificationManager()982 notificationManager.notify(notificationId, notification); in startOrUpdateNotification()1000 notificationManager.cancel(notificationId); in stopNotification()