Home
last modified time | relevance | path

Searched refs:statusBarStateController (Results 1 – 25 of 206) sorted by relevance

123456789

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DLockscreenHostedDreamGestureListenerTest.kt54 @Mock private lateinit var statusBarStateController: StatusBarStateController variable in com.android.systemui.shade.LockscreenHostedDreamGestureListenerTest
77 statusBarStateController = statusBarStateController, in setUp()
80 statusBarStateController, in setUp()
85 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setUp()
93 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_whileDreaming()
112 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_notOnKeyguard()
117 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in testGestureDetector_onSingleTap_notOnKeyguard()
133 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_bouncerShown()
154 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_falsing()
173 whenever(statusBarStateController.isDreaming).thenReturn(false) in testSingleTap_notDreaming_noFalsingCheck()
DPulsingGestureListenerTest.kt67 private lateinit var statusBarStateController: StatusBarStateController variable in com.android.systemui.shade.PulsingGestureListenerTest
92 statusBarStateController = statusBarStateController, in setUp()
96 statusBarStateController, in setUp()
109 whenever(statusBarStateController.isDozing).thenReturn(true) in testGestureDetector_singleTapEnabled()
129 whenever(statusBarStateController.isDozing).thenReturn(true) in testGestureDetector_doubleTapEnabled()
161 whenever(statusBarStateController.isDozing).thenReturn(true) in testGestureDetector_singleTapEnabled_falsing()
181 whenever(statusBarStateController.isDozing).thenReturn(false) in testSingleTap_notDozing_noFalsingCheck()
195 whenever(statusBarStateController.isDozing).thenReturn(false) in testDoubleTap_notDozing_noFalsingCheck()
209 whenever(statusBarStateController.isDozing).thenReturn(true) in testGestureDetector_doubleTapEnabled_falsing()
229 whenever(statusBarStateController.isDozing).thenReturn(true) in testGestureDetector_singleTapEnabled_proxCovered()
[all …]
DNotificationPanelUnfoldAnimationControllerTest.kt60 @Mock private lateinit var statusBarStateController: StatusBarStateController variable in com.android.systemui.shade.NotificationPanelUnfoldAnimationControllerTest
76 statusBarStateController, in setup()
90 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_viewDoesNotMove()
110 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_viewDoesMove()
130 whenever(statusBarStateController.getState()).thenReturn(SHADE_LOCKED) in whenInShadeLockedState_viewDoesMove()
150 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_statusBarViewDoesNotMove()
170 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_statusBarViewDoesMove()
190 whenever(statusBarStateController.getState()).thenReturn(SHADE_LOCKED) in whenInShadeLockedState_statusBarViewDoesMove()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractorTest.kt63 @Mock private lateinit var statusBarStateController: StatusBarStateController variable in com.android.systemui.keyguard.domain.interactor.KeyguardKeyEventInteractorTest
81 statusBarStateController, in setup()
92 whenever(statusBarStateController.isDozing).thenReturn(true) in dispatchKeyEvent_volumeKey_dozing_handlesEvents()
113 whenever(statusBarStateController.isDozing).thenReturn(false) in dispatchKeyEvent_volumeKey_notDozing_doesNotHandleEvents()
135 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE_LOCKED) in dispatchKeyEvent_menuActionUp_awakeShadeLocked_collapsesShade()
144 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_menuActionUp_asleepKeyguard_neverCollapsesShade()
153 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_spaceActionUp_awakeKeyguard_collapsesShade()
161 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE_LOCKED) in dispatchKeyEvent_spaceActionUp_shadeLocked_collapsesShade()
169 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_enterActionUp_awakeKeyguard_showsPrimaryBouncer()
177 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE_LOCKED) in dispatchKeyEvent_enterActionUp_shadeLocked_collapsesShade()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/power/domain/interactor/
DPowerInteractorFactory.kt32 statusBarStateController: StatusBarStateController = mock(), in create()
38 statusBarStateController = statusBarStateController, in create()
44 statusBarStateController, in create()
53 val statusBarStateController: StatusBarStateController, constant in com.android.systemui.power.domain.interactor.PowerInteractorFactory.WithDependencies
DPowerInteractorKosmos.kt21 import com.android.systemui.plugins.statusbar.statusBarStateController
31 statusBarStateController = statusBarStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DSplitShadeLockScreenOverScrollerTest.kt34 @Mock private lateinit var statusBarStateController: SysuiStatusBarStateController variable in com.android.systemui.statusbar.SplitShadeLockScreenOverScrollerTest
54 statusBarStateController, in setUp()
61 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragDownAmount_onKeyguard_appliesOverScroll()
70 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragDownAmount_notOnKeyguard_doesNotApplyOverScroll()
81 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragAmount_onKeyguard_thenNotOnKeyguard_resetsOverScrollToZero()
86 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragAmount_onKeyguard_thenNotOnKeyguard_resetsOverScrollToZero()
93 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragAmount_onKeyguard_thenNotOnKeyguard_multipleTimes_resetsOverScrollToZeroOnlyOnce()
95 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragAmount_onKeyguard_thenNotOnKeyguard_multipleTimes_resetsOverScrollToZeroOnlyOnce()
DSingleShadeLockScreenOverScrollerTest.kt21 @Mock private lateinit var statusBarStateController: SysuiStatusBarStateController variable in com.android.systemui.statusbar.SingleShadeLockScreenOverScrollerTest
34 statusBarStateController, in setUp()
41 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragDownAmount_onKeyguard_overScrolls()
50 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragDownAmount_notOnKeyguard_doesNotOverScroll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractor.kt41 private val statusBarStateController: StatusBarStateController, constant in com.android.systemui.keyguard.domain.interactor.KeyguardKeyEventInteractor
50 if (statusBarStateController.isDozing) { in dispatchKeyEvent()
88 statusBarStateController.state == StatusBarState.KEYGUARD && in dispatchKeyEventPreIme()
98 return statusBarStateController.state == StatusBarState.KEYGUARD && in interceptMediaKey()
105 (statusBarStateController.state != StatusBarState.SHADE) && in dispatchMenuKeyEvent()
115 when (statusBarStateController.state) { in collapseShadeLockedOrShowPrimaryBouncer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/domain/interactor/
DPowerInteractorTest.kt56 @Mock private lateinit var statusBarStateController: StatusBarStateController variable in com.android.systemui.power.domain.interactor.PowerInteractorTest
68 statusBarStateController, in setUp()
100 whenever(statusBarStateController.isDozing).thenReturn(false) in wakeUpIfDozing_notDozing_notWoken()
112 whenever(statusBarStateController.isDozing).thenReturn(true) in wakeUpIfDozing_notAllowed_notWoken()
122 whenever(statusBarStateController.isDozing).thenReturn(true) in wakeUpIfDozing_dozingAndAllowed_wokenAndFalsingNotified()
135 whenever(statusBarStateController.isDozing).thenReturn(false) in wakeUpForFullScreenIntent_notGoingToSleepAndNotDozing_notWoken()
146 whenever(statusBarStateController.isDozing).thenReturn(false) in wakeUpForFullScreenIntent_startingToSleep_woken()
156 whenever(statusBarStateController.isDozing).thenReturn(true) in wakeUpForFullScreenIntent_dozing_woken()
167 whenever(statusBarStateController.isDreaming).thenReturn(true) in wakeUpIfDreaming_dreaming_woken()
180 whenever(statusBarStateController.isDreaming).thenReturn(false) in wakeUpIfDreaming_notDreaming_notWoken()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DActivityStarterImplTest.kt41 @Mock private lateinit var statusBarStateController: SysuiStatusBarStateController variable in com.android.systemui.statusbar.phone.ActivityStarterImplTest
50 statusBarStateController = statusBarStateController, in setUp()
78 verify(statusBarStateController).setLeaveOpenOnKeyguardHide(true) in postQSRunnableDismissingKeyguard_leaveOpenStatusBarState()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListenerKosmos.kt24 import com.android.systemui.plugins.statusbar.statusBarStateController
33 statusBarStateController = statusBarStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUnfoldTransitionTest.kt60 @Mock private lateinit var statusBarStateController: StatusBarStateController variable in com.android.keyguard.KeyguardUnfoldTransitionTest
75 statusBarStateController, progressProvider in setup()
86 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in onTransition_centeredViewDoesNotMove()
109 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_viewDoesNotMove()
131 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_viewDoesMove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DRestartDozeListener.kt35 private val statusBarStateController: StatusBarStateController, constant in com.android.systemui.flags.RestartDozeListener
60 statusBarStateController.addCallback(listener) in init()
64 statusBarStateController.removeCallback(listener) in destroy()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bouncer/domain/interactor/
DAlternateBouncerInteractorKosmos.kt28 import com.android.systemui.plugins.statusbar.statusBarStateController
36 statusBarStateController = statusBarStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DKeyguardMediaControllerTest.kt59 @Mock private lateinit var statusBarStateController: SysuiStatusBarStateController variable in com.android.systemui.media.controls.ui.controller.KeyguardMediaControllerTest
75 .whenever(statusBarStateController) in setup()
79 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setup()
86 statusBarStateController, in setup()
114 whenever(statusBarStateController.state).thenReturn(state) in testStateVisibility()
210 whenever(statusBarStateController.isDozing).thenReturn(true) in setDozing()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DKeyguardCoordinatorTest.kt79 private val statusBarStateController: StatusBarStateController = mock() constant in com.android.systemui.statusbar.notification.collection.coordinator.KeyguardCoordinatorTest
84 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in <lambda>()
92 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in <lambda>()
101 whenever(statusBarStateController.isExpanded).thenReturn(true) in unseenFilterSuppressesSeenNotifWhileKeyguardShowing()
126 whenever(statusBarStateController.isExpanded).thenReturn(false) in unseenFilterStopsMarkingSeenNotifWhenTransitionToAod()
140 verify(statusBarStateController, never()).addCallback(any()) in unseenFilterStopsMarkingSeenNotifWhenTransitionToAod()
148 whenever(statusBarStateController.isExpanded).thenReturn(false) in unseenFilter_headsUpMarkedAsSeen()
194 whenever(statusBarStateController.isExpanded).thenReturn(true) in unseenFilterDoesNotSuppressSeenOngoingNotifWhileKeyguardShowing()
215 whenever(statusBarStateController.isExpanded).thenReturn(true) in unseenFilterDoesNotSuppressSeenMediaNotifWhileKeyguardShowing()
239 whenever(statusBarStateController.isExpanded).thenReturn(true) in unseenFilterUpdatesSeenProviderWhenSuppressing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DPulsingGestureListener.kt55 private val statusBarStateController: StatusBarStateController, in <lambda>() constant in com.android.systemui.shade.PulsingGestureListener
85 shadeLogger.logSingleTapUp(statusBarStateController.isDozing, singleTapEnabled, isNotDocked) in <lambda>()
86 if (statusBarStateController.isDozing && singleTapEnabled && isNotDocked) { in <lambda>()
109 statusBarStateController.isDozing && in <lambda>()
DNotificationPanelUnfoldAnimationController.kt38 statusBarStateController: StatusBarStateController,
42 private val filterShade: () -> Boolean = { statusBarStateController.getState() == SHADE || in <lambda>()
43 statusBarStateController.getState() == SHADE_LOCKED } in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/domain/interactor/
DPanelExpansionInteractorKosmos.kt21 import com.android.systemui.plugins.statusbar.statusBarStateController
30 statusBarStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/shelf/domain/interactor/
DNotificationShelfInteractorTest.kt55 private val statusBarStateController: StatusBarStateController = mock() constant in com.android.systemui.statusbar.notification.shelf.domain.interactor.NotificationShelfInteractorTest
61 statusBarStateController = statusBarStateController,
123 whenever(statusBarStateController.isDozing).thenReturn(true) in goToLockedShadeFromShelf_wakesUpFromDoze()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDreamCoordinator.kt40 private val statusBarStateController: SysuiStatusBarStateController, in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.DreamCoordinator
49 statusBarStateController.addCallback(statusBarStateListener) in <lambda>()
51 recordStatusBarState(statusBarStateController.state) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/callbacks/
DDreamStatusBarStateCallback.java34 public DreamStatusBarStateCallback(SysuiStatusBarStateController statusBarStateController) { in DreamStatusBarStateCallback() argument
35 mStateController = statusBarStateController; in DreamStatusBarStateCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsBpViewController.kt29 statusBarStateController: StatusBarStateController,
36 statusBarStateController,
DUdfpsFpmEmptyViewController.kt31 statusBarStateController: StatusBarStateController,
38 statusBarStateController,

123456789