Integrate unsubmitted cupcake change 122821:
    CTS: add test cases for android.content.res.Resources
diff --git a/tests/res/anim/anim_rotate.xml b/tests/res/anim/anim_rotate.xml
new file mode 100644
index 0000000..47c9d9d
--- /dev/null
+++ b/tests/res/anim/anim_rotate.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (C) 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+<rotate xmlns:android="http://schemas.android.com/apk/res/android"
+    android:interpolator="@android:anim/decelerate_interpolator"
+    android:fromDegrees="0"
+    android:toDegrees="-45"
+    android:toYScale="0.0"
+    android:pivotX="50%"
+    android:pivotY="50%"
+    android:duration="700" />
diff --git a/tests/res/anim/lineartest.xml b/tests/res/anim/lineartest.xml
new file mode 100644
index 0000000..47f1485
--- /dev/null
+++ b/tests/res/anim/lineartest.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+<screenplay>
+     <paint id="paint" antiAlias="true">
+         <color id="col" color="gray"/>
+     </paint>
+     <event kind="onLoad">
+         <add id="addPaint" use="paint"/>
+         <text y="15" text="hello"/>
+     </event>
+     <event kind="keyPress" code="up">
+         <apply scope="addPaint">
+             <set target="paint" field="linearText" to="true"/>
+             <set target="col" field="color" to="black"/>
+             <animate target="paint" id="grow" field="textSize" from="12" to="15" dur=".25"/>
+         </apply>
+     </event>
+     <event kind="onEnd" target="grow">
+         <apply scope="addPaint">
+             <set target="paint" field="linearText" to="false"/>
+         </apply>
+     </event>
+     <event kind="keyPress" code="down">
+         <apply scope="addPaint">
+             <set target="col" field="color" to="gray"/>
+             <animate target="paint" id="shrink" field="textSize" from="15" to="12" dur=".25"/>
+         </apply>
+     </event>
+     <event kind="onEnd" target="shrink">
+         <apply scope="addPaint">
+             <set target="paint" field="linearText" to="false"/>
+         </apply>
+     </event>
+ </screenplay>
diff --git a/tests/res/anim/movie_test.xml b/tests/res/anim/movie_test.xml
new file mode 100644
index 0000000..02a8ba7
--- /dev/null
+++ b/tests/res/anim/movie_test.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+<screenplay>
+    <event kind="onLoad">
+        <movie src="lineartest.xml"/>
+    </event>
+</screenplay>
diff --git a/tests/res/color/color1.xml b/tests/res/color/color1.xml
new file mode 100755
index 0000000..87034fa
--- /dev/null
+++ b/tests/res/color/color1.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2007 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+  
+          http://www.apache.org/licenses/LICENSE-2.0
+  
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_focused="true" android:color="@color/testcolor1"/>
+    <item android:color="@color/testcolor2"/>
+</selector>
diff --git a/tests/res/drawable/colorstatelist_test.xml b/tests/res/drawable/colorstatelist_test.xml
new file mode 100644
index 0000000..37c5755
--- /dev/null
+++ b/tests/res/drawable/colorstatelist_test.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+   <item android:state_focused="true" android:color="@color/resource_test_color"/>
+   <item android:state_pressed="true" android:state_enabled="false" android:color="@color/resource_test_color"/>
+   <item android:state_enabled="false" android:color="@color/resource_test_color"/>
+   <item android:state_active="true" android:color="@color/resource_test_color"/>
+   <item android:color="@color/resource_test_color"/>
+ </selector>
diff --git a/tests/res/raw/testmp3.mp3 b/tests/res/raw/testmp3.mp3
new file mode 100755
index 0000000..98b204c
--- /dev/null
+++ b/tests/res/raw/testmp3.mp3
Binary files differ
diff --git a/tests/res/raw/text.txt b/tests/res/raw/text.txt
new file mode 100755
index 0000000..3d8c519
--- /dev/null
+++ b/tests/res/raw/text.txt
@@ -0,0 +1 @@
+OneTwoThreeFourFiveSixSevenEightNineTen
\ No newline at end of file
diff --git a/tests/res/values-12key-63x57/configVarying.xml b/tests/res/values-12key-63x57/configVarying.xml
new file mode 100644
index 0000000..5229f28
--- /dev/null
+++ b/tests/res/values-12key-63x57/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 12key 63x57</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 12key 63x57</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-12key-dpad/configVarying.xml b/tests/res/values-12key-dpad/configVarying.xml
new file mode 100644
index 0000000..4622574
--- /dev/null
+++ b/tests/res/values-12key-dpad/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 12key dpad</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 12key dpad</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-12key/configVarying.xml b/tests/res/values-12key/configVarying.xml
new file mode 100755
index 0000000..38174d7
--- /dev/null
+++ b/tests/res/values-12key/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 12key</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 12key</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-240dpi/configVarying.xml b/tests/res/values-240dpi/configVarying.xml
new file mode 100644
index 0000000..3b43799
--- /dev/null
+++ b/tests/res/values-240dpi/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 240dpi</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 240dpi</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-320x200/configVarying.xml b/tests/res/values-320x200/configVarying.xml
new file mode 100755
index 0000000..80830f4
--- /dev/null
+++ b/tests/res/values-320x200/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 320x200</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 320x200</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-32dpi-keysexposed/configVarying.xml b/tests/res/values-32dpi-keysexposed/configVarying.xml
new file mode 100644
index 0000000..67dd4a5
--- /dev/null
+++ b/tests/res/values-32dpi-keysexposed/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 32dpi keysexposed</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 32dpi keysexposed</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-32dpi-stylus/configVarying.xml b/tests/res/values-32dpi-stylus/configVarying.xml
new file mode 100644
index 0000000..948784a
--- /dev/null
+++ b/tests/res/values-32dpi-stylus/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 32dpi stylus</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 32dpi stylus</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-480x320/configVarying.xml b/tests/res/values-480x320/configVarying.xml
new file mode 100755
index 0000000..ade144b
--- /dev/null
+++ b/tests/res/values-480x320/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple 480x320</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag 480x320</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-cs/strings.xml b/tests/res/values-cs/strings.xml
new file mode 100644
index 0000000..396bebd
--- /dev/null
+++ b/tests/res/values-cs/strings.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+    <plurals name="plurals_test">
+        <item quantity="one">A Czech dog</item>
+        <item quantity="few">Few Czech dogs</item>
+        <item quantity="other">Some Czech dogs</item>
+    </plurals>
+</resources>
+
diff --git a/tests/res/values-dpad-63x57/configVarying.xml b/tests/res/values-dpad-63x57/configVarying.xml
new file mode 100644
index 0000000..6b93c7d
--- /dev/null
+++ b/tests/res/values-dpad-63x57/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple dpad 63x57</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag dpad 63x57</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-dpad/configVarying.xml b/tests/res/values-dpad/configVarying.xml
new file mode 100755
index 0000000..0b0760f
--- /dev/null
+++ b/tests/res/values-dpad/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple dpad</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag dpad</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-finger/configVarying.xml b/tests/res/values-finger/configVarying.xml
new file mode 100755
index 0000000..e02fdb5
--- /dev/null
+++ b/tests/res/values-finger/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple finger</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag finger</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-keysexposed-12key/configVarying.xml b/tests/res/values-keysexposed-12key/configVarying.xml
new file mode 100644
index 0000000..311d5db
--- /dev/null
+++ b/tests/res/values-keysexposed-12key/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple keysexposed 12key</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag keysexposed 12key</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-keysexposed-dpad/configVarying.xml b/tests/res/values-keysexposed-dpad/configVarying.xml
new file mode 100644
index 0000000..7c6caeb
--- /dev/null
+++ b/tests/res/values-keysexposed-dpad/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple keysexposed dpad</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag keysexposed dpad</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-keysexposed/configVarying.xml b/tests/res/values-keysexposed/configVarying.xml
new file mode 100755
index 0000000..befd535
--- /dev/null
+++ b/tests/res/values-keysexposed/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple keysexposed</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag keysexposed</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-keyshidden/configVarying.xml b/tests/res/values-keyshidden/configVarying.xml
new file mode 100755
index 0000000..be21934
--- /dev/null
+++ b/tests/res/values-keyshidden/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple keyshidden</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag keyshidden</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-land/configVarying.xml b/tests/res/values-land/configVarying.xml
new file mode 100644
index 0000000..d5ece19
--- /dev/null
+++ b/tests/res/values-land/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple landscape</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag landscape</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mcc111-mnc222/configVarying.xml b/tests/res/values-mcc111-mnc222/configVarying.xml
new file mode 100644
index 0000000..7f85a14
--- /dev/null
+++ b/tests/res/values-mcc111-mnc222/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mcc111 mnc222</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mcc111 mnc222</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mcc111-xx-rYY/configVarying.xml b/tests/res/values-mcc111-xx-rYY/configVarying.xml
new file mode 100644
index 0000000..6b094dc
--- /dev/null
+++ b/tests/res/values-mcc111-xx-rYY/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mcc111 xx-rYY</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mcc111 xx-rYY</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mcc111-xx/configVarying.xml b/tests/res/values-mcc111-xx/configVarying.xml
new file mode 100644
index 0000000..6d01bce
--- /dev/null
+++ b/tests/res/values-mcc111-xx/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mcc111 xx</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mcc111 xx</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mcc111/configVarying.xml b/tests/res/values-mcc111/configVarying.xml
new file mode 100755
index 0000000..656c2bd
--- /dev/null
+++ b/tests/res/values-mcc111/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mcc111</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mcc111</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mnc222-square/configVarying.xml b/tests/res/values-mnc222-square/configVarying.xml
new file mode 100644
index 0000000..4a64117
--- /dev/null
+++ b/tests/res/values-mnc222-square/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mnc222 square</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mnc222 square</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mnc222-xx/configVarying.xml b/tests/res/values-mnc222-xx/configVarying.xml
new file mode 100644
index 0000000..80570f5
--- /dev/null
+++ b/tests/res/values-mnc222-xx/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mnc222 xx</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mnc222 xx</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-mnc222/configVarying.xml b/tests/res/values-mnc222/configVarying.xml
new file mode 100755
index 0000000..54bb47e
--- /dev/null
+++ b/tests/res/values-mnc222/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple mnc222</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag mnc222</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-nokeys/configVarying.xml b/tests/res/values-nokeys/configVarying.xml
new file mode 100755
index 0000000..e0b23bc
--- /dev/null
+++ b/tests/res/values-nokeys/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple nokeys</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag nokeys</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-nonav/configVarying.xml b/tests/res/values-nonav/configVarying.xml
new file mode 100755
index 0000000..1ec8520
--- /dev/null
+++ b/tests/res/values-nonav/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple nonav</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag nonav</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-notouch/configVarying.xml b/tests/res/values-notouch/configVarying.xml
new file mode 100755
index 0000000..ed0833b
--- /dev/null
+++ b/tests/res/values-notouch/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple notouch</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag notouch</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-port/configVarying.xml b/tests/res/values-port/configVarying.xml
new file mode 100644
index 0000000..e4e9009
--- /dev/null
+++ b/tests/res/values-port/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple portrait</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag portrait</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-qwerty/configVarying.xml b/tests/res/values-qwerty/configVarying.xml
new file mode 100755
index 0000000..fb2bd57
--- /dev/null
+++ b/tests/res/values-qwerty/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple qwerty</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag qwerty</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-square-32dpi/configVarying.xml b/tests/res/values-square-32dpi/configVarying.xml
new file mode 100644
index 0000000..f205f46
--- /dev/null
+++ b/tests/res/values-square-32dpi/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple square 32dpi</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag square 32dpi</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-square-stylus/configVarying.xml b/tests/res/values-square-stylus/configVarying.xml
new file mode 100644
index 0000000..861c215
--- /dev/null
+++ b/tests/res/values-square-stylus/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple square stylus</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag square stylus</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-square/configVarying.xml b/tests/res/values-square/configVarying.xml
new file mode 100644
index 0000000..055fd35
--- /dev/null
+++ b/tests/res/values-square/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple square</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag square</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-stylus-12key/configVarying.xml b/tests/res/values-stylus-12key/configVarying.xml
new file mode 100644
index 0000000..47db444
--- /dev/null
+++ b/tests/res/values-stylus-12key/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple stylus 12key</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag stylus 12key</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-stylus-keysexposed/configVarying.xml b/tests/res/values-stylus-keysexposed/configVarying.xml
new file mode 100644
index 0000000..cf5598f
--- /dev/null
+++ b/tests/res/values-stylus-keysexposed/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple stylus keysexposed</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag stylus keysexposed</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-stylus/configVarying.xml b/tests/res/values-stylus/configVarying.xml
new file mode 100755
index 0000000..862c2bc
--- /dev/null
+++ b/tests/res/values-stylus/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple stylus</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag stylus</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-trackball/configVarying.xml b/tests/res/values-trackball/configVarying.xml
new file mode 100755
index 0000000..d579193
--- /dev/null
+++ b/tests/res/values-trackball/configVarying.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<resources>
+    <item type="configVarying" name="simple">simple trackball</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag trackball</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-wheel/configVarying.xml b/tests/res/values-wheel/configVarying.xml
new file mode 100755
index 0000000..64173a8
--- /dev/null
+++ b/tests/res/values-wheel/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple wheel</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag wheel</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-xx-32dpi/configVarying.xml b/tests/res/values-xx-32dpi/configVarying.xml
new file mode 100644
index 0000000..dc17c6b
--- /dev/null
+++ b/tests/res/values-xx-32dpi/configVarying.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<resources>
+    <item type="configVarying" name="simple">simple xx 32dpi</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag xx 32dpi</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-xx-rYY/configVarying.xml b/tests/res/values-xx-rYY/configVarying.xml
new file mode 100755
index 0000000..903d008
--- /dev/null
+++ b/tests/res/values-xx-rYY/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple xx-rYY</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag xx-rYY</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-xx-square/configVarying.xml b/tests/res/values-xx-square/configVarying.xml
new file mode 100644
index 0000000..6ef5d43
--- /dev/null
+++ b/tests/res/values-xx-square/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple xx square</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag xx square</item>
+    </bag>
+</resources>
diff --git a/tests/res/values-xx/configVarying.xml b/tests/res/values-xx/configVarying.xml
new file mode 100755
index 0000000..191e4f7
--- /dev/null
+++ b/tests/res/values-xx/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple xx</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag xx</item>
+    </bag>
+</resources>
diff --git a/tests/res/values/arrays.xml b/tests/res/values/arrays.xml
index 6785bc7..71e0133 100644
--- a/tests/res/values/arrays.xml
+++ b/tests/res/values/arrays.xml
@@ -16,6 +16,20 @@
  -->
 
 <resources>
