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)
diff --git a/tests/tests/view/src/android/view/cts/ViewTest.java b/tests/tests/view/src/android/view/cts/ViewTest.java
index 5767079..ae00ac4 100644
--- a/tests/tests/view/src/android/view/cts/ViewTest.java
+++ b/tests/tests/view/src/android/view/cts/ViewTest.java
@@ -4038,7 +4038,8 @@
 
         // Mouse events should trigger touch mode.
         final MotionEvent event =
-                CtsMouseUtil.obtainMouseEvent(MotionEvent.ACTION_SCROLL, mockView, 0, 0);
+                CtsMouseUtil.obtainMouseEvent(MotionEvent.ACTION_SCROLL, mockView,
+                        mockView.getWidth() - 1, 0);
         mInstrumentation.sendPointerSync(event);
         assertTrue(fitWindowsView.isInTouchMode());