Skip to content
Commit 4cb4257e authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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
parent 7a7b2369
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment