Home
last modified time | relevance | path

Searched refs:getActiveNotifications (Results 1 – 23 of 23) sorted by relevance

/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java184 assertThat(mNotificationManager.getActiveNotifications()).hasLength(1); in testEuNotification_gaUxFlagEnabled()
186 mNotificationManager.getActiveNotifications()[0].getNotification(); in testEuNotification_gaUxFlagEnabled()
223 assertThat(mNotificationManager.getActiveNotifications()).hasLength(0); in testEuNotification_gaUxFlagEnabled()
254 assertThat(mNotificationManager.getActiveNotifications()).hasLength(1); in testNonEuNotifications_gaUxEnabled()
256 mNotificationManager.getActiveNotifications()[0].getNotification(); in testNonEuNotifications_gaUxEnabled()
298 assertThat(mNotificationManager.getActiveNotifications()).hasLength(1); in testEuNotifications_gaUxEnabled_nonDismissable()
300 mNotificationManager.getActiveNotifications()[0].getNotification(); in testEuNotifications_gaUxEnabled_nonDismissable()
347 assertThat(mNotificationManager.getActiveNotifications()).hasLength(0); in testEuNotifications_gaUxEnabled_nonDismissable()
383 assertThat(mNotificationManager.getActiveNotifications()).hasLength(1); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage()
385 mNotificationManager.getActiveNotifications()[0].getNotification(); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DNotificationHelperTest.java54 assertThat(shadowOf(mNotificationManager).getActiveNotifications()).hasLength(1); in showResumeNotification_showsExpectedNotification()
56 shadowOf(mNotificationManager).getActiveNotifications()[0]; in showResumeNotification_showsExpectedNotification()
68 assertThat(shadowOf(mNotificationManager).getActiveNotifications()).hasLength(1); in showPrivacyReminderNotification_showsExpectedNotification()
70 shadowOf(mNotificationManager).getActiveNotifications()[0]; in showPrivacyReminderNotification_showsExpectedNotification()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DEapFailureNotifierTest.java148 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureEapFailureConfigWithOverride()
189 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
216 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailure_showNotificationFalse_notShown()
239 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid()
269 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithSameSsid()
294 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithoutMessage()
319 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithUnknownErrorCode()
346 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithCarrierOverrideForDisableParameters()
376 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithNegativeErrorCode()
395 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in testPreTDeviceIgnoreSpecialFailure()
DWifiNotificationManagerTest.java105 when(mNotificationManager.getActiveNotifications()) in testUserSwitchNotificationSendCorrect()
136 when(mNotificationManager.getActiveNotifications()).thenReturn( in testApmNotificationNotCancelled()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel()
93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll()
101 public static StatusBarNotification[] getActiveNotifications(@NonNull Context context) { in getActiveNotifications() method in DialerNotificationManager
103 return getNotificationManager(context).getActiveNotifications(); in getActiveNotifications()
DNotificationThrottler.java72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle()
112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications()
DNotificationManagerUtils.java33 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in cancelAllInGroup()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNotificationManager.java114 for (StatusBarNotification notification : getActiveNotifications()) { in cleanAllWifiNotification()
145 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() method in WifiNotificationManager
149 return mNotificationManager.getActiveNotifications(); in getActiveNotifications()
DEapFailureNotifier.java123 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in onEapFailure()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/
DReportDeviceProvisionStateWorkerTest.java182 StatusBarNotification[] activeNotifs = shadowNotificationManager.getActiveNotifications(); in doWork_mandatory_doesNotSendNotificationOrScheduleAlarm()
225 StatusBarNotification[] activeNotifs = shadowNotificationManager.getActiveNotifications(); in doWork_deferred_dismissibleUiState_schedulesAlarmAndSendsNotification()
255 StatusBarNotification[] activeNotifs = shadowNotificationManager.getActiveNotifications(); in doWork_deferred_persistentUiState_schedulesAlarmAndSendsOngoingNotification()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailUpdateTask.java129 DialerNotificationManager.getActiveNotifications(context)) { in getExistingNotificationCount()
153 DialerNotificationManager.getActiveNotifications(context)) { in getAndUpdateVoicemailsWithExistingNotification()
DMissedCallNotifier.java245 DialerNotificationManager.getActiveNotifications(context)) { in updateMissedCallNotification()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsService.java101 mNotificationManager.getActiveNotifications(); in updateForegroundState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/notification/
DNotificationHelperService.java112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in sendToggleNotification()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DTestNotificationListener.kt248 checkNotNull(getActiveNotifications()) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DAutoGrantPermissionsNotifier.java259 for (StatusBarNotification notification : mNotificationManager.getActiveNotifications()) { in isNotificationActive()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt255 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getFirstActiveNotification()
274 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getActiveGroupSummaryNotification()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java251 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java198 result = getActiveNotifications(keys); in getActiveNotificationsSafely()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java930 verify(mMockedNotificationManager, never()).getActiveNotifications(); in testPlayPendingAlert()
938 mMockedNotificationManager).getActiveNotifications(); in testPlayPendingAlert()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java123 final StatusBarNotification[] notifs = mNotifManager.getActiveNotifications(); in init()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java1107 notificationManager.getActiveNotifications(); in playPendingAlert()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java756 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in getCurrentlyShownNotificationLocked()