Home
last modified time | relevance | path

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

12

/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DNotificationHelper.kt55 private val notificationManager = context.getSystemService(NotificationManager::class.java) in <lambda>() constant
58 if (notificationManager.getNotificationChannel(CHANNEL_NEW_MESSAGES) == null) { in <lambda>()
59 notificationManager.createNotificationChannel( in <lambda>()
164 notificationManager.notify(chat.contact.id.toInt(), builder.build()) in <lambda>()
168 notificationManager.cancel(id.toInt()) in <lambda>()
172 val channel = notificationManager.getNotificationChannel(CHANNEL_NEW_MESSAGES) in <lambda>()
173 return notificationManager.areBubblesAllowed() && channel.canBubble() in <lambda>()
/developers/samples/android/wearable/wear/WearNotifications/Application/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/
DBigPictureSocialMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DBigTextMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DInboxMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DMessagingMainActivity.java40 NotificationManager notificationManager = in onCreate() local
43 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
/developers/build/prebuilts/gradle/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/
DInboxMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DBigTextMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DBigPictureSocialMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DMessagingMainActivity.java40 NotificationManager notificationManager = in onCreate() local
43 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
/developers/build/prebuilts/gradle/WearNotifications/Application/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/
DBigTextMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DBigPictureSocialMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DInboxMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DMessagingMainActivity.java40 NotificationManager notificationManager = in onCreate() local
43 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/
DBigTextMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DInboxMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DBigPictureSocialMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
DMessagingMainActivity.java40 NotificationManager notificationManager = in onCreate() local
43 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DMessagingMainActivity.java39 NotificationManager notificationManager = in onCreate() local
42 notificationManager.cancel(NotificationsActivity.NOTIFICATION_ID); in onCreate()
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DMessagingMainActivity.java38 NotificationManager notificationManager = in onCreate() local
41 notificationManager.cancel(NotificationsActivity.NOTIFICATION_ID); in onCreate()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/util/
DNotificationUtil.java67 NotificationManager notificationManager = in createNotificationChannel() local
69 notificationManager.createNotificationChannel(notificationChannel); in createNotificationChannel()
/developers/samples/android/wearable/wear/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/
DNotificationUtil.java60 NotificationManager notificationManager = in createNotificationChannel() local
62 notificationManager.createNotificationChannel(notificationChannel); in createNotificationChannel()
/developers/build/prebuilts/gradle/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/util/
DNotificationUtil.java60 NotificationManager notificationManager = in createNotificationChannel() local
62 notificationManager.createNotificationChannel(notificationChannel); in createNotificationChannel()
/developers/samples/android/notification/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/
DMainActivity.java96 NotificationManager notificationManager = (NotificationManager) getSystemService( in sendNotification() local
98 notificationManager.notify(NOTIFICATION_ID, builder.build()); in sendNotification()
/developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/
DMainActivity.java96 NotificationManager notificationManager = (NotificationManager) getSystemService( in sendNotification() local
98 notificationManager.notify(NOTIFICATION_ID, builder.build()); in sendNotification()
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/
DMessageReplyReceiver.java50 NotificationManagerCompat notificationManager = in onReceive() local
58 notificationManager.notify(conversationId, repliedNotification); in onReceive()

12