Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java63 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument
66 mImi = imi; in ImeSubtypeListItem()
213 for (InputMethodInfo imi : mSortedImmis.keySet()) { in getSortedInputMethodAndSubtypeList()
214 if (imi == null) { in getSortedInputMethodAndSubtypeList()
217 List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = immis.get(imi); in getSortedInputMethodAndSubtypeList()
222 final CharSequence imeLabel = imi.loadLabel(mPm); in getSortedInputMethodAndSubtypeList()
224 final int subtypeCount = imi.getSubtypeCount(); in getSortedInputMethodAndSubtypeList()
226 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); in getSortedInputMethodAndSubtypeList()
229 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
236 .getDisplayName(mContext, imi.getPackageName(), in getSortedInputMethodAndSubtypeList()
[all …]
DInputMethodUtils.java132 public static boolean isSystemImeThatHasSubtypeOf(final InputMethodInfo imi, in isSystemImeThatHasSubtypeOf() argument
136 if (!isSystemIme(imi)) { in isSystemImeThatHasSubtypeOf()
139 if (checkDefaultAttribute && !imi.isDefault(context)) { in isSystemImeThatHasSubtypeOf()
142 if (!containsSubtypeOf(imi, requiredLocale, checkCountry, requiredSubtypeMode)) { in isSystemImeThatHasSubtypeOf()
178 private static boolean isSystemAuxilialyImeThatHasAutomaticSubtype(final InputMethodInfo imi, in isSystemAuxilialyImeThatHasAutomaticSubtype() argument
180 if (!isSystemIme(imi)) { in isSystemAuxilialyImeThatHasAutomaticSubtype()
183 if (checkDefaultAttribute && !imi.isDefault(context)) { in isSystemAuxilialyImeThatHasAutomaticSubtype()
186 if (!imi.isAuxiliaryIme()) { in isSystemAuxilialyImeThatHasAutomaticSubtype()
189 final int subtypeCount = imi.getSubtypeCount(); in isSystemAuxilialyImeThatHasAutomaticSubtype()
191 final InputMethodSubtype s = imi.getSubtypeAt(i); in isSystemAuxilialyImeThatHasAutomaticSubtype()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DInputMethodUtilsTest.java266 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
272 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
290 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
296 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
314 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
320 getResourcesForLocales(LOCALE_EN_GB), imi); in testGetImplicitlyApplicableSubtypesLocked()
339 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
345 getResourcesForLocales(LOCALE_FR), imi); in testGetImplicitlyApplicableSubtypesLocked()
360 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
366 getResourcesForLocales(LOCALE_FR_CA), imi); in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DInputMethodSubtypeSwitchingControllerTest.java75 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in addDummyImeSubtypeListItems() local
79 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems()
84 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems()
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java71 final InputMethodInfo imi = imis.get(i); in getMyImi() local
73 return imi; in getMyImi()
80 Context context, InputMethodManager imm, InputMethodInfo imi) { in getEnabledSubtypesLabel() argument
81 if (context == null || imm == null || imi == null) return null; in getEnabledSubtypesLabel()
82 final List<InputMethodSubtype> subtypes = imm.getEnabledInputMethodSubtypeList(imi, true); in getEnabledSubtypesLabel()
90 sb.append(subtype.getDisplayName(context, imi.getPackageName(), in getEnabledSubtypesLabel()
91 imi.getServiceInfo().applicationInfo)); in getEnabledSubtypesLabel()
/frameworks/base/services/core/java/com/android/server/
DInputMethodManagerService.java647 InputMethodInfo imi = mMethodList.get(i); in onHandleForceStop() local
648 if (imi.getId().equals(curInputMethodId)) { in onHandleForceStop()
650 if (imi.getPackageName().equals(pkg)) { in onHandleForceStop()
677 InputMethodInfo imi = mMethodList.get(i); in onSomePackagesChanged() local
678 final String imiId = imi.getId(); in onSomePackagesChanged()
680 curIm = imi; in onSomePackagesChanged()
683 int change = isPackageDisappearing(imi.getPackageName()); in onSomePackagesChanged()
684 if (isPackageModified(imi.getPackageName())) { in onSomePackagesChanged()
690 + imi.getComponent()); in onSomePackagesChanged()
691 setInputMethodEnabledLocked(imi.getId(), false); in onSomePackagesChanged()
[all …]
/frameworks/base/cmds/ime/src/com/android/commands/ime/
DIme.java127 InputMethodInfo imi = methods.get(i); in runList() local
129 System.out.println(imi.getId()); in runList()
131 System.out.println(imi.getId() + ":"); in runList()
132 imi.dump(pr, " "); in runList()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java661 public static List<InputMethodSubtype> sort(Context context, int flags, InputMethodInfo imi, in sort() argument
663 if (imi == null) return subtypeList; in sort()
667 int N = imi.getSubtypeCount(); in sort()
669 InputMethodSubtype subtype = imi.getSubtypeAt(i); in sort()
DInputMethodManager.java691 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, in getEnabledInputMethodSubtypeList() argument
695 imi == null ? null : imi.getId(), allowsImplicitlySelectedSubtypes); in getEnabledInputMethodSubtypeList()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java274 for (InputMethodInfo imi : imis) { in addSystemImes()
276 if (imi.isDefault(mContext) && isSystemPackage(imi.getPackageName())) { in addSystemImes()
277 excludePackages.add(imi.getPackageName()); in addSystemImes()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardPasswordView.java263 for (InputMethodInfo imi : enabledImis) { in hasMultipleEnabledIMEsOrSubtypes()
267 imm.getEnabledInputMethodSubtypeList(imi, true); in hasMultipleEnabledIMEsOrSubtypes()