1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2025 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<configuration description="Configuration for surfaceflinger_end2end_tests"> 17 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 18 <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" /> 19 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 20 <!-- Stop everything to run SurfaceFlinger in isolation, with relaxed SELinux permissions --> 21 <option name="teardown-command" value="stop" /> 22 <option name="teardown-command" value="setprop debug.sf.nobootanimation 1" /> 23 24 <!-- Restart everything with normal settings after the test finishes. --> 25 <option name="teardown-command" value="stop" /> 26 <option name="teardown-command" value="setprop debug.sf.nobootanimation 0" /> 27 <option name="teardown-command" value="setprop debug.sf.hwc_service_name default" /> 28 <option name="teardown-command" value="start" /> 29 </target_preparer> 30 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 31 <option name="cleanup" value="true" /> 32 <option name="push" value="surfaceflinger_end2end_tests->/data/local/tests/surfaceflinger_end2end_tests" /> 33 </target_preparer> 34 <test class="com.android.tradefed.testtype.GTest" > 35 <option name="native-test-device-path" value="/data/local/tests" /> 36 <option name="module-name" value="surfaceflinger_end2end_tests" /> 37 <option name="native-test-timeout" value="15m"/> 38 </test> 39</configuration> 40