Home
last modified time | relevance | path

Searched refs:imi (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodManagerDeviceTest.java81 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InInputMethodList()
147 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInInputMethodList()
157 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)), in testIme1InEnabledInputMethodList()
169 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID))); in testIme1NotInEnabledInputMethodList()
179 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InInputMethodList()
191 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInInputMethodList()
201 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID)), in testIme2InEnabledInputMethodList()
213 imi -> TextUtils.equals(imi.getId(), Ime2Constants.IME_ID))); in testIme2NotInEnabledInputMethodList()
224 .filter(imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)) in testIme1ImplicitlyEnabledSubtypeExists()
225 .flatMap(imi -> mImm.getEnabledInputMethodSubtypeList(imi, true).stream()) in testIme1ImplicitlyEnabledSubtypeExists()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java258 final InputMethodInfo imi = InputMethodInfo.CREATOR.createFromParcel(p); in testInputMethodInfoWriteToParcel() local
261 assertEquals(mInputMethodInfo.getPackageName(), imi.getPackageName()); in testInputMethodInfoWriteToParcel()
262 assertEquals(mInputMethodInfo.getServiceName(), imi.getServiceName()); in testInputMethodInfoWriteToParcel()
263 assertEquals(mInputMethodInfo.getSettingsActivity(), imi.getSettingsActivity()); in testInputMethodInfoWriteToParcel()
267 imi.createImeLanguageSettingsActivityIntent().getComponent().getClassName()); in testInputMethodInfoWriteToParcel()
269 assertEquals(mInputMethodInfo.getId(), imi.getId()); in testInputMethodInfoWriteToParcel()
270 assertEquals(mInputMethodInfo.getIsDefaultResourceId(), imi.getIsDefaultResourceId()); in testInputMethodInfoWriteToParcel()
271 assertEquals(mInputMethodInfo.supportsStylusHandwriting(), imi.supportsStylusHandwriting()); in testInputMethodInfoWriteToParcel()
274 imi.createStylusHandwritingSettingsActivityIntent().getComponent().getClassName()); in testInputMethodInfoWriteToParcel()
275 assertService(mInputMethodInfo.getServiceInfo(), imi.getServiceInfo()); in testInputMethodInfoWriteToParcel()
[all …]
DInputMethodRegistrationTest.java117 imi -> imi.getComponent().equals(firstMockImeComponentName)).count() == 1, in verifyTestSetup_initiallyDisabledImes_AreFound()
136 imi -> imi.getServiceInfo().packageName.equals(LARGE_RESOURCE_IME_PACKAGE) && ( in testIgnoreLargeSettingsActivityComponent()
137 imi.getServiceInfo().name.length() in testIgnoreLargeSettingsActivityComponent()
139 || imi.getSettingsActivity().length() in testIgnoreLargeSettingsActivityComponent()
158 imi -> imi.getServiceInfo().packageName.equals( in testLoadIMEsUpToThreshold()
220 imi -> imi.getServiceInfo().packageName.equals( in testLoadEnabledIMEsAndMore()
DInputMethodManagerTest.java230 return "[" + imiList.stream().map(imi -> { in dumpInputMethodInfoList()
232 final int subtypeCount = imi.getSubtypeCount(); in dumpInputMethodInfoList()
233 sb.append("InputMethodInfo{id=").append(imi.getId()) in dumpInputMethodInfoList()
240 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in dumpInputMethodInfoList()
DInputMethodSubtypeEndToEndTest.java227 .filter(imi -> TextUtils.equals(imi.getId(), imeSession.getImeId())) in testSetExplicitlyEnabledInputMethodSubtypes()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserTest.java281 imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeExistsInApiResult()
287 userId).stream().anyMatch(imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeNotExistInApiResult()
297 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)).flatMap( in assertIme1ImplicitlyEnabledSubtypeExists()
298 imi -> mImm.getEnabledInputMethodSubtypeListAsUser(imi.getId(), in assertIme1ImplicitlyEnabledSubtypeExists()
310 imi -> TextUtils.equals(imi.getId(), Ime1Constants.IME_ID)).flatMap( in assertIme1ImplicitlyEnabledSubtypeNotExist()
311 imi -> mImm.getEnabledInputMethodSubtypeListAsUser(imi.getId(), in assertIme1ImplicitlyEnabledSubtypeNotExist()
346 imi -> TextUtils.equals(imi.getId(), imeId))); in assertImeEnabledInApiResult()
358 imi -> TextUtils.equals(imi.getId(), imeId))); in assertImeNotEnabledInApiResult()
DAdditionalSubtypeLifecycleTest.java342 .filter(imi -> TextUtils.equals(imi.getId(), imeId)) in getSubtypeHashCodes()
343 .flatMap(imi -> StreamSupport.stream( in getSubtypeHashCodes()
344 asSubtypeIterable(imi).spliterator(), false)) in getSubtypeHashCodes()
363 private static Iterable<InputMethodSubtype> asSubtypeIterable(@NonNull InputMethodInfo imi) { in asSubtypeIterable() argument
364 final int subtypeCount = imi.getSubtypeCount(); in asSubtypeIterable()
378 final var value = imi.getSubtypeAt(mIndex); in asSubtypeIterable()
388 action.accept(imi.getSubtypeAt(i)); in asSubtypeIterable()
DForceStopTest.java181 imi -> TextUtils.equals(imi.getId(), imeId))), in assertImeExistsInApiResult()
222 imi -> TextUtils.equals(imi.getId(), imeId))); in assertImeEnabledInApiResult()
DInputMethodServiceSwitchingTest.java117 final InputMethodInfo imi = SystemUtil.runWithShellPermissionIdentity(() -> in getCurrentInputMethodId() local
121 return imi != null ? imi.getId() : null; in getCurrentInputMethodId()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DInputMethodEnumerationTests.java131 final InputMethodInfo imi = getInputMethod(targetPackage); in getEnabledInputMethodSubtypeList() local
132 assertThat(imi, notNullValue()); in getEnabledInputMethodSubtypeList()
134 extras.putParcelable(EXTRA_INPUT_METHOD_INFO, imi); in getEnabledInputMethodSubtypeList()
159 return inputMethods.stream().filter(imi -> imi.getPackageName().equals(packageName)) in getInputMethod()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java226 final InputMethodInfo imi = in getCurrentInputMethodId() local
229 final String result = imi != null ? imi.getId() : null; in getCurrentInputMethodId()
287 for (InputMethodInfo imi : in getInputMethodInfo()
289 if (TextUtils.equals(getImeId(), imi.getId())) { in getInputMethodInfo()
290 return imi; in getInputMethodInfo()
321 final InputMethodInfo imi = getInputMethodInfo(); in initialize() local
322 if (imi == null) { in initialize()
325 if (imi.getSubtypeCount() != 0) { in initialize()
331 final InputMethodInfo imi = getInputMethodInfo(); in initialize() local
332 if (imi == null) { in initialize()
[all …]
DMultiUserUtils.java158 imes.removeIf(imi -> !enabledImes.contains(imi.getId()));
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DVirtualDeviceImeTest.java451 .filter(imi -> imi.getId().equals(imeId)).findFirst().orElse(null); in getInputMethodInfo()