diff options
author | 2024-03-26 15:53:44 -0700 | |
---|---|---|
committer | 2024-03-30 01:21:44 +0000 | |
commit | aaa473120335717706b48434056fca25fa05f930 (patch) | |
tree | 771d6d40caa3d2e334317750aa334a0f1c50b595 /data | |
parent | a394761fa1511992deb2106aa6b7460b7b850174 (diff) |
Add jerk thresholded pruning.
This will change MotionPredictor::predict() outputs once
enable_prediction_pruning_via_jerk_thresholding is enabled.
Test: atest libinput_tests --host with local flag override to enable
enable_prediction_pruning_via_jerk_thresholding.
Test: atest CtsInputTestCases
Test: atest MotionPredictorBenchmark MotionPredictorTest
Bug: 266747654
Change-Id: I11eb1972246468a1f3824656f5ac57e01e0359cd
Diffstat (limited to 'data')
-rw-r--r-- | data/etc/input/motion_predictor_config.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/etc/input/motion_predictor_config.xml b/data/etc/input/motion_predictor_config.xml index 39772aece2..a20993f924 100644 --- a/data/etc/input/motion_predictor_config.xml +++ b/data/etc/input/motion_predictor_config.xml @@ -31,5 +31,13 @@ the UX issue mentioned above. --> <distance-noise-floor>0.2</distance-noise-floor> + <!-- The low and high jerk thresholds for prediction pruning. + + The jerk thresholds are based on normalized dt = 1 calculations, and + are taken from Jetpacks MotionEventPredictor's KalmanPredictor + implementation (using its ACCURATE_LOW_JANK and ACCURATE_HIGH_JANK). + --> + <low-jerk>0.1</low-jerk> + <high-jerk>0.2</high-jerk> </motion-predictor> |