Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DHeadsUpManagerPhoneTest.java53 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpManagerPhoneTest
77 return mHeadsUpManager; in createAlertingNotificationManager()
87 mHeadsUpManager = new TestableHeadsUpManagerPhone(mContext, mStatusBarWindowView, in setUp()
90 mHeadsUpManager.mHandler = mTestHandler; in setUp()
95 mHeadsUpManager.showNotification(mEntry); in testSnooze()
97 mHeadsUpManager.snooze(); in testSnooze()
99 assertTrue(mHeadsUpManager.isSnoozed(mEntry.notification.getPackageName())); in testSnooze()
104 mHeadsUpManager.showNotification(mEntry); in testSwipedOutNotification()
105 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testSwipedOutNotification()
108 mHeadsUpManager.removeNotification(mEntry.key, false /* releaseImmediately */); in testSwipedOutNotification()
[all …]
DNotificationGroupAlertTransferHelperTest.java62 private HeadsUpManager mHeadsUpManager; field in NotificationGroupAlertTransferHelperTest
74 mHeadsUpManager = new HeadsUpManager(mContext) {}; in setup()
81 mGroupManager.setHeadsUpManager(mHeadsUpManager); in setup()
84 mGroupAlertTransferHelper.setHeadsUpManager(mHeadsUpManager); in setup()
89 mHeadsUpManager.addListener(mGroupAlertTransferHelper); in setup()
95 mHeadsUpManager.showNotification(summaryEntry); in testSuppressedSummaryHeadsUpTransfersToChild()
103 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChild()
104 assertTrue(mHeadsUpManager.isAlerting(childEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChild()
115 mHeadsUpManager.showNotification(summaryEntry); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
127 assertTrue(mHeadsUpManager.isAlerting(summaryEntry.key)); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
[all …]
DHeadsUpAppearanceControllerTest.java59 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceControllerTest
73 mHeadsUpManager = mock(HeadsUpManagerPhone.class); in setUp()
80 mHeadsUpManager, in setUp()
96 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShowinEntryUpdated()
97 when(mHeadsUpManager.getTopEntry()).thenReturn(mFirst.getEntry()); in testShowinEntryUpdated()
102 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShowinEntryUpdated()
110 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShownUpdated()
111 when(mHeadsUpManager.getTopEntry()).thenReturn(mFirst.getEntry()); in testShownUpdated()
116 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShownUpdated()
124 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testHeaderUpdated()
[all …]
DNotificationGroupManagerTest.java56 @Mock HeadsUpManager mHeadsUpManager; field in NotificationGroupManagerTest
65 mGroupManager.setHeadsUpManager(mHeadsUpManager); in initializeGroupManager()
138 when(mHeadsUpManager.isAlerting(childEntry.key)).thenReturn(true); in testHeadsUpEntryIsIsolated()
DNotificationPanelViewTest.java92 private HeadsUpManagerPhone mHeadsUpManager; field in NotificationPanelViewTest
131 mKeyguardBypassController, mHeadsUpManager, in setup()
135 mNotificationPanelView.setHeadsUpManager(mHeadsUpManager); in setup()
229 NotificationPanelViewTest.this.mHeadsUpManager, in TestableNotificationPanelView()
DStatusBarTest.java139 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in StatusBarTest
256 mHeadsUpManager, mHeadsUpSuppressor); in setup()
276 mStatusBar.setHeadsUpManager(mHeadsUpManager); in setup()
280 mHeadsUpManager, mNotificationData); in setup() local
412 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_nonSuppressedGroupSummary()
433 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedGroupSummary()
454 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedHeadsUp()
472 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_noSuppressedHeadsUp()
501 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testPanelOpenForHeadsUp()
520 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testPanelOpenAndClear()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationAlertingManager.java51 private HeadsUpManager mHeadsUpManager; field in NotificationAlertingManager
89 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
104 mHeadsUpManager.showNotification(entry); in showAlertingView()
119 final boolean wasAlerting = mHeadsUpManager.isAlerting(entry.key); in updateAlertState()
122 mHeadsUpManager.updateNotification(entry.key, alertAgain); in updateAlertState()
123 } else if (!mHeadsUpManager.isEntryAutoHeadsUpped(entry.key)) { in updateAlertState()
125 mHeadsUpManager.removeNotification(entry.key, false /* removeImmediately */); in updateAlertState()
129 mHeadsUpManager.showNotification(entry); in updateAlertState()
158 if (mHeadsUpManager.isAlerting(key)) { in stopAlerting()
167 mHeadsUpManager.removeNotification(key, ignoreEarliestRemovalTime); in stopAlerting()
DNotificationInterruptionStateProvider.java71 private HeadsUpManager mHeadsUpManager; field in NotificationInterruptionStateProvider
131 mHeadsUpManager.releaseAllImmediately(); in setUpWithPresenter()
145 mHeadsUpManager = headsUpManager; in setUpWithPresenter()
394 return mHeadsUpManager.isSnoozed(sbn.getPackageName()); in isSnoozedPackage()
/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/
DNotificationGroupAlertTransferHelper.java70 private HeadsUpManager mHeadsUpManager; field in NotificationGroupAlertTransferHelper
113 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
144 if (mHeadsUpManager.isAlerting(group.summary.key)) {
145 handleSuppressedSummaryAlerted(group.summary, mHeadsUpManager);
158 if (!mHeadsUpManager.isAlerting(group.summary.key)) {
159 alertNotificationWhenPossible(group.summary, mHeadsUpManager);
171 onAlertStateChanged(entry, isHeadsUp, mHeadsUpManager); in onHeadsUpStateChanged()
201 alertNotificationWhenPossible(entry, mHeadsUpManager);
204 entry.getRow().freeContentViewWhenSafe(mHeadsUpManager.getContentFlag());
360 if (onlySummaryAlerts(entry) && mHeadsUpManager.isAlerting(entry.key)) { in checkShouldTransferBack()
[all …]
DHeadsUpTouchHelper.java33 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpTouchHelper
48 mHeadsUpManager = headsUpManager; in HeadsUpTouchHelper()
86 NotificationEntry topEntry = mHeadsUpManager.getTopEntry(); in onInterceptTouchEvent()
121 mHeadsUpManager.unpinAll(true); in onInterceptTouchEvent()
132 if (mHeadsUpManager.shouldSwallowClick( in onInterceptTouchEvent()
146 mHeadsUpManager.setTrackingHeadsUp(tracking); in setTrackingHeadsUp()
152 mHeadsUpManager.snooze(); in notifyFling()
DStatusBarTouchableRegionManager.java42 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarTouchableRegionManager
56 mHeadsUpManager = headsUpManager; in StatusBarTouchableRegionManager()
81 mHeadsUpManager.hasPinnedHeadsUp() || mHeadsUpManager.isHeadsUpGoingAway() in updateTouchableRegion()
141 mHeadsUpManager.updateTouchableRegion(info); in onComputeInternalInsets()
DStatusBarNotificationPresenter.java111 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarNotificationPresenter
145 mHeadsUpManager = headsUp; in StatusBarNotificationPresenter()
212 mEntryManager.setUpWithPresenter(this, notifListContainer, mHeadsUpManager); in StatusBarNotificationPresenter()
214 mEntryManager.addNotificationLifetimeExtender(mHeadsUpManager); in StatusBarNotificationPresenter()
218 notificationRowBinder.setUpWithPresenter(this, notifListContainer, mHeadsUpManager, in StatusBarNotificationPresenter()
221 this, mHeadsUpManager, this::canHeadsUp); in StatusBarNotificationPresenter()
236 notificationAlertingManager.setHeadsUpManager(mHeadsUpManager); in StatusBarNotificationPresenter()
298 !mHeadsUpManager.hasNotifications()) { in maybeEndAmbientPulse()
379 mHeadsUpManager.setUser(newUserId); in onUserSwitched()
457 mHeadsUpManager.setExpanded(clickedEntry, nowExpanded); in onExpandClicked()
DHeadsUpAppearanceController.java56 private final HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceController
126 mHeadsUpManager = headsUpManager; in HeadsUpAppearanceController()
127 mHeadsUpManager.addListener(this); in HeadsUpAppearanceController()
168 mHeadsUpManager.removeListener(this); in destroy()
250 newEntry = mHeadsUpManager.getTopEntry(); in updateTopEntry()
385 return canShow && mHeadsUpManager.hasPinnedHeadsUp(); in shouldBeVisible()
427 mHeadsUpManager.getAllEntries().forEach(entry -> { in updateHeadsUpHeaders()
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.java380 protected HeadsUpManagerPhone mHeadsUpManager; field in StatusBar
849 if (mHeadsUpManager.hasPinnedHeadsUp()) { in makeStatusBarView()
865 mNotificationIconAreaController, mHeadsUpManager, mStatusBarWindow, in makeStatusBarView()
879 mHeadsUpManager.setUp(mStatusBarWindow, mGroupManager, this, mVisualStabilityManager); in makeStatusBarView()
880 Dependency.get(ConfigurationController.class).addCallback(mHeadsUpManager); in makeStatusBarView()
881 mHeadsUpManager.addListener(this); in makeStatusBarView()
882 mHeadsUpManager.addListener(mNotificationPanel); in makeStatusBarView()
883 mHeadsUpManager.addListener(mGroupManager); in makeStatusBarView()
884 mHeadsUpManager.addListener(mGroupAlertTransferHelper); in makeStatusBarView()
885 mHeadsUpManager.addListener(mVisualStabilityManager); in makeStatusBarView()
[all …]
DLockIcon.java87 private final HeadsUpManagerPhone mHeadsUpManager; field in LockIcon
193 mHeadsUpManager = headsUpManager; in LockIcon()
341 if ((mHeadsUpManager.isHeadsUpGoingAway() || mHeadsUpManager.hasPinnedHeadsUp() in updateIconVisibility()
DPanelView.java79 protected HeadsUpManagerPhone mHeadsUpManager; field in PanelView
321 && mHeadsUpManager.hasPinnedHeadsUp(); in onTouchEvent()
331 if (isFullyCollapsed() && !mHeadsUpManager.hasPinnedHeadsUp() in onTouchEvent()
497 } else if (mPanelClosedOnDown && !mHeadsUpManager.hasPinnedHeadsUp() && !mTracking in endMotionEvent()
1251 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
DNotificationGroupManager.java55 private HeadsUpManager mHeadsUpManager; field in NotificationGroupManager
497 if (!mHeadsUpManager.isAlerting(entry.key)) { in shouldIsolate()
554 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationTestHelper.java74 private HeadsUpManagerPhone mHeadsUpManager; field in NotificationTestHelper
81 mHeadsUpManager = new HeadsUpManagerPhone(mContext, stateController, in NotificationTestHelper()
83 mHeadsUpManager.setUp(null, mGroupManager, null, null); in NotificationTestHelper()
84 mGroupManager.setHeadsUpManager(mHeadsUpManager); in NotificationTestHelper()
296 row.setHeadsUpManager(mHeadsUpManager); in generateRow()
DNotificationInterruptionStateProviderTest.java86 HeadsUpManager mHeadsUpManager; field in NotificationInterruptionStateProviderTest
109 mHeadsUpManager, in setup()
129 when(mHeadsUpManager.isSnoozed(any())).thenReturn(false); in ensureStateForAlertAwakeCommon()
194 mHeadsUpManager, in testHunSettingsChange_enabled_butAlertsDisabled()
452 when(mHeadsUpManager.isSnoozed(any())).thenReturn(true); in testCanAlertAwakeCommon_false_snoozedPackage()
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.java79 private HeadsUpManager mHeadsUpManager; field in NotificationRowBinderImpl
113 mHeadsUpManager = headsUpManager; in setUpWithPresenter()
158 row.setHeadsUpManager(mHeadsUpManager); in bindRow()
DNotificationData.java56 private HeadsUpManager mHeadsUpManager; field in NotificationData
68 mHeadsUpManager = headsUpManager; in setHeadsUpManager()
123 return mHeadsUpManager.compare(a, b);
/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()

12