Always show virtual keyboard in test.
Some emulators have a physical keyboard and the test fails if the default IME suppresses itself. Set show_ime_with_hard_keyboard setting to request always showing virtual keyboard. Bug: 220385622 Test: atest InputMethodStressTest Change-Id: Iaf0d30635ca94ae044bb3d3ed771387ce2288cb3
This commit is contained in:
@@ -18,6 +18,11 @@
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
||||
<option name="run-command" value="adb shell settings put secure show_ime_with_hard_keyboard 1" />
|
||||
<option name="teardown-command" value="adb shell settings delete secure show_ime_with_hard_keyboard" />
|
||||
</target_preparer>
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
|
||||
<option name="cleanup-apks" value="true" />
|
||||
<option name="test-file-name" value="InputMethodStressTest.apk" />
|
||||
|
||||
Reference in New Issue
Block a user