Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b08159b4 authored by Biswarup Pal's avatar Biswarup Pal
Browse files

Update dependent properties when deviceType is updated

During TouchInputMapper configuration change, some properties
such as mDisplayBounds, mRawToDisplay transform, etc are calculated
based on the the deviceType of the input device. For
VirtualNavigationTouchpad, these properties are not updated when the
deviceType changes to "touchNavigation", resulting in wrong calculation
of transforms. Hence, update these properties whenever deviceType
changes during a configuration change.

Test: atest SingleTouchInputMapperTest
Test: atest android.hardware.input.cts.tests.VirtualDeviceMirrorDisplayTest#virtualNavigationTouchpad_touchEvent --iterations 100
Flag: EXEMPT minor fix
Fixes: 361324951
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9ce4d9ff277bb196cb816214d726a0019383c91f)
Merged-In: I5f67bd24730c63473260ff8a630bbdc90325d375
Change-Id: I5f67bd24730c63473260ff8a630bbdc90325d375
parent a21dc6fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment