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 17<configuration description="Runs Launcher3 tests."> 18 <option name="test-suite-tag" value="apct" /> 19 <option name="test-suite-tag" value="apct-instrumentation" /> 20 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 30 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 31 <option name="set-test-harness" value="true" /> 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 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" /> 46 47 <option name="run-command" value="setprop debug.wm.disable_deprecated_target_sdk_dialog 1"/> 48 49 <option name="run-command" value="settings put system pointer_location 1" /> 50 <option name="run-command" value="settings put system show_touches 1" /> 51 </target_preparer> 52 53 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 54 <option name="cleanup-apks" value="true" /> 55 <option name="test-file-name" value="Launcher3Tests.apk" /> 56 <option name="test-file-name" value="Launcher3.apk" /> 57 </target_preparer> 58 59 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 60 <option name="directory-keys" value="/data/user/0/com.android.launcher3/files" /> 61 <option name="collect-on-run-ended-only" value="true" /> 62 </metrics_collector> 63 64 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 65 <option name="package" value="com.android.launcher3.tests" /> 66 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> 67 <option name="hidden-api-checks" value="false" /> 68 </test> 69</configuration> 70