Home
last modified time | relevance | path

Searched refs:DockManager (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeDockHandler.java25 import com.android.systemui.dock.DockManager;
43 private final DockManager mDockManager;
45 private int mDockState = DockManager.STATE_NONE;
49 AmbientDisplayConfiguration config, Handler handler, DockManager dockManager) { in DozeDockHandler()
64 if (mDockState == DockManager.STATE_DOCKED_HIDE) { in transitionTo()
70 if (mDockState == DockManager.STATE_DOCKED && !mPulsePending) { in transitionTo()
101 return mDockState == DockManager.STATE_DOCKED in isDocked()
102 || mDockState == DockManager.STATE_DOCKED_HIDE; in isDocked()
110 private class DockEventListener implements DockManager.DockEventListener {
119 case DockManager.STATE_DOCKED: in onEvent()
[all …]
DDozeFactory.java31 import com.android.systemui.dock.DockManager;
51 DockManager dockManager = Dependency.get(DockManager.class); in assembleMachine()
98 DockManager dockManager) { in createDozeTriggers()
DDozeTriggers.java44 import com.android.systemui.dock.DockManager;
83 private final DockManager mDockManager;
93 WakeLock wakeLock, boolean allowPulseTriggers, DockManager dockManager) { in DozeTriggers()
553 private class DockEventListener implements DockManager.DockEventListener {
558 case DockManager.STATE_DOCKED:
559 case DockManager.STATE_DOCKED_HIDE:
562 case DockManager.STATE_NONE:
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeDockHandlerTest.java41 import com.android.systemui.dock.DockManager;
96 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED); in testOnEvent_dockedWhenDoze_requestPulse()
106 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED); in testOnEvent_dockedWhenDozeAoD_requestPulse()
117 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED_HIDE); in testOnEvent_dockedHideWhenPulsing_requestPulseOut()
128 mDockManagerFake.setDockEvent(DockManager.STATE_NONE); in testOnEvent_undockedWhenPulsing_requestPulseOut()
138 mDockManagerFake.setDockEvent(DockManager.STATE_NONE); in testOnEvent_undockedWhenDoze_neverRequestPulseOut()
149 mDockManagerFake.setDockEvent(DockManager.STATE_NONE); in testOnEvent_undockedWhenDozeAndEnabledAoD_requestDozeAoD()
158 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED); in testTransitionToDoze_whenDocked_requestPulse()
171 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED); in testTransitionToDozeAoD_whenDocked_requestPulse()
184 mDockManagerFake.setDockEvent(DockManager.STATE_DOCKED_HIDE); in testTransitionToDoze_whenDockedHide_neverRequestPulse()
[all …]
DDozeTriggersTest.java40 import com.android.systemui.dock.DockManager;
64 private DockManager mDockManagerFake;
82 mDockManagerFake = mock(DockManager.class); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockManagerTest.java38 import com.android.systemui.dock.DockManager;
111 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in dockEvent()
117 mFakeDockManager.setDockEvent(DockManager.STATE_NONE); in undockEvent()
184 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in getCurrentClock_dockedDefault()
194 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in getCurrentClock_dockedCustomClock()
204 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in getCurrentClock_badDockedSettingsValue()
216 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in getCurrentClock_badDockedSettingsFallback()
243 mFakeDockManager.setDockEvent(DockManager.STATE_DOCKED); in onUserChanged_docked()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockManager.java36 import com.android.systemui.dock.DockManager;
37 import com.android.systemui.dock.DockManager.DockEventListener;
91 @Nullable private final DockManager mDockManager;
100 mIsDocked = (event == DockManager.STATE_DOCKED
101 || event == DockManager.STATE_DOCKED_HIDE);
128 @Nullable DockManager dockManager) { in ClockManager()
138 SettingsWrapper settingsWrapper, DockManager dockManager) { in ClockManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java56 import com.android.systemui.dock.DockManager;
107 private DockManager mDockManager;
109 private ArgumentCaptor<DockManager.AlignmentStateListener> mAlignmentListener;
221 any(DockManager.AlignmentStateListener.class)); in createController_addsAlignmentListener()
231 mAlignmentListener.getValue().onAlignmentStateChanged(DockManager.ALIGN_STATE_POOR); in onAlignmentStateChanged_showsSlowChargingIndication()
248 mAlignmentListener.getValue().onAlignmentStateChanged(DockManager.ALIGN_STATE_TERRIBLE); in onAlignmentStateChanged_showsNotChargingIndication()
266 mAlignmentListener.getValue().onAlignmentStateChanged(DockManager.ALIGN_STATE_POOR); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
284 mAlignmentListener.getValue().onAlignmentStateChanged(DockManager.ALIGN_STATE_TERRIBLE); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java47 import com.android.systemui.dock.DockManager;
83 private final DockManager mDockManager;
133 private final DockManager.DockEventListener mDockEventListener =
134 new DockManager.DockEventListener() {
137 boolean docked = event == DockManager.STATE_DOCKED
138 || event == DockManager.STATE_DOCKED_HIDE;
180 @Nullable DockManager dockManager, in LockIcon()
DStatusBarKeyguardViewManager.java45 import com.android.systemui.dock.DockManager;
119 private final DockManager.DockEventListener mDockEventListener =
120 new DockManager.DockEventListener() {
177 private final DockManager mDockManager;
204 mDockManager = Dependency.get(DockManager.class); in StatusBarKeyguardViewManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIDefaultModule.java26 import com.android.systemui.dock.DockManager;
67 abstract DockManager bindDockManager(DockManagerImpl dockManager); in bindDockManager()
DDependency.java37 import com.android.systemui.dock.DockManager;
294 @Inject Lazy<DockManager> mDockManager;
482 mProviders.put(DockManager.class, mDockManager::get); in start()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/
DCarSystemUIModule.java26 import com.android.systemui.dock.DockManager;
82 abstract DockManager bindDockManager(DockManagerImpl dockManager); in bindDockManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dock/
DDockManager.java22 public interface DockManager { interface
DDockManagerImpl.java23 public class DockManagerImpl implements DockManager {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dock/
DDockManagerFake.java22 public class DockManagerFake implements DockManager {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java53 import com.android.systemui.dock.DockManager;
100 private final DockManager mDockManager;
148 Dependency.get(DockManager.class)); in KeyguardIndicationController()
160 DockManager dockManager) { in KeyguardIndicationController()
226 if (alignState == DockManager.ALIGN_STATE_POOR) { in handleAlignStateChanged()
229 } else if (alignState == DockManager.ALIGN_STATE_TERRIBLE) { in handleAlignStateChanged()