Lines Matching refs:nm
120 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in createChannel() constant
121 nm.createNotificationChannel(channel) in createChannel()
124 private fun deleteChannel(nm: NotificationManagerCompat, channelId: String) { in deleteChannel()
125 val channel: NotificationChannel? = nm.getNotificationChannel(channelId) in deleteChannel()
127 nm.deleteNotificationChannel(channelId) in deleteChannel()
131 private fun getAllExistingChannelIds(nm: NotificationManagerCompat): Set<String> { in getAllExistingChannelIds()
133 for (channel in nm.getNotificationChannels()) { in getAllExistingChannelIds()
145 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in updateNotificationChannels() constant
148 deleteChannel(nm, "alarmLowPriorityNotification") in updateNotificationChannels()
149 deleteChannel(nm, "alarmHighPriorityNotification") in updateNotificationChannels()
150 deleteChannel(nm, "StopwatchNotification") in updateNotificationChannels()
151 deleteChannel(nm, "alarmNotification") in updateNotificationChannels()
152 deleteChannel(nm, "TimerModelNotification") in updateNotificationChannels()
153 deleteChannel(nm, "alarmSnoozeNotification") in updateNotificationChannels()
157 val existingChannelIds = getAllExistingChannelIds(nm) in updateNotificationChannels()