Loading
Don't check Doze state if device is in the middle of a transition
Checking the doze state in the middle of a transition will throw an IllegalStateException. DozeSuppresor doesn't need to update the doze state if the doze machine is already in the middle of executing transitions. Whenever the next doze state is executed, DozeMachine#transitionPolicy will make sure the device properly exits the powerSaver AOD state (that keeps AOD off). If a UDFPS long press is triggered while DozeMachine is executing a transition, the pulse will be dropped, so we don't need to set the aodInterrupt. Fixes: 380642226 Test: atest DozeSuppressorTest Test: atest DozeTriggersTest Flag: EXEMPT bugfix Change-Id: I399240329da6907cac83af64d21fede5e8239da5