summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Josh Yang <yzj@google.com> 2023-11-02 10:36:38 -0700
committer Josh Yang <yzj@google.com> 2023-12-05 03:19:16 +0000
commitdbd6004304a79e2ee3f6f7fff0c0bb804c50370c (patch)
treec9f682764210e01d3b2f1d69296b216871276e91 /libs/androidfw/ZipFileRO.cpp
parent78502b2cf98267011c6375dd3339ee80832add9b (diff)
Allow focused window to override stem primary key.
This change hooks StemPrimaryKeyRule to DeferredKeyActionExecutor so that stem primary key events get deferred until the focused app doesn't handle the DOWN key event. Several key points of this change: 1. Only send stem primary key events to apps with permission OVERRIDE_SYSTEM_KEY_BEHAVIOR_IN_FOCUSED_WINDOW. 2. We also need to send KEYCODE_STEM_PRIMARY to status bar only if it's not handled by the app. 3. We want to make sure the triple-press accessibility gesture always get triggered regardless of if the gesture is consumed by app. Bug: 308482931 Test: atest WmTests:StemKeyGestureTests manually tested using a test app Change-Id: I84791ca71416ec6c5d2f1c603c647031c76e059b
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions