Tadashi G. Takaoka | 7be551a | 2017-01-23 15:30:42 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2017 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <configuration description="Config for CTS InputMethod test cases"> |
jdesprez | 503a3db | 2017-12-16 04:19:31 -0800 | [diff] [blame] | 19 | <option name="test-suite-tag" value="cts" /> |
Yohei Yukawa | bee5eb5 | 2018-01-26 08:58:55 -0800 | [diff] [blame] | 20 | <option name="config-descriptor:metadata" key="component" value="inputmethod" /> |
Julien Desprez | eb71891 | 2018-06-25 14:17:21 -0700 | [diff] [blame] | 21 | <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> |
Yohei Yukawa | 1e8a7d3 | 2019-01-29 21:36:29 -0800 | [diff] [blame] | 22 | <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> |
Julien Desprez | 722e030 | 2019-06-19 16:36:45 -0700 | [diff] [blame] | 23 | <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 24 | <!-- |
| 25 | TODO(yukawa): come up with a proper way to take care of devices that do not support |
| 26 | installable IMEs. Ideally target_preparer should have an option to annotate required |
| 27 | features, e.g. android.software.input_methods so that we can conditionally install APKs |
| 28 | based on the feature supported in the target device. |
| 29 | --> |
jdesprez | fd6d41d | 2017-04-11 15:43:44 -0700 | [diff] [blame] | 30 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
Tadashi G. Takaoka | 7be551a | 2017-01-23 15:30:42 +0900 | [diff] [blame] | 31 | <option name="cleanup-apks" value="true" /> |
Yohei Yukawa | f393213 | 2017-12-04 22:24:35 -0800 | [diff] [blame] | 32 | <!-- |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 33 | MockIME always needs to be instaleld as a full package, even when CTS is running |
| 34 | for instant apps. |
Yohei Yukawa | f393213 | 2017-12-04 22:24:35 -0800 | [diff] [blame] | 35 | --> |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 36 | <option name="force-install-mode" value="FULL"/> |
| 37 | <option name="test-file-name" value="CtsMockInputMethod.apk" /> |
Tadashi G. Takaoka | 7be551a | 2017-01-23 15:30:42 +0900 | [diff] [blame] | 38 | </target_preparer> |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 39 | <!-- |
| 40 | TODO(yukawa): come up with a proper way to take care of devices that do not support |
| 41 | installable IMEs. Ideally target_preparer should have an option to annotate required |
| 42 | features, e.g. android.software.input_methods so that we can conditionally install APKs |
| 43 | based on the feature supported in the target device. |
| 44 | --> |
Ming-Shin Lu | fccae8e | 2020-03-27 16:47:13 +0800 | [diff] [blame] | 45 | |
| 46 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 47 | <option name="run-command" value="input keyevent KEYCODE_WAKEUP" /> |
| 48 | <option name="run-command" value="wm dismiss-keyguard" /> |
| 49 | </target_preparer> |
| 50 | |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 51 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 52 | <option name="cleanup-apks" value="true" /> |
| 53 | <option name="test-file-name" value="CtsInputMethodTestCases.apk" /> |
Yohei Yukawa | 07b1488 | 2018-05-18 16:20:28 -0700 | [diff] [blame] | 54 | </target_preparer> |
Tadashi G. Takaoka | 7be551a | 2017-01-23 15:30:42 +0900 | [diff] [blame] | 55 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 56 | <option name="package" value="android.view.inputmethod.cts" /> |
| 57 | <option name="runtime-hint" value="1m0s" /> |
| 58 | </test> |
| 59 | </configuration> |