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
24    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
25        <option name="cleanup-apks" value="true"/>
26
27        <option name="test-file-name" value="CtsSensorRatePermissionReturnedRateInfo.apk"/>
28        <option name="test-file-name" value="CtsSensorRatePermissionDirectReportAPI30.apk"/>
29        <option name="test-file-name" value="CtsSensorRatePermissionDirectReportAPI31.apk"/>
30        <option name="test-file-name" value="CtsSensorRatePermissionEventConnectionAPI30.apk"/>
31        <option name="test-file-name" value="CtsSensorRatePermissionEventConnectionAPI31.apk"/>
32        <option name="test-file-name" value="CtsSensorRatePermissionDebuggableAPI31.apk"/>
33    </target_preparer>
34
35    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
36        <option name="run-command" value="dumpsys sensorservice restrict .cts" />
37        <option name="run-command" value="cmd sensor_privacy disable 0 microphone" />
38        <option name="teardown-command" value="dumpsys sensorservice enable" />
39        <option name="teardown-command" value="cmd sensor_privacy reset 0 microphone" />
40    </target_preparer>
41
42    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
43        <option name="package" value="android.sensorratepermission.cts.returnedrateinfo"/>
44        <option name="class" value="android.sensorratepermission.cts.returnedrateinfo.ReturnedRateInfoTest"/>
45    </test>
46
47    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
48        <option name="package" value="android.sensorratepermission.cts.directreportapi30"/>
49        <option name="class" value="android.sensorratepermission.cts.directreportapi30.DirectReportAPI30Test"/>
50    </test>
51
52    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
53        <option name="package" value="android.sensorratepermission.cts.directreportapi31"/>
54        <option name="class" value="android.sensorratepermission.cts.directreportapi31.DirectReportAPI31Test"/>
55    </test>
56
57    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
58        <option name="package" value="android.sensorratepermission.cts.eventconnectionapi31"/>
59        <option name="class" value="android.sensorratepermission.cts.eventconnectionapi31.EventConnectionAPI31Test"/>
60    </test>
61
62    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
63        <option name="package" value="android.sensorratepermission.cts.eventconnectionapi30"/>
64        <option name="class" value="android.sensorratepermission.cts.eventconnectionapi30.EventConnectionAPI30Test"/>
65    </test>
66
67    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
68        <option name="package" value="android.sensorratepermission.cts.debuggableapi31"/>
69        <option name="class" value="android.sensorratepermission.cts.debuggableapi31.DebuggableAPI31Test"/>
70    </test>
71</configuration>
72
73