1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright 2018 Google Inc. All Rights Reserved. 4 --> 5<configuration description="Runs WindowManager Flicker Tests"> 6 <option name="test-tag" value="FlickerTests" /> 7 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 8 <!-- keeps the screen on during tests --> 9 <option name="screen-always-on" value="on" /> 10 <!-- prevents the phone from restarting --> 11 <option name="force-skip-system-props" value="true" /> 12 <!-- set WM tracing verbose level to all --> 13 <option name="run-command" value="adb shell cmd window tracing level all" /> 14 <!-- inform WM to log all transactions --> 15 <option name="run-command" value="adb shell cmd window tracing transaction" /> 16 </target_preparer> 17 <target_preparer class="com.android.tradefed.targetprep.DeviceCleaner"> 18 <!-- keeps the screen on during tests --> 19 <option name="cleanup-action" value="REBOOT" /> 20 </target_preparer> 21 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 22 <option name="cleanup-apks" value="true"/> 23 <option name="test-file-name" value="FlickerTests.apk"/> 24 <option name="test-file-name" value="FlickerTestApp.apk" /> 25 </target_preparer> 26 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 27 <option name="package" value="com.android.server.wm.flicker"/> 28 <option name="exclude-annotation" value="org.junit.Ignore" /> 29 <option name="shell-timeout" value="6600s" /> 30 <option name="test-timeout" value="6000s" /> 31 <option name="hidden-api-checks" value="false" /> 32 </test> 33 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 34 <option name="directory-keys" value="/sdcard/flicker" /> 35 <option name="collect-on-run-ended-only" value="true" /> 36 <option name="clean-up" value="true" /> 37 </metrics_collector> 38</configuration> 39