Set theme of view as full screen without title bar to avoid the Y value of the start point on the status bar.

Change-Id: I42d2b5df4f9051bfcf8e65f7cf34f1a9b57471ee
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index 0601c25..c30a9d7 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -753,7 +753,8 @@
         </activity>
 
         <activity android:name="android.view.cts.GestureDetectorStubActivity"
-            android:label="GestureDetectorStubActivity"/>
+            android:label="GestureDetectorStubActivity"
+            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
 
         <!--Test for PackageManager-->
         <activity android:name="android.content.pm.cts.TestPmActivity"
diff --git a/tests/tests/view/src/android/view/cts/GestureDetectorTestUtil.java b/tests/tests/view/src/android/view/cts/GestureDetectorTestUtil.java
index b43c8e2..98444b3 100644
--- a/tests/tests/view/src/android/view/cts/GestureDetectorTestUtil.java
+++ b/tests/tests/view/src/android/view/cts/GestureDetectorTestUtil.java
@@ -31,6 +31,13 @@
      */
     public static void testGestureDetector(InstrumentationTestCase testcase,
             GestureDetectorStubActivity activity) {
+        // wait for launching view complete
+        try {
+            Thread.sleep(3000);
+        } catch (InterruptedException e) {
+            e.printStackTrace();
+        }
+
         View view = activity.getView();
         TouchUtils.clickView(testcase, view);
         TouchUtils.longClickView(testcase, view);