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