Home
last modified time | relevance | path

Searched refs:mHeadsUpManager (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelperTest.java62 private HeadsUpManager mHeadsUpManager; field in NotificationGroupAlertTransferHelperTest
76 mHeadsUpManager = new HeadsUpManager(mContext) {}; in setup()
83 mGroupManager.setHeadsUpManager(mHeadsUpManager); in setup()
86 mGroupAlertTransferHelper.setHeadsUpManager(mHeadsUpManager); in setup()
91 mHeadsUpManager.addListener(mGroupAlertTransferHelper); in setup()
98 mHeadsUpManager.showNotification(summaryEntry); in testSuppressedSummaryHeadsUpTransfersToChild()
106 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChild()
107 assertTrue(mHeadsUpManager.isAlerting(childEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChild()
118 mHeadsUpManager.showNotification(summaryEntry); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
130 assertTrue(mHeadsUpManager.isAlerting(summaryEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
[all …]
DHeadsUpManagerPhoneTest.java52 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpManagerPhoneTest
70 return mHeadsUpManager; in createAlertingNotificationManager()
80 mHeadsUpManager = new TestableHeadsUpManagerPhone(mContext, mStatusBarWindowView, in setUp()
83 mHeadsUpManager.mHandler = mTestHandler; in setUp()
88 mHeadsUpManager.showNotification(mEntry); in testSnooze()
90 mHeadsUpManager.snooze(); in testSnooze()
92 assertTrue(mHeadsUpManager.isSnoozed(mEntry.notification.getPackageName())); in testSnooze()
97 mHeadsUpManager.showNotification(mEntry); in testSwipedOutNotification()
98 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testSwipedOutNotification()
101 mHeadsUpManager.removeNotification(mEntry.key, false /* releaseImmediately */); in testSwipedOutNotification()
[all …]
DHeadsUpAppearanceControllerTest.java57 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceControllerTest
68 mHeadsUpManager = mock(HeadsUpManagerPhone.class); in setUp()
72 mHeadsUpManager, in setUp()
85 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShowinEntryUpdated()
86 when(mHeadsUpManager.getTopEntry()).thenReturn(mFirst.getEntry()); in testShowinEntryUpdated()
91 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShowinEntryUpdated()
99 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShownUpdated()
100 when(mHeadsUpManager.getTopEntry()).thenReturn(mFirst.getEntry()); in testShownUpdated()
105 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShownUpdated()
113 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testHeaderUpdated()
[all …]
DNotificationGroupManagerTest.java55 @Mock HeadsUpManager mHeadsUpManager; field in NotificationGroupManagerTest
67 mGroupManager.setHeadsUpManager(mHeadsUpManager); in initializeGroupManager()
140 when(mHeadsUpManager.isAlerting(childEntry.key)).thenReturn(true); in testHeadsUpEntryIsIsolated()
DStatusBarTest.java138 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in StatusBarTest
252 mHeadsUpManager, mHeadsUpSuppressor); in setup()
256 mKeyguardIndicationController, mStackScroller, mHeadsUpManager, in setup()
275 mHeadsUpManager, mNotificationData); in setup() local
414 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_nonSuppressedGroupSummary()
435 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedGroupSummary()
456 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedHeadsUp()
474 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_noSuppressedHeadsUp()
503 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testPanelOpenForHeadsUp()
522 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testPanelOpenAndClear()
[all …]
DNotificationPanelViewTest.java87 private HeadsUpManagerPhone mHeadsUpManager; field in NotificationPanelViewTest
120 mNotificationPanelView.setHeadsUpManager(mHeadsUpManager); in setup()
196 NotificationPanelViewTest.this.mHeadsUpManager, in TestableNotificationPanelView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerTest.java46 private HeadsUpManager mHeadsUpManager; field in HeadsUpManagerTest
58 return mHeadsUpManager; in createAlertingNotificationManager()
65 mHeadsUpManager = new TestableHeadsUpManager(mContext); in setUp()
67 mHeadsUpManager.mHandler = mTestHandler; in setUp()
74 mHeadsUpManager.showNotification(mEntry); in testShowNotification_autoDismissesWithAccessibilityTimeout()
76 () -> mLivesPastNormalTime = mHeadsUpManager.isAlerting(mEntry.key); in testShowNotification_autoDismissesWithAccessibilityTimeout()
85 assertFalse(mHeadsUpManager.isAlerting(mEntry.key)); in testShowNotification_autoDismissesWithAccessibilityTimeout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java33 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpTouchHelper
48 mHeadsUpManager = headsUpManager; in HeadsUpTouchHelper()
86 NotificationEntry topEntry = mHeadsUpManager.getTopEntry(); in onInterceptTouchEvent()
120 mHeadsUpManager.unpinAll(true); in onInterceptTouchEvent()
131 if (mHeadsUpManager.shouldSwallowClick( in onInterceptTouchEvent()
145 mHeadsUpManager.setTrackingHeadsUp(tracking);
151 mHeadsUpManager.snooze();
DStatusBarTouchableRegionManager.java44 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarTouchableRegionManager
57 mHeadsUpManager = headsUpManager; in StatusBarTouchableRegionManager()
77 mHeadsUpManager.hasPinnedHeadsUp() || mHeadsUpManager.isHeadsUpGoingAway() in updateTouchableRegion()
136 mHeadsUpManager.updateTouchableRegion(info); in onComputeInternalInsets()
DHeadsUpAppearanceController.java48 private final HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceController
106 mHeadsUpManager = headsUpManager; in HeadsUpAppearanceController()
107 mHeadsUpManager.addListener(this); in HeadsUpAppearanceController()
142 mHeadsUpManager.removeListener(this); in destroy()
222 if (!mIsExpanded && mHeadsUpManager.hasPinnedHeadsUp()) { in updateTopEntry()
223 newEntry = mHeadsUpManager.getTopEntry(); in updateTopEntry()
345 return !mIsExpanded && mHeadsUpManager.hasPinnedHeadsUp(); in shouldBeVisible()
384 mHeadsUpManager.getAllEntries().forEach(entry -> { in updateHeadsUpHeaders()
DStatusBarNotificationPresenter.java112 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarNotificationPresenter
146 mHeadsUpManager = headsUp; in StatusBarNotificationPresenter()
213 mEntryManager.setUpWithPresenter(this, notifListContainer, mHeadsUpManager); in StatusBarNotificationPresenter()
215 mEntryManager.addNotificationLifetimeExtender(mHeadsUpManager); in StatusBarNotificationPresenter()
220 notificationRowBinder.setUpWithPresenter(this, notifListContainer, mHeadsUpManager, in StatusBarNotificationPresenter()
223 this, mHeadsUpManager, this::canHeadsUp); in StatusBarNotificationPresenter()
238 notificationAlertingManager.setHeadsUpManager(mHeadsUpManager); in StatusBarNotificationPresenter()
384 mHeadsUpManager.setUser(newUserId); in onUserSwitched()
462 mHeadsUpManager.setExpanded(clickedEntry, nowExpanded); in onExpandClicked()
DNotificationGroupAlertTransferHelper.java72 private HeadsUpManager mHeadsUpManager; field in NotificationGroupAlertTransferHelper
117 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
181 onAlertStateChanged(entry, isHeadsUp, mHeadsUpManager); in onHeadsUpStateChanged()
419 return mIsDozing ? mAmbientPulseManager : mHeadsUpManager; in getActiveAlertManager()
DStatusBarNotificationActivityStarter.java97 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarNotificationActivityStarter
139 mHeadsUpManager = headsUpManager; in StatusBarNotificationActivityStarter()
233 if (mHeadsUpManager != null && mHeadsUpManager.isAlerting(notificationKey)) { in handleNotificationClickAfterKeyguardDismissed()
242 mHeadsUpManager.removeNotification(sbn.getKey(), in handleNotificationClickAfterKeyguardDismissed()
DStatusBar.java829 if (mHeadsUpManager.hasPinnedHeadsUp()) { in makeStatusBarView()
845 mNotificationIconAreaController, mHeadsUpManager, mStatusBarWindow); in makeStatusBarView()
857 mHeadsUpManager = new HeadsUpManagerPhone(context, mStatusBarWindow, mGroupManager, this, in makeStatusBarView()
859 Dependency.get(ConfigurationController.class).addCallback(mHeadsUpManager); in makeStatusBarView()
860 mHeadsUpManager.addListener(this); in makeStatusBarView()
861 mHeadsUpManager.addListener(mNotificationPanel); in makeStatusBarView()
862 mHeadsUpManager.addListener(mGroupManager); in makeStatusBarView()
863 mHeadsUpManager.addListener(mGroupAlertTransferHelper); in makeStatusBarView()
864 mHeadsUpManager.addListener(mVisualStabilityManager); in makeStatusBarView()
868 mNotificationPanel.setHeadsUpManager(mHeadsUpManager); in makeStatusBarView()
[all …]
DPanelView.java79 protected HeadsUpManagerPhone mHeadsUpManager; field in PanelView
321 && mHeadsUpManager.hasPinnedHeadsUp(); in onTouchEvent()
331 if (isFullyCollapsed() && !mHeadsUpManager.hasPinnedHeadsUp() in onTouchEvent()
493 } else if (mPanelClosedOnDown && !mHeadsUpManager.hasPinnedHeadsUp() && !mTracking in endMotionEvent()
1243 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
DNotificationGroupManager.java57 private HeadsUpManager mHeadsUpManager; field in NotificationGroupManager
488 if (!mHeadsUpManager.isAlerting(entry.key) && !mAmbientPulseManager.isAlerting(entry.key)) { in shouldIsolate()
545 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationAlertingManager.java55 private HeadsUpManager mHeadsUpManager; field in NotificationAlertingManager
95 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
110 mHeadsUpManager.showNotification(entry); in showAlertingView()
134 alertManager = mHeadsUpManager; in updateAlertState()
177 if (mHeadsUpManager.isAlerting(key)) { in stopAlerting()
186 mHeadsUpManager.removeNotification(key, ignoreEarliestRemovalTime); in stopAlerting()
DNotificationInterruptionStateProvider.java67 private HeadsUpManager mHeadsUpManager; field in NotificationInterruptionStateProvider
101 mHeadsUpManager = headsUpManager; in setUpWithPresenter()
118 mHeadsUpManager.releaseAllImmediately(); in setUpWithPresenter()
379 return mHeadsUpManager.isSnoozed(sbn.getPackageName()); in isSnoozedPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationTestHelper.java71 private HeadsUpManager mHeadsUpManager; field in NotificationTestHelper
76 mHeadsUpManager = new HeadsUpManagerPhone(mContext, null, mGroupManager, null, null); in NotificationTestHelper()
77 mGroupManager.setHeadsUpManager(mHeadsUpManager); in NotificationTestHelper()
289 row.setHeadsUpManager(mHeadsUpManager); in generateRow()
DNonPhoneDependencyTest.java62 @Mock private HeadsUpManager mHeadsUpManager; field in NonPhoneDependencyTest
91 entryManager.setUpWithPresenter(mPresenter, mListContainer, mHeadsUpManager); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationRowBinderImpl.java76 private HeadsUpManager mHeadsUpManager; field in NotificationRowBinderImpl
106 mHeadsUpManager = headsUpManager; in setUpWithPresenter()
148 row.setHeadsUpManager(mHeadsUpManager); in bindRow()
DNotificationData.java56 private HeadsUpManager mHeadsUpManager; field in NotificationData
69 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
124 return mHeadsUpManager.compare(a, b);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutTest.java109 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in NotificationStackScrollLayoutTest
148 mEntryManager.setUpForTest(mock(NotificationPresenter.class), null, mHeadsUpManager, in setUp() local
170 mStackScroller.setHeadsUpManager(mHeadsUpManager); in setUp()
447 mStackScrollerInternal.setHeadsUpManager(mHeadsUpManager); in testOnMenuShownLogging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationLogger.java73 private HeadsUpManager mHeadsUpManager; field in NotificationLogger
241 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
283 if (mHeadsUpManager.isAlerting(key)) { in logNotificationClear()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java119 @Mock private HeadsUpManager mHeadsUpManager; field in NotificationEntryManagerTest
245 mEntryManager.setUpWithPresenter(mPresenter, mListContainer, mHeadsUpManager); in setUp()
252 mPresenter, mListContainer, mHeadsUpManager, mEntryManager, mBindCallback); in setUp()

12