Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9098b14c authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

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
parent 28eff15e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment