Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45a957b7 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Optimization: enable skipping past IDLE_PENDING without schedule

If the IDLE_AFTER_INACTIVE_TIMEOUT is zero, go past IDLE_PENDING without
having to set an alarm. This avoids the overhead of going to to the
AlarmManagerService unnecessarily if there is nothing to be scheduled.

Bug: 431873897
Test: atest DeviceIdleControllerTest
Flag: com.android.server.deviceidle.enable_non_scheduled_exit_from_idle_pending
Change-Id: I9c6193451e4634ed162cdad3e88f30c3d2cce4a9
parent 85e714a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment