Home
last modified time | relevance | path

Searched refs:mNotificationManager (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java46 private NotificationManager mNotificationManager; field in NotificationControllerTest
55 application.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); in setUp()
67 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testShouldShowNotificationFirstTime()
70 verify(mNotificationManager).cancel(1); in testShouldShowNotificationFirstTime()
79 verify(mNotificationManager, times(i)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfShownTooManyTimes()
82 verify(mNotificationManager, times(i)).cancel(1); in testNotificationNotShownIfShownTooManyTimes()
89 verifyZeroInteractions(mNotificationManager); in testNotificationNotShownIfShownTooManyTimes()
98 verify(mNotificationManager, times(i + 1)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfDismissedTooManyTimes()
101 verify(mNotificationManager, times(i + 1)).cancel(1); in testNotificationNotShownIfDismissedTooManyTimes()
108 verifyZeroInteractions(mNotificationManager); in testNotificationNotShownIfDismissedTooManyTimes()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java78 private NotificationManager mNotificationManager; field in IngestService
87 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onCreate()
159 mNotificationManager.notify(R.id.ingest_notification_scanning, in setClientActivity()
164 mNotificationManager.cancel(R.id.ingest_notification_importing); in setClientActivity()
165 mNotificationManager.cancel(R.id.ingest_notification_scanning); in setClientActivity()
214 mNotificationManager.cancel(R.id.ingest_notification_scanning); in deviceRemoved()
215 mNotificationManager.cancel(R.id.ingest_notification_importing); in deviceRemoved()
234 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportProgress()
251 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportFinish()
268 mNotificationManager.notify(R.id.ingest_notification_scanning, in onObjectIndexed()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DIncomingCallNotifierTest.java53 private NotificationManager mNotificationManager; field in IncomingCallNotifierTest
62 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
84 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testSingleCall()
95 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall()
110 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall2()
125 verify(mNotificationManager).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testCallRemoved()
128 verify(mNotificationManager).cancel(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testCallRemoved()
DMissedCallNotifierImplTest.java140 private NotificationManager mNotificationManager; field in MissedCallNotifierImplTest
157 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
210 verify(mNotificationManager, times(2)).notifyAsUser(nullable(String.class), in cancelNotificationTestInternal()
212 verify(mNotificationManager).cancelAsUser(nullable(String.class), in cancelNotificationTestInternal()
248 verify(mNotificationManager, times(2)).notifyAsUser(nullable(String.class), eq(1), in testNotifyMultipleMissedCalls()
335 verify(mNotificationManager).notifyAsUser(nullable(String.class), eq(1), in notifySingleCallTestInternal()
537 verify(mNotificationManager, times(2)).notifyAsUser(nullable(String.class), eq(1), in testLoadTwoCallsFromDb()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DResumeNotificationHelperTest.java45 private NotificationManager mNotificationManager; field in ResumeNotificationHelperTest
52 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp()
63 MatcherAssert.assertThat(mNotificationManager.getActiveNotifications().length, in testShowResumeNotification()
70 StatusBarNotification[] notifications = mNotificationManager.getActiveNotifications(); in testShowResumeNotification()
82 && mNotificationManager.getActiveNotifications().length == 0) { in waitForNotification()
88 mNotificationManager.cancelAll(); in removeAllNotifications()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java107 private NotificationManager mNotificationManager; field in NotificationMgr
128 mNotificationManager = in NotificationMgr()
371 mNotificationManager.notifyAsUser( in updateMwi()
389 mNotificationManager.cancelAsUser( in updateMwi()
527 mNotificationManager.notifyAsUser( in updateCfi()
534 mNotificationManager.cancelAsUser( in updateCfi()
572 mNotificationManager.notifyAsUser( in showDataDisconnectedRoaming()
582 mNotificationManager.cancel(DATA_DISCONNECTED_ROAMING_NOTIFICATION); in hideDataDisconnectedRoaming()
621 mNotificationManager.notifyAsUser( in showNetworkSelection()
634 mNotificationManager.cancelAsUser( in cancelNetworkSelection()
DEmergencyCallbackModeService.java56 private NotificationManager mNotificationManager = null; field in EmergencyCallbackModeService
91 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onCreate()
109 mNotificationManager.cancel(R.string.phone_in_ecm_notification_title); in onDestroy()
217 mNotificationManager.notify(R.string.phone_in_ecm_notification_title, builder.build()); in showNotification()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java82 private final NotificationManagerCompat mNotificationManager; field in TimerModel
138 mNotificationManager = NotificationManagerCompat.from(context); in TimerModel()
729 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); in updateNotification()
743 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); in updateNotification()
754 mNotificationManager.notify(notificationId, notification); in updateNotification()
765 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); in updateMissedNotification()
772 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); in updateMissedNotification()
779 mNotificationManager.notify(notificationId, notification); in updateMissedNotification()
DStopwatchModel.java45 private final NotificationManagerCompat mNotificationManager; field in StopwatchModel
68 mNotificationManager = NotificationManagerCompat.from(context); in StopwatchModel()
228 mNotificationManager.cancel(mNotificationModel.getStopwatchNotificationId()); in updateNotification()
235 mNotificationManager.notify(mNotificationModel.getStopwatchNotificationId(), notification); in updateNotification()
DSilentSettingsModel.java66 private final NotificationManager mNotificationManager; field in SilentSettingsModel
88 mNotificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE); in SilentSettingsModel()
187 final int interruptionFilter = mNotificationManager.getCurrentInterruptionFilter(); in isDoNotDisturbBlockingAlarms()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DNotificationsPreference.java33 private final INotificationManager mNotificationManager; field in NotificationsPreference
40 mNotificationManager = NotificationManager.getService(); in NotificationsPreference()
59 mNotificationManager.areNotificationsEnabledForPackage(mEntry.info.packageName, in refresh()
78 mNotificationManager.setNotificationsEnabledForPackage( in setNotificationsEnabled()
/packages/services/Car/service/src/com/android/car/
DCanBusErrorNotifier.java39 private final NotificationManager mNotificationManager; field in CanBusErrorNotifier
47 mNotificationManager = (NotificationManager) context.getSystemService( in CanBusErrorNotifier()
96 mNotificationManager.notify(TAG, NOTIFICATION_ID, notification); in showNotification()
104 mNotificationManager.cancel(TAG, NOTIFICATION_ID); in hideNotification()
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java81 private final NotificationManager mNotificationManager; field in EmailNotificationController
92 mNotificationManager = (NotificationManager) context.getSystemService( in EmailNotificationController()
175 mNotificationManager.notify(notificationId, builder.build()); in showNotification()
444 mNotificationManager.cancel(getLoginFailedNotificationId(accountId)); in cancelLoginFailedNotification()
493 mNotificationManager.cancel(NOTIFICATION_ID_PASSWORD_EXPIRING); in cancelPasswordExpirationNotifications()
494 mNotificationManager.cancel(NOTIFICATION_ID_PASSWORD_EXPIRED); in cancelPasswordExpirationNotifications()
559 mNotificationManager.cancel( in cancelSecurityNeededNotification()
586 final NotificationManager notificationManager = getInstance(context).mNotificationManager; in cancelNotifications()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportProcessor.java55 private final NotificationManager mNotificationManager; field in ExportProcessor
79 mNotificationManager = in ExportProcessor()
281 mNotificationManager.notify(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, in doCancelNotification()
292 mNotificationManager.notify(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, in doFinishNotification()
312 mNotificationManager.notify(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, in doFinishNotificationWithShareAction()
DNotificationImportExportListener.java52 private final NotificationManager mNotificationManager; field in NotificationImportExportListener
58 mNotificationManager = (NotificationManager) activity.getSystemService( in NotificationImportExportListener()
137 mNotificationManager.notify(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, in onImportFinished()
155 mNotificationManager.notify(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, in onImportCanceled()
183 mNotificationManager.notify(DEFAULT_NOTIFICATION_TAG, request.jobId, notification); in onCancelRequest()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java103 private NotificationManager mNotificationManager; field in NotificationService
152 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
292 mNotificationManager.cancel(NOTIFY_TAG, notificationId); in showRecommendation()
324 mNotificationManager.cancel(NOTIFY_TAG, notificationId); in changeRecommendation()
340 mNotificationManager.cancel(NOTIFY_TAG, i); in hideAllRecommendation()
452 mNotificationManager.notify(NOTIFY_TAG, notificationId, notification);
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/wakeup/
DWifiWakeupHelper.java75 private final NotificationManager mNotificationManager; field in WifiWakeupHelper
118 mNotificationManager = notificationManager; in WifiWakeupHelper()
195 mNotificationManager.notify(TAG, NOTIFICATION_ID, notificationBuilder.build()); in startWifiSession()
228 mNotificationManager.cancel(TAG, NOTIFICATION_ID); in cancelNotificationIfNeeded()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DIncomingCallNotifier.java85 private final NotificationManager mNotificationManager; field in IncomingCallNotifier
94 mNotificationManager = in IncomingCallNotifier()
170 mNotificationManager.notify(NOTIFICATION_TAG, NOTIFICATION_INCOMING_CALL, builder.build()); in showIncomingCallNotification()
175 mNotificationManager.cancel(NOTIFICATION_TAG, NOTIFICATION_INCOMING_CALL); in hideIncomingCallNotification()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRingVolumePreferenceControllerTest.java54 private NotificationManager mNotificationManager; field in RingVolumePreferenceControllerTest
68 shadowContext.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); in setUp()
70 when(mNotificationManager.getEffectsSuppressor()).thenReturn(mSuppressor); in setUp()
DZenModePreferenceControllerTest.java52 private NotificationManager mNotificationManager; field in ZenModePreferenceControllerTest
64 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); in setUp()
67 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setUp()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMapMessageMonitor.java58 private final NotificationManager mNotificationManager; field in MapMessageMonitor
66 mNotificationManager = in MapMessageMonitor()
139 mNotificationManager.notify(notificationInfo.mNotificationId, builder.build()); in updateNotificationFor()
236 mNotificationManager.cancel(entry.getValue().mNotificationId); in cleanupMessagesAndNotifications()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/
DWifiNotificationController.java161 private final NotificationManager mNotificationManager; field in WifiNotificationController
181 mNotificationManager = notificationManager; in WifiNotificationController()
526 mNotificationManager.notify(NOTIFICATION_TAG, NOTIFICATION_ID, notification); in postNotification()
544 mNotificationManager.cancel(NOTIFICATION_TAG, NOTIFICATION_ID); in removeNotification()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java78 private NotificationManager mNotificationManager; field in ProcessingService
117 mNotificationManager = AndroidServices.instance().provideNotificationManager(); in onCreate()
255 mNotificationManager.notify(CAMERA_NOTIFICATION_ID, mNotificationBuilder.build()); in postNotification()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java124 final NotificationManager mNotificationManager; field in BeamTransferManager
177 mNotificationManager = (NotificationManager) mContext.getSystemService( in BeamTransferManager()
182 mNotificationManager.createNotificationChannel(notificationChannel); in BeamTransferManager()
367 mNotificationManager.notify(null, mTransferId, notBuilder.build()); in updateNotification()
/packages/apps/Contacts/src/com/android/contacts/
DSimImportService.java263 private final NotificationManager mNotificationManager; field in SimImportService.ImportTask
273 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in ImportTask()
341 mNotificationManager.notify(NOTIFICATION_ID, notification); in onPostExecute()

12