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 | b6cd98b | 2020-06-10 17:09:10 -0700 | [diff] [blame^] | 51 | <!-- |
| 52 | A (separate) standalone test app APK is needed to test implicit app-visibility from the IME |
| 53 | process to the IME target process, because if the IME target process is directly interacting |
| 54 | with MockIme process via MockImeSession, then the system would already give the MockIme an |
| 55 | implicit app-visibility back to the test app. To fully test app-visibility scenario, |
| 56 | MockImeSession cannot be used in the process where the focused Activity is hosted. |
| 57 | --> |
| 58 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 59 | <option name="cleanup-apks" value="true" /> |
| 60 | <!-- |
| 61 | In order to simulate the scenario where the IME client process is normally |
| 62 | installed, explicitly set false here. Otherwise, the test APP will be installed under |
| 63 | force-queryable mode, which makes the test useless. |
| 64 | --> |
| 65 | <option name="force-queryable" value="false" /> |
| 66 | <option name="test-file-name" value="CtsInputMethodStandaloneTestApp.apk" /> |
| 67 | </target_preparer> |
| 68 | |
Yohei Yukawa | ecf533d | 2018-12-16 21:38:23 -0800 | [diff] [blame] | 69 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 70 | <option name="cleanup-apks" value="true" /> |
| 71 | <option name="test-file-name" value="CtsInputMethodTestCases.apk" /> |
Yohei Yukawa | 07b1488 | 2018-05-18 16:20:28 -0700 | [diff] [blame] | 72 | </target_preparer> |
Tadashi G. Takaoka | 7be551a | 2017-01-23 15:30:42 +0900 | [diff] [blame] | 73 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 74 | <option name="package" value="android.view.inputmethod.cts" /> |
| 75 | <option name="runtime-hint" value="1m0s" /> |
| 76 | </test> |
| 77 | </configuration> |