/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationListener.java | 47 protected NotificationEntryManager mEntryManager; field in NotificationListener 65 mEntryManager.addNotification(sbn, currentRanking); in onListenerConnected() 78 mEntryManager.removeKeyKeptForRemoteInput(key); in onNotificationPosted() 80 mEntryManager.getNotificationData().get(key) != null; in onNotificationPosted() 93 mEntryManager.removeNotification(key, rankingMap); in onNotificationPosted() 95 mEntryManager.getNotificationData() in onNotificationPosted() 101 mEntryManager.updateNotification(sbn, rankingMap); in onNotificationPosted() 103 mEntryManager.addNotification(sbn, rankingMap); in onNotificationPosted() 116 mEntryManager.removeNotification(key, rankingMap); in onNotificationRemoved() 127 mEntryManager.updateNotificationRanking(r); in onNotificationRankingUpdate() [all …]
|
D | NotificationLockscreenUserManager.java | 85 mEntryManager.updateNotifications(); 133 mEntryManager.getNotificationData().getActiveNotifications().size(); 134 final int rank = mEntryManager.getNotificationData().getRank(notificationKey); 152 protected NotificationEntryManager mEntryManager; field in NotificationLockscreenUserManager 169 mEntryManager = entryManager; in setUpWithPresenter() 180 mEntryManager.updateNotifications(); in setUpWithPresenter() 189 mEntryManager.updateNotifications(); in setUpWithPresenter() 293 if (mEntryManager == null) { in shouldHideNotifications() 298 && mEntryManager.getNotificationData().getVisibilityOverride(key) == in shouldHideNotifications() 303 if (mEntryManager == null) { in shouldShowOnKeyguard() [all …]
|
D | NotificationRemoteInputManager.java | 85 protected NotificationEntryManager mEntryManager; field in NotificationRemoteInputManager 130 final int count = mEntryManager.getNotificationData().getActiveNotifications().size(); 131 final int rank = mEntryManager.getNotificationData().getRank(key); 281 mEntryManager = entryManager; in setUpWithPresenter() 288 && mEntryManager.isNotificationKeptForRemoteInput(entry.key)) { in setUpWithPresenter() 289 mEntryManager.removeNotification(entry.key, null); in setUpWithPresenter() 297 mEntryManager.removeNotification(entry.key, null); in setUpWithPresenter() 344 mEntryManager.removeNotification(entry.key, mEntryManager.getLatestRankingMap()); in removeRemoteInputEntriesKeptUntilCollapsed()
|
D | AppOpsListener.java | 38 protected NotificationEntryManager mEntryManager; field in AppOpsListener 53 mEntryManager = entryManager; in setUpWithPresenter() 65 mEntryManager.updateNotificationsForAppOp(code, uid, packageName, active); in onOpActiveChanged()
|
D | NotificationMediaManager.java | 47 protected NotificationEntryManager mEntryManager; field in NotificationMediaManager 89 mEntryManager = entryManager; in setUpWithPresenter() 110 synchronized (mEntryManager.getNotificationData()) { in findAndUpdateMediaNotifications() 111 ArrayList<NotificationData.Entry> activeNotifications = mEntryManager in findAndUpdateMediaNotifications() 200 mEntryManager.updateNotifications(); in findAndUpdateMediaNotifications()
|
D | NotificationViewHierarchyManager.java | 66 private NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManager 78 mEntryManager = entryManager; in setUpWithPresenter() 86 ArrayList<NotificationData.Entry> activeNotifications = mEntryManager.getNotificationData() in updateNotificationViews() 190 mVisualStabilityManager.addReorderingAllowedCallback(mEntryManager); in updateNotificationViews() 239 mEntryManager); in addNotificationChildrenAndSort() 271 if (mEntryManager.getNotificationData().get( in removeNotificationChildren()
|
D | NotificationLogger.java | 56 protected NotificationEntryManager mEntryManager; field in NotificationLogger 103 ArrayList<NotificationData.Entry> activeNotifications = mEntryManager 146 mEntryManager = entryManager; in setUpWithEntryManager()
|
D | NotificationGutsManager.java | 79 protected NotificationEntryManager mEntryManager; field in NotificationGutsManager 98 mEntryManager = entryManager; in setUpWithPresenter() 174 mEntryManager.removeNotification(key, mEntryManager.getLatestRankingMap()); in bindGuts()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationEntryManagerTest.java | 105 private TestableNotificationEntryManager mEntryManager; field in NotificationEntryManagerTest 183 mEntryManager = new TestableNotificationEntryManager(mContext, mBarService); in setUp() 184 mEntryManager.setUpWithPresenter(mPresenter, mListContainer, mCallback, mHeadsUpManager); in setUp() 201 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification() 204 assertTrue(mEntryManager.getCountDownLatch().await(10, TimeUnit.SECONDS)); in testAddNotification() 222 assertEquals(mEntryManager.getNotificationData().get(mSbn.getKey()), entry); in testAddNotification() 233 mEntryManager.getNotificationData().add(mEntry); in testUpdateNotification() 237 mEntryManager.updateNotification(mSbn, mRankingMap); in testUpdateNotification() 240 assertTrue(mEntryManager.getCountDownLatch().await(10, TimeUnit.SECONDS)); in testUpdateNotification() 259 mEntryManager.getNotificationData().add(mEntry); in testRemoveNotification() [all …]
|
D | NotificationListenerTest.java | 58 @Mock private NotificationEntryManager mEntryManager; field in NotificationListenerTest 67 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 72 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp() 78 mListener.setUpWithPresenter(mPresenter, mEntryManager); in setUp() 85 verify(mEntryManager).addNotification(mSbn, mRanking); in testNotificationAddCallsAddNotification() 92 verify(mEntryManager).removeKeyKeptForRemoteInput(mSbn.getKey()); in testPostNotificationRemovesKeyKeptForRemoteInput() 100 verify(mEntryManager).updateNotification(mSbn, mRanking); in testNotificationUpdateCallsUpdateNotification() 107 verify(mEntryManager).removeNotification(mSbn.getKey(), mRanking); in testNotificationRemovalCallsRemoveNotification() 115 verify(mEntryManager).updateNotificationRanking(any()); in testRankingUpdateCallsNotificationRankingUpdate()
|
D | AppOpsListenerTest.java | 50 @Mock private NotificationEntryManager mEntryManager; field in AppOpsListenerTest 58 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 68 mListener.setUpWithPresenter(mPresenter, mEntryManager); in testOnlyListenForFewOps() 81 mListener.setUpWithPresenter(mPresenter, mEntryManager); in testInformEntryMgrOnAppOpsChange() 85 verify(mEntryManager, times(1)).updateNotificationsForAppOp( in testInformEntryMgrOnAppOpsChange() 91 mListener.setUpWithPresenter(mPresenter, mEntryManager); in testInformFscOnAppOpsChange()
|
D | NotificationRemoteInputManagerTest.java | 45 @Mock private NotificationEntryManager mEntryManager; field in NotificationRemoteInputManagerTest 55 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 60 when(mEntryManager.getLatestRankingMap()).thenReturn(mRanking); in setUp() 68 mRemoteInputManager.setUpWithPresenterForTest(mPresenter, mEntryManager, mCallback, in setUp() 101 verify(mEntryManager).removeNotification(mEntry.key, mRanking); in testRemoveRemoteInputEntriesKeptUntilCollapsed()
|
D | NotificationLockscreenUserManagerTest.java | 62 @Mock private NotificationEntryManager mEntryManager; field in NotificationLockscreenUserManagerTest 71 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 83 mLockscreenUserManager.setUpWithPresenter(mPresenter, mEntryManager); in setUp() 89 verify(mEntryManager, times(1)).updateNotifications(); in testLockScreenShowNotificationsChangeUpdatesNotifications() 128 verify(mEntryManager, times(1)).updateNotifications(); in testSettingsObserverUpdatesNotifications()
|
D | NotificationBlockingHelperManagerTest.java | 63 @Mock private NotificationEntryManager mEntryManager; field in NotificationBlockingHelperManagerTest 78 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 104 verify(mEntryManager, times(0)).updateNotifications(); in testDismissCurrentBlockingHelper_withDetachedBlockingHelperRow() 117 verify(mEntryManager).updateNotifications(); in testDismissCurrentBlockingHelper_withAttachedBlockingHelperRow() 220 verify(mEntryManager).updateNotifications(); in testBlockingHelperShowAndDismiss()
|
D | NotificationLoggerTest.java | 67 @Mock private NotificationEntryManager mEntryManager; field in NotificationLoggerTest 78 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 81 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp() 89 mLogger.setUpWithEntryManager(mEntryManager, mListContainer); in setUp()
|
D | NotificationViewHierarchyManagerTest.java | 60 @Mock private NotificationEntryManager mEntryManager; field in NotificationViewHierarchyManagerTest 71 mDependency.injectTestDependency(NotificationEntryManager.class, mEntryManager); in setUp() 77 when(mEntryManager.getNotificationData()).thenReturn(mNotificationData); in setUp() 80 mViewHierarchyManager.setUpWithPresenter(mPresenter, mEntryManager, mListContainer); in setUp()
|
D | NotificationGutsManagerTest.java | 90 @Mock private NotificationEntryManager mEntryManager; field in NotificationGutsManagerTest 103 mGutsManager.setUpWithPresenter(mPresenter, mEntryManager, mStackScroller, in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarTest.java | 150 private TestableNotificationEntryManager mEntryManager; field in StatusBarTest 203 mEntryManager = new TestableNotificationEntryManager(mSystemServicesProxy, mPowerManager, in setup() 210 mEntryManager, mScrimController, mFingerprintUnlockController, in setup() 219 mEntryManager.setUpForTest(mStatusBar, mStackScroller, mStatusBar, mHeadsUpManager, in setup() 221 mNotificationLogger.setUpWithEntryManager(mEntryManager, mStackScroller); in setup() 384 assertTrue(mEntryManager.shouldPeek(entry, sbn)); in testShouldPeek_nonSuppressedGroupSummary() 405 assertFalse(mEntryManager.shouldPeek(entry, sbn)); in testShouldPeek_suppressedGroupSummary() 423 assertFalse(mEntryManager.shouldPeek(entry, sbn)); in testShouldPeek_suppressedPeek() 441 assertTrue(mEntryManager.shouldPeek(entry, sbn)); in testShouldPeek_noSuppressedPeek() 611 assertEquals(0, mEntryManager.getNotificationData().getActiveNotifications().size()); in testUpdateFooter_noNotifications() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationIconAreaController.java | 36 private final NotificationEntryManager mEntryManager; field in NotificationIconAreaController 55 mEntryManager = Dependency.get(NotificationEntryManager.class); in NotificationIconAreaController() 145 if (mEntryManager.getNotificationData().isAmbient(entry.key) && !showAmbient) { in shouldShowNotificationIcon() 163 if (!showAmbient && mEntryManager.getNotificationData().shouldSuppressStatusBar(entry)) { in shouldShowNotificationIcon()
|
D | StatusBar.java | 417 protected NotificationEntryManager mEntryManager; field in StatusBar 614 mEntryManager.updateNotifications(); 646 mEntryManager = Dependency.get(NotificationEntryManager.class); in start() 649 mAppOpsListener.setUpWithPresenter(this, mEntryManager); in start() 691 mMediaManager.setUpWithPresenter(this, mEntryManager); in start() 717 mLockscreenUserManager.setUpWithPresenter(this, mEntryManager); in start() 732 mNotificationListener.setUpWithPresenter(this, mEntryManager); in start() 812 mGutsManager.setUpWithPresenter(this, mEntryManager, mStackScroller, mCheckSaveListener, in makeStatusBarView() 820 mNotificationLogger.setUpWithEntryManager(mEntryManager, mStackScroller); in makeStatusBarView() 869 mEntryManager.setUpWithPresenter(this, mStackScroller, this, mHeadsUpManager); in makeStatusBarView() [all …]
|