+    <item type="integer" name="reference" format="integer">101</item>
+
+      <string-array name="strings">
+        <item>zero</item>
+        <item>1</item>
+        <item>@string/reference</item>
+    </string-array>
+
+    <integer-array name="integers">
+        <item>0</item>
+        <item>1</item>
+        <item>@integer/reference</item>
+    </integer-array>
+
     <array name="difficultyLevel">
         <item>Easy</item>
         <item>Medium</item>
@@ -27,4 +41,17 @@
         <item>Test String 2</item>
         <item>Test String 3</item>
     </string-array>
+
+    <integer-array name="table_row_layout">
+        <item>1</item>
+        <item>2</item>
+        <item>3</item>
+        <item>4</item>
+        <item>5</item>
+        <item>6</item>
+        <item>7</item>
+        <item>8</item>
+        <item>9</item>
+        <item>10</item>
+    </integer-array>
 </resources>
diff --git a/tests/res/values/bools.xml b/tests/res/values/bools.xml
new file mode 100755
index 0000000..f119cda
--- /dev/null
+++ b/tests/res/values/bools.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+<resources>
+	<bool name="trueRes">true</bool>
+	<bool name="falseRes">false</bool>
+</resources>
diff --git a/tests/res/values/colors.xml b/tests/res/values/colors.xml
index bca36cf..f3cc325 100644
--- a/tests/res/values/colors.xml
+++ b/tests/res/values/colors.xml
@@ -20,5 +20,7 @@
     <drawable name="blue">#770000ff</drawable>
     <drawable name="black">#77ffffff</drawable>
     <drawable name="yellow">#77ffff00</drawable>
