Home
last modified time | relevance | path

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

123

/packages/apps/Car/Messenger/src/com/android/car/messenger/core/shared/
DNotificationHandler.java67 NotificationManager notificationManager = in postNotification() local
74 notificationManager.notify(tapToReadConversation.getId().hashCode(), notification); in postNotification()
106 NotificationManager notificationManager = in postNotificationForLegacyTapToRead() local
108 notificationManager.notify(id, notification); in postNotificationForLegacyTapToRead()
115 sbn = findSBN(notificationManager, id); in postNotificationForLegacyTapToRead()
123 NotificationManager notificationManager = in cancelAllTapToReadNotifications() local
125 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in cancelAllTapToReadNotifications()
127 notificationManager.cancel(sbn.getId()); in cancelAllTapToReadNotifications()
134 @NonNull NotificationManager notificationManager, int id) { in findSBN()
135 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in findSBN()
[all …]
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java232 NotificationManager notificationManager = in createSimSelectNotification() local
234 notificationManager.createNotificationChannel(notificationChannel); in createSimSelectNotification()
235 notificationManager.notify(SIM_SELECT_NOTIFICATION_ID, builder.build()); in createSimSelectNotification()
239 NotificationManager notificationManager = in cancelSimSelectNotification() local
241 notificationManager.cancel(SIM_SELECT_NOTIFICATION_ID); in cancelSimSelectNotification()
272 NotificationManager notificationManager = in createEnableMmsNotification() local
274 notificationManager.createNotificationChannel(notificationChannel); in createEnableMmsNotification()
275 notificationManager.notify(ENABLE_MMS_NOTIFICATION_ID, builder.build()); in createEnableMmsNotification()
279 NotificationManager notificationManager = in cancelEnableMmsNotification() local
281 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.java124 @VisibleForTesting NotificationManager notificationManager; field in FileOperationService
161 if (notificationManager == null) { in onCreate()
162 notificationManager = getSystemService(NotificationManager.class); in onCreate()
181 notificationManager.createNotificationChannel(channel); in setUpNotificationChannel()
298 notificationManager.cancel(jobId, NOTIFICATION_ID_PROGRESS); in handleCancel()
384 notificationManager.notify( in onStart()
446 notificationManager.cancel(candidate.id, NOTIFICATION_ID_PROGRESS); in updateForegroundState()
450 notificationManager.notify(NOTIFICATION_ID_PROGRESS, notification); in updateForegroundState()
461 notificationManager.cancel(job.id, NOTIFICATION_ID_PROGRESS); in cleanUpNotification()
470 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/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DHeadsUpNotificationFragment.java40 NotificationManager notificationManager = in onCreateView() local
42 notificationManager.createNotificationChannel( in onCreateView()
46 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView()
48 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView()
50 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView()
52 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DNotificationHelper.java59 final NotificationManager notificationManager = in showResumeNotification() local
63 notificationManager.createNotificationChannel(channel); in showResumeNotification()
78 notificationManager.notify(ENCRYPTION_NOTIFICATION_ID, notify.build()); in showResumeNotification()
83 final NotificationManager notificationManager = in showPrivacyReminderNotification() local
87 notificationManager.createNotificationChannel(channel); in showPrivacyReminderNotification()
101 notificationManager.notify(PRIVACY_REMINDER_NOTIFICATION_ID, notify.build()); in showPrivacyReminderNotification()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt89 @Mock private lateinit var notificationManager: NotificationManager variable in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
148 doReturn(notificationManager).`when`(mockContext) in setUp()
198 verify(notificationManager, never()).cancel(any(), eq(id)) in title()
201 verify(notificationManager, times(1)) in title()
214 reset(notificationManager) in title()
222 verify(notificationManager, times(1)).cancel(any(), eq(it)) in verifyNotificationCancelled()
224 if (resetAfterVerified) reset(notificationManager) in verifyNotificationCancelled()
248 verifyZeroInteractions(notificationManager) in testRestrictedNotification()
310 verifyZeroInteractions(notificationManager) in testNoUpstreamNotification()
386 verifyZeroInteractions(notificationManager) in testRoamingNotification()
/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/apps/Car/Messenger/src/com/android/car/messenger/core/service/
DMessengerService.java100 NotificationManager notificationManager = getSystemService(NotificationManager.class); in sendServiceRunningNotification() local
102 if (notificationManager == null) { in sendServiceRunningNotification()
114 notificationManager.createNotificationChannel(appRunningNotificationChannel); in sendServiceRunningNotification()
125 notificationManager.createNotificationChannel(silentNotificationChannel); in sendServiceRunningNotification()
140 notificationManager.createNotificationChannel(channel); 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/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java87 NotificationManager notificationManager = in onCreate() local
92 notificationManager.createNotificationChannel(channel); in onCreate()
120 NotificationManager notificationManager = in onDestroy() local
122 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DCompanionDeviceWatchRoleBehavior.java51 NotificationManager notificationManager = in setNotificationGrantState() local
56 notificationManager.setNotificationListenerAccessGranted( in setNotificationGrantState()
83 NotificationManager notificationManager = in revoke() local
86 notificationManager.getEnabledNotificationListeners(); in revoke()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java727 final NotificationManager notificationManager = in addToNotificationBar() local
827 notificationManager.notify(NOTIFICATION_ID, builder.build()); in addToNotificationBar()
852 NotificationManager notificationManager = in createNotificationChannels() local
854 notificationManager.createNotificationChannel( in createNotificationChannels()
860 notificationManager.createNotificationChannel( in createNotificationChannels()
870 notificationManager.createNotificationChannel(nonEmergency); in createNotificationChannels()
877 notificationManager.createNotificationChannel(emergencyAlertInVoiceCall); in createNotificationChannels()
883 notificationManager.createNotificationChannel(settingsUpdate); in createNotificationChannels()
950 NotificationManager notificationManager = (NotificationManager) in playPendingAlert() local
955 notificationManager.getActiveNotifications(); in playPendingAlert()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DAutoGrantPermissionsNotifier.java111 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createAutoGrantNotifierChannel() local
122 notificationManager.createNotificationChannel(autoGrantedPermissionsChannel); in createAutoGrantNotifierChannel()
179 NotificationManager notificationManager = getSystemServiceSafe(mContext, in notifyOfAutoGrantPermissions() local
186 notificationManager.cancel( in notifyOfAutoGrantPermissions()
188 notificationManager.notify(mPackageInfo.packageName, in notifyOfAutoGrantPermissions()
/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/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/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/Nfc/src/com/android/nfc/
DNfcBlockedNotification.java72 NotificationManager notificationManager = in startNotification() local
74 notificationManager.createNotificationChannel(mNotificationChannel); in startNotification()
75 notificationManager.notify(NOTIFICATION_ID_NFC, builder.build()); in startNotification()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersUtil.java93 NotificationManager notificationManager = in updateEmergencyCallNotification() local
116 notificationManager.notifyAsUser(null /* tag */ , EMERGENCY_CALL_NOTIFICATION, in updateEmergencyCallNotification()
119 notificationManager.cancelAsUser(null /* tag */ , EMERGENCY_CALL_NOTIFICATION, in updateEmergencyCallNotification()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/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
616 notificationManager.notify(pkgName, LOCATION_ACCESS_CHECK_NOTIFICATION_ID, b.build()); in createNotificationForLocationUser()
640 NotificationManager notificationManager; in getCurrentlyShownNotificationLocked() local
642 notificationManager = getSystemServiceSafe(mContext, NotificationManager.class, in getCurrentlyShownNotificationLocked()
648 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in getCurrentlyShownNotificationLocked()

123