/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingController.java | 59 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 …]
|
D | InputMethodUtils.java | 135 private static boolean isSystemImeThatHasSubtypeOf(InputMethodInfo imi, Context context, in isSystemImeThatHasSubtypeOf() argument 138 if (!imi.isSystem()) { in isSystemImeThatHasSubtypeOf() 141 if (checkDefaultAttribute && !imi.isDefault(context)) { in isSystemImeThatHasSubtypeOf() 144 if (!containsSubtypeOf(imi, requiredLocale, checkCountry, requiredSubtypeMode)) { in isSystemImeThatHasSubtypeOf() 180 private static boolean isSystemAuxilialyImeThatHasAutomaticSubtype(InputMethodInfo imi, in isSystemAuxilialyImeThatHasAutomaticSubtype() argument 182 if (!imi.isSystem()) { in isSystemAuxilialyImeThatHasAutomaticSubtype() 185 if (checkDefaultAttribute && !imi.isDefault(context)) { in isSystemAuxilialyImeThatHasAutomaticSubtype() 188 if (!imi.isAuxiliaryIme()) { in isSystemAuxilialyImeThatHasAutomaticSubtype() 191 final int subtypeCount = imi.getSubtypeCount(); in isSystemAuxilialyImeThatHasAutomaticSubtype() 193 final InputMethodSubtype s = imi.getSubtypeAt(i); in isSystemAuxilialyImeThatHasAutomaticSubtype() [all …]
|
D | InputMethodManagerService.java | 1148 InputMethodInfo imi = mMethodList.get(i); in onHandleForceStop() local 1149 if (imi.getId().equals(curInputMethodId)) { in onHandleForceStop() 1151 if (imi.getPackageName().equals(pkg)) { in onHandleForceStop() 1265 InputMethodInfo imi = mMethodList.get(i); in onFinishPackageChangesInternal() local 1266 final String imiId = imi.getId(); in onFinishPackageChangesInternal() 1268 curIm = imi; in onFinishPackageChangesInternal() 1271 int change = isPackageDisappearing(imi.getPackageName()); in onFinishPackageChangesInternal() 1272 if (isPackageModified(imi.getPackageName())) { in onFinishPackageChangesInternal() 1273 mAdditionalSubtypeMap.remove(imi.getId()); in onFinishPackageChangesInternal() 1280 + imi.getComponent()); in onFinishPackageChangesInternal() [all …]
|
D | MultiClientInputMethodManagerService.java | 256 final InputMethodInfo imi = queryInputMethod(mContext, userId, sImeComponentName); in tryBindInputMethodService() local 257 if (imi == null) { in tryBindInputMethodService() 292 data.mCurrentInputMethodInfo = imi; in tryBindInputMethodService() 293 mInputMethodInfoMap.put(userId, imi); in tryBindInputMethodService() 1174 void put(@UserIdInt int userId, InputMethodInfo imi) { in put() argument 1176 mArray.put(userId, imi); in put()
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodInfoTest.java | 45 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() 58 final InputMethodInfo clone = cloneViaParcel(imi); in testBooleanAttributes_DefaultValues() 65 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta_sw_next); in testSupportsSwitchingToNextInputMethod() local 67 assertThat(imi.supportsSwitchingToNextInputMethod(), is(true)); in testSupportsSwitchingToNextInputMethod() 69 final InputMethodInfo clone = cloneViaParcel(imi); in testSupportsSwitchingToNextInputMethod() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSettingValuesWrapper.java | 74 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 …]
|
D | InputMethodAndSubtypeUtilCompat.java | 68 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 …]
|
D | InputMethodAndSubtypeEnablerManager.java | 64 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 …]
|
D | InputMethodAndSubtypeEnablerManagerCompat.java | 65 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 …]
|
D | InputMethodAndSubtypeUtil.java | 68 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 …]
|
D | InputMethodPreference.java | 92 public InputMethodPreference(final Context context, final InputMethodInfo imi, in InputMethodPreference() argument 95 this(context, imi, imi.loadLabel(context.getPackageManager()), isAllowedByOrganization, in InputMethodPreference() 104 InputMethodPreference(final Context context, final InputMethodInfo imi, in InputMethodPreference() argument 109 mImi = imi; in InputMethodPreference() 115 setKey(imi.getId()); in InputMethodPreference() 117 final String settingsActivity = imi.getSettingsActivity(); in InputMethodPreference() 123 intent.setClassName(imi.getPackageName(), settingsActivity); in InputMethodPreference() 127 mHasPriorityInSorting = imi.isSystem() in InputMethodPreference() 128 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in InputMethodPreference()
|
D | InputMethodSubtypePreference.java | 41 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/ |
D | InputMethodUtilsTest.java | 269 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 …]
|
D | InputMethodSubtypeSwitchingControllerTest.java | 88 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/ |
D | InputMethodSubtype.java | 675 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()
|
D | InputMethodManager.java | 1106 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, in getEnabledInputMethodSubtypeList() argument 1110 imi == null ? null : imi.getId(), allowsImplicitlySelectedSubtypes); in getEnabledInputMethodSubtypeList() 2365 final InputMethodInfo imi = imis.get(i); in setInputMethod() local 2366 if (id.equals(imi.getId())) { in setInputMethod() 2814 enabledImes.sort(Comparator.comparingInt(imi -> imi.isSystem() ? 0 : 1)); in getShortcutInputMethodsAndSubtypes() 2818 final InputMethodInfo imi = enabledImes.get(imiIndex); in getShortcutInputMethodsAndSubtypes() local 2820 imi, true); in getShortcutInputMethodsAndSubtypes() 2823 final InputMethodSubtype subtype = imi.getSubtypeAt(subtypeIndex); in getShortcutInputMethodsAndSubtypes() 2825 return Collections.singletonMap(imi, Collections.singletonList(subtype)); in getShortcutInputMethodsAndSubtypes()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 282 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/ |
D | KeyguardPasswordView.java | 275 for (InputMethodInfo imi : enabledImis) { in hasMultipleEnabledIMEsOrSubtypes() 279 imm.getEnabledInputMethodSubtypeList(imi, true); in hasMultipleEnabledIMEsOrSubtypes()
|