Improving CTS test stability.

The CTS tests for accessibility text traversal rely on exact content being
laid out on every screen so we can verify that exactly one page was advanced
while traversing. The tests were relying on attributes taken from the theme
which can be changed by vendors. Also the text size on the platform was able
to affect the test. Now the layout is independent of external state.

Change-Id: If4ec9db8a1fc2180c7888eb56d7627444e44002c
diff --git a/tests/tests/accessibilityservice/AndroidManifest.xml b/tests/tests/accessibilityservice/AndroidManifest.xml
index c000460..ac75553 100644
--- a/tests/tests/accessibilityservice/AndroidManifest.xml
+++ b/tests/tests/accessibilityservice/AndroidManifest.xml
@@ -19,6 +19,9 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
         package="com.android.cts.accessibilityservice">
 
+  <uses-sdk android:minSdkVersion="18"
+          android:targetSdkVersion="18" />
+
   <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
 
   <application android:theme="@android:style/Theme.Holo.NoActionBar" >
diff --git a/tests/tests/accessibilityservice/res/layout/accessibility_text_traversal_test.xml b/tests/tests/accessibilityservice/res/layout/accessibility_text_traversal_test.xml
index 5b3d2e6..f86f00f 100644
--- a/tests/tests/accessibilityservice/res/layout/accessibility_text_traversal_test.xml
+++ b/tests/tests/accessibilityservice/res/layout/accessibility_text_traversal_test.xml
@@ -32,6 +32,10 @@
        android:id="@+id/text"
        android:layout_width="200dip"
        android:layout_height="200dip"
+       android:includeFontPadding="false"
+       android:textSize="14dip"
+       android:textStyle="normal"
+       android:fontFamily="sans-serif"
        />
 
    <EditText
@@ -41,6 +45,10 @@
        android:maxLines="1000"
        android:scrollbars="vertical"
        android:focusable="false"
+       android:includeFontPadding="false"
+       android:textSize="18dip"
+       android:textStyle="normal"
+       android:fontFamily="sans-serif"
        />
 
 </LinearLayout>