Home
last modified time | relevance | path

Searched refs:mNotificationListener (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/
H A DDreamOverlayNotificationCountProviderTest.java44 NotificationListener mNotificationListener; field in DreamOverlayNotificationCountProviderTest
68 when(mNotificationListener.getActiveNotifications()).thenReturn(notifications); in setup()
70 mNotificationListener, Runnable::run); in setup()
78 verify(mNotificationListener).addNotificationHandler(handlerArgumentCaptor.capture()); in testPostingNotificationCallsCallbackWithNotificationCount()
87 verify(mNotificationListener).addNotificationHandler(handlerArgumentCaptor.capture()); in testRemovingNotificationCallsCallbackWithZeroNotificationCount()
96 verify(mNotificationListener).addNotificationHandler(handlerArgumentCaptor.capture()); in testPostingOngoingNotificationDoesNotCallCallbackWithNotificationCount()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
H A DTvNotificationHandler.java39 private final NotificationListener mNotificationListener; field in TvNotificationHandler
46 mNotificationListener = notificationListener; in TvNotificationHandler()
59 mNotificationListener.addNotificationHandler(this); in start()
60 mNotificationListener.registerAsSystemService(); in start()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
H A DNotificationLogger.java77 private final NotificationListenerService mNotificationListener; field in NotificationLogger
208 mNotificationListener = notificationListener; in NotificationLogger()
309 mNotificationListener.setNotificationsShown(newlyVisibleKeyAr); in logNotificationVisibilityChanges()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DAppFGSTracker.java88 final NotificationListener mNotificationListener = new NotificationListener(); field in AppFGSTracker
479 mNotificationListener.registerAsSystemService(mContext, in onBgFgsMonitorEnabled()
487 mNotificationListener.unregisterAsSystemService(); in onBgFgsMonitorEnabled()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDependency.java307 @Inject Lazy<NotificationListener> mNotificationListener; field in Dependency
507 mProviders.put(NotificationListener.class, mNotificationListener::get); in start()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DCentralSurfacesImplTest.java243 @Mock private NotificationListener mNotificationListener; field in CentralSurfacesImplTest
387 mNotificationListener, in setup()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DBackgroundRestrictionTest.java756 mAppFGSTracker.mNotificationListener.onNotificationPosted(new StatusBarNotification( in testBgCurrentDrainMonitor()
1363 mAppFGSTracker.mNotificationListener.onNotificationPosted(new StatusBarNotification( in testLongFGSMonitor()
1653 mAppFGSTracker.mNotificationListener.onNotificationPosted(noti, null); in runExemptionTestOnce()
1656 mAppFGSTracker.mNotificationListener.onNotificationRemoved(noti, null, 0); in runExemptionTestOnce()