Home
last modified time | relevance | path

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

/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java44 public static String setCurrentImeSync(String imeId) { in setCurrentImeSync() argument
45 return "ime set " + imeId; in setCurrentImeSync()
49 public static String setCurrentImeSync(String imeId, int userId) { in setCurrentImeSync() argument
50 return String.format("ime set --user %d %s", userId, imeId); in setCurrentImeSync()
74 public static String enableIme(String imeId) { in enableIme() argument
75 return "ime enable " + imeId; in enableIme()
79 public static String enableIme(String imeId, int userId) { in enableIme() argument
80 return String.format("ime enable --user %d %s", userId, imeId); in enableIme()
84 public static String disableIme(String imeId) { in disableIme() argument
85 return "ime disable " + imeId; in disableIme()
[all …]
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/common/
DShellCommandUtils.java30 public static String setCurrentImeSync(String imeId, int userId) { in setCurrentImeSync() argument
31 return String.format("ime set --user %d %s", userId, imeId); in setCurrentImeSync()
35 public static String enableIme(String imeId, int userId) { in enableIme() argument
36 return String.format("ime enable --user %d %s", userId, imeId); in enableIme()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DForceStopTest.java174 private static void assertImeExistsInApiResult(String imeId, int userId) { in assertImeExistsInApiResult() argument
179 () -> PollingCheck.check("Ime " + imeId + " must exist for user " + userId, TIMEOUT, in assertImeExistsInApiResult()
181 imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeExistsInApiResult()
185 private static void assertImeInCurrentInputMethodInfo(String imeId, int userId) { in assertImeInCurrentInputMethodInfo() argument
190 String.format("Ime %s must be the current IME. Found %s", imeId, in assertImeInCurrentInputMethodInfo()
193 imm.getCurrentInputMethodInfoAsUser(UserHandle.of(userId)).getId(), imeId)), in assertImeInCurrentInputMethodInfo() local
197 private static void assertImeNotCurrentInputMethodInfo(String imeId, int userId) { in assertImeNotCurrentInputMethodInfo() argument
202 () -> PollingCheck.check("Ime " + imeId + " must not be the current IME.", TIMEOUT, in assertImeNotCurrentInputMethodInfo()
209 return !TextUtils.equals(info.getId(), imeId); in assertImeNotCurrentInputMethodInfo()
213 private static void assertImeEnabledInApiResult(String imeId, int userId) { in assertImeEnabledInApiResult() argument
[all …]
DInputMethodServiceSwitchingTest.java147 private static void assertImeInInputMethodList(String imeId, int userId) throws Exception { in assertImeInInputMethodList() argument
148 PollingCheck.check(String.format("Ime %s must be in the IME list.", imeId), TIMEOUT, in assertImeInInputMethodList()
152 .anyMatch(imeId::equals)); in assertImeInInputMethodList()
155 private static void assertImeInCurrentInputMethodInfo(String imeId, int userId) in assertImeInCurrentInputMethodInfo() argument
157 PollingCheck.check(String.format("Ime %s must be the current IME.", imeId), TIMEOUT, in assertImeInCurrentInputMethodInfo()
158 () -> TextUtils.equals(getCurrentInputMethodId(userId), imeId)); in assertImeInCurrentInputMethodInfo() local
161 private void assertImeNotCurrentInputMethodInfo(String imeId, int userId) in assertImeNotCurrentInputMethodInfo() argument
163 PollingCheck.check(String.format("Ime %s must not be the current IME.", imeId), TIMEOUT, in assertImeNotCurrentInputMethodInfo()
164 () -> !TextUtils.equals(getCurrentInputMethodId(userId), imeId)); in assertImeNotCurrentInputMethodInfo() local
DMultiUserTest.java277 private void assertImeExistsInApiResult(String imeId, int userId) { in assertImeExistsInApiResult() argument
279 () -> PollingCheck.check("Ime " + imeId + " must exist for user " + userId, TIMEOUT, in assertImeExistsInApiResult()
281 imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeExistsInApiResult()
285 private void assertImeNotExistInApiResult(String imeId, int userId) { in assertImeNotExistInApiResult() argument
287 userId).stream().anyMatch(imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeNotExistInApiResult()
318 private void assertImeInCurrentInputMethodInfo(String imeId, int userId) { in assertImeInCurrentInputMethodInfo() argument
320 String.format("Ime %s must be the current IME. Found %s", imeId, in assertImeInCurrentInputMethodInfo()
324 imeId)), Manifest.permission.INTERACT_ACROSS_USERS_FULL); in assertImeInCurrentInputMethodInfo() local
327 private void assertImeNotCurrentInputMethodInfo(String imeId, int userId) { in assertImeNotCurrentInputMethodInfo() argument
329 () -> PollingCheck.check("Ime " + imeId + " must not be the current IME.", TIMEOUT, in assertImeNotCurrentInputMethodInfo()
[all …]
DAdditionalSubtypeLifecycleTest.java315 @NonNull String authority, @NonNull String imeId, in callSetAdditionalInputMethodSubtype() argument
320 args.putString(CommandProviderConstants.SET_ADDITIONAL_SUBTYPES_IMEID_KEY, imeId); in callSetAdditionalInputMethodSubtype()
339 private static List<Integer> getSubtypeHashCodes(@NonNull String imeId, int userId) { in getSubtypeHashCodes() argument
342 .filter(imi -> TextUtils.equals(imi.getId(), imeId)) in getSubtypeHashCodes()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DImeCommandReceiver.java50 void commandSwitchInputMethod(String imeId); in commandSwitchInputMethod() argument
81 final String imeId = getString1(intent); in onReceive() local
82 mIme.commandSwitchInputMethod(imeId); in onReceive()
91 final String imeId = getString1(intent); in onReceive() local
93 mIme.switchInputMethod(imeId, null /* subtype*/); in onReceive()
DCommandContentProvider.java78 final String imeId = extras.getString( in call() local
81 .setAdditionalInputMethodSubtypes(imeId, additionalSubtypes); in call()
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.java112 private void installImePackageSync(String apkFileName, String imeId, boolean forceQueryable) in installImePackageSync() argument
119 waitUntilImesAreAvailable(imeId); in installImePackageSync()
125 private void installImePackageSync(String apkFileName, String imeId) throws Exception { in installImePackageSync() argument
126 installImePackageSync(apkFileName, imeId, true /* forceQueryable */); in installImePackageSync()
426 private void assertImeNotSelectedInSecureSettings(String imeId, long timeout) throws Exception { in assertImeNotSelectedInSecureSettings() argument
429 throw new TimeoutException(imeId + " is still the current IME even after " in assertImeNotSelectedInSecureSettings()
432 if (!imeId.equals(shell(ShellCommandUtils.getCurrentIme()))) { in assertImeNotSelectedInSecureSettings()
489 for (String imeId : imeIds) { in waitUntilImesAreAvailableOrEnabled()
490 pollingCheck(() -> shell(cmd).contains(imeId), PACKAGE_OP_TIMEOUT, in waitUntilImesAreAvailableOrEnabled()
491 imeId + " should be " + (shouldBeEnabled ? "enabled." : "available.")); in waitUntilImesAreAvailableOrEnabled()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DSecureSettingsUtils.java58 public static void updateEnabledInputMethods(@NonNull Context context, @NonNull String imeId, in updateEnabledInputMethods() argument
78 if (TextUtils.equals(imeId, id)) { in updateEnabledInputMethods()
87 sb.append(imeId); in updateEnabledInputMethods()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DInputMethodEnumerationTests.java167 private static String enableIme(String imeId, int userId) { in enableIme() argument
168 return String.format("ime enable --user %d %s", userId, imeId); in enableIme()
171 private static String disableIme(String imeId, int userId) { in disableIme() argument
172 return String.format("ime disable --user %d %s", userId, imeId); in disableIme()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DVirtualDeviceImeTest.java449 final String imeId = new ComponentName(mContext, className).flattenToShortString(); in getInputMethodInfo() local
451 .filter(imi -> imi.getId().equals(imeId)).findFirst().orElse(null); in getInputMethodInfo()
477 final String imeId = in enableTestIme() local
479 SystemUtil.runShellCommandOrThrow("ime enable " + imeId); in enableTestIme()
481 SystemUtil.runShellCommandOrThrow("ime set " + imeId); in enableTestIme()
483 () -> mInputMethodManager.getCurrentInputMethodInfo().getId().equals(imeId))) in enableTestIme()
486 return imeId; in enableTestIme()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardTest.java270 TestImeSession(String imeId, boolean enabled) { in TestImeSession() argument
274 enableImeCommand = ShellCommandUtils.enableIme(imeId); in TestImeSession()
276 enableImeCommand = ShellCommandUtils.disableIme(imeId); in TestImeSession()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java348 String imeId = getImeId(); in initialize() local
349 executeImeCmd("enable", imeId); in initialize()
350 executeImeCmd("set", imeId); in initialize()
1601 public ImeCommand callSetExplicitlyEnabledInputMethodSubtypes(String imeId, in callSetExplicitlyEnabledInputMethodSubtypes() argument
1604 params.putString("imeId", imeId); in callSetExplicitlyEnabledInputMethodSubtypes()
1621 public ImeCommand callSetAdditionalInputMethodSubtypes(@NonNull String imeId, in callSetAdditionalInputMethodSubtypes() argument
1624 params.putString("imeId", imeId); in callSetAdditionalInputMethodSubtypes()
DMockIme.java461 final String imeId = command.getExtras().getString("imeId"); in onHandleCommand()
465 .setExplicitlyEnabledInputMethodSubtypes(imeId, subtypeHashCodes); in onHandleCommand()
469 final String imeId = command.getExtras().getString("imeId"); in onHandleCommand()
474 .setAdditionalInputMethodSubtypes(imeId, subtypes); in onHandleCommand()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DSpellCheckerTest.kt758 private inner class ImeSession(val imeId: String) : AutoCloseable { in <lambda>() constant in android.view.inputmethod.cts.SpellCheckerTest.ImeSession
762 SystemUtil.runCommandAndPrintOnLogcat(TAG, "ime enable $imeId") in <lambda>()
763 SystemUtil.runCommandAndPrintOnLogcat(TAG, "ime set $imeId") in <lambda>()
764 PollingCheck.check("Make sure that $imeId is selected", TIMEOUT) { in <lambda>()
765 getCurrentInputMethodInfo().id == imeId in <lambda>()