summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-01-11 15:37:47 -0800
committer Siarhei Vishniakou <svv@google.com> 2023-01-12 16:15:28 +0000
commit7ac691e131b24e2b420290c841023364fcca6208 (patch)
tree208b129452dc08c473f4c310a4088e55ecf7d64c /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent28ce35e5ac7ed0bc93e6d69a8ec9fdd60982a8e9 (diff)
Calculate predictions based on PointerCoords data
Previously, the predictions were based on the MotionEvent's getRawX, getRawY APIs, which do some additional processing on the values of the PointerCoords. That caused the prediction API to work correctly in portrait mode, but not in landscape, because the transform was getting missed. Now, we will use the PointerCoords directly. Confirmed that this fixes the issue in both portrait and landscape modes. Bug: 210158587 Test: m MotionPrediction && adb install $ANDROID_PRODUCT_OUT/system/app/MotionPrediction/MotionPrediction.apk Change-Id: Iba0667226d802ab344ec689c654f9cfbf073b622
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions