Home
last modified time | relevance | path

Searched refs:mEntryManager (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java139 private TestableNotificationEntryManager mEntryManager; field in NotificationEntryManagerTest
243 mEntryManager = new TestableNotificationEntryManager(mContext); in setUp()
245 mEntryManager.setUpWithPresenter(mPresenter, mListContainer, mHeadsUpManager); in setUp()
246 mEntryManager.addNotificationEntryListener(mEntryListener); in setUp()
247 mEntryManager.setNotificationRemoveInterceptor(mRemoveInterceptor); in setUp()
252 mPresenter, mListContainer, mHeadsUpManager, mEntryManager, mBindCallback); in setUp()
254 mEntryManager.setRowBinder(notificationRowBinder); in setUp()
271 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification()
274 assertTrue(mEntryManager.getCountDownLatch().await(10, TimeUnit.SECONDS)); in testAddNotification()
290 assertEquals(mEntryManager.getNotificationData().get(mSbn.getKey()), entry); in testAddNotification()
[all …]
DNotificationListControllerTest.java64 @Mock private NotificationEntryManager mEntryManager; field in NotificationListControllerTest
84 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
87 mEntryManager, in setUp()
94 verify(mEntryManager).addNotificationEntryListener(mEntryListenerCaptor.capture()); in setUp()
113 verify(mEntryManager).updateNotifications(); in testCallUpdateNotificationsOnDeviceProvisionedChange()
134 verify(mEntryManager, times(1)).updateNotifications(); in testAppOps_appOpAddedToForegroundNotif()
147 verify(mEntryManager, never()).updateNotifications(); in testAppOps_appOpAddedToUnrelatedNotif()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationListener.java51 private final NotificationEntryManager mEntryManager = field in NotificationListener
79 mEntryManager.addNotification(sbn, currentRanking); in onListenerConnected()
95 mEntryManager.getNotificationData().get(key) != null; in onNotificationPosted()
108 mEntryManager.removeNotification(key, rankingMap, UNDEFINED_DISMISS_REASON); in onNotificationPosted()
110 mEntryManager.getNotificationData() in onNotificationPosted()
116 mEntryManager.updateNotification(sbn, rankingMap); in onNotificationPosted()
118 mEntryManager.addNotification(sbn, rankingMap); in onNotificationPosted()
131 mEntryManager.removeNotification(key, rankingMap, reason); in onNotificationRemoved()
147 mEntryManager.updateNotificationRanking(r); in onNotificationRankingUpdate()
DSmartReplyController.java40 private final NotificationEntryManager mEntryManager; field in SmartReplyController
48 mEntryManager = entryManager; in SmartReplyController()
76 final int count = mEntryManager.getNotificationData().getActiveNotifications().size(); in smartActionClicked()
77 final int rank = mEntryManager.getNotificationData().getRank(entry.key); in smartActionClicked()
DNotificationViewHierarchyManager.java76 private final NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManager
115 mEntryManager = notificationEntryManager; in NotificationViewHierarchyManager()
139 ArrayList<NotificationEntry> activeNotifications = mEntryManager.getNotificationData() in updateNotificationViews()
253 mVisualStabilityManager.addReorderingAllowedCallback(mEntryManager); in updateNotificationViews()
304 mEntryManager); in addNotificationChildrenAndSort()
336 if (mEntryManager.getNotificationData().get( in removeNotificationChildren()
DNotificationRemoteInputManager.java116 private final NotificationEntryManager mEntryManager; field in NotificationRemoteInputManager
185 final int count = mEntryManager.getNotificationData().getActiveNotifications().size();
186 final int rank = mEntryManager.getNotificationData().getRank(key);
203 mEntryManager.getNotificationData().get(key));
266 mEntryManager = notificationEntryManager; in NotificationRemoteInputManager()
342 mEntryManager.updateNotification(newSbn, null /* ranking */); in setUpWithCallback()
614 mEntryManager.updateNotification(newSbn, null); in setShouldManageLifetime()
654 mEntryManager.updateNotification(newSbn, null); in setShouldManageLifetime()
DNotificationMediaManager.java94 private NotificationEntryManager mEntryManager; field in NotificationMediaManager
186 mEntryManager = notificationEntryManager; in NotificationMediaManager()
233 synchronized (mEntryManager.getNotificationData()) { in getMediaIcon()
234 … NotificationEntry entry = mEntryManager.getNotificationData().get(mMediaNotificationKey); in getMediaIcon()
256 synchronized (mEntryManager.getNotificationData()) { in findAndUpdateMediaNotifications()
258 mEntryManager.getNotificationData().getActiveNotifications(); in findAndUpdateMediaNotifications()
346 mEntryManager.updateNotifications(); in findAndUpdateMediaNotifications()
DNotificationLockscreenUserManagerImpl.java75 private NotificationEntryManager mEntryManager; field in NotificationLockscreenUserManagerImpl
168 if (mEntryManager == null) { in getEntryManager()
169 mEntryManager = Dependency.get(NotificationEntryManager.class); in getEntryManager()
171 return mEntryManager; in getEntryManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationListController.java39 private final NotificationEntryManager mEntryManager; field in NotificationListController
49 mEntryManager = checkNotNull(entryManager); in NotificationListController()
60 mEntryManager.addNotificationEntryListener(mEntryListener); in bind()
84 mEntryManager.updateNotifications();
107 mEntryManager in updateNotificationsForAppOp()
109 mEntryManager.updateNotifications(); in updateNotificationsForAppOp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java61 @Mock private NotificationEntryManager mEntryManager; field in NotificationListenerTest
71 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
78 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
89 verify(mEntryManager).addNotification(mSbn, mRanking); in testNotificationAddCallsAddNotification()
97 verify(mEntryManager).updateNotification(mSbn, mRanking); in testNotificationUpdateCallsUpdateNotification()
104 verify(mEntryManager).removeNotification(eq(mSbn.getKey()), eq(mRanking), anyInt()); in testNotificationRemovalCallsRemoveNotification()
112 verify(mEntryManager).updateNotificationRanking(any()); in testRankingUpdateCallsNotificationRankingUpdate()
DNotificationLockscreenUserManagerTest.java70 @Mock private NotificationEntryManager mEntryManager; field in NotificationLockscreenUserManagerTest
81 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
90 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
101 verify(mEntryManager, times(1)).updateNotifications(); in testLockScreenShowNotificationsChangeUpdatesNotifications()
140 verify(mEntryManager, times(1)).updateNotifications(); in testSettingsObserverUpdatesNotifications()
DNotificationViewHierarchyManagerTest.java79 @Mock private NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManagerTest
98 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
107 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
111 mock(StatusBarStateControllerImpl.class), mEntryManager, in setUp()
DNotificationRemoteInputManagerTest.java59 @Mock private NotificationEntryManager mEntryManager; field in NotificationRemoteInputManagerTest
74 mLockscreenUserManager, mSmartReplyController, mEntryManager, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelper.java78 private NotificationEntryManager mEntryManager; field in NotificationGroupAlertTransferHelper
90 if (mEntryManager != null) { in bind()
98 mEntryManager = entryManager; in bind()
100 mEntryManager.addNotificationEntryListener(mNotificationEntryListener); in bind()
240 if (mEntryManager == null) { in getPendingChildrenNotAlerting()
244 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in getPendingChildrenNotAlerting()
260 if (mEntryManager == null) { in pendingInflationsWillAddChildren()
263 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in pendingInflationsWillAddChildren()
DStatusBarNotificationPresenter.java99 private final NotificationEntryManager mEntryManager = field in StatusBarNotificationPresenter
213 mEntryManager.setUpWithPresenter(this, notifListContainer, mHeadsUpManager); in StatusBarNotificationPresenter()
214 mEntryManager.addNotificationEntryListener(notificationEntryListener); in StatusBarNotificationPresenter()
215 mEntryManager.addNotificationLifetimeExtender(mHeadsUpManager); in StatusBarNotificationPresenter()
216 mEntryManager.addNotificationLifetimeExtender(mAmbientPulseManager); in StatusBarNotificationPresenter()
217 mEntryManager.addNotificationLifetimeExtender(mGutsManager); in StatusBarNotificationPresenter()
218 mEntryManager.addNotificationLifetimeExtenders( in StatusBarNotificationPresenter()
221 mEntryManager, this); in StatusBarNotificationPresenter()
268 = mEntryManager.getNotificationData().getNotificationsForCurrentUser(); in updateNotificationOnUiModeChanged()
280 mEntryManager.getNotificationData().getNotificationsForCurrentUser(); in updateNotificationsOnDensityOrFontScaleChanged()
[all …]
DStatusBarNotificationActivityStarter.java89 private final NotificationEntryManager mEntryManager; field in StatusBarNotificationActivityStarter
150 mEntryManager = entryManager; in StatusBarNotificationActivityStarter()
158 mEntryManager.addNotificationEntryListener(new NotificationEntryListener() { in StatusBarNotificationActivityStarter()
330 mEntryManager.getNotificationData().getActiveNotifications().size(); in handleNotificationClickAfterPanelCollapsed()
331 final int rank = mEntryManager.getNotificationData().getRank(notificationKey); in handleNotificationClickAfterPanelCollapsed()
334 mEntryManager.getNotificationData().get(notificationKey)); in handleNotificationClickAfterPanelCollapsed()
488 () -> mEntryManager.performRemoveNotification(notification, REASON_CLICK); in removeNotification()
DNotificationIconAreaController.java47 private final NotificationEntryManager mEntryManager; field in NotificationIconAreaController
81 mEntryManager = Dependency.get(NotificationEntryManager.class); in NotificationIconAreaController()
203 if (mEntryManager.getNotificationData().isAmbient(entry.key) && !showAmbient) { in shouldShowNotificationIcon()
DStatusBar.java399 protected NotificationEntryManager mEntryManager; field in StatusBar
578 mEntryManager.updateNotifications();
593 mEntryManager.updateNotifications();
634 mEntryManager = Dependency.get(NotificationEntryManager.class); in start()
1058 mEntryManager, in setUpPresenter()
1074 mCommandQueue, mAssistManager, mNotificationPanel, mPresenter, mEntryManager, in setUpPresenter()
1085 mEntryManager.setRowBinder(rowBinder); in setUpPresenter()
1089 mGroupAlertTransferHelper.bind(mEntryManager, mGroupManager); in setUpPresenter()
1325 mEntryManager.updateNotifications(); in requestNotificationUpdate()
1342 mEntryManager.getNotificationData().getActiveNotifications().size() + " any=" + in updateAreThereNotifications()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/
DNotificationLoggerTest.java79 @Mock private NotificationEntryManager mEntryManager; field in NotificationLoggerTest
91 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
94 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
103 mEntryManager, mock(StatusBarStateControllerImpl.class), mBarService, in setUp()
106 verify(mEntryManager).addNotificationEntryListener(mEntryListenerCaptor.capture()); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterTest.java93 private NotificationEntryManager mEntryManager; field in StatusBarNotificationActivityStarterTest
137 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp()
167 mock(NotificationPresenter.class), mEntryManager, mock(HeadsUpManagerPhone.class), in setUp()
229 verify(mEntryManager).performRemoveNotification(eq(sbn), eq(REASON_CLICK)); in testOnNotificationClicked_keyGuardShowing()
258 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard()
288 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
320 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
DStatusBarRemoteInputCallbackTest.java54 @Mock private NotificationEntryManager mEntryManager; field in StatusBarRemoteInputCallbackTest
65 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
DStatusBarTest.java179 private TestableNotificationEntryManager mEntryManager; field in StatusBarTest
221 mEntryManager = new TestableNotificationEntryManager(mContext); in setup()
223 Dependency.get(UiOffloadThread.class), mEntryManager, mStatusBarStateController, in setup()
259 mEntryManager, mScrimController, mBiometricUnlockController, in setup()
274 mEntryManager.setUpForTest(mock(NotificationPresenter.class), mStackScroller, in setup()
276 mEntryManager.addNotificationEntryListener(mEntryListener); in setup()
806 mEntryManager = entryManager; in TestableStatusBar()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationBlockingHelperManagerTest.java68 @Mock private NotificationEntryManager mEntryManager; field in NotificationBlockingHelperManagerTest
84 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
110 verify(mEntryManager, times(0)).updateNotifications(); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow()
123 verify(mEntryManager).updateNotifications(); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow()
242 verify(mEntryManager).updateNotifications(); in testBlockingHelperShowAndDismiss()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutTest.java120 private TestableNotificationEntryManager mEntryManager; field in NotificationStackScrollLayoutTest
145 mEntryManager = new TestableNotificationEntryManager(mContext); in setUp()
146 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
148 mEntryManager.setUpForTest(mock(NotificationPresenter.class), null, mHeadsUpManager, in setUp()
339 when(mEntryManager.getNotificationData().getActiveNotifications()).thenReturn(entries); in testUpdateFooter_oneNonClearableNotification()
340 assertTrue(mEntryManager.getNotificationData().getActiveNotifications().size() != 0); in testUpdateFooter_oneNonClearableNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationLogger.java72 private final NotificationEntryManager mEntryManager; field in NotificationLogger
124 ArrayList<NotificationEntry> activeNotifications = mEntryManager
203 mEntryManager = entryManager; in NotificationLogger()
406 getNotificationLocation(mEntryManager.getNotificationData().get(key)); in onExpansionChanged()

12