/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | InputMethodSettingValuesWrapper.java | 73 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 …]
|
D | InputMethodAndSubtypeUtilCompat.java | 62 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 …]
|
D | InputMethodAndSubtypeUtil.java | 59 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()
|
D | InputMethodHelper.java | 102 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/ |
D | UncachedInputMethodManagerUtils.java | 42 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/ |
D | RichInputMethodManager.java | 192 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/ |
D | ShadowInputMethodManager.java | 58 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/ |
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()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/inputmethod/ |
D | AvailableVirtualKeyboadState.java | 95 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()
|
D | InputMethodPreferenceController.java | 76 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/ |
D | AvailableVirtualKeyboardFragment.java | 112 @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/ |
D | AvailableVirtualKeyboardFragment.java | 151 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()
|
D | VirtualKeyboardPreferenceController.java | 71 for (InputMethodInfo imi : imis) { in updateState() 73 || permittedList.contains(imi.getPackageName()); in updateState() 77 labels.add(imi.loadLabel(mPm).toString()); in updateState()
|
D | InputMethodAndSubtypePreferenceController.java | 41 public void initialize(PreferenceFragmentCompat fragment, String imi) { in initialize() argument 43 mTargetImi = imi; in initialize()
|
D | UserDictionaryListPreferenceController.java | 111 for (final InputMethodInfo imi : imis) { in getUserDictionaryLocalesSet() 114 imi, true /* allowsImplicitlySelectedSubtypes */); in getUserDictionaryLocalesSet()
|
/packages/apps/Settings/src/com/android/settings/language/ |
D | LanguageAndInputPreferenceController.java | 55 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/ |
D | KeyboardTextsSetTests.java | 58 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/ |
D | KeyboardLayoutSetTestsBase.java | 92 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/ |
D | KeyboardManagementPreferenceController.java | 172 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/ |
D | InputDeviceResultTask.java | 225 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/ |
D | CustomInputStylePreference.java | 288 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/ |
D | RichInputMethodSubtypeTests.java | 98 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/ |
D | UserDictionaryList.java | 86 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/ |
D | KeyboardManagementPreferenceControllerTest.java | 1208 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/ |
D | SubtypeLocaleUtilsTests.java | 95 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()
|