Home
last modified time | relevance | path

Searched refs:notificationManager (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java124 NotificationManager notificationManager = in onStartCommand() local
158 saveRecording(notificationManager); in onStartCommand()
163 setNotificationActions(true, notificationManager); in onStartCommand()
168 setNotificationActions(false, notificationManager); in onStartCommand()
183 notificationManager.cancel(NOTIFICATION_ID); in onStartCommand()
202 notificationManager.cancel(NOTIFICATION_ID); in onStartCommand()
289 NotificationManager notificationManager = in createRecordingNotification() local
291 notificationManager.createNotificationChannel(channel); in createRecordingNotification()
298 setNotificationActions(false, notificationManager); in createRecordingNotification()
303 private void setNotificationActions(boolean isPaused, NotificationManager notificationManager) { in setNotificationActions() argument
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt82 @Mock private lateinit var notificationManager: NotificationManager variable in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
136 doReturn(notificationManager).`when`(mockContext) in setUp()
153 verify(notificationManager, never()).cancel(any(), eq(id)) in title()
156 verify(notificationManager, times(1)) in title()
164 reset(notificationManager) in title()
172 verify(notificationManager, times(1)).cancel(any(), eq(it)) in verifyNotificationCancelled()
174 if (resetAfterVerified) reset(notificationManager) in verifyNotificationCancelled()
194 verifyZeroInteractions(notificationManager) in testRestrictedNotification()
253 verifyZeroInteractions(notificationManager) in testNoUpstreamNotification()
323 verifyZeroInteractions(notificationManager) in testRoamingNotification()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockLockSettingsContext.java39 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext() argument
44 mNotificationManager = notificationManager; in MockLockSettingsContext()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java72 NotificationManager notificationManager = in onReceive() local
80 notificationManager.createNotificationChannel(uninstallFailureChannel); in onReceive()
87 notificationManager.cancel(uninstallId); in onReceive()
196 notificationManager.notify(uninstallId, uninstallFailedNotification.build()); in onReceive()
DUninstallerActivity.java345 NotificationManager notificationManager = getSystemService(NotificationManager.class); in startUninstallProgress() local
349 notificationManager.createNotificationChannel(uninstallingChannel); in startUninstallProgress()
357 notificationManager.notify(uninstallId, uninstallingNotification); in startUninstallProgress()
371 notificationManager.cancel(uninstallId); in startUninstallProgress()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DServiceIntentSender.java45 final NotificationManager notificationManager = in ServiceIntentSender() local
47 notificationManager.createNotificationChannel(mChannel); in ServiceIntentSender()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java93 NotificationManager notificationManager = getNotificationManager(context); in hideAllNotifications() local
94 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in hideAllNotifications()
102 notificationManager.cancel(notification.getTag(), notification.getId()); in hideAllNotifications()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java199 NotificationManager notificationManager = (NotificationManager) in notifyUserOfApBandConversion() local
201 notificationManager.notify(SystemMessage.NOTE_SOFTAP_CONFIG_CHANGED, notification); in notifyUserOfApBandConversion()
493 NotificationManager notificationManager = (NotificationManager) in handleUserHotspotConfigTappedContent() local
495 notificationManager.cancel(SystemMessage.NOTE_SOFTAP_CONFIG_CHANGED); in handleUserHotspotConfigTappedContent()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java574 NotificationManager notificationManager = getSystemService(NotificationManager.class); in buildNotification() local
575 notificationManager.createNotificationChannel(mNotificationChannel); in buildNotification()
585 NotificationManager notificationManager = getSystemService(NotificationManager.class); in getLabelAndUpdateNotification() local
587 notificationManager.notify(notifPair.first, notifPair.second); in getLabelAndUpdateNotification()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java374 NotificationManager notificationManager = (NotificationManager) mContext in setNiNotification() local
376 if (notificationManager == null) { in setNiNotification()
413 notificationManager.notifyAsUser(null, notif.notificationId, mNiNotificationBuilder.build(), in setNiNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsTest.java168 NotificationManager notificationManager = in testNotificationActionExtras() local
178 notificationManager); in testNotificationActionExtras()
/frameworks/base/services/core/java/com/android/server/location/
DGnssVisibilityControl.java619 NotificationManager notificationManager = (NotificationManager) mContext in postEmergencyLocationUserNotification() local
621 if (notificationManager == null) { in postEmergencyLocationUserNotification()
627 notificationManager.notifyAsUser(/* tag= */ null, /* notificationId= */ 0, in postEmergencyLocationUserNotification()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java248 NotificationManager notificationManager = in showNotificationIfEnabled() local
250 notificationManager.notifyAsUser( in showNotificationIfEnabled()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java92 public final NotificationManager notificationManager; field in MockSystemServices
132 notificationManager = mock(NotificationManager.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java168 return services.notificationManager; in getNotificationManager()
DDevicePolicyManagerTest.java1449 verify(getServices().notificationManager, timeout(1000)) in testCertificateDisclosure()
1458 verify(getServices().notificationManager, timeout(1000)) in testCertificateDisclosure()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java976 NotificationManager notificationManager = (NotificationManager) in onPackageDeleted() local
978 notificationManager.notify(basePackageName, in onPackageDeleted()
1024 NotificationManager notificationManager = (NotificationManager) in sendOnPackageInstalled() local
1026 notificationManager.notify(basePackageName, in sendOnPackageInstalled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInfo.java819 public UpdateImportanceRunnable(INotificationManager notificationManager,
822 mINotificationManager = notificationManager;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java4194 NotificationManager notificationManager = (NotificationManager) in cancelAllNotifications() local
4197 notificationManager.cancel(Integer.toString(mPrevSubId), PS_NOTIFICATION); in cancelAllNotifications()
4198 notificationManager.cancel(Integer.toString(mPrevSubId), CS_NOTIFICATION); in cancelAllNotifications()
4199 notificationManager.cancel(Integer.toString(mPrevSubId), CS_REJECT_CAUSE_NOTIFICATION); in cancelAllNotifications()
4342 NotificationManager notificationManager = (NotificationManager) in setNotification() local
4348 notificationManager.cancel(Integer.toString(mSubId), notificationId); in setNotification()
4365 notificationManager.notify(Integer.toString(mSubId), notificationId, mNotification); in setNotification()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1782 final NotificationManager notificationManager = NotificationManager.from(mContext);
1784 notificationManager.cancelAsUser(TAG, SystemMessage.NOTE_VPN_DISCONNECTED, user);
1804 notificationManager.notifyAsUser(TAG, SystemMessage.NOTE_VPN_DISCONNECTED,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhone.java2131 NotificationManager notificationManager =
2134 notificationManager.notify(notificationTag, notificationId,
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java5315 INotificationManager notificationManager = mInjector.getNotificationManager();
5319 notificationManager.enqueueNotificationWithTag(packageName, "android",