summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Linnan Li <lilinnan@xiaomi.corp-partner.google.com> 2024-09-13 21:55:28 +0800
committer Siarhei Vishniakou <svv@google.com> 2024-09-20 14:29:25 -0700
commitfefc26408160a9dcd282ae9ccc8a32a84c1d6902 (patch)
tree4c37cc8c46d8932d8261fd5e7a05d53a402357db /libs/androidfw/AttributeResolution.cpp
parent19b2282457d8ea829d743eca293122a324bdd4eb (diff)
Move key remapping to InputReader thread(2/n)
Currently, the key remapping operation occurs on a non-Reader thread, which leads to concurrent operations on the KCM object by this thread and the Reader, causing unpredictable concurrency issues. Here, we move this operation to the Reader thread, aligning it with most configuration refresh methods, which can resolve the aforementioned issues. Additionally, we are removing the device traversal method on the Java side because we actually intend for the key remapping operation to apply to all full-keyboard devices. This can be fully achieved during the InputReader refresh, so we are also removing the deviceId parameter from the remapping interface. There should be no behavioral changes. Bug: 358042225 Test: atest CtsInputTestCases Test: atest InputTests Test: atest inputflinger_tests Flag: EXEMPT refactor Change-Id: I4b5737a9cd5406d5d93ae72db1c880c9b0b2a6b4 Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com>
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions