Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinator.java37 private final StatusBarStateController mStatusBarStateController; field in RankingCoordinator
41 mStatusBarStateController = statusBarStateController; in RankingCoordinator()
46 mStatusBarStateController.addCallback(mStatusBarStateCallback); in attach()
68 if (mStatusBarStateController.isDozing() && entry.shouldSuppressAmbient()) {
72 return !mStatusBarStateController.isDozing() && entry.shouldSuppressNotificationList();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRankingCoordinatorTest.java52 @Mock private StatusBarStateController mStatusBarStateController; field in RankingCoordinatorTest
64 RankingCoordinator rankingCoordinator = new RankingCoordinator(mStatusBarStateController); in setup()
101 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressAmbient()
107 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient()
121 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressNotificationList()
127 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressNotificationList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehavior.java76 private final Lazy<StatusBarStateController> mStatusBarStateController; field in AssistHandleLikeHomeBehavior
91 mStatusBarStateController = statusBarStateController; in AssistHandleLikeHomeBehavior()
99 mIsDozing = mStatusBarStateController.get().isDozing(); in onModeActivated()
100 mStatusBarStateController.get().addCallback(mStatusBarStateListener); in onModeActivated()
111 mStatusBarStateController.get().removeCallback(mStatusBarStateListener); in onModeDeactivated()
DPhoneStateMonitor.java73 private final StatusBarStateController mStatusBarStateController; field in PhoneStateMonitor
83 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in PhoneStateMonitor()
174 int statusBarState = mStatusBarStateController.getState(); in isShadeFullscreen()
180 return mStatusBarStateController.isDozing(); in isDozing()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DBrightLineFalsingManagerTest.java56 private SysuiStatusBarStateController mStatusBarStateController; field in BrightLineFalsingManagerTest
71 mStatusBarStateController = new StatusBarStateControllerImpl(new UiEventLoggerFake()); in setup()
72 mStatusBarStateController.setState(StatusBarState.KEYGUARD); in setup()
75 mStatusBarStateController); in setup()
116 mStatusBarStateController.setState(StatusBarState.SHADE); in testUnregisterSensor_StateTransition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenLockIconController.java69 private final StatusBarStateController mStatusBarStateController; field in LockscreenLockIconController
93 mStatusBarStateController.addCallback(mSBStateListener);
108 mStatusBarStateController.removeCallback(mSBStateListener);
336 mStatusBarStateController = statusBarStateController; in LockscreenLockIconController()
364 setStatusBarState(mStatusBarStateController.getState()); in attach()
468 mLockIcon.update(state, mStatusBarStateController.isPulsing(), in update()
469 mStatusBarStateController.isDozing(), mKeyguardJustShown); in update()
486 && !mStatusBarStateController.isPulsing()) { in getState()
512 boolean onAodNotPulsingOrDocked = mStatusBarStateController.isDozing() in updateIconVisibility()
513 && (!mStatusBarStateController.isPulsing() || mDocked); in updateIconVisibility()
DDozeServiceHost.java74 private final SysuiStatusBarStateController mStatusBarStateController; field in DozeServiceHost
117 mStatusBarStateController = statusBarStateController; in DozeServiceHost()
198 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in startDozing()
207 mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD in updateDozing()
217 mStatusBarStateController.setIsDozing(dozing); in updateDozing()
257 mStatusBarStateController.setPulsing(pulsing); in pulseWhileDozing()
281 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in stopDozing()
291 if (mStatusBarStateController.isDozing() && ignore) { in onIgnoreTouchWhilePulsing()
DLightBarTransitionsController.java50 private final StatusBarStateController mStatusBarStateController; field in LightBarTransitionsController
78 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in LightBarTransitionsController()
81 mStatusBarStateController.addCallback(this); in LightBarTransitionsController()
82 mDozeAmount = mStatusBarStateController.getDozeAmount(); in LightBarTransitionsController()
89 mStatusBarStateController.removeCallback(this); in destroy()
DCollapsedStatusBarFragment.java58 private StatusBarStateController mStatusBarStateController; field in CollapsedStatusBarFragment
83 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in onCreate()
126 mStatusBarStateController.addCallback(this); in onResume()
133 mStatusBarStateController.removeCallback(this); in onPause()
213 && !(mStatusBarStateController.getState() == StatusBarState.KEYGUARD in adjustDisableFlags()
232 if (mStatusBarStateController.isDozing() in adjustDisableFlags()
272 && !mStatusBarStateController.isDozing()) { in clockHiddenMode()
DStatusBarRemoteInputCallback.java61 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarRemoteInputCallback
96 mStatusBarStateController = (SysuiStatusBarStateController) statusBarStateController; in StatusBarRemoteInputCallback()
98 mStatusBarStateController.addCallback(this); in StatusBarRemoteInputCallback()
111 && (mStatusBarStateController.leaveOpenOnKeyguardHide() || hasPendingRemoteInput)) { in onStateChanged()
112 if (!mStatusBarStateController.isKeyguardRequested()) { in onStateChanged()
124 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedRemoteInput()
DNotificationShadeWindowViewController.java78 private final SysuiStatusBarStateController mStatusBarStateController; field in NotificationShadeWindowViewController
144 mStatusBarStateController = statusBarStateController; in NotificationShadeWindowViewController()
249 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
290 if (mStatusBarStateController.isDozing() && !mService.isPulsing() in setupExpandedStatusBar()
299 && !mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
319 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
365 if (mStatusBarStateController.isDozing()) { in setupExpandedStatusBar()
DShadeControllerImpl.java46 private final StatusBarStateController mStatusBarStateController; field in ShadeControllerImpl
68 mStatusBarStateController = statusBarStateController; in ShadeControllerImpl()
110 if (!force && mStatusBarStateController.getState() != StatusBarState.SHADE) { in animateCollapsePanels()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/userswitcher/
DFullscreenUserSwitcherViewMediator.java34 private final StatusBarStateController mStatusBarStateController; field in FullscreenUserSwitcherViewMediator
46 mStatusBarStateController = statusBarStateController; in FullscreenUserSwitcherViewMediator()
58 mStatusBarStateController.addCallback(new StatusBarStateController.StateListener() { in registerUserSwitcherHideListeners()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeServiceHostTest.java73 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in DozeServiceHostTest
97 mStatusBarStateController, mDeviceProvisionedController, mHeadsUpManager, in setup()
111 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testStartStopDozing()
112 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testStartStopDozing()
117 verify(mStatusBarStateController).setIsDozing(eq(true)); in testStartStopDozing()
121 verify(mStatusBarStateController).setIsDozing(eq(false)); in testStartStopDozing()
DCollapsedStatusBarFragmentTest.java51 private StatusBarStateController mStatusBarStateController; field in CollapsedStatusBarFragmentTest
61 mStatusBarStateController = mDependency in setup()
153 reset(mStatusBarStateController); in testOnDozingChanged()
154 when(mStatusBarStateController.isDozing()).thenReturn(true); in testOnDozingChanged()
157 Mockito.verify(mStatusBarStateController).isDozing(); in testOnDozingChanged()
DNotificationShadeWindowViewTest.java74 @Mock private SysuiStatusBarStateController mStatusBarStateController; field in NotificationShadeWindowViewTest
96 when(mStatusBarStateController.isDozing()).thenReturn(false); in setUp()
114 mStatusBarStateController, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java51 private final StatusBarStateController mStatusBarStateController; field in NotificationFilter
63 mStatusBarStateController = statusBarStateController; in NotificationFilter()
117 if (mStatusBarStateController.isDozing() && entry.shouldSuppressAmbient()) { in shouldFilterOut()
121 if (!mStatusBarStateController.isDozing() && entry.shouldSuppressNotificationList()) { in shouldFilterOut()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingManagerProxyTest.java69 private StatusBarStateController mStatusBarStateController = field in FalsingManagerProxyTest
91 mDumpManager, mUiBgExecutor, mStatusBarStateController); in test_brightLineFalsingManagerDisabled()
102 mDumpManager, mUiBgExecutor, mStatusBarStateController); in test_brightLineFalsingManagerEnabled()
110 mDumpManager, mUiBgExecutor, mStatusBarStateController); in test_brightLineFalsingManagerToggled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java96 private StatusBarStateController mStatusBarStateController; field in QSTileImplTest
111 mStatusBarStateController = in setup()
136 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testClick_log()
144 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testClick_Metrics_Status_Bar_Status()
162 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testSecondaryClick_log()
170 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testSecondaryClick_Metrics_Status_Bar_Status()
189 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testLongClick_log()
197 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testLongClick_Metrics_Status_Bar_Status()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java83 StatusBarStateController mStatusBarStateController; field in NotificationFilterTest
126 mNotificationFilter = new NotificationFilter(mStatusBarStateController, mMediaFeatureFlag); in setUp()
246 NotificationFilter filter = new NotificationFilter(mStatusBarStateController, in shouldFilterOtherNotificationWhenDisabled()
259 NotificationFilter filter = new NotificationFilter(mStatusBarStateController, in shouldFilterOtherNotificationWhenEnabled()
272 NotificationFilter filter = new NotificationFilter(mStatusBarStateController, in shouldFilterMediaNotificationWhenDisabled()
284 NotificationFilter filter = new NotificationFilter(mStatusBarStateController, in shouldFilterMediaNotificationWhenEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java61 private final StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImpl
91 mStatusBarStateController = statusBarStateController; in NotificationInterruptStateProviderImpl()
165 if (mStatusBarStateController.isDozing()) { in shouldHeadsUp()
180 || mStatusBarStateController.getState() == StatusBarState.KEYGUARD); in shouldLaunchFullScreenIntentWhenAdded()
208 boolean inShade = mStatusBarStateController.getState() == SHADE; in shouldHeadsUpWhenAwake()
DHeadsUpController.java51 private final StatusBarStateController mStatusBarStateController; field in HeadsUpController
68 mStatusBarStateController = statusBarStateController; in HeadsUpController()
113 if (!mStatusBarStateController.isDozing()) { in showAlertingView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java80 StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImplTest
102 mStatusBarStateController, in setup()
127 when(mStatusBarStateController.isDozing()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
140 when(mStatusBarStateController.isDozing()).thenReturn(true); in ensureStateForHeadsUpWhenDozing()
243 when(mStatusBarStateController.isDozing()).thenReturn(false); in testShouldNotHeadsUpWhenDozing_notDozing()
293 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotHeadsUp_bubble()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationTestHelper.java105 private StatusBarStateController mStatusBarStateController; field in NotificationTestHelper
117 mStatusBarStateController = mock(StatusBarStateController.class); in NotificationTestHelper()
119 mStatusBarStateController, in NotificationTestHelper()
121 mHeadsUpManager = new HeadsUpManagerPhone(mContext, mStatusBarStateController, in NotificationTestHelper()
356 return mStatusBarStateController; in getStatusBarStateController()
424 mStatusBarStateController, in generateRow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManagerTest.java82 @Mock private StatusBarStateController mStatusBarStateController; field in NotificationSectionsManagerTest
115 mStatusBarStateController, in setUp()
127 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in setUp()
262 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderNotShownOnLockscreen()
279 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderShownWhenEnterLockscreen()
288 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testHeaderShownWhenEnterLockscreen()
304 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderHiddenWhenEnterLockscreen()
494 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testMediaControls_AddWhenEnterKeyguard()
513 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testMediaControls_AddWhenEnterKeyguardWithHeadsUp()

123