/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpManagerPhoneTest.java | 62 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 …]
|
D | HeadsUpAppearanceControllerTest.java | 75 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 …]
|
D | CentralSurfacesImplTest.java | 219 @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()
|
D | DozeServiceHostTest.java | 72 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in DozeServiceHostTest 100 mStatusBarStateController, mDeviceProvisionedController, mHeadsUpManager, in setup()
|
D | CentralSurfacesCommandQueueCallbacksTest.java | 84 @Mock private HeadsUpManagerPhone mHeadsUpManager; field in CentralSurfacesCommandQueueCallbacksTest 118 mHeadsUpManager, in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | HeadsUpCoordinatorTest.kt | 86 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 …]
|
D | VisualStabilityCoordinatorTest.java | 77 @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/ |
D | HeadsUpManagerTest.java | 66 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/ |
D | StatusBarHeadsUpChangeListener.java | 39 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()
|
D | HeadsUpTouchHelper.java | 34 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();
|
D | StatusBarTouchableRegionManager.java | 57 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()
|
D | HeadsUpAppearanceController.java | 74 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()
|
D | StatusBarNotificationPresenter.java | 91 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()
|
D | StatusBarNotificationActivityStarter.java | 100 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()
|
D | CentralSurfacesCommandQueueCallbacks.java | 91 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/ |
D | HeadsUpCoordinator.kt | 70 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 …]
|
D | VisualStabilityCoordinator.java | 63 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/ |
D | OnUserInteractionCallbackImpl.java | 49 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/ |
D | ExpandableNotificationRowDragControllerTest.java | 62 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/ |
D | NotificationWakeUpCoordinator.kt | 54 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/ |
D | ExpandableNotificationRowDragController.java | 67 private final HeadsUpManager mHeadsUpManager; field in ExpandableNotificationRowDragController 77 mHeadsUpManager = headsUpManager; in ExpandableNotificationRowDragController() 141 mHeadsUpManager.releaseAllImmediately(); in startDragAndDrop()
|
D | ExpandableNotificationRowController.java | 88 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/ |
D | NotificationInterruptStateProviderImplTest.java | 95 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/ |
D | NotificationInterruptStateProviderImpl.java | 70 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/ |
D | NotificationStackScrollLayoutController.java | 145 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 …]
|