Home
last modified time | relevance | path

Searched refs:mStatusBarStateController (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationPanelViewControllerTest.java113 mStatusBarStateController.setState(KEYGUARD); in onNotificationHeightChangeWhileOnKeyguardWillComputeMaxKeyguardNotifications()
129 mStatusBarStateController.setState(SHADE); in onNotificationHeightChangeWhileInShadeWillNotComputeMaxKeyguardNotifications()
295 assertThat(mStatusBarStateController.getDozeAmount()).isEqualTo(1f); in testSetDozing_notifiesNsslAndStateController()
498 mStatusBarStateController.setState(KEYGUARD); in testKeyguardStatusViewInSplitShade_changesConstraintsDependingOnNotifications()
518 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOn_isCentered()
530 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOff_isNotCentered()
542 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notDozing_alwaysDozingOn_isNotCentered()
555 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_pulsing_isNotCentered()
568 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notPulsing_isNotCentered()
584 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_singleShade_isCentered()
[all …]
DNotificationPanelViewControllerWithCoroutinesTest.kt150 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
163 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
177 mStatusBarStateController.setState(SHADE_LOCKED) in <lambda>()
190 mStatusBarStateController.setState(SHADE_LOCKED) in <lambda>()
204 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java109 StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImplTest
156 mStatusBarStateController, in setup()
181 when(mStatusBarStateController.isDozing()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
182 when(mStatusBarStateController.isDreaming()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
192 when(mStatusBarStateController.isDozing()).thenReturn(true); in ensureStateForHeadsUpWhenDozing()
289 when(mStatusBarStateController.isDozing()).thenReturn(false); in testShouldNotHeadsUpWhenDozing_notDozing()
339 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotHeadsUp_bubble()
353 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldHeadsUp_bubble_bubblesCannotShowNotification()
416 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotHeadsUp_deviceNotInUse()
570 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_notPendingIntent()
[all …]
DKeyguardNotificationVisibilityProviderTest.java99 @Mock private SysuiStatusBarStateController mStatusBarStateController; field in KeyguardNotificationVisibilityProviderTest
121 mStatusBarStateController, in setup()
184 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarUpcomingStateChanged()
199 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarStateChanged()
222 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onReceiveUserSwitchCallback()
230 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenShowNotifs()
241 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenAllowPrivateNotifs()
252 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in hideSilentNotificationsPerUserSettingWithHighPriorityParent()
274 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in keyguardShowing_hideSilentNotifications_perUserSetting()
367 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_zenMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardDismissUtilTest.java44 private SysuiStatusBarStateController mStatusBarStateController; field in KeyguardDismissUtilTest
56 mKeyguardStateController, mStatusBarStateController, mActivityStarter); in setUp()
66 verify(mStatusBarStateController).setLeaveOpenOnKeyguardHide(true); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsShowing()
80 verify(mStatusBarStateController, times(0)).setLeaveOpenOnKeyguardHide(true); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsNotShowing()
DDozeScrimControllerTest.java49 private StatusBarStateController mStatusBarStateController; field in DozeScrimControllerTest
56 mStatusBarStateController); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardDismissUtil.java34 private final SysuiStatusBarStateController mStatusBarStateController; field in KeyguardDismissUtil
43 mStatusBarStateController = statusBarStateController; in KeyguardDismissUtil()
51 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in executeWhenUnlocked()
DDozeServiceHost.java91 private final SysuiStatusBarStateController mStatusBarStateController; field in DozeServiceHost
135 mStatusBarStateController = statusBarStateController; in DozeServiceHost()
235 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in startDozing()
248 && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in updateDozing()
262 mStatusBarStateController.setIsDozing(dozing); in updateDozing()
304 mStatusBarStateController.setPulsing(pulsing); in pulseWhileDozing()
324 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in stopDozing()
334 if (mStatusBarStateController.isDozing() && ignore) { in onIgnoreTouchWhilePulsing()
539 if (mStatusBarStateController.isDozing() && isHeadsUp) {
DStatusBarHeadsUpChangeListener.java47 private final StatusBarStateController mStatusBarStateController; field in StatusBarHeadsUpChangeListener
68 mStatusBarStateController = statusBarStateController; in StatusBarHeadsUpChangeListener()
87 && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in onHeadsUpPinnedModeChanged()
DStatusBarRemoteInputCallback.java67 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarRemoteInputCallback
107 mStatusBarStateController = (SysuiStatusBarStateController) statusBarStateController; in StatusBarRemoteInputCallback()
109 mStatusBarStateController.addCallback(this); in StatusBarRemoteInputCallback()
122 && (mStatusBarStateController.leaveOpenOnKeyguardHide() || hasPendingRemoteInput)) { in onStateChanged()
123 if (!mStatusBarStateController.isKeyguardRequested() in onStateChanged()
136 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedRemoteInput()
DStatusBarNotificationPresenter.java86 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarNotificationPresenter
150 mStatusBarStateController = sysuiStatusBarStateController; in StatusBarNotificationPresenter()
201 && mStatusBarStateController.getState() == StatusBarState.SHADE_LOCKED in maybeClosePanelForShadeEmptied()
203 mStatusBarStateController.setState(StatusBarState.KEYGUARD); in maybeClosePanelForShadeEmptied()
248 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in onExpandClicked()
252 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onExpandClicked()
265 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedNotificationImportanceChange()
DLightBarTransitionsController.java100 private final StatusBarStateController mStatusBarStateController; field in LightBarTransitionsController
136 mStatusBarStateController = statusBarStateController; in LightBarTransitionsController()
140 mStatusBarStateController.addCallback(mCallback); in LightBarTransitionsController()
141 mDozeAmount = mStatusBarStateController.getDozeAmount(); in LightBarTransitionsController()
153 mStatusBarStateController.removeCallback(mCallback); in destroy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinator.java50 private final StatusBarStateController mStatusBarStateController; field in RankingCoordinator
65 mStatusBarStateController = statusBarStateController; in RankingCoordinator()
74 mStatusBarStateController.addCallback(mStatusBarStateCallback); in attach()
184 if ((mStatusBarStateController.isDozing()
185 || mStatusBarStateController.getDozeAmount() == 1f)
190 return !mStatusBarStateController.isDozing() && entry.shouldSuppressNotificationList();
DVisualStabilityCoordinator.java70 private final StatusBarStateController mStatusBarStateController; field in VisualStabilityCoordinator
120 mStatusBarStateController = statusBarStateController; in VisualStabilityCoordinator()
131 mFullyDozed = mStatusBarStateController.getDozeAmount() == 1f; in attach()
133 mStatusBarStateController.addCallback(mStatusBarStateControllerListener); in attach()
134 mPulsing = mStatusBarStateController.isPulsing(); in attach()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DOnUserInteractionCallbackImpl.java50 private final StatusBarStateController mStatusBarStateController; field in OnUserInteractionCallbackImpl
64 mStatusBarStateController = statusBarStateController; in OnUserInteractionCallbackImpl()
73 } else if (mStatusBarStateController.isDozing()) { in getDismissedByUserStats()
75 } else if (mStatusBarStateController.getState() == KEYGUARD) { in getDismissedByUserStats()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinatorTest.java73 @Mock private StatusBarStateController mStatusBarStateController; field in RankingCoordinatorTest
99 mStatusBarStateController, in setup()
113 verify(mStatusBarStateController, times(1)).addCallback(mStateListenerCaptor.capture()); in setup()
169 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressAmbient()
175 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient()
181 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient()
182 when(mStatusBarStateController.getDozeAmount()).thenReturn(1f); in filterDozingSuppressAmbient()
196 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressNotificationList()
202 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressNotificationList()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DLegacyLockIconViewControllerBaseTest.java88 protected @Mock StatusBarStateController mStatusBarStateController; field in LegacyLockIconViewControllerBaseTest
149 when(mStatusBarStateController.isDozing()).thenReturn(false); in setUp()
150 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp()
162 mStatusBarStateController, in setUp()
202 when(mStatusBarStateController.isDozing()).thenReturn(false); in setupShowLockIcon()
203 when(mStatusBarStateController.getDozeAmount()).thenReturn(0f); in setupShowLockIcon()
204 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setupShowLockIcon()
219 verify(mStatusBarStateController).addCallback(mStatusBarStateCaptor.capture()); in captureStatusBarStateListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java84 private SysuiStatusBarStateController mStatusBarStateController; field in FalsingCollectorImplTest
113 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp()
124 mStatusBarStateController, mKeyguardStateController, in setUp()
202 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testUnregisterSensor_StateTransition()
217 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testRegisterSensor_OccludingActivity_sceneContainerDisabled()
232 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testRegisterSensor_OccludingActivity_sceneContainerEnabled()
359 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenDozing()
375 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenPulsing()
376 when(mStatusBarStateController.isPulsing()).thenReturn(true); in testGestureWhenPulsing()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DDozeServiceHostTest.java79 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in DozeServiceHostTest
105 mStatusBarStateController, mDeviceProvisionedController, in setup()
123 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testStartStopDozing()
124 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testStartStopDozing()
130 verify(mStatusBarStateController).setIsDozing(eq(true)); in testStartStopDozing()
135 verify(mStatusBarStateController).setIsDozing(eq(false)); in testStartStopDozing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DPhoneStateMonitor.java73 private final StatusBarStateController mStatusBarStateController; field in PhoneStateMonitor
85 mStatusBarStateController = statusBarStateController; in PhoneStateMonitor()
166 int statusBarState = mStatusBarStateController.getState(); in isShadeFullscreen()
172 return mStatusBarStateController.isDozing(); in isDozing()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsKeyguardViewLegacyControllerTest.java68 verify(mStatusBarStateController).getState(); in testViewControllerQueriesSBStateOnAttached()
70 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testViewControllerQueriesSBStateOnAttached()
84 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in testListenersUnregisteredOnDetached()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardIndicationRotateTextViewControllerTest.java73 private StatusBarStateController mStatusBarStateController; field in KeyguardIndicationRotateTextViewControllerTest
89 mStatusBarStateController, mLogger, flags); in setUp()
92 verify(mStatusBarStateController).addCallback(mStatusBarStateListenerCaptor.capture()); in setUp()
99 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in onViewDetached_removesStatusBarStateListener()
120 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in destroy_removesStatusBarStateListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardQsUserSwitchController.java76 protected final SysuiStatusBarStateController mStatusBarStateController; field in KeyguardQsUserSwitchController
94 boolean goingToFullShade = mStatusBarStateController.goingToFullShade();
160 mStatusBarStateController = statusBarStateController; in KeyguardQsUserSwitchController()
215 mStatusBarStateController.addCallback(mStatusBarStateListener); in onViewAttached()
228 mStatusBarStateController.removeCallback(mStatusBarStateListener); in onViewDetached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java73 private final StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImpl
143 mStatusBarStateController = statusBarStateController; in NotificationInterruptStateProviderImpl()
230 if (mStatusBarStateController.isDozing()) { in checkHeadsUp()
327 if (mStatusBarStateController.isDreaming()) { in getFullScreenIntentDecision()
333 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in getFullScreenIntentDecision()
447 boolean inShade = mStatusBarStateController.getState() == SHADE; in shouldHeadsUpWhenAwake()
465 boolean inUse = mPowerManager.isScreenOn() && !mStatusBarStateController.isDreaming(); in shouldHeadsUpWhenAwake()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeControllerImpl.java63 private final StatusBarStateController mStatusBarStateController; field in ShadeControllerImpl
103 mStatusBarStateController = statusBarStateController; in ShadeControllerImpl()
130 int statusBarState = mStatusBarStateController.getState(); in animateCollapseShade()
248 && mStatusBarStateController.getState() == StatusBarState.SHADE) { in cancelExpansionAndCollapseShade()

12345