Skip to content
Commit 7c96f518 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix Device Idle resetting.

When detected motion stopped deep state from going further, some of
the other state variables were reset. However, if the device was in a
light idle maintenance window at that time, the maintenance start time
would be reset, which would affect light idle's budget maintenance. The
light delay time was also reset, which would cause the system to set an
alarm for 0 seconds after the light idle maintenance window ended, and
cause the light idle durations to start from the minimum value again.

Bug: 132968628
Test: atest com.android.server.DeviceIdleControllerTest
Change-Id: I6c9f5a314e61729eabd6d975604562c494e84351
parent cf2ff61c
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