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

Skip to content
Commit 856f818a authored by Ashley Holton's avatar Ashley Holton
Browse files

Add display ID parameter to window policy wakeUp()

Supports the per-display wake by touch project, as WindowWakeUpPolicy's
wakeUp() will need to pass on a display ID to PowerManager's wakeUP().

This also fixes a bug with the original CL where the power key failed to
wake the screen. This was due to the associated display ID for a power
key event being -1. To address this, changed PhoneWindowManager's
wakeUpFromWakeKey() to supply the default display ID to wake, instead of
the display ID from the key event.

Flag: com.android.server.power.feature.flags.per_display_wake_by_touch
Bug: 360916757
Test: atest WindowWakeUpPolicyTests PowerKeyGestureTests
KeyGestureEventTests KeyguardTests KeyguardLockedTests CtsInputTestCases

Change-Id: Iab3c8a07f6f89809582034945a759415842bce8d
parent e01bd635
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