Fix AccessibilityGestureDetectorTest failure

The movement doesn't reach the threshold in time, so it is not
recognized as a swipe gesture.

We adjust the swipe duration to ensure the swipe velocity is higher
than the velocity defined in Swipe.java. The strke length is computed
with xdpi which is also used by the threshold.

Bug: 162285833
Test: atst AccessibilityGestureDetectorTest on crosshatch
Change-Id: I27e31bc4867cfcb37afcbf1a9012c914a1a834c7
1 file changed