Home
last modified time | relevance | path

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

/expo/packages/expo-notifications/android/src/test/java/expo/modules/notifications/service/delegates/
H A DExpoHandlingDelegateTest.kt24 private val notificationManager: NotificationManager = mockk() constant in expo.modules.notifications.service.delegates.ExpoHandlingDelegateTest
30 every { delegateSpy.getListeners() } answers { listOf(notificationManager) } in setup()
32 every { notificationManager.onNotificationReceived(any()) } answers { } in setup()
44 verify { notificationManager.onNotificationReceived(expectedNotification) } in handleNotification when in foreground invokes listener and does not present()
55 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background does not invoke listener and presents notification()
66 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background with title only presents notification()
77 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background with text only presents notification()
89 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background and data only does not present notification()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/emitting/
H A DNotificationsEmitter.kt19 private lateinit var notificationManager: NotificationManager variable in expo.modules.notifications.notifications.emitting.NotificationsEmitter
32notificationManager = requireNotNull(appContext.legacyModuleRegistry.getSingletonModule("Notificat… in <lambda>()
33 notificationManager.addListener(this@NotificationsEmitter) in <lambda>()
37 notificationManager.removeListener(this@NotificationsEmitter) in <lambda>()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/permissions/
H A DNotificationPermissionsModule.kt61 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationM… in <lambda>() constant
62 if (notificationManager != null) { in <lambda>()
63 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
98 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationM… in <lambda>() constant
99 if (notificationManager != null) { in <lambda>()
100 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/notifications/permissions/
H A DNotificationPermissionsModule.kt62 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
63 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
64 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
99 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
100 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
101 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/notifications/permissions/
H A DNotificationPermissionsModule.kt62 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
63 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
64 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
99 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
100 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
101 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/notifications/permissions/
H A DNotificationPermissionsModule.kt62 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
63 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
64 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
99 …val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationMa… in <lambda>() constant
100 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && notificationManager != null) { in <lambda>()
101 putInt(INTERRUPTION_FILTER_KEY, notificationManager.currentInterruptionFilter) in <lambda>()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/handling/
H A DNotificationsHandler.kt42 private lateinit var notificationManager: NotificationManager variable in expo.modules.notifications.notifications.handling.NotificationsHandler
65notificationManager = requireNotNull(moduleRegistry.getSingletonModule("NotificationManager", Noti… in <lambda>()
66 notificationManager.addListener(this@NotificationsHandler) in <lambda>()
73 notificationManager.removeListener(this@NotificationsHandler) in <lambda>()
/expo/android/expoview/src/main/java/host/exp/exponent/notifications/
H A DPushNotificationHelper.kt15 val notificationManager = NotificationManagerCompat.from(context) in removeNotifications() constant
18 notificationManager.cancel( in removeNotifications()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/location/services/
H A DLocationTaskService.java120 …NotificationManager notificationManager = (NotificationManager) getSystemService(Activity.NOTIFICA… in prepareChannel() local
122 if (notificationManager != null) { in prepareChannel()
124 NotificationChannel channel = notificationManager.getNotificationChannel(id); in prepareChannel()
129 notificationManager.createNotificationChannel(channel); in prepareChannel()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/location/services/
H A DLocationTaskService.java120 …NotificationManager notificationManager = (NotificationManager) getSystemService(Activity.NOTIFICA… in prepareChannel() local
122 if (notificationManager != null) { in prepareChannel()
124 NotificationChannel channel = notificationManager.getNotificationChannel(id); in prepareChannel()
129 notificationManager.createNotificationChannel(channel); in prepareChannel()
/expo/packages/expo-location/android/src/main/java/expo/modules/location/services/
H A DLocationTaskService.java120 …NotificationManager notificationManager = (NotificationManager) getSystemService(Activity.NOTIFICA… in prepareChannel() local
122 if (notificationManager != null) { in prepareChannel()
124 NotificationChannel channel = notificationManager.getNotificationChannel(id); in prepareChannel()
129 notificationManager.createNotificationChannel(channel); in prepareChannel()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/location/services/
H A DLocationTaskService.java120 …NotificationManager notificationManager = (NotificationManager) getSystemService(Activity.NOTIFICA… in prepareChannel() local
122 if (notificationManager != null) { in prepareChannel()
124 NotificationChannel channel = notificationManager.getNotificationChannel(id); in prepareChannel()
129 notificationManager.createNotificationChannel(channel); in prepareChannel()
/expo/android/expoview/src/main/java/host/exp/exponent/experience/
H A DExperienceActivity.kt701 val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager in <lambda>() constant
702 notificationManager.cancel(PERSISTENT_EXPONENT_NOTIFICATION_ID) in <lambda>()
714 notificationManager.notify(PERSISTENT_EXPONENT_NOTIFICATION_ID, notificationBuilder!!.build()) in <lambda>()
780 val notificationManager = in <lambda>() constant
782 notificationManager.cancel(PERSISTENT_EXPONENT_NOTIFICATION_ID) in <lambda>()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/service/delegates/
H A DExpoPresentationDelegate.kt116 …val notificationManager = (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationM… in <lambda>() constant
117 return notificationManager.activeNotifications.mapNotNull { getNotification(it) } in <lambda>()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/notifications/service/delegates/
H A DExpoPresentationDelegate.kt122 …val notificationManager = (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationM… in <lambda>() constant
123 return notificationManager.activeNotifications.mapNotNull { getNotification(it) } in <lambda>()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/notifications/service/delegates/
H A DExpoPresentationDelegate.kt122 …val notificationManager = (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationM… in <lambda>() constant
123 return notificationManager.activeNotifications.mapNotNull { getNotification(it) } in <lambda>()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/notifications/service/delegates/
H A DExpoPresentationDelegate.kt122 …val notificationManager = (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationM… in <lambda>() constant
123 return notificationManager.activeNotifications.mapNotNull { getNotification(it) } in <lambda>()