commit | a0e573c3ad544689381a4e555c02515a45d86a57 | [log] [tgz] |
---|---|---|
author | Yeabkal Wubshit <yeabkal@google.com> | Thu Mar 02 21:08:14 2023 -0800 |
committer | Yeabkal Wubshit <yeabkal@google.com> | Mon Mar 06 22:13:06 2023 +0000 |
tree | 0389462867492a28b41d6459f0dbb2d1adfac30a | |
parent | 274435cf3840f2a1a7c2e5a1789ddfcbd6395800 [diff] |
Create AccumulatingVelocityTrackerStrategy This is a partial implementation of VelocityTrackerStrategy, that stores data points during "add" operations. Extracting this logic into a common class helps avoid duplicated logic across several strategies that do the exact same thing when adding new movements. It also helps ease future updates/optimizations. Bug: 267211645 Test: atest libinput_tests Change-Id: I116e978b070aa451813fefa384ccc65e10ea45a0