diff options
| author | 2017-12-13 21:21:43 +0000 | |
|---|---|---|
| committer | 2018-01-03 13:21:11 +0000 | |
| commit | aa449c9c9905049938aba7d44bbcf84c539b58b3 (patch) | |
| tree | 6a458603e69f1a3c2d49c4d8adedb56acb87057f /cmds/cmd/cmd.cpp | |
| parent | 3a74e1428a75fdc6c519523a0da5ffd86e3001d1 (diff) | |
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
Diffstat (limited to 'cmds/cmd/cmd.cpp')
0 files changed, 0 insertions, 0 deletions