vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 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 | --> |
Vadim Tryshev | acfb4f2 | 2024-03-04 18:28:20 -0800 | [diff] [blame] | 16 | |
vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 17 | <configuration description="Runs Launcher3 tests."> |
| 18 | <option name="test-suite-tag" value="apct" /> |
| 19 | <option name="test-suite-tag" value="apct-instrumentation" /> |
| 20 | |
Vadim Tryshev | 7a4b8a4 | 2024-03-06 10:36:55 -0800 | [diff] [blame] | 21 | <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 | |
vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 30 | <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> |
| 31 | <option name="set-test-harness" value="true" /> |
Vadim Tryshev | acfb4f2 | 2024-03-04 18:28:20 -0800 | [diff] [blame] | 32 | |
| 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 | |
vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 37 | <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 Tryshev | 7a4b8a4 | 2024-03-06 10:36:55 -0800 | [diff] [blame] | 46 | |
Linus Tufvesson | 371bd87 | 2024-04-17 15:38:12 +0200 | [diff] [blame] | 47 | <option name="run-command" value="setprop debug.wm.disable_deprecated_target_sdk_dialog 1"/> |
| 48 | |
Vadim Tryshev | 7a4b8a4 | 2024-03-06 10:36:55 -0800 | [diff] [blame] | 49 | <option name="run-command" value="settings put system pointer_location 1" /> |
| 50 | <option name="run-command" value="settings put system show_touches 1" /> |
Vadim Tryshev | 377c391 | 2024-11-28 02:34:58 +0000 | [diff] [blame] | 51 | |
| 52 | <option name="run-command" value="setprop pixel_legal_joint_permission_v2 true" /> |
vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 53 | </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 Tryshev | 183614c | 2024-02-15 18:43:37 -0800 | [diff] [blame] | 69 | <option name="hidden-api-checks" value="false" /> |
vadimt | 730b9d6 | 2021-03-12 14:46:35 -0800 | [diff] [blame] | 70 | </test> |
| 71 | </configuration> |