Searched defs:imi (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodSubtypePreference.java41 final InputMethodInfo imi) {
43 imi.getId() + subtype.hashCode(),
44 InputMethodAndSubtypeUtil.getSubtypeLocaleNameAsSentence(subtype, context, imi),
40 InputMethodSubtypePreference(final Context context, final InputMethodSubtype subtype, final InputMethodInfo imi) argument
H A DInputMethodSettingValuesWrapper.java87 for (InputMethodInfo imi : imms) {
88 mMethodMap.put(imi.getId(), imi);
99 for (final InputMethodInfo imi : enabledImis) {
100 final int subtypeCount = imi.getSubtypeCount();
102 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
105 mAsciiCapableEnabledImis.add(imi);
119 public boolean isAlwaysCheckedIme(InputMethodInfo imi, Context context) { argument
120 final boolean isEnabled = isEnabledImi(imi);
132 && InputMethodUtils.isSystemIme(imi)
154 isEnabledImi(InputMethodInfo imi) argument
167 isValidSystemNonAuxAsciiCapableIme(InputMethodInfo imi, Context context) argument
[all...]
H A DInputMethodAndSubtypeEnablerManager.java63 for (final InputMethodInfo imi : mInputMethodInfoList) {
65 if (imi.getId().equals(targetImi) || TextUtils.isEmpty(targetImi)) {
66 addInputMethodSubtypePreferences(fragment, imi, root);
116 private void addInputMethodSubtypePreferences(PreferenceFragment fragment, InputMethodInfo imi, argument
120 final int subtypeCount = imi.getSubtypeCount();
124 final String imiId = imi.getId();
129 final CharSequence label = imi.loadLabel(pm);
148 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
152 subtype, prefContext, imi);
156 prefContext, subtype, imi);
233 updateImplicitlyEnabledSubtypesOf(final InputMethodInfo imi) argument
[all...]
H A DInputMethodPreference.java84 * @param imi The {@link InputMethodInfo} of this preference.
92 public InputMethodPreference(final Context context, final InputMethodInfo imi, argument
95 this(context, imi, imi.loadLabel(context.getPackageManager()), isAllowedByOrganization,
104 InputMethodPreference(final Context context, final InputMethodInfo imi, argument
109 mImi = imi;
115 setKey(imi.getId());
117 final String settingsActivity = imi.getSettingsActivity();
123 intent.setClassName(imi.getPackageName(), settingsActivity);
127 mHasPriorityInSorting = InputMethodUtils.isSystemIme(imi)
[all...]
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
H A DInputMethodSettingsImpl.java71 final InputMethodInfo imi = imis.get(i);
73 return imi;
80 Context context, InputMethodManager imm, InputMethodInfo imi) {
81 if (context == null || imm == null || imi == null) return null;
82 final List<InputMethodSubtype> subtypes = imm.getEnabledInputMethodSubtypeList(imi, true);
90 sb.append(subtype.getDisplayName(context, imi.getPackageName(),
91 imi.getServiceInfo().applicationInfo));
79 getEnabledSubtypesLabel( Context context, InputMethodManager imm, InputMethodInfo imi) argument
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DInputMethodSubtypeSwitchingController.java64 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) {
67 mImi = imi;
219 for (InputMethodInfo imi : mSortedImmis.keySet()) {
220 if (imi == null) {
223 List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = immis.get(imi);
228 final CharSequence imeLabel = imi.loadLabel(mPm);
230 final int subtypeCount = imi.getSubtypeCount();
232 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId());
235 final InputMethodSubtype subtype = imi.getSubtypeAt(j);
242 .getDisplayName(mContext, imi
63 ImeSubtypeListItem(CharSequence imeName, CharSequence subtypeName, InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) argument
263 calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) argument
281 getIndex(InputMethodInfo imi, InputMethodSubtype subtype) argument
308 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument
367 getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) argument
383 onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) argument
409 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument
508 getNextInputMethod(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument
522 onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype) argument
568 onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype) argument
585 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, InputMethodSubtype subtype, boolean forward) argument
[all...]
H A DInputMethodUtils.java137 public static boolean isSystemImeThatHasSubtypeOf(final InputMethodInfo imi, argument
141 if (!isSystemIme(imi)) {
144 if (checkDefaultAttribute && !imi.isDefault(context)) {
147 if (!containsSubtypeOf(imi, requiredLocale, checkCountry, requiredSubtypeMode)) {
183 private static boolean isSystemAuxilialyImeThatHasAutomaticSubtype(final InputMethodInfo imi, argument
185 if (!isSystemIme(imi)) {
188 if (checkDefaultAttribute && !imi.isDefault(context)) {
191 if (!imi.isAuxiliaryIme()) {
194 final int subtypeCount = imi.getSubtypeCount();
196 final InputMethodSubtype s = imi
373 containsSubtypeOf(final InputMethodInfo imi, @Nullable final Locale locale, final boolean checkCountry, final String mode) argument
403 getSubtypes(InputMethodInfo imi) argument
412 getOverridingImplicitlyEnabledSubtypes( InputMethodInfo imi, String mode) argument
450 isValidSubtypeId(InputMethodInfo imi, int subtypeHashCode) argument
454 getSubtypeIdFromHashCode(InputMethodInfo imi, int subtypeHashCode) argument
476 getImplicitlyApplicableSubtypesLocked( Resources res, InputMethodInfo imi) argument
502 getImplicitlyApplicableSubtypesLockedImpl( Resources res, InputMethodInfo imi) argument
756 getImeAndSubtypeDisplayName(Context context, InputMethodInfo imi, InputMethodSubtype subtype) argument
1010 getEnabledInputMethodSubtypeListLocked( Context context, InputMethodInfo imi, boolean allowsImplicitlySelectedSubtypes) argument
1021 getEnabledInputMethodSubtypeListLocked( InputMethodInfo imi) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java670 * @param imi InputMethodInfo of which subtypes are subject to be sorted
675 public static List<InputMethodSubtype> sort(Context context, int flags, InputMethodInfo imi, argument
677 if (imi == null) return subtypeList;
681 int N = imi.getSubtypeCount();
683 InputMethodSubtype subtype = imi.getSubtypeAt(i);
690 // contained in imi, so the remaining subtypes will be appended.
H A DInputMethodManager.java743 * @param imi An input method info whose subtypes list will be returned.
748 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, argument
752 imi == null ? null : imi.getId(), allowsImplicitlySelectedSubtypes);
/frameworks/base/services/core/java/com/android/server/
H A DInputMethodManagerService.java1048 InputMethodInfo imi = mMethodList.get(i);
1049 if (imi.getId().equals(curInputMethodId)) {
1051 if (imi.getPackageName().equals(pkg)) {
1166 InputMethodInfo imi = mMethodList.get(i);
1167 final String imiId = imi.getId();
1169 curIm = imi;
1172 int change = isPackageDisappearing(imi.getPackageName());
1173 if (isPackageModified(imi.getPackageName())) {
1179 + imi.getComponent());
1180 setInputMethodEnabledLocked(imi
4028 setSelectedInputMethodAndSubtypeLocked(InputMethodInfo imi, int subtypeId, boolean setSubtypeOnly) argument
4330 addInputMethodSubtypes( InputMethodInfo imi, InputMethodSubtype[] additionalSubtypes) argument
[all...]

Completed in 312 milliseconds