1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright 2022 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 OnDevicePersonalization CTS tests">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="framework" />
19    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
20    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
21    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
22
23    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
24        <option name="cleanup-apks" value="true"/>
25        <option name="test-file-name" value="CtsOnDevicePersonalizationE2ETests.apk"/>
26        <option name="test-file-name" value="OdpTestingSampleService.apk"/>
27    </target_preparer>
28
29    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
30        <option name="run-command" value="device_config set_sync_disabled_for_tests persistent" />
31        <option name="run-command" value="device_config put on_device_personalization global_kill_switch false" />
32        <option name="run-command" value="device_config put on_device_personalization federated_compute_kill_switch false" />
33        <option name="run-command" value="device_config put on_device_personalization enable_personalization_status_override true"/>
34        <option name="run-command" value="device_config put on_device_personalization personalization_status_override_value true"/>
35        <option name="teardown-command" value="device_config delete on_device_personalization global_kill_switch" />
36        <option name="teardown-command" value="device_config delete on_device_personalization federated_compute_kill_switch" />
37        <option name="teardown-command" value="device_config delete on_device_personalization enable_personalization_status_override" />
38        <option name="teardown-command" value="device_config delete on_device_personalization personalization_status_override_value" />
39        <option name="teardown-command" value="device_config set_sync_disabled_for_tests none" />
40    </target_preparer>
41
42    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
43        <option name="directory-keys" value="/data/system/files" />
44        <option name="clean-up" value="false" />
45        <option name="collect-on-run-ended-only" value="true" />
46    </metrics_collector>
47
48    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
49        <option name="hidden-api-checks" value="false" /> <!-- Allow hidden API uses -->
50        <option name="package" value="com.android.ondevicepersonalization.cts.e2e"/>
51    </test>
52
53    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
54        <option name="mainline-module-package-name" value="com.google.android.ondevicepersonalization" />
55    </object>
56    <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.ondevicepersonalization.apex" />
57</configuration>
58