diff options
| author | 2017-12-07 13:05:38 -0800 | |
|---|---|---|
| committer | 2017-12-07 18:17:32 -0800 | |
| commit | 93cf3e34e2acc5406f7910b9b07ea23f6ac1d57c (patch) | |
| tree | 2c50247960a4ca7132d15c5d61951040ecf19479 | |
| parent | f92ace0a22958ec7a0f48b1a7544f173651cd37b (diff) | |
Bug fix for device idle mode light
Before, 'adb shell dumpsys deviceidle force-idle light' would
always fail because it would call stepIdleStateLocked, which
does not affect mLightState. It now calls stepLightIdleStateLocked,
which modifies mLightState andputs the device in doze mode light.
Test: ran 'adb shell dumpsys deviceidle force-idle light' and
verified device entered doze mode light.
Change-Id: If8e6a1a0355c71c01727cdc64fa8e2ac82203e98
| -rw-r--r-- | services/core/java/com/android/server/DeviceIdleController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/DeviceIdleController.java b/services/core/java/com/android/server/DeviceIdleController.java index 4f1e335a2d50..6f697c46098b 100644 --- a/services/core/java/com/android/server/DeviceIdleController.java +++ b/services/core/java/com/android/server/DeviceIdleController.java @@ -2828,7 +2828,7 @@ public class DeviceIdleController extends SystemService becomeInactiveIfAppropriateLocked(); int curLightState = mLightState; while (curLightState != LIGHT_STATE_IDLE) { - stepIdleStateLocked("s:shell"); + stepLightIdleStateLocked("s:shell"); if (curLightState == mLightState) { pw.print("Unable to go light idle; stopped at "); pw.println(lightStateToString(mLightState)); |