Home
last modified time | relevance | path

Searched refs:imeId (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java45 public static String setCurrentImeSync(String imeId) { in setCurrentImeSync() argument
46 return "ime set " + imeId; in setCurrentImeSync()
50 public static String setCurrentImeSync(String imeId, int userId) { in setCurrentImeSync() argument
51 return String.format("ime set --user %d %s", userId, imeId); in setCurrentImeSync()
75 public static String enableIme(String imeId) { in enableIme() argument
76 return "ime enable " + imeId; in enableIme()
80 public static String enableIme(String imeId, int userId) { in enableIme() argument
81 return String.format("ime enable --user %d %s", userId, imeId); in enableIme()
85 public static String disableIme(String imeId) { in disableIme() argument
86 return "ime disable " + imeId; in disableIme()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DImeCommandReceiver.java50 void commandSwitchInputMethod(String imeId); in commandSwitchInputMethod() argument
80 final String imeId = getString1(intent); in onReceive() local
81 mIme.commandSwitchInputMethod(imeId); in onReceive()
90 final String imeId = getString1(intent); in onReceive() local
92 mIme.switchInputMethod(imeId, null /* subtype*/); in onReceive()
DCtsBaseInputMethod.java227 public void commandSwitchInputMethod(String imeId) { in commandSwitchInputMethod() argument
228 switchInputMethod(imeId); in commandSwitchInputMethod()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java130 private void installImePackageSync(String apkFileName, String imeId) throws Exception { in installImePackageSync() argument
132 waitUntilImesAreAvailable(imeId); in installImePackageSync()
136 disableAppCompatScalingForPackageIfNeeded(ComponentNameUtils.retrievePackageName(imeId)); in installImePackageSync()
538 private void assertImeNotSelectedInSecureSettings(String imeId, long timeout) throws Exception { in assertImeNotSelectedInSecureSettings() argument
541 throw new TimeoutException(imeId + " is still the current IME even after " in assertImeNotSelectedInSecureSettings()
544 if (!imeId.equals(shell(ShellCommandUtils.getCurrentIme()))) { in assertImeNotSelectedInSecureSettings()
572 for (String imeId : imeIds) { in waitUntilImesAreAvailableOrEnabled()
573 pollingCheck(() -> shell(cmd).contains(imeId), PACKAGE_OP_TIMEOUT, in waitUntilImesAreAvailableOrEnabled()
574 imeId + " should be " + (shouldBeEnabled ? "enabled." : "available.")); in waitUntilImesAreAvailableOrEnabled()
DMultiUserTest.java348 private void waitUntilImeIsInShellCommandResult(String imeId, int userId) throws Exception { in waitUntilImeIsInShellCommandResult() argument
350 pollingCheck(() -> Arrays.stream(shell(command).split("\n")).anyMatch(imeId::equals), in waitUntilImeIsInShellCommandResult()
351 IME_COMMAND_TIMEOUT, imeId + " is not found for user #" + userId in waitUntilImeIsInShellCommandResult()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardTest.java200 TestImeSession(String imeId) { in TestImeSession() argument
202 final String enableImeCommand = ShellCommandUtils.enableIme(imeId); in TestImeSession()