Home
last modified time | relevance | path

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

12

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DInputMethodSettingValuesWrapper.java73 public boolean isAlwaysCheckedIme(InputMethodInfo imi) { in isAlwaysCheckedIme() argument
74 final boolean isEnabled = isEnabledImi(imi); in isAlwaysCheckedIme()
84 && imi.isSystem() in isAlwaysCheckedIme()
85 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in isAlwaysCheckedIme()
91 for (final InputMethodInfo imi : enabledImis) { in getEnabledValidNonAuxAsciiCapableImeCount()
92 if (InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi)) { in getEnabledValidNonAuxAsciiCapableImeCount()
102 public boolean isEnabledImi(InputMethodInfo imi) { in isEnabledImi() argument
105 if (tempImi.getId().equals(imi.getId())) { in isEnabledImi()
123 for (InputMethodInfo imi : mMethodList) { in getEnabledInputMethodList()
124 if (enabledInputMethodsAndSubtypes.containsKey(imi.getId())) { in getEnabledInputMethodList()
[all …]
DInputMethodAndSubtypeUtilCompat.java62 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString()
66 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString()
67 builder.append(imi); in buildInputMethodsAndSubtypesString()
77 for (final String imi : imiList) { in buildInputMethodsString()
81 builder.append(imi); in buildInputMethodsString()
163 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeList()
164 final String imiId = imi.getId(); in saveInputMethodSubtypeList()
175 final boolean systemIme = imi.isSystem(); in saveInputMethodSubtypeList()
177 context).isAlwaysCheckedIme(imi)) in saveInputMethodSubtypeList()
186 final int subtypeCount = imi.getSubtypeCount(); in saveInputMethodSubtypeList()
[all …]
DInputMethodAndSubtypeUtil.java59 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString()
63 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString()
64 builder.append(imi); in buildInputMethodsAndSubtypesString()
74 for (final String imi : imiList) { in buildInputMethodsString()
78 builder.append(imi); in buildInputMethodsString()
200 public static boolean isValidNonAuxAsciiCapableIme(InputMethodInfo imi) { in isValidNonAuxAsciiCapableIme() argument
201 if (imi.isAuxiliaryIme()) { in isValidNonAuxAsciiCapableIme()
204 final int subtypeCount = imi.getSubtypeCount(); in isValidNonAuxAsciiCapableIme()
206 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidNonAuxAsciiCapableIme()
DInputMethodHelper.java102 public static Intent getInputMethodSettingsIntent(InputMethodInfo imi) { in getInputMethodSettingsIntent() argument
104 final String settingsActivity = imi.getSettingsActivity(); in getInputMethodSettingsIntent()
107 intent.setClassName(imi.getPackageName(), settingsActivity); in getInputMethodSettingsIntent()
117 public static String getInputMethodsSettingsUri(Context context, InputMethodInfo imi) { in getInputMethodsSettingsUri() argument
118 String sliceUri = "content://" + imi.getPackageName() + ".tv.sliceprovider" + "/general"; in getInputMethodsSettingsUri()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DUncachedInputMethodManagerUtils.java42 for (final InputMethodInfo imi : imm.getEnabledInputMethodList()) { in isThisImeEnabled()
43 if (packageName.equals(imi.getPackageName())) { in isThisImeEnabled()
60 final InputMethodInfo imi = getInputMethodInfoOf(context.getPackageName(), imm); in isThisImeCurrent() local
63 return imi != null && imi.getId().equals(currentImeId); in isThisImeCurrent()
77 for (final InputMethodInfo imi : imm.getInputMethodList()) { in getInputMethodInfoOf()
78 if (packageName.equals(imi.getPackageName())) { in getInputMethodInfoOf()
79 return imi; in getInputMethodInfoOf()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java192 final InputMethodInfo imi = imiList.get(index); in getImiIndexInList() local
193 if (imi.equals(inputMethodInfo)) { in getImiIndexInList()
215 private static boolean isAuxiliaryIme(final InputMethodInfo imi) { in isAuxiliaryIme() argument
216 final int count = imi.getSubtypeCount(); in isAuxiliaryIme()
221 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in isAuxiliaryIme()
250 for (final InputMethodInfo imi : mImm.getInputMethodList()) { in getInputMethodOfThisIme()
251 if (imi.getPackageName().equals(mImePackageName)) { in getInputMethodOfThisIme()
252 mCachedThisImeInfo = imi; in getInputMethodOfThisIme()
253 return imi; in getInputMethodOfThisIme()
260 final InputMethodInfo imi, final boolean allowsImplicitlySelectedSubtypes) { in getEnabledInputMethodSubtypeList() argument
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowInputMethodManager.java58 protected List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, in getEnabledInputMethodSubtypeList() argument
71 imi -> imi.getId()).collect(Collectors.toList()).toArray(new String[list.size()])); in setEnabledInputMethodList()
130 InputMethodInfo::getId, imi -> imi)); in addInputMethodInfosToMap()
134 inputMethodInfos.forEach(imi -> { in addInputMethodInfosToMap()
135 sInputMethodMap.put(imi.getId(), imi); in addInputMethodInfosToMap()
/packages/inputmethods/LatinIME/java/src/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()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/inputmethod/
DAvailableVirtualKeyboadState.java95 final InputMethodInfo imi = imis.get(i); in updateInputMethodPreferenceViews() local
97 || permittedList.contains(imi.getPackageName()); in updateInputMethodPreferenceViews()
101 mPreferenceCompatManager, imi, true, in updateInputMethodPreferenceViews()
105 prefController.getPrefCompat().setIcon(getInputMethodIcon(packageManager, imi)); in updateInputMethodPreferenceViews()
128 @NonNull final InputMethodInfo imi) { in getInputMethodIcon() argument
129 final ServiceInfo si = imi.getServiceInfo(); in getInputMethodIcon()
131 final String packageName = imi.getPackageName(); in getInputMethodIcon()
DInputMethodPreferenceController.java76 PreferenceCompatManager preferenceCompatManager, InputMethodInfo imi, in InputMethodPreferenceController() argument
80 mImi = imi; in InputMethodPreferenceController()
85 mHasPriorityInSorting = imi.isSystem() in InputMethodPreferenceController()
86 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in InputMethodPreferenceController()
92 final InputMethodInfo imi, in InputMethodPreferenceController() argument
95 this(context, callback, stateIdentifier, preferenceCompatManager, imi, in InputMethodPreferenceController()
96 imi.loadLabel(context.getPackageManager()), in InputMethodPreferenceController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java112 @NonNull final InputMethodInfo imi) { in getInputMethodIcon() argument
113 final ServiceInfo si = imi.getServiceInfo(); in getInputMethodIcon()
115 final String packageName = imi.getPackageName(); in getInputMethodIcon()
152 final InputMethodInfo imi = imis.get(i); in updateInputMethodPreferenceViews() local
154 || permittedList.contains(imi.getPackageName()); in updateInputMethodPreferenceViews()
156 context, imi, isAllowedByOrganization, this, UserHandle.myUserId()); in updateInputMethodPreferenceViews()
160 pref.setIcon(getInputMethodIcon(packageManager, imi)); in updateInputMethodPreferenceViews()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java151 final InputMethodInfo imi = imis.get(i); in updateInputMethodPreferenceViews() local
159 || permittedList.contains(imi.getPackageName()) in updateInputMethodPreferenceViews()
160 || enabledImis.contains(imi); in updateInputMethodPreferenceViews()
161 final InputMethodPreference pref = new InputMethodPreference(prefContext, imi, in updateInputMethodPreferenceViews()
163 pref.setIcon(imi.loadIcon(mUserAwareContext.getPackageManager())); in updateInputMethodPreferenceViews()
DVirtualKeyboardPreferenceController.java71 for (InputMethodInfo imi : imis) { in updateState()
73 || permittedList.contains(imi.getPackageName()); in updateState()
77 labels.add(imi.loadLabel(mPm).toString()); in updateState()
DInputMethodAndSubtypePreferenceController.java41 public void initialize(PreferenceFragmentCompat fragment, String imi) { in initialize() argument
43 mTargetImi = imi; in initialize()
DUserDictionaryListPreferenceController.java111 for (final InputMethodInfo imi : imis) { in getUserDictionaryLocalesSet()
114 imi, true /* allowsImplicitlySelectedSubtypes */); in getUserDictionaryLocalesSet()
/packages/apps/Settings/src/com/android/settings/language/
DLanguageAndInputPreferenceController.java55 for (InputMethodInfo imi : imis) { in getSummary()
56 if (TextUtils.equals(imi.getPackageName(), pkg)) { in getSummary()
57 return imi.loadLabel(mPackageManager); in getSummary()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeyboardTextsSetTests.java58 final InputMethodInfo imi = richImm.getInputMethodInfoOfThisIme(); in setUp() local
59 final int subtypeCount = imi.getSubtypeCount(); in setUp()
61 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetTestsBase.java92 final InputMethodInfo imi = mRichImm.getInputMethodInfoOfThisIme(); in setUp() local
93 final int subtypeCount = imi.getSubtypeCount(); in setUp()
95 mAllSubtypesList.add(imi.getSubtypeAt(index)); in setUp()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java172 for (InputMethodInfo imi : inputMethodInfos) { in isOnlyEnabledDefaultInputMethod()
173 if (!imi.isDefault(getContext())) { in isOnlyEnabledDefaultInputMethod()
177 if (!imi.getId().equals(inputMethodInfo.getId())) { in isOnlyEnabledDefaultInputMethod()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DInputDeviceResultTask.java225 private static List<InputMethodSubtype> getAllSubtypesOf(final InputMethodInfo imi) { in getAllSubtypesOf() argument
226 final int subtypeCount = imi.getSubtypeCount(); in getAllSubtypesOf()
229 allSubtypes.add(imi.getSubtypeAt(index)); in getAllSubtypesOf()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCustomInputStylePreference.java288 final InputMethodInfo imi = RichInputMethodManager.getInstance() in SubtypeLocaleAdapter() local
290 final int count = imi.getSubtypeCount(); in SubtypeLocaleAdapter()
292 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in SubtypeLocaleAdapter()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputMethodSubtypeTests.java98 final InputMethodInfo imi = mRichImm.getInputMethodInfoOfThisIme(); in setUp() local
99 final int subtypeCount = imi.getSubtypeCount(); in setUp()
101 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryList.java86 for (final InputMethodInfo imi : imis) { in getUserDictionaryLocalesSet()
89 imi, true /* allowsImplicitlySelectedSubtypes */); in getUserDictionaryLocalesSet()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceControllerTest.java1208 imi -> imi.getId()).collect(Collectors.toList()).toArray(new String[list.size()])); in setEnabledInputMethodList()
1254 InputMethodInfo::getId, imi -> imi)); in addInputMethodInfosToMap()
1258 inputMethodInfos.forEach(imi -> { in addInputMethodInfosToMap()
1259 mInputMethodMap.put(imi.getId(), imi); in addInputMethodInfosToMap()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtilsTests.java95 final InputMethodInfo imi = mRichImm.getInputMethodInfoOfThisIme(); in setUp() local
96 final int subtypeCount = imi.getSubtypeCount(); in setUp()
98 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp()

12