/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | NotificationControllerTest.java | 51 private NotificationManager mNotificationManager; field in NotificationControllerTest 60 application.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); in setUp() 72 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testShouldShowNotificationFirstTime() 75 verify(mNotificationManager).cancel(1); in testShouldShowNotificationFirstTime() 84 verify(mNotificationManager, times(i)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfShownTooManyTimes() 87 verify(mNotificationManager, times(i)).cancel(1); in testNotificationNotShownIfShownTooManyTimes() 91 reset(mNotificationManager); in testNotificationNotShownIfShownTooManyTimes() 95 verifyZeroInteractions(mNotificationManager); in testNotificationNotShownIfShownTooManyTimes() 104 verify(mNotificationManager, times(i + 1)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfDismissedTooManyTimes() 107 verify(mNotificationManager, times(i + 1)).cancel(1); in testNotificationNotShownIfDismissedTooManyTimes() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | NotificationHelperTest.java | 46 private NotificationManager mNotificationManager; field in NotificationHelperTest 53 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp() 64 assertThat(mNotificationManager.getActiveNotifications().length).isEqualTo(0); in testShowResumeNotification() 70 StatusBarNotification[] notifications = mNotificationManager.getActiveNotifications(); in testShowResumeNotification() 81 assertThat(mNotificationManager.getActiveNotifications().length).isEqualTo(0); in testShowPrivacyReminderNotification() 87 StatusBarNotification[] notifications = mNotificationManager.getActiveNotifications(); in testShowPrivacyReminderNotification() 100 && mNotificationManager.getActiveNotifications().length == 0) { in waitForNotification() 106 mNotificationManager.cancelAll(); in removeAllNotifications()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestService.java | 78 private NotificationManager mNotificationManager; field in IngestService 87 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onCreate() 159 mNotificationManager.notify(R.id.ingest_notification_scanning, in setClientActivity() 164 mNotificationManager.cancel(R.id.ingest_notification_importing); in setClientActivity() 165 mNotificationManager.cancel(R.id.ingest_notification_scanning); in setClientActivity() 214 mNotificationManager.cancel(R.id.ingest_notification_scanning); in deviceRemoved() 215 mNotificationManager.cancel(R.id.ingest_notification_importing); in deviceRemoved() 234 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportProgress() 251 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportFinish() 268 mNotificationManager.notify(R.id.ingest_notification_scanning, in onObjectIndexed() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | IncomingCallNotifierTest.java | 57 private NotificationManager mNotificationManager; field in IncomingCallNotifierTest 68 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp() 98 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testSingleCall() 110 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall() 126 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall2() 142 verify(mNotificationManager).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testCallRemoved() 145 verify(mNotificationManager).cancel(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testCallRemoved() 164 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testDontShowDuringHandover1() 183 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testDontShowDuringHandover2()
|
D | DisconnectedCallNotifierTest.java | 52 private NotificationManager mNotificationManager; field in DisconnectedCallNotifierTest 61 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp() 84 verify(mNotificationManager, never()).notifyAsUser(anyString(), anyInt(), in testNotificationShownAfterEmergencyCall() 90 verify(mNotificationManager).notifyAsUser(anyString(), anyInt(), in testNotificationShownAfterEmergencyCall() 107 verify(mNotificationManager, never()).notifyAsUser(anyString(), anyInt(), in testNotificationShownForDisconnectedEmergencyCall() 113 verify(mNotificationManager).notifyAsUser(anyString(), anyInt(), in testNotificationShownForDisconnectedEmergencyCall() 129 verify(mNotificationManager, never()).notifyAsUser(anyString(), anyInt(), in testNotificationNotShownAfterCall() 134 verify(mNotificationManager, never()).notifyAsUser(anyString(), anyInt(), in testNotificationNotShownAfterCall() 146 verify(mNotificationManager).cancelAsUser(anyString(), anyInt(), any()); in testNotificationClearedForEmergencyCall()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 75 private NotificationManager mNotificationManager; field in SimSelectNotificationTest 106 .thenReturn(mNotificationManager); in setUp() 108 .thenReturn(mNotificationManager); in setUp() 151 verify(mNotificationManager).createNotificationChannel(nc.capture()); in onReceiveEnableMms_notificationShouldSend() 159 verify(mNotificationManager).notify( in onReceiveEnableMms_notificationShouldSend() 174 verify(mNotificationManager, never()).createNotificationChannel(any()); in onReceiveEnableMms_NoExtra_notificationShouldNotSend() 187 verify(mNotificationManager, never()).createNotificationChannel(any()); in onReceiveEnableMms_MmsDataAlreadyEnabled_notificationShouldNotSend() 196 verify(mNotificationManager, never()).createNotificationChannel(any()); in onReceivePrimarySubListChange_NoExtra_notificationShouldNotSend() 211 verify(mNotificationManager).createNotificationChannel(nc.capture()); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend() 219 verify(mNotificationManager).notify( in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | NotificationsPreferenceController.java | 47 INotificationManager mNotificationManager = field in NotificationsPreferenceController 79 if (mNotificationManager.onlyHasDefaultChannel(mPackageName, mUid)) { in handlePreferenceChanged() 81 mNotificationManager.getNotificationChannelForPackage( in handlePreferenceChanged() 87 mNotificationManager in handlePreferenceChanged() 90 mNotificationManager.setNotificationsEnabledForPackage(mPackageName, mUid, enabled); in handlePreferenceChanged() 100 return mNotificationManager.areNotificationsEnabledForPackage(mPackageName, mUid); in isNotificationsEnabled()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/notification/ |
D | InCallNotificationController.java | 81 private final NotificationManager mNotificationManager; field in InCallNotificationController 89 mNotificationManager = in InCallNotificationController() 95 mNotificationManager.createNotificationChannel(notificationChannel); in InCallNotificationController() 130 mNotificationManager.notify( in showInCallNotification() 143 mNotificationManager.notify( in showInCallNotification() 169 mNotificationManager.cancel(callId, NOTIFICATION_ID); in cancelInCallNotification()
|
D | MissedCallNotificationController.java | 94 private final NotificationManager mNotificationManager; field in MissedCallNotificationController 103 mNotificationManager = in MissedCallNotificationController() 108 mNotificationManager.createNotificationChannel(notificationChannel); in MissedCallNotificationController() 170 mNotificationManager.notify( in showMissedCallNotification() 181 mNotificationManager.cancel(tag, NOTIFICATION_ID); in cancelMissedCallNotification()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | DndConditionCardController.java | 48 private final NotificationManager mNotificationManager; field in DndConditionCardController 54 mNotificationManager = mAppContext.getSystemService(NotificationManager.class); in DndConditionCardController() 65 return mNotificationManager.getZenMode() != Settings.Global.ZEN_MODE_OFF; in isDisplayable() 89 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG); in onActionClick() 118 if (ZenModeConfig.areAllZenBehaviorSoundsMuted(mNotificationManager.getZenModeConfig())) { in getSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/ |
D | DndConditionCardController.java | 48 private final NotificationManager mNotificationManager; field in DndConditionCardController 54 mNotificationManager = mAppContext.getSystemService(NotificationManager.class); in DndConditionCardController() 65 return mNotificationManager.getZenMode() != Settings.Global.ZEN_MODE_OFF; in isDisplayable() 89 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG); in onActionClick() 118 if (ZenModeConfig.areAllZenBehaviorSoundsMuted(mNotificationManager.getZenModeConfig())) { in getSummary()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/ |
D | TestForegroundManager.java | 26 private final TestNotificationManager mNotificationManager; field in TestForegroundManager 32 mNotificationManager = notificationManager; in TestForegroundManager() 39 mNotificationManager.notify(null, mForegroundId, mForegroundNotification); in startForeground() 44 mNotificationManager.cancel(null, mForegroundId); in stopForeground()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.kt | 62 private val mNotificationManager = NotificationManagerCompat.from(mContext) constant in com.android.deskclock.data.TimerModel 688 mNotificationManager.cancel(mNotificationModel.unexpiredTimerNotificationId) in updateNotification() 702 mNotificationManager.cancel(mNotificationModel.unexpiredTimerNotificationId) in updateNotification() 713 mNotificationBuilder.buildChannel(mContext, mNotificationManager) in updateNotification() 714 mNotificationManager.notify(notificationId, notification) in updateNotification() 724 mNotificationManager.cancel(mNotificationModel.missedTimerNotificationId) in updateMissedNotification() 731 mNotificationManager.cancel(mNotificationModel.missedTimerNotificationId) in updateMissedNotification() 738 mNotificationManager.notify(notificationId, notification) in updateMissedNotification()
|
D | TimerModel.java | 83 private final NotificationManagerCompat mNotificationManager; field in TimerModel 139 mNotificationManager = NotificationManagerCompat.from(context); in TimerModel() 731 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); in updateNotification() 745 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); in updateNotification() 756 mNotificationManager.notify(notificationId, notification); in updateNotification() 766 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); in updateMissedNotification() 773 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); in updateMissedNotification() 780 mNotificationManager.notify(notificationId, notification); in updateMissedNotification()
|
D | StopwatchModel.kt | 41 private val mNotificationManager = NotificationManagerCompat.from(mContext) constant in com.android.deskclock.data.StopwatchModel 216 mNotificationManager.cancel(mNotificationModel.stopwatchNotificationId) in updateNotification() 223 mNotificationBuilder.buildChannel(mContext, mNotificationManager) in updateNotification() 224 mNotificationManager.notify(mNotificationModel.stopwatchNotificationId, notification) in updateNotification()
|
D | StopwatchModel.java | 48 private final NotificationManagerCompat mNotificationManager; field in StopwatchModel 71 mNotificationManager = NotificationManagerCompat.from(context); in StopwatchModel() 231 mNotificationManager.cancel(mNotificationModel.getStopwatchNotificationId()); in updateNotification() 238 mNotificationManager.notify(mNotificationModel.getStopwatchNotificationId(), notification); in updateNotification()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | NotificationsPreference.java | 34 private final INotificationManager mNotificationManager; field in NotificationsPreference 41 mNotificationManager = NotificationManager.getService(); in NotificationsPreference() 60 mNotificationManager.areNotificationsEnabledForPackage(mEntry.info.packageName, in refresh() 79 mNotificationManager.setNotificationsEnabledForPackage( in setNotificationsEnabled()
|
/packages/services/Car/service/src/com/android/car/ |
D | CanBusErrorNotifier.java | 39 private final NotificationManager mNotificationManager; field in CanBusErrorNotifier 47 mNotificationManager = (NotificationManager) context.getSystemService( in CanBusErrorNotifier() 96 mNotificationManager.notify(TAG, NOTIFICATION_ID, notification); in showNotification() 104 mNotificationManager.cancel(TAG, NOTIFICATION_ID); in hideNotification()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | AudioProcessingNotification.java | 40 private final NotificationManager mNotificationManager; field in AudioProcessingNotification 45 mNotificationManager = in AudioProcessingNotification() 95 mNotificationManager.notify( in showAudioProcessingNotification() 101 mNotificationManager.cancel(NOTIFICATION_TAG, AUDIO_PROCESSING_NOTIFICATION_ID); in cancelAudioProcessingNotification()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | P2pPermissionManager.java | 55 private final NotificationManager mNotificationManager; field in P2pPermissionManager 60 mNotificationManager = mContext.getSystemService(NotificationManager.class); in P2pPermissionManager() 197 mNotificationManager.createNotificationChannel(new NotificationChannel( in showNotification() 230 mNotificationManager.notify(BuiltInPrintService.P2P_PERMISSION_REQUEST_ID, notification); in showNotification() 262 mNotificationManager.cancel(BuiltInPrintService.P2P_PERMISSION_REQUEST_ID); in closeNotification()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
D | DndConditionalCardControllerTest.java | 53 private ShadowNotificationManager mNotificationManager; field in DndConditionalCardControllerTest 60 mNotificationManager = Shadow.extract(mContext.getSystemService(NotificationManager.class)); in setUp() 75 mNotificationManager.setZenModeConfig(getMutedAllConfig()); in buildContextualCard_allSoundsMuted_shouldHavePhoneMutedSummary() 85 mNotificationManager.setZenModeConfig(getCustomConfig()); in buildContextualCard_allowSomeSounds_shouldHaveWittExceptionsSummary()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | NotificationAccess.java | 53 private NotificationManager mNotificationManager; field in NotificationAccess 67 mNotificationManager = context.getSystemService(NotificationManager.class); in onAttach() 132 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList() 135 mNotificationManager.setNotificationListenerAccessGranted(cn, enable); in updateList()
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | BugReportService.java | 139 private NotificationManager mNotificationManager; field in BugReportService 196 mNotificationManager = getSystemService(NotificationManager.class); in onCreate() 197 mNotificationManager.createNotificationChannel(new NotificationChannel( in onCreate() 201 mNotificationManager.createNotificationChannel(new NotificationChannel( in onCreate() 277 mNotificationManager.notify( in showProgressNotification() 453 mNotificationManager.cancel(BUGREPORT_IN_PROGRESS_NOTIF_ID); in handleBugReportManagerError() 536 mNotificationManager.cancel(BUGREPORT_IN_PROGRESS_NOTIF_ID); in zipDirectoryAndUpdateStatus()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/notificationmsg/ |
D | NotificationMsgService.java | 60 private NotificationManager mNotificationManager; field in NotificationMsgService 77 mNotificationManager = getSystemService(NotificationManager.class); in onCreate() 119 if (mNotificationManager == null) { in sendServiceRunningNotification() 129 mNotificationManager.createNotificationChannel(appRunningNotificationChannel); in sendServiceRunningNotification()
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
D | UpdateLayoutFragment.java | 69 private NotificationManager mNotificationManager; field in UpdateLayoutFragment 102 mNotificationManager = in onCreate() 104 mNotificationManager.createNotificationChannel( in onCreate() 163 mNotificationManager.notify(NOTIFICATION_ID, createNotification(getContext(), status)); in showStatus() 165 mNotificationManager.cancel(NOTIFICATION_ID); in showStatus()
|