Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodInfoTest.java45 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testEqualsAndHashCode() local
46 final InputMethodInfo clone = cloneViaParcel(imi); in testEqualsAndHashCode()
48 assertThat(clone.equals(imi), is(true)); in testEqualsAndHashCode()
49 assertThat(clone.hashCode(), equalTo(imi.hashCode())); in testEqualsAndHashCode()
54 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testBooleanAttributes_DefaultValues() local
56 assertThat(imi.supportsSwitchingToNextInputMethod(), is(false)); in testBooleanAttributes_DefaultValues()
57 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
59 final InputMethodInfo clone = cloneViaParcel(imi); in testBooleanAttributes_DefaultValues()
62 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
67 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta_sw_next); in testSupportsSwitchingToNextInputMethod() local
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingController.java59 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument
62 mImi = imi; in ImeSubtypeListItem()
199 final InputMethodInfo imi = imis.get(i); in getSortedInputMethodAndSubtypeList() local
201 mSettings.getEnabledInputMethodSubtypeListLocked(mContext, imi, true); in getSortedInputMethodAndSubtypeList()
206 final CharSequence imeLabel = imi.loadLabel(mPm); in getSortedInputMethodAndSubtypeList()
208 final int subtypeCount = imi.getSubtypeCount(); in getSortedInputMethodAndSubtypeList()
210 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); in getSortedInputMethodAndSubtypeList()
213 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
220 .getDisplayName(mContext, imi.getPackageName(), in getSortedInputMethodAndSubtypeList()
221 imi.getServiceInfo().applicationInfo); in getSortedInputMethodAndSubtypeList()
[all …]
DInputMethodUtils.java133 private static boolean isSystemImeThatHasSubtypeOf(InputMethodInfo imi, Context context, in isSystemImeThatHasSubtypeOf() argument
136 if (!imi.isSystem()) { in isSystemImeThatHasSubtypeOf()
139 if (checkDefaultAttribute && !imi.isDefault(context)) { in isSystemImeThatHasSubtypeOf()
142 if (!containsSubtypeOf(imi, requiredLocale, checkCountry, requiredSubtypeMode)) { in isSystemImeThatHasSubtypeOf()
178 private static boolean isSystemAuxilialyImeThatHasAutomaticSubtype(InputMethodInfo imi, in isSystemAuxilialyImeThatHasAutomaticSubtype() argument
180 if (!imi.isSystem()) { 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 …]
DInputMethodManagerService.java1315 InputMethodInfo imi = mMethodList.get(i); in onHandleForceStop() local
1316 if (imi.getId().equals(curInputMethodId)) { in onHandleForceStop()
1318 if (imi.getPackageName().equals(pkg)) { in onHandleForceStop()
1432 InputMethodInfo imi = mMethodList.get(i); in onFinishPackageChangesInternal() local
1433 final String imiId = imi.getId(); in onFinishPackageChangesInternal()
1435 curIm = imi; in onFinishPackageChangesInternal()
1438 int change = isPackageDisappearing(imi.getPackageName()); in onFinishPackageChangesInternal()
1439 if (isPackageModified(imi.getPackageName())) { in onFinishPackageChangesInternal()
1440 mAdditionalSubtypeMap.remove(imi.getId()); in onFinishPackageChangesInternal()
1447 + imi.getComponent()); in onFinishPackageChangesInternal()
[all …]
DMultiClientInputMethodManagerService.java298 final InputMethodInfo imi = queryInputMethod(mContext, userId, sImeComponentName); in tryBindInputMethodService() local
299 if (imi == null) { in tryBindInputMethodService()
334 data.mCurrentInputMethodInfo = imi; in tryBindInputMethodService()
335 mInputMethodInfoMap.put(userId, imi); in tryBindInputMethodService()
1216 void put(@UserIdInt int userId, InputMethodInfo imi) { in put() argument
1218 mArray.put(userId, imi); in put()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodSettingValuesWrapper.java74 public boolean isAlwaysCheckedIme(InputMethodInfo imi) { in isAlwaysCheckedIme() argument
75 final boolean isEnabled = isEnabledImi(imi); in isAlwaysCheckedIme()
85 && imi.isSystem() in isAlwaysCheckedIme()
86 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in isAlwaysCheckedIme()
92 for (final InputMethodInfo imi : enabledImis) { in getEnabledValidNonAuxAsciiCapableImeCount()
93 if (InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi)) { in getEnabledValidNonAuxAsciiCapableImeCount()
103 public boolean isEnabledImi(InputMethodInfo imi) { in isEnabledImi() argument
106 if (tempImi.getId().equals(imi.getId())) { in isEnabledImi()
124 for (InputMethodInfo imi : mMethodList) { in getEnabledInputMethodList()
125 if (enabledInputMethodsAndSubtypes.keySet().contains(imi.getId())) { in getEnabledInputMethodList()
[all …]
DInputMethodAndSubtypeUtilCompat.java68 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString()
72 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString()
73 builder.append(imi); in buildInputMethodsAndSubtypesString()
83 for (final String imi : imiList) { in buildInputMethodsString()
87 builder.append(imi); in buildInputMethodsString()
168 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeList()
169 final String imiId = imi.getId(); in saveInputMethodSubtypeList()
180 final boolean systemIme = imi.isSystem(); in saveInputMethodSubtypeList()
182 context.getActivity()).isAlwaysCheckedIme(imi)) in saveInputMethodSubtypeList()
191 final int subtypeCount = imi.getSubtypeCount(); in saveInputMethodSubtypeList()
[all …]
DInputMethodAndSubtypeEnablerManager.java64 for (final InputMethodInfo imi : mInputMethodInfoList) { in init()
66 if (imi.getId().equals(targetImi) || TextUtils.isEmpty(targetImi)) { in init()
67 addInputMethodSubtypePreferences(fragment, imi, root); in init()
117 private void addInputMethodSubtypePreferences(PreferenceFragment fragment, InputMethodInfo imi, in addInputMethodSubtypePreferences() argument
121 final int subtypeCount = imi.getSubtypeCount(); in addInputMethodSubtypePreferences()
125 final String imiId = imi.getId(); in addInputMethodSubtypePreferences()
130 final CharSequence label = imi.loadLabel(pm); in addInputMethodSubtypePreferences()
149 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences()
153 subtype, prefContext, imi); in addInputMethodSubtypePreferences()
157 prefContext, subtype, imi); in addInputMethodSubtypePreferences()
[all …]
DInputMethodAndSubtypeEnablerManagerCompat.java65 for (final InputMethodInfo imi : mInputMethodInfoList) { in init()
67 if (imi.getId().equals(targetImi) || TextUtils.isEmpty(targetImi)) { in init()
68 addInputMethodSubtypePreferences(fragment, imi, root); in init()
119 InputMethodInfo imi, final PreferenceScreen root) { in addInputMethodSubtypePreferences() argument
122 final int subtypeCount = imi.getSubtypeCount(); in addInputMethodSubtypePreferences()
126 final String imiId = imi.getId(); in addInputMethodSubtypePreferences()
131 final CharSequence label = imi.loadLabel(pm); in addInputMethodSubtypePreferences()
150 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences()
154 subtype, prefContext, imi); in addInputMethodSubtypePreferences()
158 prefContext, subtype, imi); in addInputMethodSubtypePreferences()
[all …]
DInputMethodAndSubtypeUtil.java68 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString()
72 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString()
73 builder.append(imi); in buildInputMethodsAndSubtypesString()
83 for (final String imi : imiList) { in buildInputMethodsString()
87 builder.append(imi); in buildInputMethodsString()
168 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeList()
169 final String imiId = imi.getId(); in saveInputMethodSubtypeList()
180 final boolean systemIme = imi.isSystem(); in saveInputMethodSubtypeList()
182 context.getActivity()).isAlwaysCheckedIme(imi)) in saveInputMethodSubtypeList()
191 final int subtypeCount = imi.getSubtypeCount(); in saveInputMethodSubtypeList()
[all …]
DInputMethodPreference.java92 public InputMethodPreference(final Context context, final InputMethodInfo imi, in InputMethodPreference() argument
95 this(context, imi, imi.loadLabel(context.getPackageManager()), isAllowedByOrganization, in InputMethodPreference()
105 InputMethodPreference(final Context context, final InputMethodInfo imi, in InputMethodPreference() argument
110 mImi = imi; in InputMethodPreference()
116 setKey(imi.getId()); in InputMethodPreference()
118 final String settingsActivity = imi.getSettingsActivity(); in InputMethodPreference()
124 intent.setClassName(imi.getPackageName(), settingsActivity); in InputMethodPreference()
128 mHasPriorityInSorting = imi.isSystem() in InputMethodPreference()
129 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in InputMethodPreference()
DInputMethodSubtypePreference.java41 final InputMethodInfo imi) { in InputMethodSubtypePreference() argument
43 imi.getId() + subtype.hashCode(), in InputMethodSubtypePreference()
44 InputMethodAndSubtypeUtil.getSubtypeLocaleNameAsSentence(subtype, context, imi), in InputMethodSubtypePreference()
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodUtilsTest.java269 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
275 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
293 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
299 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
317 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
323 getResourcesForLocales(LOCALE_EN_GB), imi); in testGetImplicitlyApplicableSubtypesLocked()
342 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
348 getResourcesForLocales(LOCALE_FR), imi); in testGetImplicitlyApplicableSubtypesLocked()
363 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
369 getResourcesForLocales(LOCALE_FR_CA), imi); in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DInputMethodSubtypeSwitchingControllerTest.java88 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in addDummyImeSubtypeListItems() local
92 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems()
97 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems()
125 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in createDummyItem() local
129 return new ImeSubtypeListItem(imeName, subtypeName, imi, subtypeIndex, subtypeLocale, in createDummyItem()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java675 public static List<InputMethodSubtype> sort(Context context, int flags, InputMethodInfo imi, in sort() argument
677 if (imi == null) return subtypeList; in sort()
681 int N = imi.getSubtypeCount(); in sort()
683 InputMethodSubtype subtype = imi.getSubtypeAt(i); in sort()
DInputMethodManager.java1352 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, in getEnabledInputMethodSubtypeList() argument
1356 imi == null ? null : imi.getId(), allowsImplicitlySelectedSubtypes); in getEnabledInputMethodSubtypeList()
2477 final InputMethodInfo imi = imis.get(i); in setInputMethod() local
2478 if (id.equals(imi.getId())) { in setInputMethod()
2928 enabledImes.sort(Comparator.comparingInt(imi -> imi.isSystem() ? 0 : 1)); in getShortcutInputMethodsAndSubtypes()
2932 final InputMethodInfo imi = enabledImes.get(imiIndex); in getShortcutInputMethodsAndSubtypes() local
2934 imi, true); in getShortcutInputMethodsAndSubtypes()
2937 final InputMethodSubtype subtype = imi.getSubtypeAt(subtypeIndex); in getShortcutInputMethodsAndSubtypes()
2939 return Collections.singletonMap(imi, Collections.singletonList(subtype)); in getShortcutInputMethodsAndSubtypes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java282 for (InputMethodInfo imi : imis) { in addSystemImes()
284 if (imi.isDefault(mContext) && isSystemPackage(imi.getPackageName())) { in addSystemImes()
285 excludePackages.add(imi.getPackageName()); in addSystemImes()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordView.java283 for (InputMethodInfo imi : enabledImis) { in hasMultipleEnabledIMEsOrSubtypes()
287 imm.getEnabledInputMethodSubtypeList(imi, true); in hasMultipleEnabledIMEsOrSubtypes()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...