-
+    <color name="testcolor1">#ff00ff00</color>
+    <color name="testcolor2">#ffff0000</color>
+    <color name="failColor">#ff0000ff</color>
 </resources>
diff --git a/tests/res/values/configVarying.xml b/tests/res/values/configVarying.xml
new file mode 100755
index 0000000..a2d5b97
--- /dev/null
+++ b/tests/res/values/configVarying.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <item type="configVarying" name="simple">simple default</item>
+    <bag type="configVarying" name="bag">
+        <item name="testString">bag default</item>
+    </bag>
+</resources>
diff --git a/tests/res/values/dimens.xml b/tests/res/values/dimens.xml
new file mode 100755
index 0000000..2a8f76e
--- /dev/null
+++ b/tests/res/values/dimens.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+<resources>
+    <item name="frac100perc" type="dimen" format="fraction">100%</item>
+    <item name="frac1perc" type="dimen" format="fraction">1%</item>
+    <item name="fracp1perc" type="dimen" format="fraction">.1%</item>
+    <item name="fracp01perc" type="dimen" format="fraction">.01%</item>
+    <item name="frac0perc" type="dimen" format="fraction">0%</item>
+    <item name="frac1p1perc" type="dimen" format="fraction">1.1%</item>
+    <item name="frac100p1perc" type="dimen" format="fraction">100.1%</item>
+    <item name="frac25510perc" type="dimen" format="fraction">25510%</item>
+    <item name="frac25610perc" type="dimen" format="fraction">25610%</item>
+    <item name="frac6553510perc" type="dimen" format="fraction">6553510%</item>
+    <item name="frac6553610perc" type="dimen" format="fraction">6553610%</item>
+
+    <item name="frac100pperc" type="dimen" format="fraction">100%p</item>
+    <item name="frac1pperc" type="dimen" format="fraction">1%p</item>
+    <item name="fracp1pperc" type="dimen" format="fraction">.1%p</item>
+    <item name="fracp01pperc" type="dimen" format="fraction">.01%p</item>
+    <item name="frac0pperc" type="dimen" format="fraction">0%p</item>
+    <item name="frac1p1pperc" type="dimen" format="fraction">1.1%p</item>
+    <item name="frac100p1pperc" type="dimen" format="fraction">100.1%p</item>
+    <item name="frac25510pperc" type="dimen" format="fraction">25510%p</item>
+    <item name="frac25610pperc" type="dimen" format="fraction">25610%p</item>
+    <item name="frac6553510pperc" type="dimen" format="fraction">6553510%p</item>
+    <item name="frac6553610pperc" type="dimen" format="fraction">6553610%p</item> 
+</resources>
+
diff --git a/tests/res/values/resources_test.xml b/tests/res/values/resources_test.xml
new file mode 100644
index 0000000..a17fe23
--- /dev/null
+++ b/tests/res/values/resources_test.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<resources>
+     <!-- The width that is used when creating thumbnails of applications. -->
+     <dimen name="thumbnail_width">84dp</dimen>
+     <!-- The height that is used when creating thumbnails of applications. -->
+     <dimen name="thumbnail_height">63dp</dimen>
+     <!-- The standard size (both width and height) of an application icon that
+          will be displayed in the app launcher and elsewhere. -->
+     <dimen name="app_icon_size">48dip</dimen>
+     <dimen name="toast_y_offset">64dip</dimen>
+     <plurals name="plurals_test">
+        <item quantity="one">A dog</item>
+        <item quantity="other">Some dogs</item>
+      </plurals>
+     <color name="resource_test_color">#003B3B3B</color>
+     <integer name="resource_test_int">10</integer>
+</resources>
diff --git a/tests/res/xml/extra.xml b/tests/res/xml/extra.xml
new file mode 100755
index 0000000..b3bffb4
--- /dev/null
+++ b/tests/res/xml/extra.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+<tag xmlns:android="http://schemas.android.com/apk/res/android" android:name="Bruce" android:value="Lee">
+    <extra android:name="google" android:value="android">
+    </extra>
+</tag>