/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | OpenNetworkNotifierTest.java | 82 @Mock private NotificationManager mNotificationManager; field in OpenNetworkNotifierTest 100 .thenReturn(mNotificationManager); in setUp() 166 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 176 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 189 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 204 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 208 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_emptyList_notificationCleared() 223 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 228 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 243 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [all …]
|
D | CarrierNetworkNotifierTest.java | 83 @Mock private NotificationManager mNotificationManager; field in CarrierNetworkNotifierTest 101 .thenReturn(mNotificationManager); in setUp() 167 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasCarrierNetworks_notificationDisplayed() 177 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 190 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 205 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 209 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_emptyList_notificationCleared() 224 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 229 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 244 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [all …]
|
D | WakeupOnboardingTest.java | 56 @Mock private NotificationManager mNotificationManager; field in WakeupOnboardingTest 75 .thenReturn(mNotificationManager); in setUp() 90 verify(mNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded() 101 verify(mNotificationManager, never()) in doesNotShowNotificationIfAlreadyOnboarded() 114 InOrder inOrder = Mockito.inOrder(mNotificationManager); in doesNotShowNotificationIfAlreadyShowing() 115 inOrder.verify(mNotificationManager) in doesNotShowNotificationIfAlreadyShowing() 136 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in dismissNotificationAction_setsOnboarded() 160 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() 183 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() 198 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in onStopDismissesNotificationWithoutOnboarding() [all …]
|
D | WrongPasswordNotifierTest.java | 46 @Mock NotificationManager mNotificationManager; field in WrongPasswordNotifierTest 58 .thenReturn(mNotificationManager); in setUp() 75 verify(mNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any()); in onWrongPasswordError() 92 reset(mNotificationManager); in onNewConnectionAttemptWithPreviousWrongPasswordError() 95 verify(mNotificationManager).cancel(any(), eq(WrongPasswordNotifier.NOTIFICATION_ID)); in onNewConnectionAttemptWithPreviousWrongPasswordError() 107 verify(mNotificationManager, never()).cancel(any(), anyInt()); in onNewConnectionAttemptWithoutPreviousWrongPasswordError()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 75 @Mock NotificationManager mNotificationManager; field in NetworkNotificationManagerTest 97 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); in setUp() 125 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared() 126 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared() 135 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular() 141 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular() 152 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability() 162 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn() 167 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn() 169 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn() [all …]
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
D | NotificationStressTest.java | 62 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/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierServiceStateTrackerTest.java | 65 NotificationManager mNotificationManager; field in CarrierServiceStateTrackerTest 108 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp() 135 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testCancelBothNotifications() 138 verify(mNotificationManager).cancel( in testCancelBothNotifications() 140 verify(mNotificationManager).cancel( in testCancelBothNotifications() 155 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testSendBothNotifications() 158 verify(mNotificationManager).notify( in testSendBothNotifications() 160 verify(mNotificationManager).notify( in testSendBothNotifications() 192 verify(mNotificationManager).notify( in testSendPrefNetworkNotification() 200 verify(mNotificationManager, atLeast(1)).cancel( in testSendPrefNetworkNotification()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AlertWindowNotification.java | 55 private final NotificationManager mNotificationManager; field in AlertWindowNotification 63 mNotificationManager = in AlertWindowNotification() 90 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID); in onCancelNotification() 92 mNotificationManager.deleteNotificationChannel(mNotificationTag); in onCancelNotification() 136 mNotificationManager.notify(mNotificationTag, NOTIFICATION_ID, builder.build()); in onPostNotification() 152 mNotificationManager.createNotificationChannelGroup(sChannelGroup); in createNotificationChannel() 158 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag); in createNotificationChannel() 168 mNotificationManager.createNotificationChannel(channel); in createNotificationChannel()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDocumentsService.java | 43 private NotificationManager mNotificationManager; field in MtpDocumentsService 54 mNotificationManager = getSystemService(NotificationManager.class); in onCreate() 93 mNotificationManager.notify(ids[i], notifications[i]); in updateForegroundState() 99 mNotificationManager.getActiveNotifications(); in updateForegroundState() 102 mNotificationManager.cancel(notification.getId()); in updateForegroundState()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WrongPasswordNotifier.java | 46 private final NotificationManager mNotificationManager; field in WrongPasswordNotifier 52 mNotificationManager = in WrongPasswordNotifier() 97 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in showNotification() 108 mNotificationManager.cancel(null, NOTIFICATION_ID); in dismissNotification()
|
D | WakeupOnboarding.java | 57 private NotificationManager mNotificationManager; field in WakeupOnboarding 190 if (mNotificationManager == null) { in getNotificationManager() 191 mNotificationManager = (NotificationManager) in getNotificationManager() 194 return mNotificationManager; in getNotificationManager()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 50 private NotificationManager mNotificationManager; field in LeakReporterTest 58 mNotificationManager = mock(NotificationManager.class); in setup() 59 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup() 81 verify(mNotificationManager).notify(any(), anyInt(), any()); in testDump_postsNotification()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 60 private NotificationManager mNotificationManager; field in EnableZenModeDialogTest 84 doReturn(alarmsEnabledPolicy).when(mNotificationManager).getNotificationPolicy(); in setup() 85 mController.mNotificationManager = mNotificationManager; in setup() 169 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testNoAlarmWarning() 185 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testAlarmWarning()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 32 private NotificationManager mNotificationManager; field in MockLockSettingsContext 44 mNotificationManager = notificationManager; in MockLockSettingsContext() 56 return mNotificationManager; in getSystemService()
|
/frameworks/support/media/src/androidTest/java/androidx/media/ |
D | MockMediaSessionService2.java | 41 private NotificationManager mNotificationManager; field in MockMediaSessionService2 47 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate() 85 mNotificationManager.createNotificationChannel(mDefaultNotificationChannel); in onUpdateNotification()
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
D | MediaNotificationManager.java | 66 private NotificationManagerCompat mNotificationManager; field in MediaNotificationManager 84 mNotificationManager = NotificationManagerCompat.from(mService); in MediaNotificationManager() 98 mNotificationManager.cancelAll(); in MediaNotificationManager() 137 mNotificationManager.cancel(NOTIFICATION_ID); in stopNotification() 210 mNotificationManager.notify(NOTIFICATION_ID, notification); 221 mNotificationManager.notify(NOTIFICATION_ID, notification); 346 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in fetchBitmapFromURLAsync()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | StatusBarTest.java | 35 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/ |
D | FixVibrateSetting.java | 33 NotificationManager mNotificationManager; field in FixVibrateSetting 46 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); in onCreate() 126 mNotificationManager.notify(1, n); in test()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 60 private NotificationManager mNotificationManager; field in StorageNotification 93 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, 122 mNotificationManager.cancelAsUser(null, SystemMessage.NOTE_STORAGE_MOVE, 159 mNotificationManager = mContext.getSystemService(NotificationManager.class); in start() 199 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes() 224 mNotificationManager.notifyAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes() 252 mNotificationManager.notifyAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 257 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 268 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskDestroyedInternal() 325 mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC, in onPublicVolumeStateChangedInternal() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
D | PipNotification.java | 56 private final NotificationManager mNotificationManager; field in PipNotification 149 mNotificationManager = (NotificationManager) context.getSystemService( in PipNotification() 197 mNotificationManager.notify(NOTIFICATION_TAG, SystemMessage.NOTE_TV_PIP, in notifyPipNotification() 203 mNotificationManager.cancel(NOTIFICATION_TAG, SystemMessage.NOTE_TV_PIP); in dismissPipNotification()
|
/frameworks/av/packages/MediaComponents/src/com/android/media/ |
D | MediaSessionService2Impl.java | 48 private NotificationManager mNotificationManager; field in MediaSessionService2Impl 81 mNotificationManager = (NotificationManager) mInstance.getSystemService( in onCreate_impl() 134 mNotificationManager.notify(mediaNotification.getNotificationId(), in updateNotification()
|
/frameworks/support/compat/src/main/java/androidx/core/app/ |
D | NotificationManagerCompat.java | 104 private final NotificationManager mNotificationManager; field in NotificationManagerCompat 158 mNotificationManager = (NotificationManager) mContext.getSystemService( in NotificationManagerCompat() 176 mNotificationManager.cancel(tag, id); in cancel() 184 mNotificationManager.cancelAll(); in cancelAll() 210 mNotificationManager.cancel(tag, id); in notify() 212 mNotificationManager.notify(tag, id, notification); in notify() 221 return mNotificationManager.areNotificationsEnabled(); in areNotificationsEnabled() 252 return mNotificationManager.getImportance(); in getImportance()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | NotificationController.java | 68 private final NotificationManager mNotificationManager; field in NotificationController 77 mNotificationManager = (NotificationManager) in NotificationController() 81 mNotificationManager.createNotificationChannel( in NotificationController() 85 mNotificationManager.createNotificationChannel( in NotificationController() 131 mNotificationManager.cancel(removedPrintJob.flattenToString(), 0); in updateNotifications() 219 mNotificationManager.notify(printJob.getId().flattenToString(), 0, builder.build()); in createNotification()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 62 private final NotificationManager mNotificationManager; field in SeekBarVolumizer 99 mNotificationManager = context.getSystemService(NotificationManager.class); in SeekBarVolumizer() 100 mNotificationPolicy = mNotificationManager.getNotificationPolicy(); in SeekBarVolumizer() 113 mZenMode = mNotificationManager.getZenMode(); in SeekBarVolumizer() 451 mZenMode = mNotificationManager.getZenMode(); in onReceive() 454 mNotificationPolicy = mNotificationManager.getNotificationPolicy(); in onReceive()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkNotificationManager.java | 74 private final NotificationManager mNotificationManager; field in NetworkNotificationManager 81 mNotificationManager = n; in NetworkNotificationManager() 236 mNotificationManager.notifyAsUser(tag, eventId, notification, UserHandle.ALL); in showNotification() 253 mNotificationManager.cancelAsUser(tag, eventId, UserHandle.ALL); in clearNotification()
|