Fix for testTouchMode for gesture navigation

[Background]
testTouchMode sends a MotionEvent at the top-left corver of mock_view.
As EdgeBackGestureHandler window lies above app window, event will be
sent to EdgeBackGestureHandler window which will cause SecurityException
at the time of checking INJECT_EVENTS permission.

[Modification]
Sending the MotionEvent to top-right corner instead of top-left corner
of mock_view so as not to inject it to EdgeBackGestureHandler.

Bug: 182543646
Bug: 255922211
Test: run cts -m CtsViewTestCases -t android.view.cts.ViewTest#testTouchMode
Change-Id: I64ec59f57fa4db40bc81a38ae476f92738bf517c
(cherry picked from commit 5fc2fab2ccc047a61701d72fab8f29126dd5aac5)
1 file changed