/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSettingValuesWrapper.java | 87 for (InputMethodInfo imi : imms) { in refreshAllInputMethodAndSubtypes() 88 mMethodMap.put(imi.getId(), imi); in refreshAllInputMethodAndSubtypes() local 99 for (final InputMethodInfo imi : enabledImis) { in updateAsciiCapableEnabledImis() 100 final int subtypeCount = imi.getSubtypeCount(); in updateAsciiCapableEnabledImis() 102 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateAsciiCapableEnabledImis() 105 mAsciiCapableEnabledImis.add(imi); in updateAsciiCapableEnabledImis() 119 public boolean isAlwaysCheckedIme(InputMethodInfo imi, Context context) { in isAlwaysCheckedIme() argument 120 final boolean isEnabled = isEnabledImi(imi); in isAlwaysCheckedIme() 132 && InputMethodUtils.isSystemIme(imi) in isAlwaysCheckedIme() 133 && isValidSystemNonAuxAsciiCapableIme(imi, context); in isAlwaysCheckedIme() [all …]
|
D | InputMethodAndSubtypeEnablerManager.java | 63 for (final InputMethodInfo imi : mInputMethodInfoList) { in init() 65 if (imi.getId().equals(targetImi) || TextUtils.isEmpty(targetImi)) { in init() 66 addInputMethodSubtypePreferences(fragment, imi, root); in init() 116 private void addInputMethodSubtypePreferences(PreferenceFragment fragment, InputMethodInfo imi, in addInputMethodSubtypePreferences() argument 120 final int subtypeCount = imi.getSubtypeCount(); in addInputMethodSubtypePreferences() 124 final String imiId = imi.getId(); in addInputMethodSubtypePreferences() 129 final CharSequence label = imi.loadLabel(pm); in addInputMethodSubtypePreferences() 148 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences() 152 subtype, prefContext, imi); in addInputMethodSubtypePreferences() 156 prefContext, subtype, imi); in addInputMethodSubtypePreferences() [all …]
|
D | InputMethodAndSubtypeUtil.java | 67 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString() 71 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString() 72 builder.append(imi); in buildInputMethodsAndSubtypesString() 82 for (final String imi : imiList) { in buildInputMethodsString() 86 builder.append(imi); in buildInputMethodsString() 167 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeList() 168 final String imiId = imi.getId(); in saveInputMethodSubtypeList() 179 final boolean systemIme = InputMethodUtils.isSystemIme(imi); in saveInputMethodSubtypeList() 181 context.getActivity()).isAlwaysCheckedIme(imi, context.getActivity())) in saveInputMethodSubtypeList() 190 final int subtypeCount = imi.getSubtypeCount(); in saveInputMethodSubtypeList() [all …]
|
D | InputMethodPreference.java | 91 public InputMethodPreference(final Context context, final InputMethodInfo imi, in InputMethodPreference() argument 96 mImi = imi; in InputMethodPreference() 106 setKey(imi.getId()); in InputMethodPreference() 107 setTitle(imi.loadLabel(context.getPackageManager())); in InputMethodPreference() 108 final String settingsActivity = imi.getSettingsActivity(); in InputMethodPreference() 114 intent.setClassName(imi.getPackageName(), settingsActivity); in InputMethodPreference() 118 mHasPriorityInSorting = InputMethodUtils.isSystemIme(imi) in InputMethodPreference() 119 && mInputMethodSettingValues.isValidSystemNonAuxAsciiCapableIme(imi, context); in InputMethodPreference()
|
D | InputMethodSubtypePreference.java | 41 final InputMethodInfo imi) { in InputMethodSubtypePreference() argument 44 setKey(imi.getId() + subtype.hashCode()); in InputMethodSubtypePreference() 46 InputMethodAndSubtypeUtil.getSubtypeLocaleNameAsSentence(subtype, context, imi); in InputMethodSubtypePreference()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputMethodSubtypeSwitchingController.java | 64 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument 67 mImi = imi; in ImeSubtypeListItem() 219 for (InputMethodInfo imi : mSortedImmis.keySet()) { in getSortedInputMethodAndSubtypeList() 220 if (imi == null) { in getSortedInputMethodAndSubtypeList() 223 List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = immis.get(imi); in getSortedInputMethodAndSubtypeList() 228 final CharSequence imeLabel = imi.loadLabel(mPm); in getSortedInputMethodAndSubtypeList() 230 final int subtypeCount = imi.getSubtypeCount(); in getSortedInputMethodAndSubtypeList() 232 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); in getSortedInputMethodAndSubtypeList() 235 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList() 242 .getDisplayName(mContext, imi.getPackageName(), in getSortedInputMethodAndSubtypeList() [all …]
|
D | InputMethodUtils.java | 132 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/android/view/inputmethod/ |
D | InputMethodInfoTest.java | 42 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testEqualsAndHashCode() local 43 final InputMethodInfo clone = cloneViaParcel(imi); in testEqualsAndHashCode() 45 assertThat(clone.equals(imi), is(true)); in testEqualsAndHashCode() 46 assertThat(clone.hashCode(), equalTo(imi.hashCode())); in testEqualsAndHashCode() 51 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testBooleanAttributes_DefaultValues() local 53 assertThat(imi.supportsSwitchingToNextInputMethod(), is(false)); in testBooleanAttributes_DefaultValues() 55 final InputMethodInfo clone = cloneViaParcel(imi); in testBooleanAttributes_DefaultValues() 62 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta_sw_next); in testSupportsSwitchingToNextInputMethod() local 64 assertThat(imi.supportsSwitchingToNextInputMethod(), is(true)); in testSupportsSwitchingToNextInputMethod() 66 final InputMethodInfo clone = cloneViaParcel(imi); in testSupportsSwitchingToNextInputMethod()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | InputMethodUtilsTest.java | 235 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local 241 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked() 259 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local 265 getResourcesForLocales(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked() 283 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local 289 getResourcesForLocales(LOCALE_EN_GB), imi); in testGetImplicitlyApplicableSubtypesLocked() 308 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local 314 getResourcesForLocales(LOCALE_FR), imi); in testGetImplicitlyApplicableSubtypesLocked() 329 final InputMethodInfo imi = createDummyInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local 335 getResourcesForLocales(LOCALE_FR_CA), imi); in testGetImplicitlyApplicableSubtypesLocked() [all …]
|
D | InputMethodSubtypeSwitchingControllerTest.java | 76 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in addDummyImeSubtypeListItems() local 80 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems() 85 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems() 112 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in createDummyItem() local 115 return new ImeSubtypeListItem(imeName, subtypeName, imi, subtypeIndex, subtypeLocale, in createDummyItem()
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
D | InputMethodSettingsImpl.java | 71 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/ |
D | InputMethodManagerService.java | 987 InputMethodInfo imi = mMethodList.get(i); in onHandleForceStop() local 988 if (imi.getId().equals(curInputMethodId)) { in onHandleForceStop() 990 if (imi.getPackageName().equals(pkg)) { in onHandleForceStop() 1103 InputMethodInfo imi = mMethodList.get(i); in onFinishPackageChangesInternal() local 1104 final String imiId = imi.getId(); in onFinishPackageChangesInternal() 1106 curIm = imi; in onFinishPackageChangesInternal() 1109 int change = isPackageDisappearing(imi.getPackageName()); in onFinishPackageChangesInternal() 1110 if (isPackageModified(imi.getPackageName())) { in onFinishPackageChangesInternal() 1116 + imi.getComponent()); in onFinishPackageChangesInternal() 1117 setInputMethodEnabledLocked(imi.getId(), false); in onFinishPackageChangesInternal() [all …]
|
/frameworks/base/cmds/ime/src/com/android/commands/ime/ |
D | Ime.java | 127 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/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 280 for (InputMethodInfo imi : imis) { in addSystemImes() 282 if (imi.isDefault(mContext) && isSystemPackage(imi.getPackageName())) { in addSystemImes() 283 excludePackages.add(imi.getPackageName()); in addSystemImes()
|
/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 | 715 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, in getEnabledInputMethodSubtypeList() argument 719 imi == null ? null : imi.getId(), allowsImplicitlySelectedSubtypes); in getEnabledInputMethodSubtypeList()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPasswordView.java | 265 for (InputMethodInfo imi : enabledImis) { in hasMultipleEnabledIMEsOrSubtypes() 269 imm.getEnabledInputMethodSubtypeList(imi, true); in hasMultipleEnabledIMEsOrSubtypes()
|