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

Skip to content
Commit c09ec6d4 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Add test to ensure values outside the abs axis range are accepted

Although it is not explicitly mentioned in the evdev protocol docs, it
may make sense to send values outside of the min and max range for
absolute axes in some cases. For example, a positional axis value
outside its range may indicate a touch point outside the min and max
range that maps to the touchscreen's display. For the pressure axis,
having a max may not make sense, as there is no theoretical maximum for
pressure, outside of what the sensor can detect.

We add a test to ensure that we accept these values that are outside of
their range reported in input_abs_info.

Bug: 295125932
Test: atest inputflinger_tests
Change-Id: Ifa88bec96dea92a44be82d2c761bd30f5c5d5123
parent 3540b698
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