/frameworks/base/packages/SystemUI/multivalentTests/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 | 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; 63 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 | DozeDockHandlerTest.java | 39 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()
|
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 | 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/tests/src/com/android/systemui/doze/ |
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; 87 private DozeMachine mMachine; 154 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 158 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_stillWorksAfterOneFailedProxCheck() 159 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 187 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_startsPulseRequest() 189 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_startsPulseRequest() 190 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_startsPulseRequest() [all …]
|
/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() 49 fun onDozeTransition(oldState: DozeMachine.State, newState: DozeMachine.State)
|
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() 104 DozeMachine.State nextState; in onEvent() 123 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 | 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; 71 public class DozeTriggers implements DozeMachine.Part { 89 private DozeMachine mMachine; 232 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine() 243 if (DozeMachine.DEBUG) { in onNotification() 398 final DozeMachine.State state = mMachine.getState(); in onProximityFar() 399 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; 47 public class DozeUi implements DozeMachine.Part { 53 private DozeMachine mMachine; 91 public void setDozeMachine(DozeMachine dozeMachine) { in setDozeMachine() 103 ? DozeMachine.State.DOZE_PULSING_BRIGHT in pulseWhileDozing() 104 : DozeMachine.State.DOZE_PULSING); in pulseWhileDozing() 114 mMachine.requestState(DozeMachine.State.DOZE_PULSE_DONE); in pulseWhileDozing() 120 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() 156 private void updateAnimateWakeup(DozeMachine.State state) { in updateAnimateWakeup() [all …]
|
D | DozeAuthRemover.java | 29 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()
|
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; 52 public class DozeScreenState implements DozeMachine.Part { 75 private final DozeMachine.Service mDozeService; 93 @WrappedService DozeMachine.Service service, in DozeScreenState() 136 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() 140 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 | 28 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()
|
D | DozeScreenStatePreventingAdapter.java | 28 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()
|
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 | DozeService.java | 40 implements DozeMachine.Service, RequestDoze, PluginListener<DozeServicePlugin> { 45 private DozeMachine mDozeMachine; 100 mDozeMachine.requestState(DozeMachine.State.INITIALIZED); in onDreamingStarted() 110 mDozeMachine.requestState(DozeMachine.State.FINISH); in onDreamingStopped() 134 mDozeMachine.requestState(DozeMachine.State.DOZE_AOD); in onRequestShowDoze() 147 mDozeMachine.requestState(DozeMachine.State.DOZE); in onRequestHideDoze()
|
D | DozeScreenBrightness.java | 64 public class DozeScreenBrightness extends BroadcastReceiver implements DozeMachine.Part, 79 private final DozeMachine.Service mDozeService; 105 private DozeMachine.State mState = DozeMachine.State.UNINITIALIZED; 119 @WrappedService DozeMachine.Service service, in DozeScreenBrightness() 161 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() 184 if (newState != DozeMachine.State.FINISH) { in transitionTo() 185 setScreenOff(newState == DozeMachine.State.DOZE); in transitionTo() 186 setPaused(newState == DozeMachine.State.DOZE_AOD_PAUSED); in transitionTo() 365 && mState == DozeMachine.State.INITIALIZED; in clampToDimBrightnessForScreenOff() 392 && mState == DozeMachine.State.INITIALIZED; in clampToDimBrightnessForScreenOffFloat()
|
/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 | 27 import com.android.systemui.doze.DozeMachine; 60 static DozeMachine.Service providesWrappedService(DozeMachine.Service dozeMachineService, in providesWrappedService() 62 DozeMachine.Service wrappedService = dozeMachineService; in providesWrappedService() 79 static DozeMachine.Part[] providesDozeMachineParts(DozePauser dozePauser, in providesDozeMachineParts() 85 return new DozeMachine.Part[]{ in providesDozeMachineParts()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardRepository.kt | 31 import com.android.systemui.doze.DozeMachine in <lambda>() 498 oldState: DozeMachine.State, in <lambda>() 499 newState: DozeMachine.State, in <lambda>() 683 private fun dozeMachineStateToModel(state: DozeMachine.State): DozeStateModel { in dozeMachineStateToModel() 685 DozeMachine.State.UNINITIALIZED -> DozeStateModel.UNINITIALIZED in dozeMachineStateToModel() 686 DozeMachine.State.INITIALIZED -> DozeStateModel.INITIALIZED in dozeMachineStateToModel() 687 DozeMachine.State.DOZE -> DozeStateModel.DOZE in dozeMachineStateToModel() 688 DozeMachine.State.DOZE_SUSPEND_TRIGGERS -> DozeStateModel.DOZE_SUSPEND_TRIGGERS in dozeMachineStateToModel() 689 DozeMachine.State.DOZE_AOD -> DozeStateModel.DOZE_AOD in dozeMachineStateToModel() 690 DozeMachine.State.DOZE_REQUEST_PULSE -> DozeStateModel.DOZE_REQUEST_PULSE in dozeMachineStateToModel() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardRepositoryImplTest.kt | 30 import com.android.systemui.doze.DozeMachine in <lambda>() 359 whenever(dozeTransitionListener.oldState).thenReturn(DozeMachine.State.UNINITIALIZED) in <lambda>() 360 whenever(dozeTransitionListener.newState).thenReturn(DozeMachine.State.UNINITIALIZED) in <lambda>() 373 listener.onDozeTransition(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE) in <lambda>() 375 listener.onDozeTransition(DozeMachine.State.DOZE, DozeMachine.State.DOZE_AOD) in <lambda>() 377 listener.onDozeTransition(DozeMachine.State.DOZE_AOD_DOCKED, DozeMachine.State.FINISH) in <lambda>() 380 DozeMachine.State.DOZE_REQUEST_PULSE, in <lambda>() 381 DozeMachine.State.DOZE_PULSING, in <lambda>() 385 DozeMachine.State.DOZE_SUSPEND_TRIGGERS, in <lambda>() 386 DozeMachine.State.DOZE_PULSE_DONE, in <lambda>() [all …]
|