summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2025-03-07 16:13:03 -0800
committer Siarhei Vishniakou <svv@google.com> 2025-03-19 14:24:35 -0700
commit93b274917b4add40428303eb1c1591390691ed67 (patch)
tree84b1d2e97074e1d31953360fa5e9f11262155ebf /libs
parentb1fd1868e96a6b9455d784ad9fc31dcf1b6fd249 (diff)
InputDispatcher: Provide a way to transfer the entire gesture
In this CL, we modify the behaviour of 'transferTouchGesture' to also allow the caller to request that the entire gesture is transferred to the destination window. Suppose the original window receives ACTION_DOWN and calls transferTouchGesture to the destination window. Before this CL, the subsequent pointers would always be routed to the original window. In this CL, the caller of 'transferTouchGesture' can choose to transfer the 'entire gesture', meaning that subsequent pointers from the same gesture that land in the original window would automatically be sent to the destination window. Bug: 397979572 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Flag: com.android.input.flags.allow_transfer_of_entire_gesture Change-Id: I760ddb8aa8f329d0b21788e6d6e83c802015ee1d
Diffstat (limited to 'libs')
-rw-r--r--libs/input/input_flags.aconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/input/input_flags.aconfig b/libs/input/input_flags.aconfig
index 983bbdee6e..9e69b60f93 100644
--- a/libs/input/input_flags.aconfig
+++ b/libs/input/input_flags.aconfig
@@ -113,6 +113,16 @@ flag {
}
flag {
+ name: "allow_transfer_of_entire_gesture"
+ namespace: "input"
+ description: "When calling 'transferTouchGesture', the entire gesture (including new POINTER_DOWN events from the same device) will be automatically transferred to the destination window"
+ bug: "397979572"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}
+
+flag {
name: "enable_keyboard_classifier"
namespace: "input"
description: "Keyboard classifier that classifies all keyboards into alphabetic or non-alphabetic"