Skip to content
Commit c4d424c2 authored by Robin Lee's avatar Robin Lee
Browse files

Make DeviceIdle motion sensing flaggable-off

We will still go through the same routine as before, and in particular
a misconfigured phone without any motion sensors will still fail to
progress into full doze state.

With config_autoPowerModeUseMotionSensor overriden to false, this is not
true any more and we make STATE_SENSING a no-op that moves straight into
STATE_LOCATING as if we immediately got a "no motion" callback.

Bug: 110756616
Test: atest com.android.server.DeviceIdleControllerTest
Test: atest BatterySaverPolicyTest
Change-Id: I00d778c44257b3e3682494c0d3b10f4c3d68c382
parent af7deaba
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