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

Commit a8c72597 authored by Santos Cordon's avatar Santos Cordon Committed by Rupesh Bansal
Browse files

Offload Doze Override should trigger suspend blocker

Unlike most display-state-changes, Offload state changes are not
triggered by a PowerRequest.  Because of this PowerManager isn't aware
of the change and doesn't attempt to keep the device awake.  As a
result, offload transitions sometimes went into suspend before they were
complete, preventing offload from running when it should.

This change adds a suspend blocker to offload doze override requests,
and notifies PowerManager when it's processing a change.

Test: atest com.android.server.display
Bug: 336599466
Change-Id: Ib9a6eeeeb3bc0c2c66ac02dff1aec61203e6b04c
parent f60aa416
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