OSDN Git Service

Fix KeyCharacterMap overlays by reloading base overlay before applying another overlay.
authorPhilip Junker <philipjunker@google.com>
Fri, 10 Dec 2021 17:39:42 +0000 (18:39 +0100)
committerPhilip Junker <philipjunker@google.com>
Thu, 6 Jan 2022 16:27:12 +0000 (16:27 +0000)
commitb60596f638c493ad1c79b6f55634a86023893ad2
tree2b016603eb57995f10903a50fbfa005783c1d3d4
parentaca25f60537453114bfe7f0f8587e551438ca7a5
Fix KeyCharacterMap overlays by reloading base overlay before applying another overlay.

Add all fields to parcel (mLoadFileName, mLayoutOverlayApplied, mKeysByScanCode, mKeysByUsageCode).
Add all fields to equality operator.
Add tests to libinput_tests.

Bug: 210090260
Test: Manually verified that layout changes correctly.
Test: atest libinput_tests
Change-Id: I1777b87e5c2ce8a0dbd42ad48748ea9e669c9139
(cherry picked from commit 90bc949048f2b91fa841cb8272381af8c301c055)
include/input/KeyCharacterMap.h
libs/input/KeyCharacterMap.cpp
libs/input/tests/Android.bp
libs/input/tests/InputDevice_test.cpp
libs/input/tests/data/english_us.kcm [new file with mode: 0644]
libs/input/tests/data/french.kcm [new file with mode: 0644]
libs/input/tests/data/german.kcm [new file with mode: 0644]
services/inputflinger/reader/EventHub.cpp