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.java74 private NotificationManager mNotifManager; field in PublicApiFunctionalTest
85 mNotifManager = getContext().getSystemService(NotificationManager.class); in setUp()
572 verify(mNotifManager, times(1)).cancel("tag", 0); in testNotificationCancelDownloadClicked()
645 verify(mNotifManager, never()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationNever()
657 verify(mNotifManager, atLeastOnce()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationVisible()
669 verify(mNotifManager, atLeastOnce()).notify(anyString(), anyInt(), isA(Notification.class)); in testNotificationVisibleComplete()
DAbstractDownloadProviderFunctionalTest.java104 private final NotificationManager mNotifManager; field in AbstractDownloadProviderFunctionalTest.TestContext
111 mNotifManager = mock(NotificationManager.class); in TestContext()
130 return mNotifManager; in getSystemService()