Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java112 @VisibleForTesting NotificationManager notificationManager; field in FileOperationService
148 if (notificationManager == null) { in onCreate()
149 notificationManager = getSystemService(NotificationManager.class); in onCreate()
165 notificationManager.createNotificationChannel(channel); in setUpNotificationChannel()
271 notificationManager.cancel(jobId, NOTIFICATION_ID_PROGRESS); in handleCancel()
344 notificationManager.notify( in onStart()
348 JobMonitor monitor = new JobMonitor(job, notificationManager, handler); in onStart()
399 notificationManager.notify(candidate.id, NOTIFICATION_ID_PROGRESS, in updateForegroundState()
409 notificationManager.cancel(job.id, NOTIFICATION_ID_PROGRESS); in cleanUpNotification()
418 notificationManager.notify( in cleanUpNotification()
[all …]
/packages/apps/Dialer/java/com/android/dialer/notification/
DGroupedNotificationUtil.java39 @NonNull NotificationManager notificationManager, in removeNotification()
45 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in removeNotification()
47 notificationManager.cancel(notification.getTag(), id); in removeNotification()
51 notificationManager.cancel(tag, id); in removeNotification()
55 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in removeNotification()
62 notificationManager.cancel(summaryTag, id); in removeNotification()
DNotificationChannelManager.java194 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels() local
196 notificationManager.getNotificationChannelGroups(); in initChannels()
200 .forEach(group -> deleteGroup(notificationManager, group)); in initChannels()
216 @NonNull NotificationManager notificationManager, @NonNull NotificationChannelGroup group) { in deleteGroup()
218 notificationManager.deleteNotificationChannel(channel.getId()); in deleteGroup()
220 notificationManager.deleteNotificationChannelGroup(group.getId()); in deleteGroup()
361 NotificationManager notificationManager = getNotificationManager(context); in deleteOldOngoingCallChannelIfNeeded() local
362 NotificationChannel channel = notificationManager.getNotificationChannel(channelId); in deleteOldOngoingCallChannelIfNeeded()
367 notificationManager.deleteNotificationChannel(channel.getId()); in deleteOldOngoingCallChannelIfNeeded()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DDndCondition.java59 NotificationManager notificationManager = in refreshState() local
61 mZen = notificationManager.getZenMode(); in refreshState()
64 mConfig = notificationManager.getZenModeConfig(); in refreshState()
130 NotificationManager notificationManager = mManager.getContext().getSystemService( in onActionClick() local
132 notificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG); in onActionClick()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
DNotificationChannelUtil.java41 NotificationManager notificationManager, Context context) { in configureNotificationChannels() argument
46 notificationManager.createNotificationChannelGroup(notificationChannelGroup); in configureNotificationChannels()
54 notificationManager.createNotificationChannel(networkAvailableChannel); in configureNotificationChannels()
62 notificationManager.createNotificationChannel(wakeupChannel); in configureNotificationChannels()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsStorageStatusManager.java82 final NotificationManagerCompat notificationManager = in postStorageLowNotification() local
85 notificationManager.notify(getNotificationTag(), in postStorageLowNotification()
93 final NotificationManagerCompat notificationManager = in cancelStorageLowNotification() local
95 notificationManager.cancel(getNotificationTag(), in cancelStorageLowNotification()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java189 NotificationManager notificationManager = in dismissNotification() local
191 notificationManager.cancel( in dismissNotification()
199 notificationManager.cancel(NOTIFICATION_GROUP, NOTIFICATION_ID); in dismissNotification()
299 NotificationManager notificationManager = in postNotification() local
301 notificationManager.notify( in postNotification()
318 notificationManager.notify(NOTIFICATION_GROUP, NOTIFICATION_ID, summary.build()); in postNotification()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/
DNetworkRecommendationService.java68 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onCreate() local
69 NotificationChannelUtil.configureNotificationChannels(notificationManager, this); in onCreate()
78 wifiManager, notificationManager, userManager, new WifiNotificationHelper(this)); in onCreate()
82 notificationManager, wifiManager); in onCreate()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java131 NotificationManager notificationManager = in createNotification() local
133 notificationManager.notify(NOTIFICATION_ID, builder.build()); in createNotification()
137 NotificationManager notificationManager = in cancelNotification() local
139 notificationManager.cancel(NOTIFICATION_ID); in cancelNotification()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallNotificationReceiver.java39 NotificationManager notificationManager = context.getSystemService( in onReceive() local
49 notificationManager.cancel(SelfManagedConnection.CALL_NOTIFICATION, callId); in onReceive()
58 notificationManager.cancel(SelfManagedConnection.CALL_NOTIFICATION, callId); in onReceive()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java70 NotificationManager notificationManager = in onReceive() local
78 notificationManager.createNotificationChannel(uninstallFailureChannel); in onReceive()
85 notificationManager.cancel(uninstallId); in onReceive()
194 notificationManager.notify(uninstallId, uninstallFailedNotification.build()); in onReceive()
DUninstallerActivity.java285 NotificationManager notificationManager = getSystemService(NotificationManager.class); in startUninstallProgress() local
289 notificationManager.createNotificationChannel(uninstallingChannel); in startUninstallProgress()
297 notificationManager.notify(uninstallId, uninstallingNotification); in startUninstallProgress()
/packages/apps/TV/src/com/android/tv/tuner/setup/
DTunerSetupActivity.java267 NotificationManager notificationManager = (NotificationManager) context in sendRecommendationCard() local
269 notificationManager.notify(NOTIFY_TAG, NOTIFY_ID, notification); in sendRecommendationCard()
278 NotificationManager notificationManager = (NotificationManager) context in cancelRecommendationCard() local
280 notificationManager.cancel(NOTIFY_TAG, NOTIFY_ID); in cancelRecommendationCard()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java68 NotificationManager notificationManager = in setUp() local
70 when(notificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(true); in setUp()
125 NotificationManager notificationManager = in testCallWaitingButNoRingForSpecificContacts() local
127 when(notificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(false); in testCallWaitingButNoRingForSpecificContacts()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java281 final NotificationManagerCompat notificationManager = in postNewMessageSecondaryUserNotification() local
290 notificationManager.notify(getNotificationTag(), in postNewMessageSecondaryUserNotification()
298 final NotificationManagerCompat notificationManager = in cancelSecondaryUserNotification() local
300 notificationManager.cancel(getNotificationTag(), in cancelSecondaryUserNotification()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java401 NotificationManager notificationManager = in clearNotification() local
403 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in clearNotification()
483 NotificationManager notificationManager = in dismiss() local
485 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in dismiss()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DEncryptionController.java204 NotificationManager notificationManager = (NotificationManager) in showResumeNotification() local
208 notificationManager.createNotificationChannel(channel); in showResumeNotification()
223 notificationManager.notify(NOTIFICATION_ID, notify.build()); in showResumeNotification()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java213 NotificationManager notificationManager = in setNotification() local
218 notificationManager.createNotificationChannel(notificationChannel); in setNotification()
290 notificationManager.notify(NOTIFICATION_ID, notification); in setNotification()
294 NotificationManager notificationManager = in clearNotification() local
296 notificationManager.cancel(SapServer.NOTIFICATION_ID); in clearNotification()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java563 NotificationManager notificationManager = getSystemService(NotificationManager.class); in buildNotification() local
564 notificationManager.createNotificationChannel(mNotificationChannel); in buildNotification()
574 NotificationManager notificationManager = getSystemService(NotificationManager.class); in getLabelAndUpdateNotification() local
576 notificationManager.notify(notifPair.first, notifPair.second); in getLabelAndUpdateNotification()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPermissionRequest.java161 NotificationManager notificationManager = in onReceive() local
167 notificationManager.createNotificationChannel(mNotificationChannel); in onReceive()
189 notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, in onReceive()
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
DDialogSmsDisplay.java67 NotificationManager notificationManager = in parseIntent() local
69 notificationManager.cancel(notificationId); in parseIntent()
DSmsMessageReceiver.java67 NotificationManager notificationManager = in addNotification() local
70 notificationManager.notify(notificationId, notification.getNotification()); in addNotification()
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java586 final NotificationManager notificationManager = getInstance(context).mNotificationManager; in cancelNotifications() local
588 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_LOGIN_WARNING + account.mId)); in cancelNotifications()
589 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_SECURITY_NEEDED + account.mId)); in cancelNotifications()
590 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_SECURITY_CHANGED + account.mId)); in cancelNotifications()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DAlarmVolumePreference.java135 final NotificationManager notificationManager = (NotificationManager) in doesDoNotDisturbAllowAlarmPlaybackNPlus() local
137 return notificationManager.getCurrentInterruptionFilter() != in doesDoNotDisturbAllowAlarmPlaybackNPlus()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java798 final NotificationManager notificationManager = in createUndoNotification() local
800 notificationManager.notify(notificationId, notification); in createUndoNotification()
857 final NotificationManager notificationManager = in removeUndoNotification() local
859 notificationManager.cancel(notificationId); in removeUndoNotification()

12