Debian Codegraph @

tests/componentalias/AndroidTest-template.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2021 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>
17 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
18 <option name="cleanup-apks" value="true" />
19 <option name="test-file-name" value="ComponentAliasTests.apk" />
20 <option name="test-file-name" value="ComponentAliasTests1.apk" />
21 <option name="test-file-name" value="ComponentAliasTests2.apk" />
22 </target_preparer>
23 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
24 <!-- Exempt the helper APKs from the BG restriction, so they can start BG services. -->
25 <option name="run-command" value="cmd deviceidle whitelist +android.content.componentalias.tests" />
26 <option name="run-command" value="cmd deviceidle whitelist +android.content.componentalias.tests.sub1" />
27 <option name="run-command" value="cmd deviceidle whitelist +android.content.componentalias.tests.sub2" />
28
29 <option name="teardown-command" value="cmd deviceidle whitelist -android.content.componentalias.tests" />
30 <option name="teardown-command" value="cmd deviceidle whitelist -android.content.componentalias.tests.sub1" />
31 <option name="teardown-command" value="cmd deviceidle whitelist -android.content.componentalias.tests.sub2" />
32 </target_preparer>
33 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
34 <option name="package" value="{PACKAGE}" />
35 <option name="runtime-hint" value="2m" />
36 <option name="isolated-storage" value="false" />
37 </test>
38 </configuration>