Searched refs:mNotifManager (Results 1 – 5 of 5) sorted by relevance
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadNotifier.java | 70 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() 387 mNotifManager.notify(tag, 0, notif); in updateWithLocked() 396 mNotifManager.cancel(tag, 0); in updateWithLocked()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkPolicyManagerServiceTest.java | 258 private @Mock NotificationManager mNotifManager; field in NetworkPolicyManagerServiceTest 373 return mNotifManager; in callSystemReady() 1167 reset(mTelephonyManager, mNetworkManager, mNotifManager); 1184 reset(mTelephonyManager, mNetworkManager, mNotifManager); 1202 reset(mTelephonyManager, mNetworkManager, mNotifManager); 1221 reset(mTelephonyManager, mNetworkManager, mNotifManager); 1234 reset(mTelephonyManager, mNetworkManager, mNotifManager); 1291 reset(mNotifManager); 1310 reset(mNotifManager); 1336 reset(mNotifManager); [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/storage/ |
H A D | DeviceStorageMonitorService.java | 88 private NotificationManager mNotifManager; field in DeviceStorageMonitorService 264 mNotifManager = context.getSystemService(NotificationManager.class); in onStart() 274 mNotifManager.createNotificationChannel(new NotificationChannel( in onStart() 494 mNotifManager.notifyAsUser(uuid.toString(), SystemMessage.NOTE_LOW_STORAGE, in updateNotifications() 500 mNotifManager.cancelAsUser(uuid.toString(), SystemMessage.NOTE_LOW_STORAGE, in updateNotifications()
|
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | AbstractDownloadProviderFunctionalTest.java | 141 private final NotificationManager mNotifManager; field in AbstractDownloadProviderFunctionalTest.TestContext 148 mNotifManager = mock(NotificationManager.class); in TestContext() 167 return mNotifManager; in getSystemService()
|
H A D | PublicApiFunctionalTest.java | 76 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()
|