Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationListenerWithPlugins.java59 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() method in NotificationListenerWithPlugins
60 StatusBarNotification[] activeNotifications = super.getActiveNotifications(); in getActiveNotifications()
62 activeNotifications = plugin.getActiveNotifications(activeNotifications); in getActiveNotifications()
143 public StatusBarNotification[] getActiveNotifications() { in getProvider()
144 return NotificationListenerWithPlugins.super.getActiveNotifications(); in getProvider()
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
H A 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/notification/
H A 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()
H A DNotificationThrottler.java72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle()
112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications()
H A DNotificationManagerUtils.java33 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in cancelAllInGroup()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DEapFailureNotifierTest.java121 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
146 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailure_showNotificationFalse_notShown()
167 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErroCodeWithNotificationShownWithoutSameSsid()
195 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithDefinedErroCodeWithNotificationShownWithSameSsid()
215 when(mWifiNotificationManager.getActiveNotifications()).thenReturn(activeNotifications); in onEapFailureWithUnDefinedErrorCode()
H A DWifiNotificationManagerTest.java102 when(mNotificationManager.getActiveNotifications()) in testUserSwitchNotificationSendCorrect()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiNotificationManager.java101 for (StatusBarNotification notification : getActiveNotifications()) { in cleanAllWifiNotification()
131 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() method in WifiNotificationManager
135 return mNotificationManager.getActiveNotifications(); in getActiveNotifications()
H A DEapFailureNotifier.java78 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in onEapFailure()
/aosp12/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DNotificationListenerController.java61 default StatusBarNotification[] getActiveNotifications( in getActiveNotifications() method
75 StatusBarNotification[] getActiveNotifications(); in getActiveNotifications() method
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/shared/
H A DNotificationHandler.java136 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in cancelAllTapToReadNotifications()
146 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in findSBN()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationManagerServiceTest.java911 notifsAfter = mBinderService.getActiveNotifications(PKG); in addGroupWithBubblesAndValidateAdded()
926 notifsAfter = mBinderService.getActiveNotifications(PKG); in addGroupWithBubblesAndValidateAdded()
1309 assertEquals(0, mBinderService.getActiveNotifications(PKG).length); in testEnqueuedRestrictedNotifications_noPermission()
1484 mBinderService.getActiveNotifications(PKG); in testCancelNotificationImmediatelyAfterEnqueue()
1507 mBinderService.getActiveNotifications(PKG); in testPostCancelPostNotifiesListeners()
1525 mBinderService.getActiveNotifications(PKG); in testCancelNotificationWhilePostedAndEnqueued()
1543 mBinderService.getActiveNotifications(sbn.getPackageName()); in testCancelNotificationsFromListenerImmediatelyAfterEnqueue()
1557 mBinderService.getActiveNotifications(sbn.getPackageName()); in testCancelAllNotificationsImmediatelyAfterEnqueue()
1693 mBinderService.getActiveNotifications(sbn.getPackageName()); in testCancelAllNotifications_IgnoreForegroundService()
1708 mBinderService.getActiveNotifications(sbn.getPackageName()); in testCancelAllNotifications_IgnoreOtherPackages()
[all …]
H A DNotificationListenerServiceTest.java90 assertNotNull(service.getActiveNotifications()); in testGetActiveNotifications_notNull()
91 assertNotNull(service.getActiveNotifications(NotificationListenerService.TRIM_FULL)); in testGetActiveNotifications_notNull()
92 assertNotNull(service.getActiveNotifications(new String[0])); in testGetActiveNotifications_notNull()
93 assertNotNull(service.getActiveNotifications( in testGetActiveNotifications_notNull()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationListener.java151 activeNotifications = Arrays.stream(getActiveNotifications()) in handleWorkerMessage()
171 for (StatusBarNotification sbn : getActiveNotifications(keys)) { in handleWorkerMessage()
305 StatusBarNotification[] notifications = getActiveNotifications( in getNotificationsForKeys()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
H A DBubbleHelper.java165 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in cancelLast()
173 StatusBarNotification[] activeNotifications = mNotificationManager.getActiveNotifications(); in cancelFirst()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DInstallCarrierAppUtils.java95 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in hideAllNotifications()
156 getNotificationManager(context).getActiveNotifications(); in isPackageInstallNotificationActive()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DNotificationListenerService.java953 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() method in NotificationListenerService
954 StatusBarNotification[] activeNotifications = getActiveNotifications(null, TRIM_FULL); in getActiveNotifications()
989 public StatusBarNotification[] getActiveNotifications(int trim) { in getActiveNotifications() method in NotificationListenerService
990 StatusBarNotification[] activeNotifications = getActiveNotifications(null, trim); in getActiveNotifications()
1006 public StatusBarNotification[] getActiveNotifications(String[] keys) { in getActiveNotifications() method in NotificationListenerService
1007 StatusBarNotification[] activeNotifications = getActiveNotifications(keys, TRIM_FULL); in getActiveNotifications()
1025 public StatusBarNotification[] getActiveNotifications(String[] keys, int trim) { in getActiveNotifications() method in NotificationListenerService
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DVisualVoicemailUpdateTask.java129 DialerNotificationManager.getActiveNotifications(context)) { in getExistingNotificationCount()
153 DialerNotificationManager.getActiveNotifications(context)) { in getAndUpdateVoicemailsWithExistingNotification()
/aosp12/packages/services/Mtp/src/com/android/mtp/
H A DMtpDocumentsService.java99 mNotificationManager.getActiveNotifications(); in updateForegroundState()
/aosp12/frameworks/base/core/tests/notificationtests/src/android/app/
H A DNotificationStressTest.java102 assertTrue(mNotificationManager.getActiveNotifications().length == MAX_NOTIFCATIONS); in testNotificationsWithShadeStress()
/aosp12/packages/apps/Car/Dialer/tests/instrutests/src/com/android/car/dialer/integration/
H A DPrivacySettingTest.java131 assertThat(mNotificationManager.getActiveNotifications().length).isEqualTo(0); in toggleOn_noHUN()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationListener.java86 final StatusBarNotification[] notifications = getActiveNotifications(); in onListenerConnected()
/aosp12/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportReceiverTest.java556 StatusBarNotification[] activeNotifications = nm.getActiveNotifications(); in cancelExistingNotifications()
567 int total = nm.getActiveNotifications().length; in cancelExistingNotifications()
575 assertEquals("old notifications were not cancelled", 0, nm.getActiveNotifications().length); in cancelExistingNotifications()
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/telecom/
H A DInCallServiceImplTest.java182 notificationManager.getActiveNotifications()[0]; in onRingingCallAdded_showNotification()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DCarNotificationListener.java231 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()

12