Home
last modified time | relevance | path

Searched refs:DozeMachine (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeWallpaperStateTest.java64 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testDreamNotification()
65 DozeMachine.State.DOZE_AOD); in testDreamNotification()
67 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testDreamNotification()
72 mDozeWallpaperState.transitionTo(DozeMachine.State.FINISH, DozeMachine.State.DOZE_AOD); in testDreamNotification()
83 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testAnimates_whenSupported()
84 DozeMachine.State.DOZE_AOD); in testAnimates_whenSupported()
88 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testAnimates_whenSupported()
100 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testDoesNotAnimate_whenNotSupported()
101 DozeMachine.State.DOZE_AOD); in testDoesNotAnimate_whenNotSupported()
104 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testDoesNotAnimate_whenNotSupported()
[all …]
DDozeTriggersTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
20 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
21 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
82 private DozeMachine mMachine;
144 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
148 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_stillWorksAfterOneFailedProxCheck()
149 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
175 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore()
179 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_noPulseIfPulseIsNotPendingAnymore()
180 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore()
[all …]
DDozeUiTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
20 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
21 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
22 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
23 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
61 private DozeMachine mMachine;
DDozeScreenStateTest.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
20 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
21 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_DOCKED;
22 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSING;
24 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSE_DONE;
25 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSING;
26 import static com.android.systemui.doze.DozeMachine.State.DOZE_REQUEST_PULSE;
27 import static com.android.systemui.doze.DozeMachine.State.FINISH;
28 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
[all …]
DDozeMachineTest.java22 import static com.android.systemui.doze.DozeMachine.State.DOZE;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
24 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_DOCKED;
25 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSE_DONE;
26 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSING;
27 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSING_BRIGHT;
28 import static com.android.systemui.doze.DozeMachine.State.DOZE_REQUEST_PULSE;
29 import static com.android.systemui.doze.DozeMachine.State.DOZE_SUSPEND_TRIGGERS;
30 import static com.android.systemui.doze.DozeMachine.State.FINISH;
31 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
[all …]
DDozeDockHandlerTest.java39 import com.android.systemui.doze.DozeMachine.State;
52 @Mock private DozeMachine mMachine;
69 mDockHandler.transitionTo(DozeMachine.State.UNINITIALIZED, DozeMachine.State.INITIALIZED); in setUp()
79 mDockHandler.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.FINISH); in transitionToFinish_unregistersDockEventListener()
DDozeSuppressorTest.java22 import static com.android.systemui.doze.DozeMachine.State.DOZE;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
24 import static com.android.systemui.doze.DozeMachine.State.DOZE_SUSPEND_TRIGGERS;
25 import static com.android.systemui.doze.DozeMachine.State.FINISH;
26 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
27 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
82 private DozeMachine mDozeMachine;
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSuppressor.java53 public class DozeSuppressor implements DozeMachine.Part {
55 private DozeMachine mMachine;
98 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
103 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
138 mMachine.requestState(DozeMachine.State.FINISH); in checkShouldImmediatelyEndDoze()
155 ? DozeMachine.State.DOZE_AOD : DozeMachine.State.DOZE); in handleCarModeExited()
160 mMachine.requestState(DozeMachine.State.DOZE_SUSPEND_TRIGGERS); in handleCarModeStarted()
168 DozeMachine.State nextState = null;
170 nextState = DozeMachine.State.DOZE;
171 } else if (mMachine.getState() == DozeMachine.State.DOZE
[all …]
DDozeTransitionListener.kt26 DozeMachine.Part, CallbackController<DozeTransitionCallback> {
28 var oldState = DozeMachine.State.UNINITIALIZED
29 var newState = DozeMachine.State.UNINITIALIZED
31 override fun transitionTo(oldState: DozeMachine.State, newState: DozeMachine.State) { in transitionTo()
47 fun onDozeTransition(oldState: DozeMachine.State, newState: DozeMachine.State)
DDozeTriggers.java21 import static com.android.systemui.doze.DozeMachine.State.DOZE_SUSPEND_TRIGGERS;
22 import static com.android.systemui.doze.DozeMachine.State.FINISH;
23 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
46 import com.android.systemui.doze.DozeMachine.State;
70 public class DozeTriggers implements DozeMachine.Part {
88 private DozeMachine mMachine;
228 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
239 if (DozeMachine.DEBUG) { in onNotification()
390 final DozeMachine.State state = mMachine.getState(); in onProximityFar()
391 final boolean paused = (state == DozeMachine.State.DOZE_AOD_PAUSED); in onProximityFar()
[all …]
DDozeUi.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
20 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
44 public class DozeUi implements DozeMachine.Part {
50 private DozeMachine mMachine;
82 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
94 ? DozeMachine.State.DOZE_PULSING_BRIGHT in pulseWhileDozing()
95 : DozeMachine.State.DOZE_PULSING); in pulseWhileDozing()
105 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing()
111 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
147 private void updateAnimateWakeup(DozeMachine.State state) { in updateAnimateWakeup()
[all …]
DDozeDockHandler.java23 import com.android.systemui.doze.DozeMachine.State;
35 public class DozeDockHandler implements DozeMachine.Part {
41 private DozeMachine mMachine;
58 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
63 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
100 DozeMachine.State nextState; in onEvent()
119 DozeMachine.State state = mMachine.getState(); in isPulsing()
DDozePauser.java32 public class DozePauser implements DozeMachine.Part {
35 private DozeMachine mMachine;
46 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
51 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
64 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSED); in onTimeout()
DDozeAuthRemover.java28 public class DozeAuthRemover implements DozeMachine.Part {
38 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
39 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
DDozeScreenState.java21 import static com.android.systemui.doze.DozeMachine.State.DOZE;
22 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
24 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSING;
25 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSE_DONE;
51 public class DozeScreenState implements DozeMachine.Part {
74 private final DozeMachine.Service mDozeService;
90 @WrappedService DozeMachine.Service service, in DozeScreenState()
129 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
133 if (newState == DozeMachine.State.FINISH) { in transitionTo()
[all …]
DDozeFalsingManagerAdapter.java28 public class DozeFalsingManagerAdapter implements DozeMachine.Part {
38 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
42 private boolean isAodMode(DozeMachine.State state) { in isAodMode()
DDozeSuspendScreenStatePreventingAdapter.java30 public class DozeSuspendScreenStatePreventingAdapter extends DozeMachine.Service.Delegate {
33 DozeSuspendScreenStatePreventingAdapter(DozeMachine.Service inner, Executor bgExecutor) { in DozeSuspendScreenStatePreventingAdapter()
49 public static DozeMachine.Service wrapIfNeeded(DozeMachine.Service inner, in wrapIfNeeded()
DDozeScreenStatePreventingAdapter.java30 public class DozeScreenStatePreventingAdapter extends DozeMachine.Service.Delegate {
33 DozeScreenStatePreventingAdapter(DozeMachine.Service inner, Executor bgExecutor) { in DozeScreenStatePreventingAdapter()
51 public static DozeMachine.Service wrapIfNeeded(DozeMachine.Service inner, in wrapIfNeeded()
DDozeWallpaperState.java37 public class DozeWallpaperState implements DozeMachine.Part {
59 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
80 boolean wakingUpFromPulse = oldState == DozeMachine.State.DOZE_PULSING in transitionTo()
81 && newState == DozeMachine.State.FINISH; in transitionTo()
DDozeScreenBrightness.java58 public class DozeScreenBrightness extends BroadcastReceiver implements DozeMachine.Part,
73 private final DozeMachine.Service mDozeService;
94 private DozeMachine.State mState = DozeMachine.State.UNINITIALIZED;
107 @WrappedService DozeMachine.Service service, in DozeScreenBrightness()
142 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
165 if (newState != DozeMachine.State.FINISH) { in transitionTo()
166 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
167 setPaused(newState == DozeMachine.State.DOZE_AOD_PAUSED); in transitionTo()
280 && mState == DozeMachine.State.INITIALIZED; in clampToDimBrightnessForScreenOff()
DDozeService.java38 implements DozeMachine.Service, RequestDoze, PluginListener<DozeServicePlugin> {
43 private DozeMachine mDozeMachine;
93 mDozeMachine.requestState(DozeMachine.State.INITIALIZED); in onDreamingStarted()
103 mDozeMachine.requestState(DozeMachine.State.FINISH); in onDreamingStopped()
127 mDozeMachine.requestState(DozeMachine.State.DOZE_AOD); in onRequestShowDoze()
140 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
DDozeBrightnessHostForwarder.java24 public class DozeBrightnessHostForwarder extends DozeMachine.Service.Delegate {
28 public DozeBrightnessHostForwarder(DozeMachine.Service wrappedService, DozeHost host, in DozeBrightnessHostForwarder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/dagger/
DDozeComponent.java19 import com.android.systemui.doze.DozeMachine;
34 DozeComponent build(@BindsInstance DozeMachine.Service dozeMachineService); in build()
39 DozeMachine getDozeMachine(); in getDozeMachine()
DDozeModule.java31 import com.android.systemui.doze.DozeMachine;
64 static DozeMachine.Service providesWrappedService(DozeMachine.Service dozeMachineService, in providesWrappedService()
66 DozeMachine.Service wrappedService = dozeMachineService; in providesWrappedService()
84 static DozeMachine.Part[] providesDozeMachineParts(DozePauser dozePauser, in providesDozeMachineParts()
90 return new DozeMachine.Part[]{ in providesDozeMachineParts()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepository.kt30 import com.android.systemui.doze.DozeMachine
488 oldState: DozeMachine.State, in isKeyguardShowing()
489 newState: DozeMachine.State in isKeyguardShowing()
790 private fun dozeMachineStateToModel(state: DozeMachine.State): DozeStateModel { in isKeyguardShowing()
792 DozeMachine.State.UNINITIALIZED -> DozeStateModel.UNINITIALIZED in isKeyguardShowing()
793 DozeMachine.State.INITIALIZED -> DozeStateModel.INITIALIZED in isKeyguardShowing()
794 DozeMachine.State.DOZE -> DozeStateModel.DOZE in isKeyguardShowing()
795 DozeMachine.State.DOZE_SUSPEND_TRIGGERS -> DozeStateModel.DOZE_SUSPEND_TRIGGERS in isKeyguardShowing()
796 DozeMachine.State.DOZE_AOD -> DozeStateModel.DOZE_AOD in isKeyguardShowing()
797 DozeMachine.State.DOZE_REQUEST_PULSE -> DozeStateModel.DOZE_REQUEST_PULSE in isKeyguardShowing()
[all …]

12