Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/notificationtests/src/android/app/
DNotificationStressTest.java62 private NotificationManager mNotificationManager; field in NotificationStressTest
71 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
74 mNotificationManager.cancelAll(); in setUp()
80 mNotificationManager.cancelAll(); in tearDown()
89 mNotificationManager.cancel(mNotifyId - 4); in testNotificationStress()
102 assertTrue(mNotificationManager.getActiveNotifications().length == MAX_NOTIFCATIONS); in testNotificationsWithShadeStress()
104 mNotificationManager.cancel(--mNotifyId); in testNotificationsWithShadeStress()
127 mNotificationManager.notify(id, notification); in sendNotification()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationControllerTest.java59 @Mock private NotificationManager mNotificationManager; field in WifiNotificationControllerTest
77 .thenReturn(mNotificationManager); in setUp()
113 verify(mNotificationManager, never()) in verifyNotificationDisplayed()
128 verify(mNotificationManager) in verifyNotificationDisplayed()
131 verify(mNotificationManager, never()) in verifyNotificationDisplayed()
137 verify(mNotificationManager) in verifyNotificationDisplayed()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java95 private NotificationManager mNotificationManager; field in FileOperationService
115 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
218 mNotificationManager.cancel(jobId, NOTIFICATION_ID_PROGRESS); in handleCancel()
300 mNotificationManager.notify(job.id, NOTIFICATION_ID_PROGRESS, job.getSetupNotification()); in onStart()
308 mNotificationManager.cancel(job.id, NOTIFICATION_ID_PROGRESS); in onFinished()
312 mNotificationManager.notify( in onFinished()
318 mNotificationManager.notify( in onFinished()
330 mNotificationManager.notify( in onProgress()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java61 private NotificationManager mNotificationManager; field in StorageNotification
94 mNotificationManager.cancelAsUser(fsUuid, PRIVATE_ID, UserHandle.ALL);
122 mNotificationManager.cancelAsUser(null, MOVE_ID, UserHandle.ALL);
158 mNotificationManager = mContext.getSystemService(NotificationManager.class); in start()
193 mNotificationManager.cancelAsUser(fsUuid, PRIVATE_ID, UserHandle.ALL); in updateMissingPrivateVolumes()
214 mNotificationManager.notifyAsUser(fsUuid, PRIVATE_ID, builder in updateMissingPrivateVolumes()
240 mNotificationManager.notifyAsUser(disk.getId(), DISK_ID, builder.build(), in onDiskScannedInternal()
245 mNotificationManager.cancelAsUser(disk.getId(), DISK_ID, UserHandle.ALL); in onDiskScannedInternal()
255 mNotificationManager.cancelAsUser(disk.getId(), DISK_ID, UserHandle.ALL); in onDiskDestroyedInternal()
311 mNotificationManager.notifyAsUser(vol.getId(), PUBLIC_ID, notif, UserHandle.ALL); in onPublicVolumeStateChangedInternal()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsService.java41 NotificationManager mNotificationManager; field in MtpDocumentsService
52 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
85 mNotificationManager.notify(record.deviceId, notification); in updateForegroundState()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DStatusBarTest.java35 NotificationManager mNotificationManager; field in StatusBarTest
55 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in tests()
174 mNotificationManager.notify(id, not);
267 mNotificationManager.notify(1,
281 mNotificationManager.cancel(1);
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java33 NotificationManager mNotificationManager; field in FixVibrateSetting
46 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); in onCreate()
126 mNotificationManager.notify(1, n); in test()
/frameworks/support/v4/java/android/support/v4/app/
DNotificationManagerCompat.java96 private final NotificationManager mNotificationManager; field in NotificationManagerCompat
149 mNotificationManager = (NotificationManager) mContext.getSystemService( in NotificationManagerCompat()
271 IMPL.cancelNotification(mNotificationManager, tag, id); in cancel()
279 mNotificationManager.cancelAll(); in cancelAll()
305 IMPL.cancelNotification(mNotificationManager, tag, id); in notify()
307 IMPL.postNotification(mNotificationManager, tag, id, notification); in notify()
315 return IMPL.areNotificationsEnabled(mContext, mNotificationManager); in areNotificationsEnabled()
324 return IMPL.getImportance(mNotificationManager); in getImportance()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java69 private final NotificationManager mNotificationManager; field in NotificationController
78 mNotificationManager = (NotificationManager) in NotificationController()
111 mNotificationManager.cancel(PRINT_JOB_NOTIFICATION_SUMMARY, 0); in updateNotifications()
130 mNotificationManager.cancel(removedPrintJob.flattenToString(), 0); in updateNotifications()
218 mNotificationManager.notify(printJob.getId().flattenToString(), 0, builder.build()); in createNotification()
275 mNotificationManager.notify(PRINT_JOB_NOTIFICATION_SUMMARY, 0, builder.build()); in createStackedNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeUI.java60 private NotificationManager mNotificationManager; field in VolumeUI
71 mNotificationManager = in start()
220 mNotificationManager.cancel(R.id.notification_volumeui); in hide()
246 mNotificationManager.notify(R.id.notification_volumeui, in show()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java105 private final NotificationManager mNotificationManager; field in SaveImageInBackgroundTask
171 mNotificationManager = nManager; in SaveImageInBackgroundTask()
204 mNotificationManager.notify(R.id.notification_screenshot, mNotificationBuilder.build()); in SaveImageInBackgroundTask()
316 GlobalScreenshot.notifyScreenshotError(mParams.context, mNotificationManager, in onPostExecute()
350 mNotificationManager.notify(R.id.notification_screenshot, mNotificationBuilder.build()); in onPostExecute()
366 mNotificationManager.cancel(R.id.notification_screenshot); in onCancelled()
414 private NotificationManager mNotificationManager; field in GlobalScreenshot
476 mNotificationManager = in GlobalScreenshot()
522 mSaveInBgTask = new SaveImageInBackgroundTask(mContext, data, mNotificationManager) in saveScreenshotInWorkerThread()
564 notifyScreenshotError(mContext, mNotificationManager, in takeScreenshot()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java95 private NotificationManager mNotificationManager; field in UiModeManagerService
639 if (mNotificationManager == null) { in adjustStatusBarCarModeLocked()
640 mNotificationManager = (NotificationManager) in adjustStatusBarCarModeLocked()
644 if (mNotificationManager != null) { in adjustStatusBarCarModeLocked()
662 mNotificationManager.notifyAsUser(null, in adjustStatusBarCarModeLocked()
665 mNotificationManager.cancelAsUser(null, in adjustStatusBarCarModeLocked()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java61 private final NotificationManager mNotificationManager; field in SeekBarVolumizer
93 mNotificationManager = context.getSystemService(NotificationManager.class); in SeekBarVolumizer()
100 mZenMode = mNotificationManager.getZenMode(); in SeekBarVolumizer()
427 mZenMode = mNotificationManager.getZenMode();
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java140 private NotificationManager mNotificationManager; field in UsbDeviceManager
229 mNotificationManager = (NotificationManager) in systemReady()
782 if (mNotificationManager == null || !mUseUsbNotification
816 mNotificationManager.cancelAsUser(null, mUsbNotificationId,
845 mNotificationManager.notifyAsUser(null, id, notification,
853 if (mNotificationManager == null) return;
885 mNotificationManager.notifyAsUser(null, id, notification,
890 mNotificationManager.cancelAsUser(null, id, UserHandle.ALL);
/frameworks/base/docs/html/training/notify-user/
Dnavigation.jd110 NotificationManager mNotificationManager =
112 mNotificationManager.notify(id, builder.build());
220 NotificationManager mNotificationManager =
224 mNotificationManager.notify(id, builder.build());
Dmanaging.jd62 mNotificationManager =
77 mNotificationManager.notify(
/frameworks/base/docs/html-intl/intl/ko/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());
/frameworks/base/docs/html-intl/intl/ru/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());
/frameworks/base/docs/html-intl/intl/ja/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxService.java64 NotificationManager mNotificationManager; field in BordeauxService
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java891 NotificationManager mNotificationManager = in showNewMessageNotification() local
893 mNotificationManager.notify( in showNewMessageNotification()
898 NotificationManager mNotificationManager = in cancelNewMessageNotification() local
900 mNotificationManager.cancel(InboundSmsHandler.NOTIFICATION_TAG, in cancelNewMessageNotification()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java214 return mNotificationManager; in getSystemService()
452 private final NotificationManager mNotificationManager = mock(NotificationManager.class); field in ContextFixture
/frameworks/base/docs/html-intl/intl/in/guide/topics/ui/notifiers/
Dnotifications.jd219 NotificationManager mNotificationManager =
222 mNotificationManager.notify(mId, mBuilder.build());
347 mNotificationManager =
362 mNotificationManager.notify(
565 NotificationManager mNotificationManager =
567 mNotificationManager.notify(id, builder.build());
678 NotificationManager mNotificationManager =
682 mNotificationManager.notify(id, builder.build());

12