1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 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="Config for CTS Sensor test cases"> 17 <option name="test-suite-tag" value="cts" /> 18 <option name="config-descriptor:metadata" key="component" value="location" /> 19 <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> 20 <option name="config-descriptor:metadata" key="parameter" value="multi_abi" /> 21 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 22 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.LocationCheck" /> 23 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 24 <option name="cleanup-apks" value="true" /> 25 <option name="test-file-name" value="CtsSensorTestCases.apk" /> 26 </target_preparer> 27 <!-- Put SensorService in restricted mode so that only CTS tests will be able to get access to 28 sensors --> 29 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 30 <option name="run-command" value="dumpsys sensorservice restrict .cts" /> 31 <option name="teardown-command" value="dumpsys sensorservice enable" /> 32 </target_preparer> 33 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 34 <option name="package" value="android.hardware.sensor.cts" /> 35 <option name="runtime-hint" value="47m28s" /> 36 <!-- test-timeout unit is ms, value = 60 min --> 37 <option name="test-timeout" value="3600000" /> 38 </test> 39 40</configuration> 41