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.java86 mStatusBarStateController.setState(KEYGUARD); in onNotificationHeightChangeWhileOnKeyguardWillComputeMaxKeyguardNotifications()
102 mStatusBarStateController.setState(SHADE); in onNotificationHeightChangeWhileInShadeWillNotComputeMaxKeyguardNotifications()
231 assertThat(mStatusBarStateController.getDozeAmount()).isEqualTo(1f); in testSetDozing_notifiesNsslAndStateController()
355 mStatusBarStateController.setState(KEYGUARD); in testKeyguardStatusViewInSplitShade_changesConstraintsDependingOnNotifications()
372 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOn_isCentered()
383 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOff_isNotCentered()
394 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notDozing_alwaysDozingOn_isNotCentered()
406 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_pulsing_isNotCentered()
418 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notPulsing_isNotCentered()
433 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_singleShade_isCentered()
[all …]
DNotificationShadeWindowViewTest.java82 @Mock private SysuiStatusBarStateController mStatusBarStateController; field in NotificationShadeWindowViewTest
125 when(mStatusBarStateController.isDozing()).thenReturn(false); in setUp()
136 mStatusBarStateController, in setUp()
178 when(mStatusBarStateController.isDozing()).thenReturn(false); in testInterceptTouchWhenShowingAltAuth()
191 when(mStatusBarStateController.isDozing()).thenReturn(false); in testNoInterceptTouch()
204 when(mStatusBarStateController.isDozing()).thenReturn(false); in testHandleTouchEventWhenShowingAltAuth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java91 StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImplTest
128 mStatusBarStateController, in setup()
148 when(mStatusBarStateController.isDozing()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
149 when(mStatusBarStateController.isDreaming()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
159 when(mStatusBarStateController.isDozing()).thenReturn(true); in ensureStateForHeadsUpWhenDozing()
240 when(mStatusBarStateController.isDozing()).thenReturn(false); in testShouldNotHeadsUpWhenDozing_notDozing()
290 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotHeadsUp_bubble()
351 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotHeadsUp_deviceNotInUse()
531 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_notPendingIntent()
532 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotFullScreen_notPendingIntent()
[all …]
DKeyguardNotificationVisibilityProviderTest.java94 @Mock private SysuiStatusBarStateController mStatusBarStateController; field in KeyguardNotificationVisibilityProviderTest
114 mStatusBarStateController, in setup()
176 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarUpcomingStateChanged()
191 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarStateChanged()
214 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onReceiveUserSwitchCallback()
222 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenShowNotifs()
233 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenAllowPrivateNotifs()
244 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in hideSilentNotificationsPerUserSettingWithHighPriorityParent()
266 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in keyguardShowing_hideSilentNotifications_perUserSetting()
358 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_zenMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DLockIconViewControllerBaseTest.java83 protected @Mock StatusBarStateController mStatusBarStateController; field in LockIconViewControllerBaseTest
144 when(mStatusBarStateController.isDozing()).thenReturn(false); in setUp()
145 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp()
149 mStatusBarStateController, in setUp()
191 when(mStatusBarStateController.isDozing()).thenReturn(false); in setupShowLockIcon()
192 when(mStatusBarStateController.getDozeAmount()).thenReturn(0f); in setupShowLockIcon()
193 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setupShowLockIcon()
208 verify(mStatusBarStateController).addCallback(mStatusBarStateCaptor.capture()); in captureStatusBarStateListener()
/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/src/com/android/systemui/statusbar/
DNotificationShelfController.java42 private final SysuiStatusBarStateController mStatusBarStateController; field in NotificationShelfController
56 mStatusBarStateController = statusBarStateController; in NotificationShelfController()
61 mStatusBarStateController.addCallback( in NotificationShelfController()
67 mStatusBarStateController.removeCallback(mView); in NotificationShelfController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeServiceHost.java77 private final SysuiStatusBarStateController mStatusBarStateController; field in DozeServiceHost
118 mStatusBarStateController = statusBarStateController; in DozeServiceHost()
203 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in startDozing()
212 mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in updateDozing()
223 mStatusBarStateController.setIsDozing(dozing); in updateDozing()
265 mStatusBarStateController.setPulsing(pulsing); in pulseWhileDozing()
285 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in stopDozing()
295 if (mStatusBarStateController.isDozing() && ignore) { in onIgnoreTouchWhilePulsing()
473 if (mStatusBarStateController.isDozing() && isHeadsUp) {
DStatusBarHeadsUpChangeListener.java40 private final StatusBarStateController mStatusBarStateController; field in StatusBarHeadsUpChangeListener
58 mStatusBarStateController = statusBarStateController; in StatusBarHeadsUpChangeListener()
83 && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in onHeadsUpPinnedModeChanged()
DLightBarTransitionsController.java53 private final StatusBarStateController mStatusBarStateController; field in LightBarTransitionsController
87 mStatusBarStateController = statusBarStateController; in LightBarTransitionsController()
90 mStatusBarStateController.addCallback(this); in LightBarTransitionsController()
91 mDozeAmount = mStatusBarStateController.getDozeAmount(); in LightBarTransitionsController()
99 mStatusBarStateController.removeCallback(this); in destroy()
DStatusBarRemoteInputCallback.java65 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarRemoteInputCallback
105 mStatusBarStateController = (SysuiStatusBarStateController) statusBarStateController; in StatusBarRemoteInputCallback()
107 mStatusBarStateController.addCallback(this); in StatusBarRemoteInputCallback()
120 && (mStatusBarStateController.leaveOpenOnKeyguardHide() || hasPendingRemoteInput)) { in onStateChanged()
121 if (!mStatusBarStateController.isKeyguardRequested() in onStateChanged()
134 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedRemoteInput()
DStatusBarNotificationPresenter.java84 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarNotificationPresenter
151 mStatusBarStateController = sysuiStatusBarStateController; in StatusBarNotificationPresenter()
199 && mStatusBarStateController.getState() == StatusBarState.SHADE_LOCKED in maybeClosePanelForShadeEmptied()
201 mStatusBarStateController.setState(StatusBarState.KEYGUARD); in maybeClosePanelForShadeEmptied()
281 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in onExpandClicked()
285 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onExpandClicked()
298 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedNotificationImportanceChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinator.java52 private final StatusBarStateController mStatusBarStateController; field in RankingCoordinator
69 mStatusBarStateController = statusBarStateController; in RankingCoordinator()
79 mStatusBarStateController.addCallback(mStatusBarStateCallback); in attach()
190 if (mStatusBarStateController.isDozing() && entry.shouldSuppressAmbient()) {
194 return !mStatusBarStateController.isDozing() && entry.shouldSuppressNotificationList();
DVisualStabilityCoordinator.java65 private final StatusBarStateController mStatusBarStateController; field in VisualStabilityCoordinator
106 mStatusBarStateController = statusBarStateController; in VisualStabilityCoordinator()
117 mFullyDozed = mStatusBarStateController.getDozeAmount() == 1f; in attach()
119 mStatusBarStateController.addCallback(mStatusBarStateControllerListener); in attach()
120 mPulsing = mStatusBarStateController.isPulsing(); in attach()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeServiceHostTest.java75 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in DozeServiceHostTest
100 mStatusBarStateController, mDeviceProvisionedController, mHeadsUpManager, in setup()
118 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testStartStopDozing()
119 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testStartStopDozing()
125 verify(mStatusBarStateController).setIsDozing(eq(true)); in testStartStopDozing()
130 verify(mStatusBarStateController).setIsDozing(eq(false)); in testStartStopDozing()
DCentralSurfacesImplTest.java234 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in CentralSurfacesImplTest
342 mStatusBarStateController, in setup()
363 mStatusBarStateController, in setup()
417 mStatusBarStateController, in setup()
471 mStatusBarStateController, in setup()
723 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldHeadsUp_nonSuppressedGroupSummary()
746 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldHeadsUp_suppressedGroupSummary()
769 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldHeadsUp_suppressedHeadsUp()
790 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldHeadsUp_noSuppressedHeadsUp()
1075 verify(mStatusBarStateController).setState( in testShowKeyguardImplementation_setsState()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java71 private SysuiStatusBarStateController mStatusBarStateController; field in FalsingCollectorImplTest
86 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp()
91 mStatusBarStateController, mKeyguardStateController, mShadeExpansionStateManager, in setUp()
164 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testUnregisterSensor_StateTransition()
243 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenDozing()
259 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenPulsing()
260 when(mStatusBarStateController.isPulsing()).thenReturn(true); in testGestureWhenPulsing()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DUdfpsKeyguardViewControllerTest.java79 verify(mStatusBarStateController).getState(); in testViewControllerQueriesSBStateOnAttached()
80 verify(mStatusBarStateController).getDozeAmount(); in testViewControllerQueriesSBStateOnAttached()
83 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testViewControllerQueriesSBStateOnAttached()
84 when(mStatusBarStateController.getDozeAmount()).thenReturn(dozeAmount); in testViewControllerQueriesSBStateOnAttached()
101 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in testListenersUnregisteredOnDetached()
/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/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinatorTest.java71 @Mock private StatusBarStateController mStatusBarStateController; field in RankingCoordinatorTest
95 mStatusBarStateController, in setup()
163 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressAmbient()
169 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient()
183 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressNotificationList()
189 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressNotificationList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationShadeWindowViewController.java76 private final SysuiStatusBarStateController mStatusBarStateController; field in NotificationShadeWindowViewController
142 mStatusBarStateController = statusBarStateController; in NotificationShadeWindowViewController()
259 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
314 if (mStatusBarStateController.isDozing() && !mService.isPulsing() in setupExpandedStatusBar()
334 && !mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
354 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
411 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollectorImpl.java63 private final StatusBarStateController mStatusBarStateController; field in FalsingCollectorImpl
149 mStatusBarStateController = statusBarStateController; in FalsingCollectorImpl()
159 mStatusBarStateController.addCallback(mStatusBarStateListener); in FalsingCollectorImpl()
160 mState = mStatusBarStateController.getState(); in FalsingCollectorImpl()
368 mStatusBarStateController.removeCallback(mStatusBarStateListener); in cleanup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowController.java90 private final StatusBarStateController mStatusBarStateController; field in ExpandableNotificationRowController
180 mStatusBarStateController = statusBarStateController; in ExpandableNotificationRowController()
219 mStatusBarStateController, in init()
254 mView.setOnKeyguard(mStatusBarStateController.getState() == KEYGUARD); in init()
255 mStatusBarStateController.addCallback(mStatusBarStateListener); in init()
261 mStatusBarStateController.removeCallback(mStatusBarStateListener); in init()
/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()
214 mStatusBarStateController.addCallback(mStatusBarStateListener); in onViewAttached()
227 mStatusBarStateController.removeCallback(mStatusBarStateListener); in onViewDetached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java64 private final StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImpl
127 mStatusBarStateController = statusBarStateController; in NotificationInterruptStateProviderImpl()
206 if (mStatusBarStateController.isDozing()) { in checkHeadsUp()
296 if (mStatusBarStateController.isDreaming()) { in getFullScreenIntentDecision()
302 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in getFullScreenIntentDecision()
434 boolean inShade = mStatusBarStateController.getState() == SHADE; in shouldHeadsUpWhenAwake()
450 boolean inUse = mPowerManager.isScreenOn() && !mStatusBarStateController.isDreaming(); in shouldHeadsUpWhenAwake()

12345