Home
last modified time | relevance | path

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

12

/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DNotificationHelper.kt48 private val notificationManager = context.getSystemService(NotificationManager::class.java) in <lambda>() constant
51 if (notificationManager.getNotificationChannel(CHANNEL_NEW_MESSAGES) == null) { in <lambda>()
52 notificationManager.createNotificationChannel( in <lambda>()
162 notificationManager.notify(chat.contact.id.toInt(), builder.build()) in <lambda>()
166 notificationManager.cancel(id.toInt()) in <lambda>()
170 val channel = notificationManager.getNotificationChannel(CHANNEL_NEW_MESSAGES) in <lambda>()
171 return notificationManager.areBubblesAllowed() && channel.canBubble() in <lambda>()
/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()
DInboxMainActivity.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()
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/
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()
DBigTextMainActivity.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/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()
DBigPictureSocialMainActivity.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()
DMessagingMainActivity.java40 NotificationManager notificationManager = in onCreate() local
43 notificationManager.cancel(StandaloneMainActivity.NOTIFICATION_ID); in onCreate()
/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/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/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/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/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/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/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/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
DAlarmIntentService.java58 NotificationManager notificationManager = context in onHandleIntent() local
67 notificationManager.notify(alarm.id, builder.build()); in onHandleIntent()

12