Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DHeadsUpManagerPhoneTest.java62 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpManagerPhoneTest
108 return mHeadsUpManager; in createAlertingNotificationManager()
122 mHeadsUpManager = new TestableHeadsUpManagerPhone( in setUp()
144 mHeadsUpManager.showNotification(mEntry); in testSnooze()
146 mHeadsUpManager.snooze(); in testSnooze()
148 assertTrue(mHeadsUpManager.isSnoozed(mEntry.getSbn().getPackageName())); in testSnooze()
153 mHeadsUpManager.showNotification(mEntry); in testSwipedOutNotification()
154 mHeadsUpManager.addSwipedOutNotification(mEntry.getKey()); in testSwipedOutNotification()
157 mHeadsUpManager.removeNotification(mEntry.getKey(), false /* releaseImmediately */); in testSwipedOutNotification()
159 assertFalse(mHeadsUpManager.isAlerting(mEntry.getKey())); in testSwipedOutNotification()
[all …]
DHeadsUpAppearanceControllerTest.java75 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceControllerTest
96 mHeadsUpManager = mock(HeadsUpManagerPhone.class); in setUp()
108 mHeadsUpManager, in setUp()
128 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShowinEntryUpdated()
129 when(mHeadsUpManager.getTopEntry()).thenReturn(mEntry); in testShowinEntryUpdated()
134 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShowinEntryUpdated()
142 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testShownUpdated()
143 when(mHeadsUpManager.getTopEntry()).thenReturn(mEntry); in testShownUpdated()
148 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testShownUpdated()
156 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testHeaderUpdated()
[all …]
DCentralSurfacesImplTest.java219 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in CentralSurfacesImplTest
345 mHeadsUpManager, in setup()
450 mHeadsUpManager, in setup()
722 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_nonSuppressedGroupSummary()
745 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedGroupSummary()
768 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_suppressedHeadsUp()
789 when(mHeadsUpManager.isSnoozed(anyString())).thenReturn(false); in testShouldHeadsUp_noSuppressedHeadsUp()
857 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(true); in testPanelOpenForHeadsUp()
875 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testPanelOpenAndClear()
894 when(mHeadsUpManager.hasPinnedHeadsUp()).thenReturn(false); in testPanelOpenAndNoClear()
DDozeServiceHostTest.java72 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in DozeServiceHostTest
100 mStatusBarStateController, mDeviceProvisionedController, mHeadsUpManager, in setup()
DCentralSurfacesCommandQueueCallbacksTest.java84 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in CentralSurfacesCommandQueueCallbacksTest
118 mHeadsUpManager, in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHeadsUpCoordinatorTest.kt86 private val mHeadsUpManager: HeadsUpManager = mock() in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.HeadsUpCoordinatorTest
114 mHeadsUpManager, in <lambda>()
141 verify(mHeadsUpManager).addListener(capture()) in <lambda>()
146 given(mHeadsUpManager.allEntries).willAnswer { mHuns.stream() } in <lambda>()
147 given(mHeadsUpManager.isAlerting(anyString())).willAnswer { invocation -> in <lambda>()
151 given(mHeadsUpManager.canRemoveImmediately(anyString())).willAnswer { invocation -> in <lambda>()
155 whenever(mHeadsUpManager.getEarliestRemovalTime(anyString())).thenReturn(1000L) in <lambda>()
173 whenever(mHeadsUpManager.isSticky(anyString())).thenReturn(true) in <lambda>()
175 whenever(mHeadsUpManager.canRemoveImmediately(anyString())).thenReturn(false, true) in <lambda>()
176 whenever(mHeadsUpManager.getEarliestRemovalTime(anyString())).thenReturn(1000L, 0L) in <lambda>()
[all …]
DVisualStabilityCoordinatorTest.java77 @Mock private HeadsUpManager mHeadsUpManager; field in VisualStabilityCoordinatorTest
104 mHeadsUpManager, in setUp()
136 when(mHeadsUpManager.isAlerting(mEntry.getKey())).thenReturn(false); in setUp()
369 when(mHeadsUpManager.isAlerting(mEntry.getKey())).thenReturn(true); in testMovingVisibleHeadsUpNotAllowed()
385 when(mHeadsUpManager.isAlerting(mEntry.getKey())).thenReturn(true); in testMovingInvisibleHeadsUpAllowed()
533 when(mHeadsUpManager.isAlerting(mEntry.getKey())).thenReturn(true); in testHeadsUp_allowedToChangeGroupAndSection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerTest.java66 private HeadsUpManager mHeadsUpManager; field in HeadsUpManagerTest
89 return mHeadsUpManager; in createAlertingNotificationManager()
98 mHeadsUpManager = new TestableHeadsUpManager(mContext, mLogger, mTestHandler, in setUp()
110 mHeadsUpManager.onAlertEntryRemoved(mAlertEntry); in testHunRemovedLogging()
118 mHeadsUpManager.showNotification(mEntry); in testShowNotification_autoDismissesWithAccessibilityTimeout()
120 () -> mLivesPastNormalTime = mHeadsUpManager.isAlerting(mEntry.getKey()); in testShowNotification_autoDismissesWithAccessibilityTimeout()
129 assertFalse(mHeadsUpManager.isAlerting(mEntry.getKey())); in testShowNotification_autoDismissesWithAccessibilityTimeout()
135 mHeadsUpManager.showNotification(alertEntry); in testCompareTo_withNullEntries()
137 assertThat(mHeadsUpManager.compare(alertEntry, null)).isLessThan(0); in testCompareTo_withNullEntries()
138 assertThat(mHeadsUpManager.compare(null, alertEntry)).isGreaterThan(0); in testCompareTo_withNullEntries()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarHeadsUpChangeListener.java39 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarHeadsUpChangeListener
57 mHeadsUpManager = headsUpManager; in StatusBarHeadsUpChangeListener()
98 mHeadsUpManager.setHeadsUpGoingAway(true); in onHeadsUpPinnedModeChanged()
100 if (!mHeadsUpManager.hasPinnedHeadsUp()) { in onHeadsUpPinnedModeChanged()
102 mHeadsUpManager.setHeadsUpGoingAway(false); in onHeadsUpPinnedModeChanged()
DHeadsUpTouchHelper.java34 private HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpTouchHelper
49 mHeadsUpManager = headsUpManager; in HeadsUpTouchHelper()
90 NotificationEntry topEntry = mHeadsUpManager.getTopEntry(); in onInterceptTouchEvent()
122 mHeadsUpManager.unpinAll(true); in onInterceptTouchEvent()
133 if (mHeadsUpManager.shouldSwallowClick( in onInterceptTouchEvent()
147 mHeadsUpManager.setTrackingHeadsUp(tracking);
153 mHeadsUpManager.snooze();
DStatusBarTouchableRegionManager.java57 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarTouchableRegionManager
97 mHeadsUpManager = headsUpManager; in StatusBarTouchableRegionManager()
98 mHeadsUpManager.addListener( in StatusBarTouchableRegionManager()
108 mHeadsUpManager.addHeadsUpPhoneListener(this::onHeadsUpGoingAwayStateChanged); in StatusBarTouchableRegionManager()
154 final Region headsUpTouchableRegion = mHeadsUpManager.getTouchableRegion(); in calculateTouchableRegion()
181 boolean shouldObserve = mHeadsUpManager.hasPinnedHeadsUp() in updateTouchableRegion()
182 || mHeadsUpManager.isHeadsUpGoingAway() in updateTouchableRegion()
DHeadsUpAppearanceController.java74 private final HeadsUpManagerPhone mHeadsUpManager; field in HeadsUpAppearanceController
130 mHeadsUpManager = headsUpManager; in HeadsUpAppearanceController()
169 mHeadsUpManager.addListener(this); in onViewAttached()
181 mHeadsUpManager.removeListener(this); in onViewDetached()
210 newEntry = mHeadsUpManager.getTopEntry(); in updateTopEntry()
335 return canShow && mHeadsUpManager.hasPinnedHeadsUp(); in shouldBeVisible()
384 mHeadsUpManager.getAllEntries().forEach(entry -> { in updateHeadsUpHeaders()
DStatusBarNotificationPresenter.java91 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarNotificationPresenter
143 mHeadsUpManager = headsUp; in StatusBarNotificationPresenter()
213 !mHeadsUpManager.hasNotifications()) { in maybeEndAmbientPulse()
223 mHeadsUpManager.setUser(newUserId); in onUserSwitched()
276 mHeadsUpManager.setExpanded(clickedEntry, nowExpanded); in onExpandClicked()
DStatusBarNotificationActivityStarter.java100 private final HeadsUpManagerPhone mHeadsUpManager; field in StatusBarNotificationActivityStarter
168 mHeadsUpManager = headsUpManager; in StatusBarNotificationActivityStarter()
545 if (mHeadsUpManager != null && mHeadsUpManager.isAlerting(key)) { in removeHunAfterClick()
553 mHeadsUpManager.removeNotification(key, true /* releaseImmediately */); in removeHunAfterClick()
DCentralSurfacesCommandQueueCallbacks.java91 private final HeadsUpManager mHeadsUpManager; field in CentralSurfacesCommandQueueCallbacks
155 mHeadsUpManager = headsUpManager; in CentralSurfacesCommandQueueCallbacks()
291 mHeadsUpManager.releaseAllImmediately(); in disable()
338 mHeadsUpManager.unpinAll(true /* userUnpinned */); in handleSystemKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHeadsUpCoordinator.kt70 private val mHeadsUpManager: HeadsUpManager, in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.HeadsUpCoordinator
92 mHeadsUpManager.addListener(mOnHeadsUpChangedListener) in <lambda>()
102 mHeadsUpManager.showNotification(entry) in <lambda>()
116 mHeadsUpManager.modifyHuns { hunMutator -> in <lambda>()
131 fun onBeforeFinalizeFilter(list: List<ListEntry>) = mHeadsUpManager.modifyHuns { hunMutator -> in <lambda>()
225 isAlerting = mHeadsUpManager.isAlerting(logicalSummary.key), in <lambda>()
272 isAlerting = mHeadsUpManager.isAlerting(childToReceiveParentAlert.key), in <lambda>()
426 val isAlerting = mHeadsUpManager.isAlerting(entry.key) in <lambda>()
451 mHeadsUpManager.removeNotification(posted.key, false /*removeImmediately*/) in <lambda>()
470 if (mHeadsUpManager.isAlerting(entryKey)) { in <lambda>()
[all …]
DVisualStabilityCoordinator.java63 private final HeadsUpManager mHeadsUpManager; field in VisualStabilityCoordinator
102 mHeadsUpManager = headsUpManager; in VisualStabilityCoordinator()
131 return entry != null && mHeadsUpManager.isAlerting(entry.getKey())
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DOnUserInteractionCallbackImpl.java49 private final HeadsUpManager mHeadsUpManager; field in OnUserInteractionCallbackImpl
63 mHeadsUpManager = headsUpManager; in OnUserInteractionCallbackImpl()
71 if (mHeadsUpManager.isAlerting(entry.getKey())) { in getDismissedByUserStats()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowDragControllerTest.java62 private HeadsUpManager mHeadsUpManager = mock(HeadsUpManager.class); field in ExpandableNotificationRowDragControllerTest
86 mController = new ExpandableNotificationRowDragController(mContext, mHeadsUpManager, in setUp()
100 verify(mHeadsUpManager, times(1)).releaseAllImmediately(); in testDoStartDragHeadsUpNotif_startDragAndDrop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinator.kt54 private val mHeadsUpManager: HeadsUpManager, constant
179 mHeadsUpManager.addListener(this)
233 mHeadsUpManager.releaseAllImmediately() in isPulseExpanding()
247 var visible = mNotificationsVisibleForExpansion || mHeadsUpManager.hasNotifications() in updateNotificationVisibility()
440 mHeadsUpManager.releaseAllImmediately() in onPanelExpansionChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowDragController.java67 private final HeadsUpManager mHeadsUpManager; field in ExpandableNotificationRowDragController
77 mHeadsUpManager = headsUpManager; in ExpandableNotificationRowDragController()
141 mHeadsUpManager.releaseAllImmediately(); in startDragAndDrop()
DExpandableNotificationRowController.java88 private final HeadsUpManager mHeadsUpManager; field in ExpandableNotificationRowController
178 mHeadsUpManager = headsUpManager; in ExpandableNotificationRowController()
212 mHeadsUpManager, in init()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java95 HeadsUpManager mHeadsUpManager; field in NotificationInterruptStateProviderImplTest
130 mHeadsUpManager, in setup()
146 when(mHeadsUpManager.isSnoozed(any())).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
384 when(mHeadsUpManager.isSnoozed(entry.getSbn().getPackageName())).thenReturn(true); in testShouldNotHeadsUp_snoozedPackage()
763 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldFullScreen_packageSnoozed()
782 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldNotFullScreen_snoozed_occluding_withStrictRules()
803 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldHeadsUp_snoozed_occluding_withStrictRules()
828 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldNotFullScreen_snoozed_lockedShade_withStrictRules()
849 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldHeadsUp_snoozed_lockedShade_withStrictRules()
874 when(mHeadsUpManager.isSnoozed("a")).thenReturn(true); in testShouldNotFullScreen_snoozed_unlocked_withStrictRules()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java70 private final HeadsUpManager mHeadsUpManager; field in NotificationInterruptStateProviderImpl
129 mHeadsUpManager = headsUpManager; in NotificationInterruptStateProviderImpl()
148 mHeadsUpManager.releaseAllImmediately(); in NotificationInterruptStateProviderImpl()
596 return mHeadsUpManager.isSnoozed(sbn.getPackageName()); in isSnoozedPackage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutController.java145 private final HeadsUpManagerPhone mHeadsUpManager; field in NotificationStackScrollLayoutController
373 mHeadsUpManager.setMenuShown(
387 mHeadsUpManager.setMenuShown(notificationRow.getEntry(), true);
478 mHeadsUpManager.addSwipedOutNotification(
545 mHeadsUpManager.removeNotification(row.getEntry().getSbn().getKey(),
613 long numEntries = mHeadsUpManager.getAllEntries().count();
614 NotificationEntry topEntry = mHeadsUpManager.getTopEntry();
680 mHeadsUpManager = headsUpManager; in NotificationStackScrollLayoutController()
769 mHeadsUpManager.addListener(mOnHeadsUpChangedListener); in attach()
770 mHeadsUpManager.setAnimationStateHandler(mView::setHeadsUpGoingAwayAnimationsAllowed); in attach()
[all …]

12