Home
last modified time | relevance | path

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

123

/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
DBubbleHelper.java45 private NotificationManager mNotificationManager; field in BubbleHelper
74 mNotificationManager = context.getSystemService(NotificationManager.class); in BubbleHelper()
80 mNotificationManager.createNotificationChannel(channel); in BubbleHelper()
111 mNotificationManager.notify(info.id, notification); in addNewBubble()
152 mNotificationManager.cancel(id); in cancel()
156 mNotificationManager.cancelAll(); in cancelAll()
160 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in cancelLast()
162 mNotificationManager.cancel( in cancelLast()
168 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in cancelFirst()
170 mNotificationManager.cancel(activeNotifications[0].getId()); in cancelFirst()
DSendNotificationActivity.java29 private NotificationManager mNotificationManager; field in SendNotificationActivity
43 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
44 mNotificationManager.createNotificationChannel(mChannel); in onCreate()
59 mNotificationManager.notify(mNotifyId, notification); in sendNotification()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierServiceStateTrackerTest.java63 NotificationManager mNotificationManager; field in CarrierServiceStateTrackerTest
77 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
96 mNotificationManager = null; in tearDown()
107 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testCancelBothNotifications()
110 verify(mNotificationManager).cancel( in testCancelBothNotifications()
112 verify(mNotificationManager).cancel( in testCancelBothNotifications()
128 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); in testSendBothNotifications()
131 verify(mNotificationManager).notify( in testSendBothNotifications()
134 verify(mNotificationManager).notify( in testSendBothNotifications()
172 verify(mNotificationManager, atLeast(1)).notify( in testSendPrefNetworkNotification()
[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/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java54 private final NotificationManager mNotificationManager; field in AlertWindowNotification
61 mNotificationManager = in AlertWindowNotification()
87 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID); in onCancelNotification()
89 mNotificationManager.deleteNotificationChannel(mNotificationTag); in onCancelNotification()
134 mNotificationManager.notify(mNotificationTag, NOTIFICATION_ID, builder.build()); in onPostNotification()
151 mNotificationManager.createNotificationChannelGroup(sChannelGroup); in createNotificationChannel()
157 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag); in createNotificationChannel()
167 mNotificationManager.createNotificationChannel(channel); in createNotificationChannel()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationPromptControllerTest.java63 private NotificationManager mNotificationManager; field in WindowMagnificationPromptControllerTest
76 mTestableContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
92 verify(mNotificationManager).notify(eq(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE), any( in showNotificationIfNeeded_promptSettingsIsOn_showNotification()
103 verify(mNotificationManager).cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in tapTurnOnAction_isShown_cancelNotificationAndLaunchMagnificationSettings()
126 verify(mNotificationManager).cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in tapDismissAction_isShown_cancelNotificationAndUnregisterReceiver()
136 verify(mNotificationManager).cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in promptSettingsChangeToFalse_isShown_cancelNotificationAndUnregisterReceiver()
146 verify(mNotificationManager).cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in onDestroy_isShown_cancelNotificationAndUnregisterReceiver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakReporterTest.java56 private NotificationManager mNotificationManager; field in LeakReporterTest
67 mNotificationManager = mock(NotificationManager.class); in setup()
68 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
90 verify(mNotificationManager).notify(any(), anyInt(), any()); in testDump_postsNotification()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DPolicyWarningUIControllerTest.java85 private NotificationManager mNotificationManager; field in PolicyWarningUIControllerTest
100 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setUp()
124 verify(mNotificationManager).notify(eq(TEST_COMPONENT_NAME.flattenToShortString()), in receiveActionSendNotification_isNonA11yCategoryService_sendNotification()
138 verify(mNotificationManager, never()).notify(eq(TEST_COMPONENT_NAME.flattenToShortString()), in receiveActionSendNotification_sendNotificationDisabled_doNothing()
157 verify(mNotificationManager, never()).notify(eq(TEST_COMPONENT_NAME.flattenToShortString()), in receiveActionSendNotificationWithNotifiedService_doNothing()
169 verify(mNotificationManager).cancel(TEST_COMPONENT_NAME.flattenToShortString(), in receiveActionA11ySettings_launchA11ySettingsAndDismissNotification()
238 verify(mNotificationManager).cancel(TEST_COMPONENT_NAME2.flattenToShortString(), in onSwitchUserLocked_hasAlarmAndSentNotification_cancelNotification()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DNotificationTest.java87 private NotificationManager mNotificationManager; field in NotificationTest
94 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp()
104 mNotificationManager.cancelAll(); in tearDown()
131 mNotificationManager.createNotificationChannel(channel); in postMessagingNotification()
151 mNotificationManager.notify(NOTIFICATION_ID, notification); in postMessagingNotification()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationPromptController.java62 private final NotificationManager mNotificationManager; field in WindowMagnificationPromptController
73 mNotificationManager = context.getSystemService(NotificationManager.class); in WindowMagnificationPromptController()
96 mNotificationManager.cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in onPromptSettingsValueChanged()
122 mNotificationManager.notify(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE, in showNotificationIfNeeded()
180 mNotificationManager.cancel(NOTE_A11Y_WINDOW_MAGNIFICATION_FEATURE); in dismissNotification()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java61 private NotificationManager mNotificationManager; field in EnableZenModeDialogTest
87 doReturn(alarmsEnabledPolicy).when(mNotificationManager).getNotificationPolicy(); in setup()
88 mController.mNotificationManager = mNotificationManager; in setup()
172 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testNoAlarmWarning()
188 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testAlarmWarning()
/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/services/tests/servicestests/src/com/android/server/locksettings/
DMockLockSettingsContext.java39 private NotificationManager mNotificationManager; field in MockLockSettingsContext
55 mNotificationManager = notificationManager; in MockLockSettingsContext()
70 return mNotificationManager; in getSystemService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotNotificationsController.java47 private final NotificationManager mNotificationManager; field in ScreenshotNotificationsController
53 mNotificationManager = in ScreenshotNotificationsController()
94 mNotificationManager.notify(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT, n); in notifyScreenshotError()
/frameworks/base/services/core/java/com/android/server/notification/toast/
DToastRecord.java38 protected final NotificationManagerService mNotificationManager; field in ToastRecord
44 this.mNotificationManager = notificationManager; in ToastRecord()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java69 private final NotificationManager mNotificationManager; field in StorageNotification
81 mNotificationManager = notificationManager; in StorageNotification()
115 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE,
144 mNotificationManager.cancelAsUser(null, SystemMessage.NOTE_STORAGE_MOVE,
229 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes()
256 mNotificationManager.notifyAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE, in updateMissingPrivateVolumes()
284 mNotificationManager.notifyAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal()
289 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal()
300 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskDestroyedInternal()
367 mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC, in onPublicVolumeStateChangedInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestSessionNotification.java42 private final NotificationManager mNotificationManager; field in GuestSessionNotification
48 mNotificationManager = notificationManager; in GuestSessionNotification()
121 mNotificationManager.notifyAsUser(null, in createPersistentNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java90 private final NotificationManager mNotificationManager; field in RecordingService
102 mNotificationManager = notificationManager; in RecordingService()
203 mNotificationManager.cancelAsUser(null, NOTIFICATION_VIEW_ID, currentUser); in onStartCommand()
269 mNotificationManager.createNotificationChannel(channel); in createErrorNotification()
297 mNotificationManager.createNotificationChannel(channel); in createRecordingNotification()
431 mNotificationManager.notifyAsUser(null, NOTIFICATION_PROCESSING_ID, in saveRecording()
439 mNotificationManager.notifyAsUser(null, NOTIFICATION_VIEW_ID, notification, in saveRecording()
446 mNotificationManager.cancelAsUser(null, NOTIFICATION_PROCESSING_ID, currentUser); in saveRecording()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginActionManagerTest.java78 NotificationManager mNotificationManager; field in PluginActionManagerTest
100 mNotificationManager = mock(NotificationManager.class); in setup()
106 mFakeExecutor, mFakeExecutor, mNotificationManager, mMockEnabler, in setup()
179 mMockPm, mFakeExecutor, mFakeExecutor, mNotificationManager, in testNonDebuggable_privileged()
223 mMockPm, mFakeExecutor, mFakeExecutor, mNotificationManager, in testDisablePrivileged()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledNotificationUtils.java52 private final NotificationManager mNotificationManager; field in PackageInstalledNotificationUtils
68 mNotificationManager = context.getSystemService(NotificationManager.class); in PackageInstalledNotificationUtils()
224 mNotificationManager.createNotificationChannel(channel); in createChannel()
339 mNotificationManager.notify(mInstalledPackage, mInstalledPackage.hashCode(), in postAppInstalledNotification()
344 mNotificationManager.notify(mInstallerPackage, mInstallerPackage.hashCode(), in postAppInstalledNotification()
/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/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginActionManager.java67 private final NotificationManager mNotificationManager; field in PluginActionManager
102 mNotificationManager = notificationManager; in PluginActionManager()
363 mNotificationManager.notify(SystemMessage.NOTE_PLUGIN, nb.build()); in reportInvalidVersion()
376 private final NotificationManager mNotificationManager; field in PluginActionManager.Factory
389 mNotificationManager = notificationManager; in Factory()
400 debuggable, mNotificationManager, mPluginEnabler, in create()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java61 @NonNull private final NotificationManager mNotificationManager; field in LockdownVpnTracker
140 mNotificationManager = mContext.getSystemService(NotificationManager.class); in LockdownVpnTracker()
298 mNotificationManager.notify(null /* tag */, SystemMessage.NOTE_VPN_STATUS, in showNotification()
303 mNotificationManager.cancel(null, SystemMessage.NOTE_VPN_STATUS); in hideNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java58 @Mock private NotificationManager mNotificationManager; field in NotificationListenerTest
73 mNotificationManager, in setUp()
155 when(mNotificationManager.shouldHideSilentStatusBarIcons()).thenReturn(true); in testOnConnectReadStatusBarSetting()

123