1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<configuration description="Config for CTS Sensor Manager test cases">
18    <option name="test-suite-tag" value="cts"/>
19    <option name="config-descriptor:metadata" key="component" value="framework"/>
20    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi"/>
21    <option name="config-descriptor:metadata" key="parameter" value="instant_app"/>
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user"/>
23    <option name="config-descriptor:metadata" key="parameter" value="run_on_sdk_sandbox" />
24
25    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
26        <option name="cleanup-apks" value="true"/>
27
28        <option name="test-file-name" value="CtsSensorRatePermissionReturnedRateInfo.apk"/>
29        <option name="test-file-name" value="CtsSensorRatePermissionDirectReportAPI30.apk"/>
30        <option name="test-file-name" value="CtsSensorRatePermissionDirectReportAPI31.apk"/>
31        <option name="test-file-name" value="CtsSensorRatePermissionEventConnectionAPI30.apk"/>
32        <option name="test-file-name" value="CtsSensorRatePermissionEventConnectionAPI31.apk"/>
33        <option name="test-file-name" value="CtsSensorRatePermissionDebuggableAPI31.apk"/>
34    </target_preparer>
35
36    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
37        <option name="run-command" value="dumpsys sensorservice restrict .cts" />
38        <option name="run-command" value="cmd sensor_privacy disable 0 microphone" />
39        <option name="teardown-command" value="dumpsys sensorservice enable" />
40        <option name="teardown-command" value="cmd sensor_privacy reset 0 microphone" />
41    </target_preparer>
42
43    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
44        <option name="package" value="android.sensorratepermission.cts.returnedrateinfo"/>
45        <option name="class" value="android.sensorratepermission.cts.returnedrateinfo.ReturnedRateInfoTest"/>
46    </test>
47
48    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
49        <option name="package" value="android.sensorratepermission.cts.directreportapi30"/>
50        <option name="class" value="android.sensorratepermission.cts.directreportapi30.DirectReportAPI30Test"/>
51    </test>
52
53    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
54        <option name="package" value="android.sensorratepermission.cts.directreportapi31"/>
55        <option name="class" value="android.sensorratepermission.cts.directreportapi31.DirectReportAPI31Test"/>
56    </test>
57
58    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
59        <option name="package" value="android.sensorratepermission.cts.eventconnectionapi31"/>
60        <option name="class" value="android.sensorratepermission.cts.eventconnectionapi31.EventConnectionAPI31Test"/>
61    </test>
62
63    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
64        <option name="package" value="android.sensorratepermission.cts.eventconnectionapi30"/>
65        <option name="class" value="android.sensorratepermission.cts.eventconnectionapi30.EventConnectionAPI30Test"/>
66    </test>
67
68    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
69        <option name="package" value="android.sensorratepermission.cts.debuggableapi31"/>
70        <option name="class" value="android.sensorratepermission.cts.debuggableapi31.DebuggableAPI31Test"/>
71    </test>
72</configuration>
73
74