/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeWallpaperStateTest.java | 64 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 …]
|
D | DozeTriggersTest.java | 19 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 …]
|
D | DozeUiTest.java | 19 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;
|
D | DozeScreenStateTest.java | 19 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 …]
|
D | DozeMachineTest.java | 22 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 …]
|
D | DozeDockHandlerTest.java | 39 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()
|
D | DozeSuppressorTest.java | 22 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/ |
D | DozeSuppressor.java | 53 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 …]
|
D | DozeTransitionListener.kt | 26 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)
|
D | DozeTriggers.java | 21 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 …]
|
D | DozeUi.java | 19 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 …]
|
D | DozeDockHandler.java | 23 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()
|
D | DozePauser.java | 32 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()
|
D | DozeAuthRemover.java | 28 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()
|
D | DozeScreenState.java | 21 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 …]
|
D | DozeFalsingManagerAdapter.java | 28 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()
|
D | DozeSuspendScreenStatePreventingAdapter.java | 30 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()
|
D | DozeScreenStatePreventingAdapter.java | 30 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()
|
D | DozeWallpaperState.java | 37 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()
|
D | DozeScreenBrightness.java | 58 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()
|
D | DozeService.java | 38 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()
|
D | DozeBrightnessHostForwarder.java | 24 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/ |
D | DozeComponent.java | 19 import com.android.systemui.doze.DozeMachine; 34 DozeComponent build(@BindsInstance DozeMachine.Service dozeMachineService); in build() 39 DozeMachine getDozeMachine(); in getDozeMachine()
|
D | DozeModule.java | 31 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/ |
D | KeyguardRepository.kt | 30 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 …]
|