Scale the pressure range's max value.
Since the pressure scale is configurable via a idc property, it isn't guaranteed to always be [0, 1.0]. Unfortunately, we didn't scale the max value of the MotionRange so we'd incorrectly return a max pressure of 1.0 for all devices, even when they might exceed that range. Test: adb push \ $(gettop)/out/target/product/taimen/data/nativetest/inputflinger_tests/InputReader_test \ /data/nativetest/inputflinger_tests/InputReader_test && adb shell /data/nativetest/inputflinger_tests/InputReader_test Change-Id: I7ef174941c4faa7d7efdaa3d69107740f58afd2a
Loading
Please register or sign in to comment