From ed89cbbc7d3763e683dc2dbb6b13ceb6bc7257b2 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Fri, 13 Oct 2023 10:42:44 -0700 Subject: Allow multiple input device in the same window With this change, all restrictions about only having a single input device active in a window are lifted. The window will get multiple input devices at once. 21 native tests were forked in this CL to reflect the new behaviour. Bug: 211379801 Test: navigate settings with touch + stylus at the same time Test: swipe inside IME with touch + stylus Test: draw in test app with touch + stylus Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Change-Id: I259c0c87e47a1fa3090cddba6a595cf032877bb2 --- libs/input/input_flags.aconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs') diff --git a/libs/input/input_flags.aconfig b/libs/input/input_flags.aconfig index e041c51cc9..e161c2afc1 100644 --- a/libs/input/input_flags.aconfig +++ b/libs/input/input_flags.aconfig @@ -137,3 +137,10 @@ flag { is_fixed_read_only: true } + +flag { + name: "enable_multi_device_same_window_stream" + namespace: "input" + description: "Allow multiple input devices to be active in the same window simultaneously" + bug: "330752824" +} -- cgit v1.2.3-59-g8ed1b