summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Chen Bai <chenbai@google.com> 2023-10-16 22:15:00 -0700
committer Chen Bai <chenbai@google.com> 2023-10-25 22:17:32 +0000
commit0ffeb57aa1bacd3475b92ed37b7cea7c4a6120a4 (patch)
tree2c913ef90248e903fe6b58a60af92824aa3d7f6d /libs/androidfw/FileStream.cpp
parent2ff4cc3c775a2e107609733b0d6a272c004420be (diff)
clobber wom: implement onKeyUp for PowerKeyRule
- Apply the callback for power key. This is helpful for devices that wish to trigger power key press behavior without waiting for the delay needed to check for consecutive presses. - Added a new config, `config_shortPressEarlyOnPower` to guard Power key's usage of this callback. If this config is enabled, the single press behavior for power key will run in response to the first key up event, instead of using the `onPress` callback. Test: atest WmTests:SingleKeyGestureTests BUG: 305856148 Change-Id: I9f69c0352ecd8ee495dcbc0d9d5967635b02f69d
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions