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.java71 private final NotificationManager mNotifManager; field in DownloadNotifier
98 mNotifManager = context.getSystemService(NotificationManager.class); in DownloadNotifier()
105 mNotifManager.createNotificationChannel(activeNotifChannel); in DownloadNotifier()
111 mNotifManager.createNotificationChannel(waitingNotifChannel); in DownloadNotifier()
117 mNotifManager.createNotificationChannel(completedNotifChannel); in DownloadNotifier()
123 final StatusBarNotification[] notifs = mNotifManager.getActiveNotifications(); in init()
403 mNotifManager.notify(tag, 0, notif); in updateWithLocked()
412 mNotifManager.cancel(tag, 0); in updateWithLocked()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java141 private final NotificationManager mNotifManager; field in AbstractDownloadProviderFunctionalTest.TestContext
148 mNotifManager = mock(NotificationManager.class); in TestContext()
167 return mNotifManager; in getSystemService()
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()