Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodInfoTest.java51 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testEqualsAndHashCode() local
52 final InputMethodInfo clone = cloneViaParcel(imi); in testEqualsAndHashCode()
54 assertThat(clone.equals(imi), is(true)); in testEqualsAndHashCode()
55 assertThat(clone.hashCode(), equalTo(imi.hashCode())); in testEqualsAndHashCode()
60 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testBooleanAttributes_DefaultValues() local
62 assertThat(imi.supportsSwitchingToNextInputMethod(), is(false)); in testBooleanAttributes_DefaultValues()
63 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
64 assertThat(imi.supportsInlineSuggestionsWithTouchExploration(), is(false)); in testBooleanAttributes_DefaultValues()
66 final InputMethodInfo clone = cloneViaParcel(imi); in testBooleanAttributes_DefaultValues()
69 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodInfoUtils.java71 final InputMethodInfo imi = imis.get(i); in fillImes() local
72 if (isSystemImeThatHasSubtypeOf(imi, context, in fillImes()
74 mInputMethodSet.add(imi); in fillImes()
82 for (final InputMethodInfo imi : mInputMethodSet) { in fillAuxiliaryImes()
83 if (imi.isAuxiliaryIme()) { in fillAuxiliaryImes()
89 final InputMethodInfo imi = imis.get(i); in fillAuxiliaryImes() local
90 if (isSystemAuxilialyImeThatHasAutomaticSubtype(imi, context, in fillAuxiliaryImes()
92 mInputMethodSet.add(imi); in fillAuxiliaryImes()
100 final InputMethodInfo imi = imis.get(i); in fillAuxiliaryImes() local
101 if (isSystemAuxilialyImeThatHasAutomaticSubtype(imi, context, in fillAuxiliaryImes()
[all …]
DInputMethodSubtypeSwitchingController.java59 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem() argument
62 mImi = imi; in ImeSubtypeListItem()
182 final InputMethodInfo imi = imis.get(i); in getSortedInputMethodAndSubtypeList() local
183 if (forImeMenu && !imi.shouldShowInInputMethodPicker()) { in getSortedInputMethodAndSubtypeList()
187 settings.getEnabledInputMethodSubtypeList(imi, true); in getSortedInputMethodAndSubtypeList()
192 final CharSequence imeLabel = imi.loadLabel(userAwareContext.getPackageManager()); in getSortedInputMethodAndSubtypeList()
194 final int subtypeCount = imi.getSubtypeCount(); in getSortedInputMethodAndSubtypeList()
196 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId()); in getSortedInputMethodAndSubtypeList()
199 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
206 .getDisplayName(userAwareContext, imi.getPackageName(), in getSortedInputMethodAndSubtypeList()
[all …]
DSubtypeUtils.java67 static boolean containsSubtypeOf(InputMethodInfo imi, @Nullable Locale locale, in containsSubtypeOf() argument
72 final int numSubtypes = imi.getSubtypeCount(); in containsSubtypeOf()
74 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf()
96 static ArrayList<InputMethodSubtype> getSubtypes(InputMethodInfo imi) { in getSubtypes() argument
98 final int subtypeCount = imi.getSubtypeCount(); in getSubtypes()
100 subtypes.add(imi.getSubtypeAt(i)); in getSubtypes()
105 static boolean isValidSubtypeHashCode(InputMethodInfo imi, int subtypeHashCode) { in isValidSubtypeHashCode() argument
106 return getSubtypeIdFromHashCode(imi, subtypeHashCode) != NOT_A_SUBTYPE_ID; in isValidSubtypeHashCode()
109 static int getSubtypeIdFromHashCode(InputMethodInfo imi, int subtypeHashCode) { in getSubtypeIdFromHashCode() argument
110 if (imi != null) { in getSubtypeIdFromHashCode()
[all …]
DInputMethodSettings.java147 InputMethodInfo imi, boolean allowsImplicitlyEnabledSubtypes) { in getEnabledInputMethodSubtypeList() argument
149 getEnabledInputMethodSubtypeList(imi); in getEnabledInputMethodSubtypeList()
152 SystemLocaleWrapper.get(mUserId), imi); in getEnabledInputMethodSubtypeList()
154 return InputMethodSubtype.sort(imi, enabledSubtypes); in getEnabledInputMethodSubtypeList()
157 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi) { in getEnabledInputMethodSubtypeList() argument
161 if (imi != null) { in getEnabledInputMethodSubtypeList()
165 if (info != null && info.getId().equals(imi.getId())) { in getEnabledInputMethodSubtypeList()
408 final InputMethodInfo imi = mMethodMap.get(imeId); in getEnabledSubtypeHashCodeForInputMethodAndSubtype() local
414 if (imi != null && imi.getSubtypeCount() > 0) { in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
417 imi); in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
[all …]
DInputMethodMap.java91 final var imi = valueAt(i); in applyAdditionalSubtypes() local
92 final var imeId = imi.getId(); in applyAdditionalSubtypes()
95 newMethodMap.put(imi.getId(), imi); in applyAdditionalSubtypes() local
97 newMethodMap.put(imi.getId(), new InputMethodInfo(imi, newAdditionalSubtypes)); in applyAdditionalSubtypes()
DHardwareKeyboardShortcutController.java57 final InputMethodInfo imi = inputMethods.get(i); in reset() local
58 if (!imi.shouldShowInInputMethodPicker()) { in reset()
62 settings.getEnabledInputMethodSubtypeList(imi, true); in reset()
64 mSubtypeHandles.add(InputMethodSubtypeHandle.of(imi, null)); in reset()
68 mSubtypeHandles.add(InputMethodSubtypeHandle.of(imi, subtype)); in reset()
DAutofillSuggestionsController.java106 final InputMethodInfo imi = InputMethodSettingsRepository.get(mBindingController.mUserId) in onCreateInlineSuggestionsRequest() local
108 if (imi == null || !isInlineSuggestionsEnabled(imi, touchExplorationEnabled)) { in onCreateInlineSuggestionsRequest()
114 requestInfo, callback, imi.getPackageName()); in onCreateInlineSuggestionsRequest()
157 private static boolean isInlineSuggestionsEnabled(InputMethodInfo imi, in isInlineSuggestionsEnabled() argument
159 return imi.isInlineSuggestionsEnabled() in isInlineSuggestionsEnabled()
161 || imi.supportsInlineSuggestionsWithTouchExploration()); in isInlineSuggestionsEnabled()
DInputMethodManagerService.java903 InputMethodInfo imi = methodList.get(i); in onHandleForceStop() local
904 if (imi.getId().equals(curInputMethodId)) { in onHandleForceStop()
906 if (imi.getPackageName().equals(pkg)) { in onHandleForceStop()
966 InputMethodInfo imi = methodList.get(i); in onFinishPackageChangesInternal() local
967 final String imiId = imi.getId(); in onFinishPackageChangesInternal()
969 curIm = imi; in onFinishPackageChangesInternal()
971 if (mDataClearedPackages.contains(imi.getPackageName())) { in onFinishPackageChangesInternal()
974 int change = isPackageDisappearing(imi.getPackageName()); in onFinishPackageChangesInternal()
976 Slog.i(TAG, "Input method uninstalled, disabling: " + imi.getComponent()); in onFinishPackageChangesInternal()
978 setInputMethodEnabledLocked(imi.getId(), false); in onFinishPackageChangesInternal()
[all …]
DInputMethodUtils.java102 final InputMethodInfo imi = enabledImis.get(j); in setNonSelectedSystemImesDisabledUntilUsed() local
103 if (packageName.equals(imi.getPackageName())) { in setNonSelectedSystemImesDisabledUntilUsed()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodSettingValuesWrapper.java96 InputMethodInfo imi = imis.get(i); in refreshAllInputMethodAndSubtypes() local
97 if (!imi.isVirtualDeviceOnly()) { in refreshAllInputMethodAndSubtypes()
98 mMethodList.add(imi); in refreshAllInputMethodAndSubtypes()
107 public boolean isAlwaysCheckedIme(InputMethodInfo imi) { in isAlwaysCheckedIme() argument
108 final boolean isEnabled = isEnabledImi(imi); in isAlwaysCheckedIme()
118 && imi.isSystem() in isAlwaysCheckedIme()
119 && InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi); in isAlwaysCheckedIme()
125 for (final InputMethodInfo imi : enabledImis) { in getEnabledValidNonAuxAsciiCapableImeCount()
126 if (InputMethodAndSubtypeUtil.isValidNonAuxAsciiCapableIme(imi)) { in getEnabledValidNonAuxAsciiCapableImeCount()
136 public boolean isEnabledImi(InputMethodInfo imi) { in isEnabledImi() argument
[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 …]
DInputMethodAndSubtypeUtilCompat.java71 for (final String imi : imeToSubtypesMap.keySet()) { in buildInputMethodsAndSubtypesString()
75 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString()
76 builder.append(imi); in buildInputMethodsAndSubtypesString()
86 for (final String imi : imiList) { in buildInputMethodsString()
90 builder.append(imi); in buildInputMethodsString()
203 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeListForUserInternal()
204 final String imiId = imi.getId(); in saveInputMethodSubtypeListForUserInternal()
220 final boolean systemIme = imi.isSystem(); in saveInputMethodSubtypeListForUserInternal()
225 wrapperContext).isAlwaysCheckedIme(imi)) in saveInputMethodSubtypeListForUserInternal()
234 final int subtypeCount = imi.getSubtypeCount(); in saveInputMethodSubtypeListForUserInternal()
[all …]
DInputMethodPreference.java95 public InputMethodPreference(final Context prefContext, final InputMethodInfo imi, in InputMethodPreference() argument
98 this(prefContext, imi, imi.loadLabel(prefContext.getPackageManager()), in InputMethodPreference()
103 InputMethodPreference(final Context prefContext, final InputMethodInfo imi, in InputMethodPreference() argument
108 mImi = imi; in InputMethodPreference()
111 setKey(imi.getId()); in InputMethodPreference()
113 final String settingsActivity = imi.getSettingsActivity(); in InputMethodPreference()
119 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/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodUtilsTest.java267 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
273 new LocaleList(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
291 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
297 new LocaleList(LOCALE_EN_US), imi); in testGetImplicitlyApplicableSubtypesLocked()
315 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
321 new LocaleList(LOCALE_EN_GB), imi); in testGetImplicitlyApplicableSubtypesLocked()
340 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
346 new LocaleList(LOCALE_FR), imi); in testGetImplicitlyApplicableSubtypesLocked()
361 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked() local
367 new LocaleList(LOCALE_FR_CA), imi); in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DInputMethodInfoUtilsTest.java43 final var imi = createFakeInputMethodInfo(TEST_IME_ID1, createFakeSubtypes(3)); in testMarshalSameObject() local
44 final byte[] buf = InputMethodInfoUtils.marshal(imi); in testMarshalSameObject()
47 buf, InputMethodInfoUtils.marshal(imi)); in testMarshalSameObject()
49 buf, InputMethodInfoUtils.marshal(imi)); in testMarshalSameObject()
78 final var imi = createFakeInputMethodInfo(TEST_IME_ID1, createFakeSubtypes(3)); in testUnmarshalSameObject() local
79 final var cloned = readTypedObject(InputMethodInfoUtils.marshal(imi), in testUnmarshalSameObject()
81 assertEquals(imi.getPackageName(), cloned.getPackageName()); in testUnmarshalSameObject()
82 assertEquals(imi.getSubtypeCount(), cloned.getSubtypeCount()); in testUnmarshalSameObject()
DInputMethodMapTest.java40 for (var imi : list) { in toMap()
41 map.put(imi.getId(), imi); in toMap() local
DInputMethodSubtypeSwitchingControllerTest.java82 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in addDummyImeSubtypeListItems() local
86 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, in addDummyImeSubtypeListItems()
91 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, in addDummyImeSubtypeListItems()
119 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in createDummyItem() local
123 return new ImeSubtypeListItem(imeName, subtypeName, imi, subtypeIndex, subtypeLocale, in createDummyItem()
/frameworks/base/core/tests/InputMethodCoreTests/src/com/android/internal/inputmethod/
DInputMethodSubtypeHandleTest.java84 final InputMethodInfo imi = new InputMethodInfo( in testCreateFromInputMethodInfo() local
87 final InputMethodSubtypeHandle handle = InputMethodSubtypeHandle.of(imi, null); in testCreateFromInputMethodInfo()
98 final InputMethodSubtypeHandle handle = InputMethodSubtypeHandle.of(imi, subtype); in testCreateFromInputMethodInfo()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeHandle.java98 @NonNull InputMethodInfo imi, @Nullable InputMethodSubtype subtype) { in of()
101 return new InputMethodSubtypeHandle(encodeHandle(imi.getId(), subtypeHashCode)); in of()
/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/core/java/android/view/inputmethod/
DInputMethodSubtype.java843 public static List<InputMethodSubtype> sort(InputMethodInfo imi, in sort() argument
845 if (imi == null) return subtypeList; in sort()
849 int N = imi.getSubtypeCount(); in sort()
851 InputMethodSubtype subtype = imi.getSubtypeAt(i); in sort()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordViewController.java328 for (InputMethodInfo imi : enabledImis) { in hasMultipleEnabledIMEsOrSubtypes()
332 imm.getEnabledInputMethodSubtypeList(imi, true); in hasMultipleEnabledIMEsOrSubtypes()

12