Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java216 NotificationManager notificationManager = in createSimSelectNotification() local
218 notificationManager.createNotificationChannel(notificationChannel); in createSimSelectNotification()
219 notificationManager.notify(SIM_SELECT_NOTIFICATION_ID, builder.build()); in createSimSelectNotification()
223 NotificationManager notificationManager = in cancelSimSelectNotification() local
225 notificationManager.cancel(SIM_SELECT_NOTIFICATION_ID); in cancelSimSelectNotification()
256 NotificationManager notificationManager = in createEnableMmsNotification() local
258 notificationManager.createNotificationChannel(notificationChannel); in createEnableMmsNotification()
259 notificationManager.notify(ENABLE_MMS_NOTIFICATION_ID, builder.build()); in createEnableMmsNotification()
263 NotificationManager notificationManager = in cancelEnableMmsNotification() local
265 notificationManager.cancel(ENABLE_MMS_NOTIFICATION_ID); in cancelEnableMmsNotification()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java166 NotificationManager notificationManager = mContext.getSystemService( in revokeConfirmed_revokesNotificationAccess() local
168 notificationManager.setNotificationListenerAccessGranted( in revokeConfirmed_revokesNotificationAccess()
182 assertThat(notificationManager.isNotificationListenerAccessGranted( in revokeConfirmed_revokesNotificationAccess()
189 NotificationManager notificationManager = mContext.getSystemService( in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules() local
191 notificationManager.setNotificationListenerAccessGranted( in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
204 notificationManager.addAutomaticZenRule(mock(AutomaticZenRule.class)); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
205 assertThat(notificationManager.getAutomaticZenRules()).isNotEmpty(); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
207 notificationManager.setNotificationPolicyAccessGranted( in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
214 assertThat(notificationManager.getAutomaticZenRules()).isEmpty(); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
220 NotificationManager notificationManager = mContext.getSystemService( in grantConfirmed_grantsNotificationAccess() local
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java121 @VisibleForTesting NotificationManager notificationManager; field in FileOperationService
158 if (notificationManager == null) { in onCreate()
159 notificationManager = getSystemService(NotificationManager.class); in onCreate()
178 notificationManager.createNotificationChannel(channel); in setUpNotificationChannel()
295 notificationManager.cancel(jobId, NOTIFICATION_ID_PROGRESS); in handleCancel()
381 notificationManager.notify( in onStart()
443 notificationManager.cancel(candidate.id, NOTIFICATION_ID_PROGRESS); in updateForegroundState()
447 notificationManager.notify(NOTIFICATION_ID_PROGRESS, notification); in updateForegroundState()
458 notificationManager.cancel(job.id, NOTIFICATION_ID_PROGRESS); in cleanUpNotification()
467 notificationManager.notify( in cleanUpNotification()
[all …]
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java71 NotificationManager notificationManager = getNotificationManager(context); in cancel() local
72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel()
83 notificationManager.cancel( in cancel()
88 notificationManager.cancel(tag, id); in cancel()
92 NotificationManager notificationManager = getNotificationManager(context); in cancelAll() local
93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll()
96 notificationManager.cancel(notification.getTag(), notification.getId()); in cancelAll()
DNotificationThrottler.java71 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in throttle() local
72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle()
101 notificationManager.cancel(notifications.get(i).getTag(), notifications.get(i).getId()); in throttle()
111 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getSortedMatchingNotifications() local
112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications()
DNotificationManagerUtils.java32 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in cancelAllInGroup() local
33 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in cancelAllInGroup()
35 notificationManager.cancel(notification.getTag(), notification.getId()); in cancelAllInGroup()
DNotificationChannelManager.java57 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels() local
78 notificationManager.deleteNotificationChannel(existingChannelId); in initChannels()
100 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getAllExistingChannelIds() local
101 for (NotificationChannel channel : notificationManager.getNotificationChannels()) { in getAllExistingChannelIds()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DNotificationHelper.java54 final NotificationManager notificationManager = in showResumeNotification() local
58 notificationManager.createNotificationChannel(channel); in showResumeNotification()
73 notificationManager.notify(ENCRYPTION_NOTIFICATION_ID, notify.build()); in showResumeNotification()
78 final NotificationManager notificationManager = in showPrivacyReminderNotification() local
82 notificationManager.createNotificationChannel(channel); in showPrivacyReminderNotification()
96 notificationManager.notify(PRIVACY_REMINDER_NOTIFICATION_ID, notify.build()); in showPrivacyReminderNotification()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedConnection.java141 NotificationManager notificationManager = mContext.getSystemService( in onShowIncomingCallUi() local
144 notificationManager.notify(CALL_NOTIFICATION, mCallId, notification); in onShowIncomingCallUi()
187 NotificationManager notificationManager = mContext.getSystemService( in onSilence() local
189 notificationManager.notify(CALL_NOTIFICATION, mCallId, mNotificationBuilder.build()); in onSilence()
209 NotificationManager notificationManager = mContext.getSystemService( in setConnectionDisconnected() local
211 notificationManager.cancel(CALL_NOTIFICATION, mCallId); in setConnectionDisconnected()
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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSelectNotification.java97 NotificationManager notificationManager = in createNotification() local
99 notificationManager.createNotificationChannel(notificationChannel); in createNotification()
100 notificationManager.notify(NOTIFICATION_ID, builder.build()); in createNotification()
104 NotificationManager notificationManager = in cancelNotification() local
106 notificationManager.cancel(NOTIFICATION_ID); in cancelNotification()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMessengerService.java99 NotificationManager notificationManager = getSystemService(NotificationManager.class); in sendServiceRunningNotification() local
101 if (notificationManager == null) { in sendServiceRunningNotification()
112 notificationManager.createNotificationChannel(appRunningNotificationChannel); in sendServiceRunningNotification()
122 notificationManager.createNotificationChannel(silentNotificationChannel); in sendServiceRunningNotification()
134 notificationManager.createNotificationChannel(smsChannel); in sendServiceRunningNotification()
/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/TV/tuner/src/com/android/tv/tuner/setup/
DBaseTunerSetupActivity.java335 NotificationManager notificationManager = in cancelNotification() local
337 notificationManager.cancel(NOTIFY_TAG, NOTIFY_ID); in cancelNotification()
397 NotificationManager notificationManager = in sendNotificationInternal() local
399 notificationManager.createNotificationChannel( in sendNotificationInternal()
418 notificationManager.notify(NOTIFY_TAG, NOTIFY_ID, notification); in sendNotificationInternal()
453 NotificationManager notificationManager = in sendRecommendationCard() local
455 notificationManager.notify(NOTIFY_TAG, NOTIFY_ID, notification); in sendRecommendationCard()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java600 final NotificationManager notificationManager = in addToNotificationBar() local
673 notificationManager.notify(NOTIFICATION_ID, builder.build()); in addToNotificationBar()
699 NotificationManager notificationManager = in createNotificationChannels() local
701 notificationManager.createNotificationChannel( in createNotificationChannels()
711 notificationManager.createNotificationChannel(nonEmergency); in createNotificationChannels()
718 notificationManager.createNotificationChannel(emergencyAlertInVoiceCall); in createNotificationChannels()
813 NotificationManager notificationManager = (NotificationManager) in playPendingAlert() local
818 notificationManager.getActiveNotifications(); in playPendingAlert()
821 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in playPendingAlert()
/packages/services/Telephony/testapps/TelephonyRegistryTestApp/src/com/android/phone/testapps/telephonyregistry/
DTelephonyRegistryTestApp.java40 private NotificationManager notificationManager; field in TelephonyRegistryTestApp
91 notificationManager.notify(0, notification);
135 notificationManager = getSystemService(NotificationManager.class); in onCreate()
138 notificationManager.createNotificationChannel(channel); in onCreate()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestForegroundManager.java30 TestForegroundManager(TestNotificationManager notificationManager) { in TestForegroundManager() argument
31 assert(notificationManager != null); in TestForegroundManager()
32 mNotificationManager = notificationManager; in TestForegroundManager()
/packages/apps/Nfc/src/com/android/nfc/
DNfcBlockedNotification.java60 NotificationManager notificationManager = in onCreate() local
62 notificationManager.createNotificationChannel(mNotificationChannel); in onCreate()
63 notificationManager.notify(NOTIFICATION_ID_NFC, builder.build()); in onCreate()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersUtil.java93 NotificationManager notificationManager = in updateEmergencyCallNotification() local
115 notificationManager.notifyAsUser(null /* tag */ , EMERGENCY_CALL_NOTIFICATION, in updateEmergencyCallNotification()
118 notificationManager.cancelAsUser(null /* tag */ , EMERGENCY_CALL_NOTIFICATION, in updateEmergencyCallNotification()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java282 final NotificationManagerCompat notificationManager = in postNewMessageSecondaryUserNotification() local
291 notificationManager.notify(getNotificationTag(), in postNewMessageSecondaryUserNotification()
299 final NotificationManagerCompat notificationManager = in cancelSecondaryUserNotification() local
301 notificationManager.cancel(getNotificationTag(), in cancelSecondaryUserNotification()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java296 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createPermissionReminderChannel() local
302 notificationManager.createNotificationChannel(permissionReminderChannel); in createPermissionReminderChannel()
568 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createNotificationForLocationUser() local
615 notificationManager.notify(pkgName, LOCATION_ACCESS_CHECK_NOTIFICATION_ID, b.build()); in createNotificationForLocationUser()
650 NotificationManager notificationManager = getSystemServiceSafe(mContext, in getCurrentlyShownNotificationLocked() local
653 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in getCurrentlyShownNotificationLocked()
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
DDialogSmsDisplay.java67 NotificationManager notificationManager = in parseIntent() local
69 notificationManager.cancel(notificationId); in parseIntent()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java223 NotificationManager notificationManager = in setNotification() local
228 notificationManager.createNotificationChannel(notificationChannel); in setNotification()
308 notificationManager.notify(NOTIFICATION_ID, notification); in setNotification()
312 NotificationManager notificationManager = in clearNotification() local
314 notificationManager.cancel(SapServer.NOTIFICATION_ID); in clearNotification()

12