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 description="InputMethod integration/regression test"> 17 <option name="test-suite-tag" value="apct" /> 18 19 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 20 21 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 22 <option name="run-command" value="setprop debug.wm.disable_deprecated_abi_dialog 1" /> 23 <option name="run-command" value="settings put secure show_ime_with_hard_keyboard 1" /> 24 <option name="teardown-command" value="settings delete secure show_ime_with_hard_keyboard" /> 25 </target_preparer> 26 27 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 28 <option name="cleanup-apks" value="true" /> 29 <option name="test-file-name" value="SimpleTestIme.apk" /> 30 <option name="test-file-name" value="InputMethodStressTest.apk" /> 31 </target_preparer> 32 33 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 34 <option name="package" value="com.android.inputmethod.stresstest" /> 35 </test> 36 37 <!-- Collect the files in the dump directory for debugging --> 38 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 39 <option name="directory-keys" value="/sdcard/InputMethodStressTest/" /> 40 <option name="collect-on-run-ended-only" value="true" /> 41 </metrics_collector> 42</configuration> 43