Home
last modified time | relevance | path

Searched refs:mDockManager (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeDockHandler.java42 private final DockManager mDockManager; field in DozeDockHandler
52 mDockManager = dockManager; in DozeDockHandler()
132 if (mDockManager != null) { in register()
133 mDockManager.addListener(this); in register()
142 if (mDockManager != null) { in unregister()
143 mDockManager.removeListener(this); in unregister()
DDozeMachine.java151 private final DockManager mDockManager; field in DozeMachine
171 mDockManager = dockManager; in DozeMachine()
433 } else if (mDockManager.isDocked()) { in resolveIntermediateState()
434 nextState = mDockManager.isHidden() ? State.DOZE : State.DOZE_AOD_DOCKED; in resolveIntermediateState()
DDozeTriggers.java101 private final DockManager mDockManager; field in DozeTriggers
221 mDockManager = dockManager; in DozeTriggers()
514 mDockManager.addListener(mDockEventListener); in registerCallbacks()
522 mDockManager.removeListener(mDockEventListener); in unregisterCallbacks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java83 private DockManager mDockManager; field in DozeMachineTest
102 when(mDockManager.isDocked()).thenReturn(false); in setUp()
103 when(mDockManager.isHidden()).thenReturn(false); in setUp()
111 mDockManager, in setUp()
146 when(mDockManager.isDocked()).thenReturn(true); in testInitialize_afterDocked_goesToDockedAod()
157 when(mDockManager.isDocked()).thenReturn(true); in testInitialize_afterDockPaused_goesToDoze()
158 when(mDockManager.isHidden()).thenReturn(true); in testInitialize_afterDockPaused_goesToDoze()
191 when(mDockManager.isDocked()).thenReturn(true); in testInitialize_alwaysOnSuppressed_afterDocked_goesToDoze()
203 when(mDockManager.isDocked()).thenReturn(true); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
204 when(mDockManager.isHidden()).thenReturn(true); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
[all …]
DDozeTriggersTest.java95 private DockManager mDockManager; field in DozeTriggersTest
145 asyncSensorManager, wakeLock, mDockManager, mProximitySensor, in setupDozeTriggers()
313 verify(mDockManager).removeListener(any()); in transitionToDozeSuspendTriggers_disablesAllCallbacks()
321 verify(mDockManager).addListener(any()); in testDockEventListener_registerAndUnregister()
324 verify(mDockManager).removeListener(any()); in testDockEventListener_registerAndUnregister()
DDozeScreenBrightnessTest.java94 DockManager mDockManager; field in DozeScreenBrightnessTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollectorImpl.java89 private final DockManager mDockManager; field in FalsingCollectorImpl
143 if (isWirelessCharging || mDockManager.isDocked()) {
190 mDockManager = dockManager; in FalsingCollectorImpl()
236 mDockManager.addListener(mDockEventListener); in init()
394 mDockManager.removeListener(mDockEventListener); in cleanup()
DFalsingDataProvider.java53 private final DockManager mDockManager; field in FalsingDataProvider
89 mDockManager = dockManager; in FalsingDataProvider()
463 return mBatteryController.isWirelessCharging() || mDockManager.isDocked();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimState.java189 final boolean isDocked = mDockManager.isDocked(); in prepare()
369 DockManager mDockManager; field in ScrimState
388 mDockManager = dockManager; in init()
DStatusBarKeyguardViewManager.java273 boolean isDocked = mDockManager.isDocked();
331 private final DockManager mDockManager; field in StatusBarKeyguardViewManager
410 mDockManager = dockManager; in StatusBarKeyguardViewManager()
494 if (mDockManager != null) { in registerListeners()
495 mDockManager.addListener(mDockEventListener); in registerListeners()
496 mIsDocked = mDockManager.isDocked(); in registerListeners()
DScrimController.java216 private final DockManager mDockManager; field in ScrimController
369 mDockManager = dockManager; in ScrimController()
424 states[i].init(mScrimInFront, mScrimBehind, mDozeParameters, mDockManager); in attachViews()
662 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldFadeAwayWallpaper()
1200 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldUpdateFrontScrimAlpha()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DClassifierTest.java46 private final DockManagerFake mDockManager = new DockManagerFake(); field in ClassifierTest
56 displayMetrics, mBatteryController, mFoldStateListener, mDockManager, false); in setup()
DFalsingCollectorImplTest.java105 private final DockManagerFake mDockManager = new DockManagerFake(); field in FalsingCollectorImplTest
126 mDockManager, mFakeExecutor, in setUp()
160 mDockManager.setDockEvent(DockManager.STATE_DOCKED); in testNoProximityWhenDocked()
166 mDockManager.setDockEvent(DockManager.STATE_NONE); in testProximityWhenUndocked()
DFalsingDataProviderTest.java57 private final DockManagerFake mDockManager = new DockManagerFake(); field in FalsingDataProviderTest
328 mDockManager.setIsDocked(true); in test_isDocked()
417 mDisplayMetrics, mBatteryController, mFoldStateListener, mDockManager, foldable); in createWithFoldCapability()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationShadeWindowViewController.java138 private final DockManager mDockManager; field in NotificationShadeWindowViewController
201 mDockManager = dockManager; in NotificationShadeWindowViewController()
468 && !mDockManager.isDocked() in setupExpandedStatusBar()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerBaseTest.java140 protected DockManager mDockManager; field in KeyguardIndicationControllerBaseTest
282 mDockManager, mBroadcastDispatcher, mDevicePolicyManager, mIBatteryStats, in createController()
DKeyguardIndicationControllerTest.java128 verify(mDockManager).addAlignmentStateListener( in createController_addsAlignmentListener()
135 verify(mDockManager).addAlignmentStateListener(mAlignmentListener.capture()); in onAlignmentStateChanged_showsSlowChargingIndication()
150 verify(mDockManager).addAlignmentStateListener(mAlignmentListener.capture()); in onAlignmentStateChanged_showsNotChargingIndication()
166 verify(mDockManager).addAlignmentStateListener(mAlignmentListener.capture()); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
182 verify(mDockManager).addAlignmentStateListener(mAlignmentListener.capture()); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java144 @Mock private DockManager mDockManager; field in ScrimControllerTest
270 when(mDockManager.isDocked()).thenReturn(false); in setup()
285 mDockManager, in setup()
544 when(mDockManager.isDocked()).thenReturn(true); in transitionToAod_afterDocked_ignoresAlwaysOnAndUpdatesFrontAlpha()
1233 mDockManager, in blankingNotRequired_leavingAoD()
1390 when(mDockManager.isDocked()).thenReturn(true); in testWillHideDockedWallpaper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java171 private final DockManager mDockManager; field in KeyguardIndicationController
321 mDockManager = dockManager; in KeyguardIndicationController()
380 mDockManager.addAlignmentStateListener( in init()