Home
last modified time | relevance | path

Searched refs:mNotifManager (Results 1 – 3 of 3) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java70 private final NotificationManager mNotifManager; field in DownloadNotifier
97 mNotifManager = context.getSystemService(NotificationManager.class); in DownloadNotifier()
100 mNotifManager.createNotificationChannel(new NotificationChannel(CHANNEL_ACTIVE, in DownloadNotifier()
103 mNotifManager.createNotificationChannel(new NotificationChannel(CHANNEL_WAITING, in DownloadNotifier()
106 mNotifManager.createNotificationChannel(new NotificationChannel(CHANNEL_COMPLETE, in DownloadNotifier()
114 final StatusBarNotification[] notifs = mNotifManager.getActiveNotifications(); in init()
383 mNotifManager.notify(tag, 0, notif); in updateWithLocked()
392 mNotifManager.cancel(tag, 0); in updateWithLocked()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java76 private NotificationManager mNotifManager; field in PublicApiFunctionalTest
87 mNotifManager = getContext().getSystemService(NotificationManager.class); in setUp()
580 verify(mNotifManager, times(1)).cancel("tag", 0); in testNotificationCancelDownloadClicked()
653 verify(mNotifManager, never()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationNever()
665 verify(mNotifManager, atLeastOnce()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationVisible()
677 verify(mNotifManager, atLeastOnce()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationVisibleComplete()
DAbstractDownloadProviderFunctionalTest.java141 private final NotificationManager mNotifManager; field in AbstractDownloadProviderFunctionalTest.TestContext
148 mNotifManager = mock(NotificationManager.class); in TestContext()
167 return mNotifManager; in getSystemService()