Compress removed data right for noise validators
Simply trimming the log of snapshots to remove the first x seconds
ignores an edge case where there is a finger on the pad before the
cutoff, and no updates until after the cutoff, and then removed.
In this situation we'll completely ignore that finger.
This CL fixes this my taking the last event that was trimmed off
from before the cutoff, and re-time-stamping it with a time exactly
on the cutoff boundary. This essentially compresses all the events
that occurred up to the cutoff into one event that happens
immediately. In this way any finger that's still on the pad, will
have at least 1 snapshot showing them, no matter what the logs look
like, which is what we want.
BUG=chromium:516054
TEST=manually tested on a noise test, it seemed to work smoothly,
gestures that would have erroneously failed before are passing.
Change-Id: I6bc60859f796a2d581ae292e3b1e92a77102735a
Signed-off-by: Charlie Mooney <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/290104
1 file changed