/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/shared/ |
H A D | NotificationHandler.java | 61 NotificationManager notificationManager = in postNotification() local 117 NotificationManager notificationManager = in postNotificationForLegacyTapToRead() local 119 notificationManager.notify(id, notification); in postNotificationForLegacyTapToRead() 126 sbn = findSBN(notificationManager, id); in postNotificationForLegacyTapToRead() 134 NotificationManager notificationManager = in cancelAllTapToReadNotifications() local 136 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in cancelAllTapToReadNotifications() 138 notificationManager.cancel(sbn.getId()); in cancelAllTapToReadNotifications() 145 @NonNull NotificationManager notificationManager, int id) { in findSBN() 146 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in findSBN() 157 NotificationManager notificationManager = in removeNotification() local [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | BiometricNotificationUtils.java | 48 final NotificationManager notificationManager = in showReEnrollmentNotification() local 110 final NotificationManager notificationManager = in showNotificationHelper() local 127 notificationManager.createNotificationChannel(channel); in showNotificationHelper() 128 notificationManager.notifyAsUser(notificationTag, NOTIFICATION_ID, notification, in showNotificationHelper() 136 final NotificationManager notificationManager = in cancelReEnrollNotification() local 138 notificationManager.cancelAsUser(RE_ENROLL_NOTIFICATION_TAG, NOTIFICATION_ID, in cancelReEnrollNotification() 146 final NotificationManager notificationManager = in cancelBadCalibrationNotification() local 148 notificationManager.cancelAsUser(BAD_CALIBRATION_NOTIFICATION_TAG, NOTIFICATION_ID, in cancelBadCalibrationNotification()
|
/aosp12/packages/apps/Settings/src/com/android/settings/sim/ |
H A D | SimSelectNotification.java | 233 NotificationManager notificationManager = in createSimSelectNotification() local 235 notificationManager.createNotificationChannel(notificationChannel); in createSimSelectNotification() 240 NotificationManager notificationManager = in cancelSimSelectNotification() local 242 notificationManager.cancel(SIM_SELECT_NOTIFICATION_ID); in cancelSimSelectNotification() 275 NotificationManager notificationManager = in createEnableMmsNotification() local 277 notificationManager.createNotificationChannel(notificationChannel); in createEnableMmsNotification() 282 NotificationManager notificationManager = in cancelEnableMmsNotification() local 284 notificationManager.cancel(ENABLE_MMS_NOTIFICATION_ID); in cancelEnableMmsNotification() 322 NotificationManager notificationManager = in createSimCombinationWarningNotification() local 329 NotificationManager notificationManager = in cancelSimCombinationWarningNotification() local [all …]
|
/aosp12/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/ |
H A D | HeadsUpNotificationFragment.java | 40 NotificationManager notificationManager = in onCreateView() local 42 notificationManager.createNotificationChannel( in onCreateView() 46 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView() 48 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView() 50 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView() 52 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/ |
H A D | DialerNotificationManager.java | 71 NotificationManager notificationManager = getNotificationManager(context); in cancel() local 72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel() 83 notificationManager.cancel( in cancel() 88 notificationManager.cancel(tag, id); in cancel() 92 NotificationManager notificationManager = getNotificationManager(context); in cancelAll() local 93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll() 96 notificationManager.cancel(notification.getTag(), notification.getId()); in cancelAll()
|
H A D | NotificationThrottler.java | 71 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in throttle() local 72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle() 101 notificationManager.cancel(notifications.get(i).getTag(), notifications.get(i).getId()); in throttle() 111 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getSortedMatchingNotifications() local 112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications()
|
H A D | NotificationManagerUtils.java | 32 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in cancelAllInGroup() local 33 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in cancelAllInGroup() 35 notificationManager.cancel(notification.getTag(), notification.getId()); in cancelAllInGroup()
|
H A D | NotificationChannelManager.java | 57 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in initChannels() local 78 notificationManager.deleteNotificationChannel(existingChannelId); in initChannels() 100 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in getAllExistingChannelIds() local 101 for (NotificationChannel channel : notificationManager.getNotificationChannels()) { in getAllExistingChannelIds()
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | NotificationHelper.java | 59 final NotificationManager notificationManager = in showResumeNotification() local 63 notificationManager.createNotificationChannel(channel); in showResumeNotification() 78 notificationManager.notify(ENCRYPTION_NOTIFICATION_ID, notify.build()); in showResumeNotification() 83 final NotificationManager notificationManager = in showPrivacyReminderNotification() local 87 notificationManager.createNotificationChannel(channel); in showPrivacyReminderNotification() 101 notificationManager.notify(PRIVACY_REMINDER_NOTIFICATION_ID, notify.build()); in showPrivacyReminderNotification()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
H A D | FileOperationService.java | 124 @VisibleForTesting NotificationManager notificationManager; field in FileOperationService 161 if (notificationManager == null) { in onCreate() 162 notificationManager = getSystemService(NotificationManager.class); in onCreate() 181 notificationManager.createNotificationChannel(channel); in setUpNotificationChannel() 298 notificationManager.cancel(jobId, NOTIFICATION_ID_PROGRESS); in handleCancel() 384 notificationManager.notify( in onStart() 446 notificationManager.cancel(candidate.id, NOTIFICATION_ID_PROGRESS); in updateForegroundState() 461 notificationManager.cancel(job.id, NOTIFICATION_ID_PROGRESS); in cleanUpNotification() 470 notificationManager.notify( in cleanUpNotification() 478 notificationManager.notify( in cleanUpNotification() [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | SmsStorageStatusManager.java | 82 final NotificationManagerCompat notificationManager = in postStorageLowNotification() local 85 notificationManager.notify(getNotificationTag(), in postStorageLowNotification() 93 final NotificationManagerCompat notificationManager = in cancelStorageLowNotification() local 95 notificationManager.cancel(getNotificationTag(), in cancelStorageLowNotification()
|
/aosp12/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | SelfManagedConnection.java | 141 NotificationManager notificationManager = mContext.getSystemService( in onShowIncomingCallUi() local 144 notificationManager.notify(CALL_NOTIFICATION, mCallId, notification); in onShowIncomingCallUi() 187 NotificationManager notificationManager = mContext.getSystemService( in onSilence() local 189 notificationManager.notify(CALL_NOTIFICATION, mCallId, mNotificationBuilder.build()); in onSilence() 209 NotificationManager notificationManager = mContext.getSystemService( in setConnectionDisconnected() local 211 notificationManager.cancel(CALL_NOTIFICATION, mCallId); in setConnectionDisconnected()
|
H A D | SelfManagedCallNotificationReceiver.java | 39 NotificationManager notificationManager = context.getSystemService( in onReceive() local 49 notificationManager.cancel(SelfManagedConnection.CALL_NOTIFICATION, callId); in onReceive() 58 notificationManager.cancel(SelfManagedConnection.CALL_NOTIFICATION, callId); in onReceive()
|
/aosp12/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
H A D | StatsdCtsForegroundService.java | 87 NotificationManager notificationManager = in onCreate() local 92 notificationManager.createNotificationChannel(channel); in onCreate() 120 NotificationManager notificationManager = in onDestroy() local 122 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
|
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/ |
H A D | TestForegroundManager.java | 30 TestForegroundManager(TestNotificationManager notificationManager) { in TestForegroundManager() argument 31 assert(notificationManager != null); in TestForegroundManager() 32 mNotificationManager = notificationManager; in TestForegroundManager()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
H A D | CompanionDeviceWatchRoleBehavior.java | 51 NotificationManager notificationManager = in setNotificationGrantState() local 56 notificationManager.setNotificationListenerAccessGranted( in setNotificationGrantState() 83 NotificationManager notificationManager = in revoke() local 86 notificationManager.getEnabledNotificationListeners(); in revoke()
|
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/service/ |
H A D | MessengerService.java | 100 NotificationManager notificationManager = getSystemService(NotificationManager.class); in sendServiceRunningNotification() local 102 if (notificationManager == null) { in sendServiceRunningNotification() 114 notificationManager.createNotificationChannel(appRunningNotificationChannel); in sendServiceRunningNotification() 125 notificationManager.createNotificationChannel(silentNotificationChannel); in sendServiceRunningNotification() 140 notificationManager.createNotificationChannel(channel); in sendServiceRunningNotification()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/ |
H A D | VpnStatusObserver.kt | 44 private val notificationManager = NotificationManager.from(context) regex 77 private fun notifyVpnConnected() = notificationManager.notify( 83 private fun notifyVpnDisconnected() = notificationManager.run { 97 notificationManager.createNotificationChannel(it)
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | TetheringNotificationUpdaterTest.kt | 89 @Mock private lateinit var notificationManager: NotificationManager 148 doReturn(notificationManager).`when`(mockContext) 198 verify(notificationManager, never()).cancel(any(), eq(id)) 201 verify(notificationManager, times(1)) 214 reset(notificationManager) 222 verify(notificationManager, times(1)).cancel(any(), eq(it)) 224 if (resetAfterVerified) reset(notificationManager) 248 verifyZeroInteractions(notificationManager) 310 verifyZeroInteractions(notificationManager) 386 verifyZeroInteractions(notificationManager)
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/ |
H A D | NfcBlockedNotification.java | 72 NotificationManager notificationManager = in startNotification() local 74 notificationManager.createNotificationChannel(mNotificationChannel); in startNotification() 75 notificationManager.notify(NOTIFICATION_ID_NFC, builder.build()); in startNotification()
|
/aosp12/packages/services/Telephony/testapps/TelephonyRegistryTestApp/src/com/android/phone/testapps/telephonyregistry/ |
H A D | TelephonyRegistryTestApp.java | 40 private NotificationManager notificationManager; field in TelephonyRegistryTestApp 91 notificationManager.notify(0, notification); 135 notificationManager = getSystemService(NotificationManager.class); in onCreate() 138 notificationManager.createNotificationChannel(channel); in onCreate()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationChannelHelper.java | 40 INotificationManager notificationManager, in createConversationChannelIfNeeded() argument 58 notificationManager.createConversationNotificationChannelForPackage( in createConversationChannelIfNeeded() 61 channel = notificationManager.getConversationNotificationChannel( in createConversationChannelIfNeeded()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
H A D | AutoGrantPermissionsNotifier.java | 112 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createAutoGrantNotifierChannel() local 123 notificationManager.createNotificationChannel(autoGrantedPermissionsChannel); in createAutoGrantNotifierChannel() 180 NotificationManager notificationManager = getSystemServiceSafe(mContext, in notifyOfAutoGrantPermissions() local 187 notificationManager.cancel( in notifyOfAutoGrantPermissions() 189 notificationManager.notify(mPackageInfo.packageName, in notifyOfAutoGrantPermissions()
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/ |
H A D | BaseTunerSetupActivity.java | 335 NotificationManager notificationManager = in cancelNotification() local 337 notificationManager.cancel(NOTIFY_TAG, NOTIFY_ID); in cancelNotification() 397 NotificationManager notificationManager = in sendNotificationInternal() local 399 notificationManager.createNotificationChannel( in sendNotificationInternal() 418 notificationManager.notify(NOTIFY_TAG, NOTIFY_ID, notification); in sendNotificationInternal() 453 NotificationManager notificationManager = in sendRecommendationCard() local 455 notificationManager.notify(NOTIFY_TAG, NOTIFY_ID, notification); in sendRecommendationCard()
|
/aosp12/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | WifiSoftApConfigChangedNotifier.java | 48 NotificationManager notificationManager = in notifyUserOfConfigConversion() local 57 notificationManager.createNotificationChannel(channel); in notifyUserOfConfigConversion() 59 notificationManager.notify( in notifyUserOfConfigConversion()
|