Don't exit doze-light on motion event
This fixes an unintended exit from doze-light when a motion
event occurs. This happens when the device is sensing for
motion when waiting to enter doze-full.
The fix avoids exiting doze-light on a motion event, but
does continue to reset the doze-full state.
Bug: 78454609
Test: cmd deviceidle step light (once or twice to get to IDLE)
cmd deviceidle step
cmd deviceidle motion
Check batterystats history for device_idle. Should
stay in "light"
Change-Id: If4daca349f48d54482d679b2854184e5a6780647
1 file changed