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;
88 private DozeMachine mMachine;
155 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
159 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_stillWorksAfterOneFailedProxCheck()
160 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
188 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_startsPulseRequest()
190 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_startsPulseRequest()
191 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_startsPulseRequest()
[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;
63 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;
70 mDockHandler.transitionTo(DozeMachine.State.UNINITIALIZED, DozeMachine.State.INITIALIZED); in setUp()
80 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;
47 import com.android.systemui.doze.DozeMachine.State;
72 public class DozeTriggers implements DozeMachine.Part {
90 private DozeMachine mMachine;
233 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
244 if (DozeMachine.DEBUG) { in onNotification()
399 final DozeMachine.State state = mMachine.getState(); in onProximityFar()
400 final boolean paused = (state == DozeMachine.State.DOZE_AOD_PAUSED); in onProximityFar()
[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()
104 DozeMachine.State nextState; in onEvent()
123 DozeMachine.State state = mMachine.getState(); in isPulsing()
DDozeUi.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
20 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
46 public class DozeUi implements DozeMachine.Part {
52 private DozeMachine mMachine;
96 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine()
108 ? DozeMachine.State.DOZE_PULSING_BRIGHT in pulseWhileDozing()
109 : DozeMachine.State.DOZE_PULSING); in pulseWhileDozing()
119 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing()
125 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
161 private void updateAnimateWakeup(DozeMachine.State state) { in updateAnimateWakeup()
[all …]
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.java29 public class DozeAuthRemover implements DozeMachine.Part {
42 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
43 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;
91 @WrappedService DozeMachine.Service service, in DozeScreenState()
132 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
136 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()
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()
287 && mState == DozeMachine.State.INITIALIZED; in clampToDimBrightnessForScreenOff()
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()
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepository.kt29 import com.android.systemui.doze.DozeMachine in <lambda>()
535 oldState: DozeMachine.State, in <lambda>()
536 newState: DozeMachine.State in <lambda>()
693 private fun dozeMachineStateToModel(state: DozeMachine.State): DozeStateModel { in dozeMachineStateToModel()
695 DozeMachine.State.UNINITIALIZED -> DozeStateModel.UNINITIALIZED in dozeMachineStateToModel()
696 DozeMachine.State.INITIALIZED -> DozeStateModel.INITIALIZED in dozeMachineStateToModel()
697 DozeMachine.State.DOZE -> DozeStateModel.DOZE in dozeMachineStateToModel()
698 DozeMachine.State.DOZE_SUSPEND_TRIGGERS -> DozeStateModel.DOZE_SUSPEND_TRIGGERS in dozeMachineStateToModel()
699 DozeMachine.State.DOZE_AOD -> DozeStateModel.DOZE_AOD in dozeMachineStateToModel()
700 DozeMachine.State.DOZE_REQUEST_PULSE -> DozeStateModel.DOZE_REQUEST_PULSE in dozeMachineStateToModel()
[all …]
/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.java28 import com.android.systemui.doze.DozeMachine;
62 static DozeMachine.Service providesWrappedService(DozeMachine.Service dozeMachineService, in providesWrappedService()
64 DozeMachine.Service wrappedService = dozeMachineService; in providesWrappedService()
81 static DozeMachine.Part[] providesDozeMachineParts(DozePauser dozePauser, in providesDozeMachineParts()
87 return new DozeMachine.Part[]{ in providesDozeMachineParts()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepositoryImplTest.kt29 import com.android.systemui.doze.DozeMachine in <lambda>()
378 whenever(dozeTransitionListener.oldState).thenReturn(DozeMachine.State.UNINITIALIZED) in <lambda>()
379 whenever(dozeTransitionListener.newState).thenReturn(DozeMachine.State.UNINITIALIZED) in <lambda>()
392 listener.onDozeTransition(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE) in <lambda>()
394 listener.onDozeTransition(DozeMachine.State.DOZE, DozeMachine.State.DOZE_AOD) in <lambda>()
396 listener.onDozeTransition(DozeMachine.State.DOZE_AOD_DOCKED, DozeMachine.State.FINISH) in <lambda>()
399 DozeMachine.State.DOZE_REQUEST_PULSE, in <lambda>()
400 DozeMachine.State.DOZE_PULSING in <lambda>()
404 DozeMachine.State.DOZE_SUSPEND_TRIGGERS, in <lambda>()
405 DozeMachine.State.DOZE_PULSE_DONE in <lambda>()
[all …]

12