Fix failure of AccesibilityGestureDetectorTest

Running testVerifyGestureTouchEventOnVirtualDisplay is failed
after setting the density of default display to 1.5 original.
The failed reason is the stroke length on virtaul display is
as same as on default display, but the threshold to determine
swipe gesture is changed with new density.

To simplify the testing procedure, we use physical density in the
X dimension instead of screen density to create the virtual display.

Bug: 145688381
Test: use cuttlefish to run following tests with and without
chaning the density of the default display.
    AccessibilityOverlayTest
    AccessibilityTakeScreenshotTest
    AccessibilityWindowReportingTest
    AccessibilityWindowQueryTest
    AccessibilityGestureDetectorTest

Change-Id: Idefcd7ba3ca7a4ac1664048e529241e7a84494eb
1 file changed