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

Skip to content
Commit 48cf98cb authored by Sandro Meier's avatar Sandro Meier
Browse files

Enforce VirtualTouchscreen dimensions are positive

Adds an IllegalArgumentException to the implementation of
createVirtualTouchscreen if the dimension has one or two non positive
components. Without this check the native layer silently fails (only a
warning is printed in the logs). The creation of the VirtualTouchscreen
looks successful because the DeviceCretionException does not get passed
past the Binder call. When the first VirtualTouchEvent is sent to the
VirtualTouchscreen the sendTouchEvent() method throws an exception
because it can't find the underlying input device descriptor.

Bug: 259554911
Test: atest FrameworksServicesTests:VirtualDeviceManagerServiceTest
Change-Id: I085b8822d0f364b49060404480795626554fc155
parent 2d776741
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment