Home
last modified time | relevance | path

Searched refs:mNotificationManager (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java82 @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 …]
DCarrierNetworkNotifierTest.java83 @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 …]
DWakeupOnboardingTest.java56 @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 …]
DWrongPasswordNotifierTest.java46 @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/
DNetworkNotificationManagerTest.java75 @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/
DNotificationStressTest.java62 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/
DCarrierServiceStateTrackerTest.java65 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/
DAlertWindowNotification.java55 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/
DMtpDocumentsService.java43 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/
DWrongPasswordNotifier.java46 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()
DWakeupOnboarding.java57 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/
DLeakReporterTest.java50 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/
DEnableZenModeDialogTest.java60 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/
DMockLockSettingsContext.java32 private NotificationManager mNotificationManager; field in MockLockSettingsContext
44 mNotificationManager = notificationManager; in MockLockSettingsContext()
56 return mNotificationManager; in getSystemService()
/frameworks/support/media/src/androidTest/java/androidx/media/
DMockMediaSessionService2.java41 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/
DMediaNotificationManager.java66 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/
DStatusBarTest.java35 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/
DFixVibrateSetting.java33 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/
DStorageNotification.java60 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/
DPipNotification.java56 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/
DMediaSessionService2Impl.java48 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/
DNotificationManagerCompat.java104 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/
DNotificationController.java68 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/
DSeekBarVolumizer.java62 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/
DNetworkNotificationManager.java74 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()

12