Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehavior.java51 private final StatusBarStateController mStatusBarStateController; field in AssistHandleLikeHomeBehavior
60 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in AssistHandleLikeHomeBehavior()
67 mIsDozing = mStatusBarStateController.isDozing(); in onModeActivated()
68 mStatusBarStateController.addCallback(mStatusBarStateListener); in onModeActivated()
DPhoneStateMonitor.java65 private final StatusBarStateController mStatusBarStateController; field in PhoneStateMonitor
72 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in PhoneStateMonitor()
162 int statusBarState = mStatusBarStateController.getState(); in isShadeFullscreen()
168 return mStatusBarStateController.isDozing(); in isDozing()
DAssistHandleReminderExpBehavior.java127 private final StatusBarStateController mStatusBarStateController; field in AssistHandleReminderExpBehavior
154 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in AssistHandleReminderExpBehavior()
170 mOnLockscreen = onLockscreen(mStatusBarStateController.getState()); in onModeActivated()
171 mIsDozing = mStatusBarStateController.isDozing(); in onModeActivated()
172 mStatusBarStateController.addCallback(mStatusBarStateListener); in onModeActivated()
199 mStatusBarStateController.removeCallback(mStatusBarStateListener); in onModeDeactivated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManagerTest.java64 @Mock private StatusBarStateController mStatusBarStateController; field in NotificationSectionsManagerTest
75 mStatusBarStateController, in setUp()
83 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in setUp()
209 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderNotShownOnLockscreen()
222 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderShownWhenEnterLockscreen()
227 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testHeaderShownWhenEnterLockscreen()
237 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testHeaderHiddenWhenEnterLockscreen()
242 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testHeaderHiddenWhenEnterLockscreen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCollapsedStatusBarFragmentTest.java53 private StatusBarStateController mStatusBarStateController; field in CollapsedStatusBarFragmentTest
65 mStatusBarStateController = mDependency in setup()
156 reset(mStatusBarStateController); in testOnDozingChanged()
157 when(mStatusBarStateController.isDozing()).thenReturn(true); in testOnDozingChanged()
160 Mockito.verify(mStatusBarStateController).isDozing(); in testOnDozingChanged()
DNotificationPanelViewTest.java71 private SysuiStatusBarStateController mStatusBarStateController; field in NotificationPanelViewTest
109 mStatusBarStateController); in setup()
130 InOrder inOrder = inOrder(mNotificationStackScrollLayout, mStatusBarStateController); in testSetDozing_notifiesNsslAndStateController()
132 inOrder.verify(mStatusBarStateController).setDozeAmount(eq(1f), eq(true)); in testSetDozing_notifiesNsslAndStateController()
DStatusBarTest.java158 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in StatusBarTest
197 mDependency.injectTestDependency(StatusBarStateController.class, mStatusBarStateController); in setup()
223 Dependency.get(UiOffloadThread.class), mEntryManager, mStatusBarStateController, in setup()
719 verify(mStatusBarStateController).setState(eq(StatusBarState.KEYGUARD)); in testShowKeyguardImplementation_setsState()
725 verify(mStatusBarStateController).setState(eq(StatusBarState.FULLSCREEN_USER_SWITCHER)); in testShowKeyguardImplementation_setsState()
731 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testStartStopDozing()
734 verify(mStatusBarStateController).setIsDozing(eq(true)); in testStartStopDozing()
737 verify(mStatusBarStateController).setIsDozing(eq(false)); in testStartStopDozing()
743 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testOnStartedWakingUp_isNotDozing()
745 verify(mStatusBarStateController).setIsDozing(eq(true)); in testOnStartedWakingUp_isNotDozing()
[all …]
DStatusBarKeyguardViewManagerTest.java73 private StatusBarStateController mStatusBarStateController; field in StatusBarKeyguardViewManagerTest
80 mDependency.injectTestDependency(StatusBarStateController.class, mStatusBarStateController); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLightBarTransitionsController.java51 private final StatusBarStateController mStatusBarStateController; field in LightBarTransitionsController
77 mStatusBarStateController = Dependency.get(StatusBarStateController.class); in LightBarTransitionsController()
80 mStatusBarStateController.addCallback(this); in LightBarTransitionsController()
81 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()
125 mStatusBarStateController.addCallback(this); in onResume()
132 mStatusBarStateController.removeCallback(this); in onPause()
230 if (mStatusBarStateController.isDozing() in adjustDisableFlags()
270 && !mStatusBarStateController.isDozing()) { in clockHiddenMode()
DStatusBarRemoteInputCallback.java62 private final SysuiStatusBarStateController mStatusBarStateController = field in StatusBarRemoteInputCallback
86 mStatusBarStateController.addCallback(this); in StatusBarRemoteInputCallback()
96 if (state == StatusBarState.SHADE && mStatusBarStateController.leaveOpenOnKeyguardHide()) { in onStateChanged()
97 if (!mStatusBarStateController.isKeyguardRequested()) { in onStateChanged()
108 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedRemoteInput()
DStatusBarNotificationPresenter.java97 private final SysuiStatusBarStateController mStatusBarStateController = field in StatusBarNotificationPresenter
330 if (mStatusBarStateController.getState() == StatusBarState.SHADE) { in onNotificationRemoved()
332 } else if (mStatusBarStateController.getState() == StatusBarState.SHADE_LOCKED in onNotificationRemoved()
463 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD && nowExpanded) { in onExpandClicked()
480 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedNotificationImportanceChange()
DLockIcon.java68 private final StatusBarStateController mStatusBarStateController; field in LockIcon
158 mStatusBarStateController = statusBarStateController; in LockIcon()
167 mStatusBarStateController.addCallback(this); in onAttachedToWindow()
182 mStatusBarStateController.removeCallback(this); in onDetachedFromWindow()
DNotificationIconAreaController.java49 private final StatusBarStateController mStatusBarStateController; field in NotificationIconAreaController
82 mStatusBarStateController = statusBarStateController; in NotificationIconAreaController()
83 mStatusBarStateController.addCallback(this); in NotificationIconAreaController()
286 boolean inShade = mStatusBarStateController.getState() == StatusBarState.SHADE; in updateAnimations()
DStatusBar.java563 private final SysuiStatusBarStateController mStatusBarStateController = field in StatusBar
650 sliceProvider.initDependencies(mMediaManager, mStatusBarStateController); in start()
656 mStatusBarStateController.addCallback(this, in start()
801 .createNotificationIconAreaController(context, this, mStatusBarStateController); in makeStatusBarView()
1076 mBarService, mStatusBarStateController, mKeyguardManager, mDreamManager, in setUpPresenter()
1503 return mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in isFalsingThresholdNeeded()
1590 if (isExpanded && mStatusBarStateController.getState() != StatusBarState.KEYGUARD) { in setPanelExpanded()
2614 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in executeWhenUnlocked()
2628 && !mStatusBarStateController.leaveOpenOnKeyguardHide() in dismissKeyguardThenExecute()
2844 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in postQSRunnableDismissingKeyguard()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java75 private StatusBarStateController mStatusBarStateController; field in QSTileImplTest
87 mStatusBarStateController = in setup()
106 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testClick_Metrics_Status_Bar_Status()
121 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testSecondaryClick_Metrics_Status_Bar_Status()
136 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testLongClick_Metrics_Status_Bar_Status()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManager.java46 private final StatusBarStateController mStatusBarStateController; field in NotificationSectionsManager
64 mStatusBarStateController = statusBarStateController; in NotificationSectionsManager()
153 && mStatusBarStateController.getState() != StatusBarState.KEYGUARD; in adjustGentleHeaderVisibilityAndPosition()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java62 private final StatusBarStateController mStatusBarStateController; field in KeyguardClockSwitch
158 mStatusBarStateController = statusBarStateController; in KeyguardClockSwitch()
159 mStatusBarState = mStatusBarStateController.getState(); in KeyguardClockSwitch()
199 mStatusBarStateController.addCallback(mStateListener); in onAttachedToWindow()
210 mStatusBarStateController.removeCallback(mStateListener); in onDetachedFromWindow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java92 private StatusBarStateController mStatusBarStateController; field in KeyguardIndicationControllerTest
126 mUnlockMethodCache, mStatusBarStateController, mKeyguardUpdateMonitor); in createController()
286 verify(mStatusBarStateController).addCallback(eq(mController)); in unlockMethodCache_listener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinator.kt38 private val mStatusBarStateController: StatusBarStateController) constant in com.android.systemui.statusbar.notification.NotificationWakeUpCoordinator
88 mStatusBarStateController.addCallback(this)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java85 private final StatusBarStateController mStatusBarStateController = field in NotificationGutsManager
385 if (mStatusBarStateController instanceof StatusBarStateControllerImpl) { in openGuts()
386 ((StatusBarStateControllerImpl) mStatusBarStateController) in openGuts()
462 (mStatusBarStateController.getState() == StatusBarState.KEYGUARD && in openGutsInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java95 mStatusBarStateController = Dependency.get(StatusBarStateController.class); field in QSTileImpl
202 mStatusBarStateController.getState()))); in click()
209 mStatusBarStateController.getState()))); in secondaryClick()
216 mStatusBarStateController.getState()))); in longClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManager.java75 private final SysuiStatusBarStateController mStatusBarStateController; field in NotificationViewHierarchyManager
114 mStatusBarStateController = (SysuiStatusBarStateController) statusBarStateController; in NotificationViewHierarchyManager()
363 boolean onKeyguard = mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in updateRowStatesInternal()
DNotificationMediaManager.java88 private final StatusBarStateController mStatusBarStateController field in NotificationMediaManager
456 + " state=" + mStatusBarStateController.getState()); in updateMediaMetaData()
501 allowWhenShade = mStatusBarStateController.getState() == KEYGUARD; in finishUpdateMediaMetaData()
516 && (mStatusBarStateController.getState() != StatusBarState.SHADE || allowWhenShade) in finishUpdateMediaMetaData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java125 private StatusBarStateController mStatusBarStateController; field in KeyguardSliceProvider
206 mStatusBarStateController = statusBarStateController; in initDependencies()
207 mStatusBarStateController.addCallback(this); in initDependencies()

12