diff options
author | 2025-02-19 12:35:39 +0000 | |
---|---|---|
committer | 2025-02-21 18:24:13 +0000 | |
commit | 19c468c8b796d6c65dbbbdb8469f62d7af946342 (patch) | |
tree | efd6b8475d838839e665c995e2f45bab80ce4237 /libs/androidfw/AssetManager2.cpp | |
parent | 30ca69ca530f42e9fc1b128a799717a1bca92b5e (diff) |
(1/n) Remove usage of isKeyGestureSupported() from KeyGestureController
isKeyGestureSupported is synchronous API that makes system server
dependent on handler and can cause ANR if handlers misbehave.
It was added as a stop gap for multi-key gestures that require
some SysUI info like keyguard state, display state, etc, to decide
if the key needs to be consumed or not at the start of the gesture.
With this refactor:
- Use Display state for Default display as a replacement for
mDefaultDisplayPolicy.isAwake() which was added initially to ensure
the shortcut chords are only trigerred if default display is on.
In subsequent CLs:
- WM policy added an API to check isKeyguardLocked() and we will
use that for checking keyguard status
- Move A11yShortcutController to KGC to circumvent the need of the
isShortcutAvailable() API
Test: atest KeyGestureControllerTests
Bug: 358569822
Bug: 383602794
Flag: EXEMPT refactor
Change-Id: I000c6a46ae0e17495db5fa5f0f039940549bc243
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
0 files changed, 0 insertions, 0 deletions