Home
last modified time | relevance | path

Searched refs:notificationManager (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationManagerTest.java34 private NotificationManager notificationManager; field in ShadowNotificationManagerTest
39 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 …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DNotificationUtil.java101 NotificationManager notificationManager = in createNotificationChannel() local
108 notificationManager.createNotificationChannel(channel); in createNotificationChannel()
124 NotificationManager notificationManager = in setNotification() local
127 notificationManager.notify(id, notification); in setNotification()
129 notificationManager.cancel(id); in setNotification()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioTestService.java70 NotificationManager notificationManager = in runAsForegroundService() local
72 notificationManager.createNotificationChannel(mNotificationChannel); in runAsForegroundService()
103 NotificationManager notificationManager = in onDestroy() local
105 notificationManager.deleteNotificationChannel(CHANNEL_ID); in onDestroy()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DLog.java51 …e static void createNotificationChannel(Context context, NotificationManager notificationManager) { in createNotificationChannel() argument
59 notificationManager.createNotificationChannel(channel); in createNotificationChannel()
65 NotificationManager notificationManager = in notify() local
67 createNotificationChannel(context, notificationManager); in notify()
81 notificationManager.notify(NotificationIdFactory.create(), note); in notify()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DTriggerService.java108 NotificationManager notificationManager = getNotificationManager(); in createNotificationChannel() local
116 notificationManager.createNotificationChannel(channel); in createNotificationChannel()
DScriptingLayerService.java108 NotificationManager notificationManager = getNotificationManager(); in createNotificationChannel() local
116 notificationManager.createNotificationChannel(channel); in createNotificationChannel()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerNotificationManager.java364 private final NotificationManagerCompat notificationManager; field in PlayerNotificationManager
615 notificationManager = NotificationManagerCompat.from(context); in PlayerNotificationManager()
982 notificationManager.notify(notificationId, notification); in startOrUpdateNotification()
1000 notificationManager.cancel(notificationId); in stopNotification()