summaryrefslogtreecommitdiff
path: root/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java')
-rw-r--r--tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java b/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java
index 06e7fff09ee..8d29069c057 100644
--- a/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java
+++ b/tests/inputmethod/src/android/view/inputmethod/cts/InputMethodServiceTest.java
@@ -104,6 +104,7 @@ import com.android.cts.mockime.ImeEventStream;
import com.android.cts.mockime.ImeSettings;
import com.android.cts.mockime.MockImeSession;
+import org.junit.Assume;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
@@ -210,6 +211,7 @@ public class InputMethodServiceTest extends EndToEndImeTestBase {
@Test
public void testSwitchInputMethod_verifiesEnabledState() throws Exception {
+ Assume.assumeFalse(isPreventImeStartup());
SystemUtil.runShellCommand("ime disable " + OTHER_IME_ID);
try (MockImeSession imeSession = MockImeSession.create(
InstrumentationRegistry.getInstrumentation().getContext(),
@@ -233,6 +235,7 @@ public class InputMethodServiceTest extends EndToEndImeTestBase {
}
@Test
public void testSwitchInputMethodWithSubtype_verifiesEnabledState() throws Exception {
+ Assume.assumeFalse(isPreventImeStartup());
SystemUtil.runShellCommand("ime disable " + OTHER_IME_ID);
try (MockImeSession imeSession = MockImeSession.create(
InstrumentationRegistry.getInstrumentation().getContext(),