Improve IME cts tests that may flaky when insecure keyguard enabled

Although CL[1] introduced unlock test rule to unlock device before test,
in case that the rule may not applicable for instant app mode due to
selinux enforcement,

Added "wm disable-keybuard" command in AndroidTest.xml
for IME tests to ensure keyguard will be dismissed
before the test.

[1]: I7f854c5ee08e8139738c39eb26bcd3f167d5658a

Fix: 152572186
Test: atest SearchViewTest
Test: atest --instant SearchViewTest
Change-Id: Ica124dad78aec177d2e7257b691c6cf78c813247
diff --git a/tests/inputmethod/AndroidTest.xml b/tests/inputmethod/AndroidTest.xml
index ce5e679..f1ec1e0 100644
--- a/tests/inputmethod/AndroidTest.xml
+++ b/tests/inputmethod/AndroidTest.xml
@@ -42,6 +42,12 @@
         features, e.g. android.software.input_methods so that we can conditionally install APKs
         based on the feature supported in the target device.
     -->
+
+    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
+        <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
+        <option name="run-command" value="wm dismiss-keyguard" />
+    </target_preparer>
+
     <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
         <option name="cleanup-apks" value="true" />
         <option name="test-file-name" value="CtsInputMethodTestCases.apk" />