/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | OpenNetworkNotifierTest.java | 88 @Mock private NotificationManager mNotificationManager; field in OpenNetworkNotifierTest 104 .thenReturn(mNotificationManager); in setUp() 171 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 181 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 194 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 209 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 213 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_emptyList_notificationCleared() 228 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 233 verify(mNotificationManager).cancel(anyInt()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 248 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [all …]
|
D | WakeupOnboardingTest.java | 59 @Mock private NotificationManager mNotificationManager; field in WakeupOnboardingTest 78 .thenReturn(mNotificationManager); in setUp() 93 verify(mNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded() 104 verify(mNotificationManager, never()) in doesNotShowNotificationIfAlreadyOnboarded() 117 InOrder inOrder = Mockito.inOrder(mNotificationManager); in doesNotShowNotificationIfAlreadyShowing() 118 inOrder.verify(mNotificationManager) in doesNotShowNotificationIfAlreadyShowing() 139 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in dismissNotificationAction_setsOnboarded() 163 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() 186 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() 201 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in onStopDismissesNotificationWithoutOnboarding() [all …]
|
D | EapFailureNotifierTest.java | 52 @Mock NotificationManager mNotificationManager; field in EapFailureNotifierTest 80 .thenReturn(mNotificationManager); in setUp() 116 when(mNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErroCodeWithoutNotificationShown() 119 verify(mNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErroCodeWithoutNotificationShown() 141 when(mNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid() 145 verify(mNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid() 167 when(mNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErroCodeWithNotificationShownWithSameSsid() 187 when(mNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithUnDefinedErrorCode()
|
D | WrongPasswordNotifierTest.java | 60 @Mock NotificationManager mNotificationManager; field in WrongPasswordNotifierTest 80 .thenReturn(mNotificationManager); in setUp() 115 verify(mNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any()); in onWrongPasswordError() 133 reset(mNotificationManager); in onNewConnectionAttemptWithPreviousWrongPasswordError() 136 verify(mNotificationManager).cancel(any(), eq(WrongPasswordNotifier.NOTIFICATION_ID)); in onNewConnectionAttemptWithPreviousWrongPasswordError() 148 verify(mNotificationManager, never()).cancel(any(), anyInt()); in onNewConnectionAttemptWithoutPreviousWrongPasswordError()
|
D | SoftApNotifierTest.java | 50 @Mock NotificationManager mNotificationManager; field in SoftApNotifierTest 62 .thenReturn(mNotificationManager); in setUp() 78 verify(mNotificationManager).notify( in showSoftApShutDownTimeoutExpiredNotification() 95 verify(mNotificationManager).cancel(any(), in dismissSoftApShutDownTimeoutExpiredNotification()
|
D | ConnectionFailureNotifierTest.java | 62 @Mock private NotificationManager mNotificationManager; field in ConnectionFailureNotifierTest 79 when(mWifiInjector.getNotificationManager()).thenReturn(mNotificationManager); in setUp() 129 verify(mNotificationManager).notify( in testConnectionFailureSendRandomizationSettingsNotification() 165 verify(mNotificationManager).notify( in testWifiConfigurationMismatch()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 84 @Mock NotificationManager mNotificationManager; field in NetworkNotificationManagerTest 110 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); in setUp() 116 verify(mNotificationManager, times(1)) in verifyTitleByNetwork() 167 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared() 168 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared() 177 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular() 183 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular() 194 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability() 204 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn() 209 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 | 62 NotificationManager mNotificationManager; field in CarrierServiceStateTrackerTest 75 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp() 99 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testCancelBothNotifications() 102 verify(mNotificationManager).cancel( in testCancelBothNotifications() 104 verify(mNotificationManager).cancel( in testCancelBothNotifications() 120 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testSendBothNotifications() 123 verify(mNotificationManager).notify( in testSendBothNotifications() 126 verify(mNotificationManager).notify( in testSendBothNotifications() 159 verify(mNotificationManager, atLeast(1)).notify( in testSendPrefNetworkNotification() 169 verify(mNotificationManager, atLeast(1)).cancel( in testSendPrefNetworkNotification() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AlertWindowNotification.java | 54 private final NotificationManager mNotificationManager; field in AlertWindowNotification 62 mNotificationManager = in AlertWindowNotification() 89 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID); in onCancelNotification() 91 mNotificationManager.deleteNotificationChannel(mNotificationTag); in onCancelNotification() 135 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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SoftApNotifier.java | 45 private final NotificationManager mNotificationManager; field in SoftApNotifier 50 mNotificationManager = in SoftApNotifier() 58 mNotificationManager.notify(NOTIFICATION_ID_SOFTAP_AUTO_DISABLED, in showSoftApShutDownTimeoutExpiredNotification() 67 mNotificationManager.cancel(null, NOTIFICATION_ID_SOFTAP_AUTO_DISABLED); in dismissSoftApShutDownTimeoutExpiredNotification()
|
D | SimRequiredNotifier.java | 37 private final NotificationManager mNotificationManager; field in SimRequiredNotifier 42 mNotificationManager = in SimRequiredNotifier() 56 mNotificationManager.notify(SystemMessage.NOTE_ID_WIFI_SIM_REQUIRED, in showSimRequiredNotification() 64 mNotificationManager.cancel(null, SystemMessage.NOTE_ID_WIFI_SIM_REQUIRED); in dismissSimRequiredNotification()
|
D | WrongPasswordNotifier.java | 54 private final NotificationManager mNotificationManager; field in WrongPasswordNotifier 60 mNotificationManager = in WrongPasswordNotifier() 122 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in showNotification() 133 mNotificationManager.cancel(null, NOTIFICATION_ID); in dismissNotification()
|
D | EapFailureNotifier.java | 45 private final NotificationManager mNotificationManager; field in EapFailureNotifier 58 mNotificationManager = in EapFailureNotifier() 68 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in onEapFailure() 116 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in showNotification()
|
D | WakeupOnboarding.java | 56 private NotificationManager mNotificationManager; field in WakeupOnboarding 189 if (mNotificationManager == null) { in getNotificationManager() 190 mNotificationManager = (NotificationManager) in getNotificationManager() 193 return mNotificationManager; in getNotificationManager()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 51 private NotificationManager mNotificationManager; field in LeakReporterTest 59 mNotificationManager = mock(NotificationManager.class); in setup() 60 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup() 82 verify(mNotificationManager).notify(any(), anyInt(), any()); in testDump_postsNotification()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 59 private NotificationManager mNotificationManager; field in EnableZenModeDialogTest 83 doReturn(alarmsEnabledPolicy).when(mNotificationManager).getNotificationPolicy(); in setup() 84 mController.mNotificationManager = mNotificationManager; in setup() 168 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testNoAlarmWarning() 184 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testAlarmWarning()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | RecordingService.java | 82 private final NotificationManager mNotificationManager; field in RecordingService 92 mNotificationManager = notificationManager; in RecordingService() 163 mNotificationManager.cancel(NOTIFICATION_RECORDING_ID); in onStartCommand() 179 mNotificationManager.cancelAsUser(null, NOTIFICATION_VIEW_ID, currentUser); in onStartCommand() 198 mNotificationManager.cancelAsUser(null, NOTIFICATION_VIEW_ID, currentUser); in onStartCommand() 247 mNotificationManager.createNotificationChannel(channel); in createRecordingNotification() 361 mNotificationManager.notifyAsUser(null, NOTIFICATION_PROCESSING_ID, in saveRecording() 369 mNotificationManager.notifyAsUser(null, NOTIFICATION_VIEW_ID, notification, in saveRecording() 377 mNotificationManager.cancelAsUser(null, NOTIFICATION_PROCESSING_ID, currentUser); in saveRecording()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 34 private NotificationManager mNotificationManager; field in MockLockSettingsContext 50 mNotificationManager = notificationManager; in MockLockSettingsContext() 65 return mNotificationManager; in getSystemService()
|
/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/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotNotificationsController.java | 54 private final NotificationManager mNotificationManager; field in ScreenshotNotificationsController 66 mNotificationManager = in ScreenshotNotificationsController() 178 mNotificationManager.notify(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT, in showSavingScreenshotNotification() 224 mNotificationManager.notify(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT, in showScreenshotActionsNotification() 262 mNotificationManager.notify(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT, n); in notifyScreenshotError() 269 mNotificationManager.cancel(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT); in cancelNotification()
|
/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/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 55 @Mock private NotificationManager mNotificationManager; field in NotificationListenerTest 67 mNotificationManager, in setUp() 103 when(mNotificationManager.shouldHideSilentStatusBarIcons()).thenReturn(true); in testOnConnectReadStatusBarSetting()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 60 private NotificationManager mNotificationManager; field in StorageNotification 97 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, 126 mNotificationManager.cancelAsUser(null, SystemMessage.NOTE_STORAGE_MOVE, 163 mNotificationManager = mContext.getSystemService(NotificationManager.class); in start() 204 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes() 229 mNotificationManager.notifyAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes() 257 mNotificationManager.notifyAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 262 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 273 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskDestroyedInternal() 340 mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC, in onPublicVolumeStateChangedInternal() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/toast/ |
D | ToastRecord.java | 37 protected final NotificationManagerService mNotificationManager; field in ToastRecord 42 this.mNotificationManager = notificationManager; in ToastRecord()
|