/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 141 private TestableNotificationEntryManager mEntryManager; field in NotificationEntryManagerTest 245 mEntryManager = new TestableNotificationEntryManager(mContext); in setUp() 247 mEntryManager.setUpWithPresenter(mPresenter, mListContainer, mHeadsUpManager); in setUp() 248 mEntryManager.addNotificationEntryListener(mEntryListener); in setUp() 249 mEntryManager.setNotificationRemoveInterceptor(mRemoveInterceptor); in setUp() 255 mPresenter, mListContainer, mHeadsUpManager, mEntryManager, mBindCallback); in setUp() 257 mEntryManager.setRowBinder(notificationRowBinder); in setUp() 274 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification() 277 assertTrue(mEntryManager.getCountDownLatch().await(10, TimeUnit.SECONDS)); in testAddNotification() 293 assertEquals(mEntryManager.getNotificationData().get(mSbn.getKey()), entry); in testAddNotification() [all …]
|
D | NotificationListControllerTest.java | 64 @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/ |
D | NotificationListener.java | 55 private final NotificationEntryManager mEntryManager = field in NotificationListener 84 mEntryManager.addNotification(sbn, currentRanking); in onListenerConnected() 100 mEntryManager.getNotificationData().get(key) != null; in onNotificationPosted() 113 mEntryManager.removeNotification(key, rankingMap, UNDEFINED_DISMISS_REASON); in onNotificationPosted() 115 mEntryManager.getNotificationData() in onNotificationPosted() 121 mEntryManager.updateNotification(sbn, rankingMap); in onNotificationPosted() 123 mEntryManager.addNotification(sbn, rankingMap); in onNotificationPosted() 136 mEntryManager.removeNotification(key, rankingMap, reason); in onNotificationRemoved() 152 mEntryManager.updateNotificationRanking(r); in onNotificationRankingUpdate()
|
D | SmartReplyController.java | 40 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()
|
D | NotificationViewHierarchyManager.java | 77 private final NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManager 119 mEntryManager = notificationEntryManager; in NotificationViewHierarchyManager() 143 ArrayList<NotificationEntry> activeNotifications = mEntryManager.getNotificationData() in updateNotificationViews() 257 mVisualStabilityManager.addReorderingAllowedCallback(mEntryManager); in updateNotificationViews() 308 mEntryManager); in addNotificationChildrenAndSort() 340 if (mEntryManager.getNotificationData().get( in removeNotificationChildren()
|
D | NotificationRemoteInputManager.java | 117 private final NotificationEntryManager mEntryManager; field in NotificationRemoteInputManager 187 final int count = mEntryManager.getNotificationData().getActiveNotifications().size(); 188 final int rank = mEntryManager.getNotificationData().getRank(key); 205 mEntryManager.getNotificationData().get(key)); 269 mEntryManager = notificationEntryManager; in NotificationRemoteInputManager() 346 mEntryManager.updateNotification(newSbn, null /* ranking */); in setUpWithCallback() 630 mEntryManager.updateNotification(newSbn, null); in setShouldManageLifetime() 670 mEntryManager.updateNotification(newSbn, null); in setShouldManageLifetime()
|
D | NotificationMediaManager.java | 109 private NotificationEntryManager mEntryManager; field in NotificationMediaManager 203 mEntryManager = notificationEntryManager; in NotificationMediaManager() 254 synchronized (mEntryManager.getNotificationData()) { in getMediaIcon() 255 … NotificationEntry entry = mEntryManager.getNotificationData().get(mMediaNotificationKey); in getMediaIcon() 277 synchronized (mEntryManager.getNotificationData()) { in findAndUpdateMediaNotifications() 279 mEntryManager.getNotificationData().getActiveNotifications(); in findAndUpdateMediaNotifications() 367 mEntryManager.updateNotifications(); in findAndUpdateMediaNotifications()
|
D | NotificationLockscreenUserManagerImpl.java | 79 private NotificationEntryManager mEntryManager; field in NotificationLockscreenUserManagerImpl 172 if (mEntryManager == null) { in getEntryManager() 173 mEntryManager = Dependency.get(NotificationEntryManager.class); in getEntryManager() 175 return mEntryManager; in getEntryManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationListController.java | 39 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/ |
D | NotificationListenerTest.java | 61 @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()
|
D | NotificationLockscreenUserManagerTest.java | 70 @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()
|
D | NotificationViewHierarchyManagerTest.java | 80 @Mock private NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManagerTest 99 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 108 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp() 112 mock(StatusBarStateControllerImpl.class), mEntryManager, in setUp()
|
D | NotificationRemoteInputManagerTest.java | 63 @Mock private NotificationEntryManager mEntryManager; field in NotificationRemoteInputManagerTest 78 mLockscreenUserManager, mSmartReplyController, mEntryManager, in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupAlertTransferHelper.java | 74 private NotificationEntryManager mEntryManager; field in NotificationGroupAlertTransferHelper 86 if (mEntryManager != null) { in bind() 94 mEntryManager = entryManager; in bind() 96 mEntryManager.addNotificationEntryListener(mNotificationEntryListener); in bind() 229 if (mEntryManager == null) { in getPendingChildrenNotAlerting() 233 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in getPendingChildrenNotAlerting() 249 if (mEntryManager == null) { in pendingInflationsWillAddChildren() 252 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in pendingInflationsWillAddChildren()
|
D | StatusBarNotificationPresenter.java | 99 private final NotificationEntryManager mEntryManager = field in StatusBarNotificationPresenter 212 mEntryManager.setUpWithPresenter(this, notifListContainer, mHeadsUpManager); in StatusBarNotificationPresenter() 213 mEntryManager.addNotificationEntryListener(notificationEntryListener); in StatusBarNotificationPresenter() 214 mEntryManager.addNotificationLifetimeExtender(mHeadsUpManager); in StatusBarNotificationPresenter() 215 mEntryManager.addNotificationLifetimeExtender(mGutsManager); in StatusBarNotificationPresenter() 216 mEntryManager.addNotificationLifetimeExtenders( in StatusBarNotificationPresenter() 219 mEntryManager, this); in StatusBarNotificationPresenter() 266 = mEntryManager.getNotificationData().getNotificationsForCurrentUser(); in updateNotificationOnUiModeChanged() 278 mEntryManager.getNotificationData().getNotificationsForCurrentUser(); in updateNotificationsOnDensityOrFontScaleChanged() 340 return !mEntryManager.getNotificationData().getActiveNotifications().isEmpty(); in hasActiveNotifications()
|
D | StatusBarNotificationActivityStarter.java | 89 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() 487 () -> mEntryManager.performRemoveNotification(notification, REASON_CLICK); in removeNotification()
|
D | StatusBar.java | 415 protected NotificationEntryManager mEntryManager; field in StatusBar 597 mEntryManager.updateNotifications(); 612 mEntryManager.updateNotifications(); 1060 mEntryManager, in setUpPresenter() 1078 mCommandQueue, mAssistManager, mNotificationPanel, mPresenter, mEntryManager, in setUpPresenter() 1089 mEntryManager.setRowBinder(rowBinder); in setUpPresenter() 1093 mGroupAlertTransferHelper.bind(mEntryManager, mGroupManager); in setUpPresenter() 1108 mEntryManager = Dependency.get(NotificationEntryManager.class); in getDependencies() 1400 mEntryManager.updateNotifications(); in requestNotificationUpdate() 1417 mEntryManager.getNotificationData().getActiveNotifications().size() + " any=" + in updateAreThereNotifications() [all …]
|
D | NotificationIconAreaController.java | 51 private final NotificationEntryManager mEntryManager; field in NotificationIconAreaController 91 mEntryManager = Dependency.get(NotificationEntryManager.class); in NotificationIconAreaController() 247 if (mEntryManager.getNotificationData().isAmbient(entry.key) && !showAmbient) { in shouldShowNotificationIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationLoggerTest.java | 79 @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/ |
D | StatusBarNotificationActivityStarterTest.java | 93 private NotificationEntryManager mEntryManager; field in StatusBarNotificationActivityStarterTest 137 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp() 165 mock(NotificationPresenter.class), mEntryManager, mock(HeadsUpManagerPhone.class), in setUp() 227 verify(mEntryManager).performRemoveNotification(eq(sbn), eq(REASON_CLICK)); in testOnNotificationClicked_keyGuardShowing() 256 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_noContentIntent_noKeyGuard() 286 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 318 verify(mEntryManager, never()).performRemoveNotification(eq(sbn), anyInt()); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
|
D | StatusBarRemoteInputCallbackTest.java | 54 @Mock private NotificationEntryManager mEntryManager; field in StatusBarRemoteInputCallbackTest 65 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp()
|
D | StatusBarTest.java | 181 private TestableNotificationEntryManager mEntryManager; field in StatusBarTest 224 mEntryManager = new TestableNotificationEntryManager(mContext); in setup() 226 Dependency.get(UiOffloadThread.class), mEntryManager, mStatusBarStateController, in setup() 263 mEntryManager, mScrimController, mBiometricUnlockController, in setup() 279 mEntryManager.setUpForTest(mock(NotificationPresenter.class), mStackScroller, in setup() 281 mEntryManager.addNotificationEntryListener(mEntryListener); in setup() 804 mEntryManager = entryManager; in TestableStatusBar()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationBlockingHelperManagerTest.java | 68 @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/ |
D | NotificationStackScrollLayoutTest.java | 126 private TestableNotificationEntryManager mEntryManager; field in NotificationStackScrollLayoutTest 153 mEntryManager = new TestableNotificationEntryManager(mContext); in setUp() 154 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 156 mEntryManager.setUpForTest(mock(NotificationPresenter.class), null, mHeadsUpManager, in setUp() 346 when(mEntryManager.getNotificationData().getActiveNotifications()).thenReturn(entries); in testUpdateFooter_oneNonClearableNotification() 347 assertTrue(mEntryManager.getNotificationData().getActiveNotifications().size() != 0); in testUpdateFooter_oneNonClearableNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationLogger.java | 72 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()
|