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

Commit 0034fd31 authored by Rupesh Bansal's avatar Rupesh Bansal
Browse files

Separately timing out different power groups

An issue was observed that even though the power groups timeout was
configured differntly, they would lock/unlock together. This was
primarily because PhoneWindowManager invoked KeyguardDelegate only when
the default display was sleeping/waking up. This condition has now been
updated to instead check on the global interactivity.

We also noticed issues that the system would block the migration of the
display from sleeping to dozing state, this has now been relaxed for the
cases where there are more than one power groups and all of them are
sleeping

The system will now sleep the default display when it times out if there
is another active power group. This will then transition to doze when
all the non-default power groups migrate to sleep

This CL was originally reverted because of b/419803718. We were fetching
the objects from powerGroups sparseArray incorrectly.

Bug: 414444200
Test: Manual
Test: atest com.android.server.power
Flag: com.android.server.display.feature.flags.separate_timeouts
Change-Id: I8cec8be0203eeaf8ce54b9ed5ad2bad14f042910
parent c2edb97c
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