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
Loading
Please register or sign in to comment