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

Commit 24201e6e authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Add logs for power key in interceptKeyBeforeQueueing

We have a bug that power key is not being called. The issue is somewhere
before "powerPress". For a similar bug, we have added logs into
"powerPress" previously, but in the new bugreports, we are seeing that
even powerPress is not getting called.

To bisect this further, add log to interceptKeyBeforeQueueing for the
KEYCODE_POWER.

Bug: 128933363
Test: adb logcat, then press power key after display is ON. observe the
logs

Change-Id: Ib68e37aa403af965ea650a21373d3ffc7370b38c
parent f417907d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -3807,6 +3807,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            }
            }


            case KeyEvent.KEYCODE_POWER: {
            case KeyEvent.KEYCODE_POWER: {
                Slog.d(TAG, "interceptKeyBeforeQueueing: KEYCODE_POWER "
                        + KeyEvent.actionToString(event.getAction())
                        + " mPowerKeyHandled=" + mPowerKeyHandled + " b/128933363");
                // Any activity on the power button stops the accessibility shortcut
                // Any activity on the power button stops the accessibility shortcut
                cancelPendingAccessibilityShortcutAction();
                cancelPendingAccessibilityShortcutAction();
                result &= ~ACTION_PASS_TO_USER;
                result &= ~ACTION_PASS_TO_USER;