Home
last modified time | relevance | path

Searched refs:DozeMachine (Results 1 – 25 of 27) 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.java64 private DozeMachine mMachine;
100 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
104 mTriggers.transitionTo(DozeMachine.State.UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_stillWorksAfterOneFailedProxCheck()
105 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck()
124 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
126 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors()
131 mTriggers.transitionTo(DozeMachine.State.DOZE, in testTransitionTo_disablesAndEnablesTouchSensors()
132 DozeMachine.State.DOZE_REQUEST_PULSE); in testTransitionTo_disablesAndEnablesTouchSensors()
133 mTriggers.transitionTo(DozeMachine.State.DOZE_REQUEST_PULSE, in testTransitionTo_disablesAndEnablesTouchSensors()
134 DozeMachine.State.DOZE_PULSING); in testTransitionTo_disablesAndEnablesTouchSensors()
[all …]
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_PULSING;
25 import static com.android.systemui.doze.DozeMachine.State.DOZE_REQUEST_PULSE;
26 import static com.android.systemui.doze.DozeMachine.State.FINISH;
27 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED;
28 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
DDozeScreenBrightnessTest.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.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_PULSE_DONE;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSING;
24 import static com.android.systemui.doze.DozeMachine.State.DOZE_REQUEST_PULSE;
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;
65 DozeMachine mMachine;
[all …]
DDozeDockHandlerTest.java38 import com.android.systemui.doze.DozeMachine.State;
50 @Mock private DozeMachine mMachine;
64 mDockHandler.transitionTo(DozeMachine.State.UNINITIALIZED, DozeMachine.State.INITIALIZED); in setUp()
74 mDockHandler.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.FINISH); in transitionToFinish_unregistersDockEventListener()
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;
DDozeScreenStatePreventingAdapterTest.java38 private DozeMachine.Service mInner;
43 mInner = mock(DozeMachine.Service.class); in setup()
DDozeSuspendScreenStatePreventingAdapterTest.java38 private DozeMachine.Service mInner;
43 mInner = mock(DozeMachine.Service.class); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java56 public class DozeTriggers implements DozeMachine.Part {
75 private final DozeMachine mMachine;
152 public DozeTriggers(Context context, DozeMachine machine, DozeHost dozeHost, in DozeTriggers()
181 if (DozeMachine.DEBUG) { in onNotification()
309 final DozeMachine.State state = mMachine.getState();
310 final boolean paused = (state == DozeMachine.State.DOZE_AOD_PAUSED);
311 final boolean pausing = (state == DozeMachine.State.DOZE_AOD_PAUSING);
312 final boolean aod = (state == DozeMachine.State.DOZE_AOD);
314 if (state == DozeMachine.State.DOZE_PULSING
315 || state == DozeMachine.State.DOZE_PULSING_BRIGHT) {
[all …]
DDozeScreenState.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.DOZE_AOD_PAUSING;
23 import static com.android.systemui.doze.DozeMachine.State.DOZE_PULSE_DONE;
36 public class DozeScreenState implements DozeMachine.Part {
53 private final DozeMachine.Service mDozeService;
62 public DozeScreenState(DozeMachine.Service service, Handler handler, DozeHost host, in DozeScreenState()
72 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
76 if (newState == DozeMachine.State.FINISH) { in transitionTo()
[all …]
DDozeUi.java19 import static com.android.systemui.doze.DozeMachine.State.DOZE;
20 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
41 public class DozeUi implements DozeMachine.Part {
48 private final DozeMachine mMachine;
67 public DozeUi(Context context, AlarmManager alarmManager, DozeMachine machine, in DozeUi()
104 ? DozeMachine.State.DOZE_PULSING_BRIGHT in pulseWhileDozing()
105 : DozeMachine.State.DOZE_PULSING); in pulseWhileDozing()
115 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing()
121 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
156 private void updateAnimateWakeup(DozeMachine.State state) { in updateAnimateWakeup()
[all …]
DDozePauser.java27 public class DozePauser implements DozeMachine.Part {
30 private final DozeMachine mMachine;
33 public DozePauser(Handler handler, DozeMachine machine, AlarmManager alarmManager, in DozePauser()
41 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
54 mMachine.requestState(DozeMachine.State.DOZE_AOD_PAUSED); in onTimeout()
DDozeDockHandler.java24 import com.android.systemui.doze.DozeMachine.State;
31 public class DozeDockHandler implements DozeMachine.Part {
37 private final DozeMachine mMachine;
43 DozeDockHandler(AmbientDisplayConfiguration config, DozeMachine machine, in DozeDockHandler()
52 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
89 DozeMachine.State nextState; in onEvent()
108 DozeMachine.State state = mMachine.getState(); in isPulsing()
DDozeAuthRemover.java27 public class DozeAuthRemover implements DozeMachine.Part {
36 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
37 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
DDozeFalsingManagerAdapter.java24 public class DozeFalsingManagerAdapter implements DozeMachine.Part {
33 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
37 private boolean isAodMode(DozeMachine.State state) { in isAodMode()
DDozeScreenBrightness.java39 public class DozeScreenBrightness extends BroadcastReceiver implements DozeMachine.Part,
48 private final DozeMachine.Service mDozeService;
73 public DozeScreenBrightness(Context context, DozeMachine.Service service, in DozeScreenBrightness()
98 public DozeScreenBrightness(Context context, DozeMachine.Service service, in DozeScreenBrightness()
109 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
127 if (newState != DozeMachine.State.FINISH) { in transitionTo()
128 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo()
129 setPaused(newState == DozeMachine.State.DOZE_AOD_PAUSED); in transitionTo()
DDozeSuspendScreenStatePreventingAdapter.java28 public class DozeSuspendScreenStatePreventingAdapter extends DozeMachine.Service.Delegate {
31 DozeSuspendScreenStatePreventingAdapter(DozeMachine.Service inner) { in DozeSuspendScreenStatePreventingAdapter()
47 public static DozeMachine.Service wrapIfNeeded(DozeMachine.Service inner, in wrapIfNeeded()
DDozeFactory.java95 DozeMachine assembleMachine(DozeService dozeService) { in assembleMachine()
99 DozeMachine.Service wrappedService = dozeService; in assembleMachine()
106 DozeMachine machine = new DozeMachine(wrappedService, config, wakeLock, in assembleMachine()
109 machine.setParts(new DozeMachine.Part[]{ in assembleMachine()
130 private DozeMachine.Part createDozeScreenBrightness(Context context, in createDozeScreenBrightness()
131 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, in createDozeScreenBrightness()
142 DozeMachine machine, DockManager dockManager, DozeLog dozeLog, in createDozeTriggers()
151 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi()
152 DozeMachine machine, Handler handler, AlarmManager alarmManager, in createDozeUi()
DDozeScreenStatePreventingAdapter.java28 public class DozeScreenStatePreventingAdapter extends DozeMachine.Service.Delegate {
31 DozeScreenStatePreventingAdapter(DozeMachine.Service inner) { in DozeScreenStatePreventingAdapter()
49 public static DozeMachine.Service wrapIfNeeded(DozeMachine.Service inner, in wrapIfNeeded()
DDozeService.java36 implements DozeMachine.Service, RequestDoze, PluginListener<DozeServicePlugin> {
41 private DozeMachine mDozeMachine;
89 mDozeMachine.requestState(DozeMachine.State.INITIALIZED); in onDreamingStarted()
99 mDozeMachine.requestState(DozeMachine.State.FINISH); in onDreamingStopped()
123 mDozeMachine.requestState(DozeMachine.State.DOZE_AOD); in onRequestShowDoze()
130 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
DDozeWallpaperState.java33 public class DozeWallpaperState implements DozeMachine.Part {
54 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo()
75 boolean wakingUpFromPulse = oldState == DozeMachine.State.DOZE_PULSING in transitionTo()
76 && newState == DozeMachine.State.FINISH; in transitionTo()
DDozeBrightnessHostForwarder.java22 public class DozeBrightnessHostForwarder extends DozeMachine.Service.Delegate {
26 public DozeBrightnessHostForwarder(DozeMachine.Service wrappedService, DozeHost host) { in DozeBrightnessHostForwarder()
DDozeLogger.kt138 fun logDozeStateChanged(state: DozeMachine.State) { in logDozeStateChanged()
164 fun logPulseDropped(pulsePending: Boolean, state: DozeMachine.State, blocked: Boolean) { in logPulseDropped()
198 fun logDozeSuppressed(state: DozeMachine.State) { in logDozeSuppressed()
DDozeLog.java196 public void traceState(DozeMachine.State state) { in traceState()
241 public void tracePulseDropped(boolean pulsePending, DozeMachine.State state, boolean blocked) { in tracePulseDropped()
273 public void traceDozeSuppressed(DozeMachine.State suppressedState) { in traceDozeSuppressed()

12