Use -j1 in testOdrefresh

By using single thread, we avoid the nonndeterministic output by the
compiler.

Bug: 202830861
Test: atest android.compos.test.ComposTestCase#testOdrefresh
      # See -j1 in logcat for commands used in both cases
Change-Id: Ifa72c2a92f03ee2bbccbf84a6717890d84f6a4ac
diff --git a/compos/tests/AndroidTest.xml b/compos/tests/AndroidTest.xml
index 940531b..2a84291 100644
--- a/compos/tests/AndroidTest.xml
+++ b/compos/tests/AndroidTest.xml
@@ -18,6 +18,11 @@
         <option name="force-root" value="true" />
     </target_preparer>
 
+    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
+        <!-- Run in single thread to avoid nondeterministics. -->
+        <option name="set-property" key="dalvik.vm.boot-dex2oat-threads" value="1" />
+    </target_preparer>
+
     <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
         <option name="jar" value="ComposHostTestCases.jar" />
     </test>