Add new policy flag to notify if a key gesture was triggred
Policy needs to be passed a key event even if the key event was
used in a gesture (to maintain state). So use this flag to inform
policy that a key gesture was done using the KeyEvent
Test: None
Bug: 358569822
Flag: EXEMPT refactor
Change-Id: I431377df09080ae42d467b610d234b0f7734e025
diff --git a/libs/input/android/os/IInputConstants.aidl b/libs/input/android/os/IInputConstants.aidl
index e23fc94..31592cd 100644
--- a/libs/input/android/os/IInputConstants.aidl
+++ b/libs/input/android/os/IInputConstants.aidl
@@ -49,6 +49,12 @@
const int POLICY_FLAG_INJECTED_FROM_ACCESSIBILITY = 0x20000;
/**
+ * The key event triggered a key gesture. Used in policy flag to notify that a key gesture was
+ * triggered using the event.
+ */
+ const int POLICY_FLAG_KEY_GESTURE_TRIGGERED = 0x40000;
+
+ /**
* Common input event flag used for both motion and key events for a gesture or pointer being
* canceled.
*/