Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
H A DCsdWarningDialogTest.java48 private NotificationManager mNotificationManager; field in CsdWarningDialogTest
53 mNotificationManager = mock(NotificationManager.class); in setup()
54 getContext().addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
65 mAudioManager, mNotificationManager, executor, null); in create1XCsdDialogAndWait_sendsNotification()
72 verify(mNotificationManager).notify( in create1XCsdDialogAndWait_sendsNotification()
80 mAudioManager, mNotificationManager, executor, null); in create5XCsdDiSalogAndWait_willSendNotification()
84 verify(mNotificationManager).notify( in create5XCsdDiSalogAndWait_willSendNotification()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
H A DDeviceStateNotificationControllerTest.java127 packageManager, mNotificationManager); in setup()
136 verify(mNotificationManager).notify( in test_activeNotification()
156 verify(mNotificationManager).cancel( in test_activeNotification()
166 verify(mNotificationManager).notify( in test_powerSaveNotification()
176 Mockito.clearInvocations(mNotificationManager); in test_powerSaveNotification()
181 verify(mNotificationManager).notify( in test_powerSaveNotification()
192 verify(mNotificationManager).cancel( in test_powerSaveNotification()
202 verify(mNotificationManager).notify( in test_thermalNotification()
212 Mockito.clearInvocations(mNotificationManager); in test_thermalNotification()
217 verify(mNotificationManager).notify( in test_thermalNotification()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DBiometricNotificationServiceTest.java72 NotificationManager mNotificationManager; field in BiometricNotificationServiceTest
112 mNotificationManager, in setUp()
157 verify(mNotificationManager).notifyAsUser(eq(TAG), eq(FINGERPRINT_NOTIFICATION_ID), in testShowFingerprintReEnrollNotification_onAcquiredReEnroll()
179 verify(mNotificationManager).notifyAsUser(eq(TAG), eq(FACE_NOTIFICATION_ID), in testShowFaceReEnrollNotification_onErrorReEnroll()
202 verify(mNotificationManager).notifyAsUser(eq(TAG), eq(FACE_NOTIFICATION_ID), in testCancelReEnrollmentNotification_onFaceEnrollmentStateChange()
208 verify(mNotificationManager).cancelAsUser(eq(TAG), eq(FACE_NOTIFICATION_ID), in testCancelReEnrollmentNotification_onFaceEnrollmentStateChange()
226 verify(mNotificationManager).notifyAsUser(eq(TAG), eq(FINGERPRINT_NOTIFICATION_ID), in testCancelReEnrollmentNotification_onFingerprintEnrollmentStateChange()
232 verify(mNotificationManager).cancelAsUser(eq(TAG), eq(FINGERPRINT_NOTIFICATION_ID), in testCancelReEnrollmentNotification_onFingerprintEnrollmentStateChange()
252 verify(mNotificationManager, never()).notifyAsUser(eq(TAG), eq(FACE_NOTIFICATION_ID), in testResetFaceUnlockReEnroll_onStart()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A 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()
/aosp14/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DSlicePurchaseBroadcastReceiverTest.java80 @Mock NotificationManager mNotificationManager; field in SlicePurchaseBroadcastReceiverTest
93 doReturn(mNotificationManager).when(mContext) in setUp()
95 doReturn(true).when(mNotificationManager).areNotificationsEnabled(); in setUp()
203 verify(mNotificationManager).notifyAsUser( in testDisplayPerformanceBoostNotification()
272 verify(mNotificationManager).cancelAsUser( in testNotificationCanceled()
290 verify(mNotificationManager).cancelAsUser( in testNotificationTimeout()
304 clearInvocations(mNotificationManager); in testLocaleChanged()
319 verify(mNotificationManager).cancelAsUser( in testLocaleChanged()
323 verify(mNotificationManager).notifyAsUser( in testLocaleChanged()
348 doReturn(false).when(mNotificationManager).areNotificationsEnabled(); in testNotificationsDisabled()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DBiometricNotificationService.java73 private final NotificationManager mNotificationManager; field in BiometricNotificationService
131 mNotificationManager.cancelAsUser(TAG, FACE_NOTIFICATION_ID, UserHandle.CURRENT);
138 mNotificationManager.cancelAsUser(TAG, FINGERPRINT_NOTIFICATION_ID, UserHandle.CURRENT);
155 mNotificationManager = notificationManager; in BiometricNotificationService()
219 if (mNotificationManager == null) { in showNotification()
242 mNotificationManager.createNotificationChannel(mNotificationChannel); in showNotification()
243 mNotificationManager.notifyAsUser(TAG, notificationId, notification, UserHandle.CURRENT); in showNotification()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A 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()
/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
H A DNotificationTest.java87 private NotificationManager mNotificationManager; field in NotificationTest
94 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp()
104 mNotificationManager.cancelAll(); in tearDown()
139 mNotificationManager.createNotificationChannel(channel); in postMessagingNotification()
160 mNotificationManager.notify(NOTIFICATION_ID, notification); in postMessagingNotification()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
H A 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()
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A 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);
/aosp14/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
H A DFixVibrateSetting.java33 NotificationManager mNotificationManager; field in FixVibrateSetting
46 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); in onCreate()
126 mNotificationManager.notify(1, n); in test()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotNotificationsController.java47 private final NotificationManager mNotificationManager; field in ScreenshotNotificationsController
53 mNotificationManager = in ScreenshotNotificationsController()
94 mNotificationManager.notify(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT, n); in notifyScreenshotError()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockLockSettingsContext.java43 private final NotificationManager mNotificationManager; field in MockLockSettingsContext
62 mNotificationManager = notificationManager; in MockLockSettingsContext()
87 return mNotificationManager; in getSystemService()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A 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 …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DGuestSessionNotification.java42 private final NotificationManager mNotificationManager; field in GuestSessionNotification
48 mNotificationManager = notificationManager; in GuestSessionNotification()
121 mNotificationManager.notifyAsUser(null, in createPersistentNotification()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
H A 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()
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A DPackageInstalledNotificationUtils.java53 private final NotificationManager mNotificationManager; field in PackageInstalledNotificationUtils
69 mNotificationManager = context.getSystemService(NotificationManager.class); in PackageInstalledNotificationUtils()
225 mNotificationManager.createNotificationChannel(channel); in createChannel()
340 mNotificationManager.notify(mInstalledPackage, mInstalledPackage.hashCode(), in postAppInstalledNotification()
345 mNotificationManager.notify(mInstallerPackage, mInstallerPackage.hashCode(), in postAppInstalledNotification()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DRecordingService.java90 private final NotificationManager mNotificationManager; field in RecordingService
103 mNotificationManager = notificationManager; in RecordingService()
144 mNotificationManager.createNotificationChannel(channel); in onStartCommand()
213 mNotificationManager.cancelAsUser(null, mNotificationId, currentUser); in onStartCommand()
405 mNotificationManager.notifyAsUser(TAG, NOTIF_BASE_ID, groupNotif, currentUser); in postGroupNotification()
447 mNotificationManager.notifyAsUser(null, mNotificationId, in saveRecording()
455 mNotificationManager.notifyAsUser(null, mNotificationId, notification, in saveRecording()
460 mNotificationManager.cancelAsUser(null, mNotificationId, currentUser); in saveRecording()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/toast/
H A DToastRecord.java38 protected final NotificationManagerService mNotificationManager; field in ToastRecord
44 this.mNotificationManager = notificationManager; in ToastRecord()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
H A DPluginActionManager.java67 private final NotificationManager mNotificationManager; field in PluginActionManager
102 mNotificationManager = notificationManager; in PluginActionManager()
364 mNotificationManager.notify(SystemMessage.NOTE_PLUGIN, nb.build()); in reportInvalidVersion()
377 private final NotificationManager mNotificationManager; field in PluginActionManager.Factory
390 mNotificationManager = notificationManager; in Factory()
401 debuggable, mNotificationManager, mPluginEnabler, in create()

123