blob: a8768609b07065ad80b004e4ebd9a9e2841d2d2f [file] [log] [blame]
vadimt730b9d62021-03-12 14:46:35 -08001<?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-->
Vadim Tryshevacfb4f22024-03-04 18:28:20 -080016
vadimt730b9d62021-03-12 14:46:35 -080017<configuration description="Runs Launcher3 tests.">
18 <option name="test-suite-tag" value="apct" />
19 <option name="test-suite-tag" value="apct-instrumentation" />
20
Vadim Tryshev7a4b8a42024-03-06 10:36:55 -080021 <option name="max-tmp-logcat-file" value="104857600" /> <!-- 100 * 1024 * 1024 -->
22
23 <logger class="com.android.tradefed.log.FileLogger">
24 <option name="max-log-size" value="20" />
25 </logger>
26
27 <!-- Disables the "Ramdump uploader to betterbug" -->
28 <option name="post-boot-command" value="am broadcast --async --user 0 -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e betterbug_enable_ramdump_uploader false" />
29
vadimt730b9d62021-03-12 14:46:35 -080030 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
31 <option name="set-test-harness" value="true" />
Vadim Tryshevacfb4f22024-03-04 18:28:20 -080032
33 <option name="run-command" value="svc nfc disable" />
34 <option name="run-command" value="settings put global ble_scan_always_enabled 0" />
35 <option name="run-command" value="svc bluetooth disable" />
36
vadimt730b9d62021-03-12 14:46:35 -080037 <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher" />
38 <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher.out_of_proc_tests" />
39 <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher.tests" />
40 <option name="run-command" value="pm disable com.google.android.googlequicksearchbox" />
41
42 <option name="run-command" value="input keyevent 82" />
43 <option name="run-command" value="settings delete secure assistant" />
44 <option name="run-command" value="settings put global airplane_mode_on 1" />
45 <option name="run-command" value="am broadcast -a android.intent.action.AIRPLANE_MODE" />
Vadim Tryshev7a4b8a42024-03-06 10:36:55 -080046
Linus Tufvesson371bd872024-04-17 15:38:12 +020047 <option name="run-command" value="setprop debug.wm.disable_deprecated_target_sdk_dialog 1"/>
48
Vadim Tryshev7a4b8a42024-03-06 10:36:55 -080049 <option name="run-command" value="settings put system pointer_location 1" />
50 <option name="run-command" value="settings put system show_touches 1" />
Vadim Tryshev377c3912024-11-28 02:34:58 +000051
52 <option name="run-command" value="setprop pixel_legal_joint_permission_v2 true" />
vadimt730b9d62021-03-12 14:46:35 -080053 </target_preparer>
54
55 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
56 <option name="cleanup-apks" value="true" />
57 <option name="test-file-name" value="Launcher3Tests.apk" />
58 <option name="test-file-name" value="Launcher3.apk" />
59 </target_preparer>
60
61 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
62 <option name="directory-keys" value="/data/user/0/com.android.launcher3/files" />
63 <option name="collect-on-run-ended-only" value="true" />
64 </metrics_collector>
65
66 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
67 <option name="package" value="com.android.launcher3.tests" />
68 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
Vadim Tryshev183614c2024-02-15 18:43:37 -080069 <option name="hidden-api-checks" value="false" />
vadimt730b9d62021-03-12 14:46:35 -080070 </test>
71</configuration>