Home
last modified time | relevance | path

Searched refs:InputMethodInfo (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodInfoTest.java51 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testEqualsAndHashCode()
52 final InputMethodInfo clone = cloneViaParcel(imi); in testEqualsAndHashCode()
60 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta); in testBooleanAttributes_DefaultValues()
66 final InputMethodInfo clone = cloneViaParcel(imi); in testBooleanAttributes_DefaultValues()
80 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta_sw_next); in testSupportsSwitchingToNextInputMethod()
84 final InputMethodInfo clone = cloneViaParcel(imi); in testSupportsSwitchingToNextInputMethod()
91 final InputMethodInfo imi = buildInputMethodForTest(R.xml.ime_meta_inline_suggestions); in testInlineSuggestionsEnabled()
95 final InputMethodInfo clone = cloneViaParcel(imi); in testInlineSuggestionsEnabled()
102 final InputMethodInfo imi = in testInlineSuggestionsEnabledWithTouchExploration()
107 final InputMethodInfo clone = cloneViaParcel(imi); in testInlineSuggestionsEnabledWithTouchExploration()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodInfoUtils.java28 import android.view.inputmethod.InputMethodInfo;
65 private final LinkedHashSet<InputMethodInfo> mInputMethodSet = new LinkedHashSet<>();
67 InputMethodListBuilder fillImes(List<InputMethodInfo> imis, Context context, in fillImes()
71 final InputMethodInfo imi = imis.get(i); in fillImes()
80 InputMethodListBuilder fillAuxiliaryImes(List<InputMethodInfo> imis, Context context) { in fillAuxiliaryImes()
82 for (final InputMethodInfo imi : mInputMethodSet) { in fillAuxiliaryImes()
89 final InputMethodInfo imi = imis.get(i); in fillAuxiliaryImes()
100 final InputMethodInfo imi = imis.get(i); in fillAuxiliaryImes()
115 public ArrayList<InputMethodInfo> build() { in build()
121 List<InputMethodInfo> imis, Context context, @Nullable Locale systemLocale, in getMinimumKeyboardSetWithSystemLocale()
[all …]
DInputMethodMap.java24 import android.view.inputmethod.InputMethodInfo;
34 private static final ArrayMap<String, InputMethodInfo> EMPTY_MAP =
37 private final ArrayMap<String, InputMethodInfo> mMap;
43 static InputMethodMap of(@NonNull ArrayMap<String, InputMethodInfo> map) { in of()
47 private InputMethodMap(@NonNull ArrayMap<String, InputMethodInfo> map) { in InputMethodMap()
53 InputMethodInfo get(@Nullable String imeId) { in get()
59 List<InputMethodInfo> values() { in values()
65 InputMethodInfo valueAt(int index) { in valueAt()
88 final ArrayMap<String, InputMethodInfo> newMethodMap = new ArrayMap<>(size); in applyAdditionalSubtypes()
97 newMethodMap.put(imi.getId(), new InputMethodInfo(imi, newAdditionalSubtypes)); in applyAdditionalSubtypes()
DInputMethodSubtypeSwitchingController.java29 import android.view.inputmethod.InputMethodInfo;
53 public final InputMethodInfo mImi;
59 InputMethodInfo imi, int subtypeId, String subtypeLocale, String systemLocale) { in ImeSubtypeListItem()
168 final ArrayList<InputMethodInfo> imis = settings.getEnabledInputMethodList(); in getSortedInputMethodAndSubtypeList()
182 final InputMethodInfo imi = imis.get(i); in getSortedInputMethodAndSubtypeList()
226 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId()
245 private int getIndex(InputMethodInfo imi, InputMethodSubtype subtype) { in getIndex()
259 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
317 private int getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) { in getUsageRank()
333 public void onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) { in onUserAction()
[all …]
DInputMethodManagerInternal.java27 import android.view.inputmethod.InputMethodInfo;
62 void onInputMethodListUpdated(List<InputMethodInfo> info, @UserIdInt int userId); in onInputMethodListUpdated()
90 public abstract List<InputMethodInfo> getInputMethodListAsUser(@UserIdInt int userId); in getInputMethodListAsUser()
98 public abstract List<InputMethodInfo> getEnabledInputMethodListAsUser(@UserIdInt int userId); in getEnabledInputMethodListAsUser()
276 public List<InputMethodInfo> getInputMethodListAsUser(@UserIdInt int userId) {
281 public List<InputMethodInfo> getEnabledInputMethodListAsUser(
DInputMethodSettings.java31 import android.view.inputmethod.InputMethodInfo;
76 private final List<InputMethodInfo> mMethodList;
114 List<InputMethodInfo> getMethodList() { in getMethodList()
135 ArrayList<InputMethodInfo> getEnabledInputMethodList() { in getEnabledInputMethodList()
140 ArrayList<InputMethodInfo> getEnabledInputMethodListWithFilter( in getEnabledInputMethodListWithFilter()
141 @Nullable Predicate<InputMethodInfo> matchingCondition) { in getEnabledInputMethodListWithFilter()
147 InputMethodInfo imi, boolean allowsImplicitlyEnabledSubtypes) { in getEnabledInputMethodSubtypeList()
157 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi) { in getEnabledInputMethodSubtypeList()
164 final InputMethodInfo info = mMethodMap.get(imsPair.first); in getEnabledInputMethodSubtypeList()
243 private ArrayList<InputMethodInfo> createEnabledInputMethodList( in createEnabledInputMethodList()
[all …]
DSubtypeUtils.java27 import android.view.inputmethod.InputMethodInfo;
63 private static InputMethodInfo sCachedInputMethodInfo;
67 static boolean containsSubtypeOf(InputMethodInfo imi, @Nullable Locale locale, in containsSubtypeOf()
96 static ArrayList<InputMethodSubtype> getSubtypes(InputMethodInfo imi) { in getSubtypes()
105 static boolean isValidSubtypeHashCode(InputMethodInfo imi, int subtypeHashCode) { in isValidSubtypeHashCode()
109 static int getSubtypeIdFromHashCode(InputMethodInfo imi, int subtypeHashCode) { in getSubtypeIdFromHashCode()
127 @NonNull LocaleList systemLocales, InputMethodInfo imi) { in getImplicitlyApplicableSubtypes()
151 @NonNull LocaleList systemLocales, InputMethodInfo imi) { in getImplicitlyApplicableSubtypesImpl()
309 @NonNull InputMethodInfo imi, @NonNull InputMethodSettings settings, in getCurrentInputMethodSubtype()
DHardwareKeyboardShortcutController.java23 import android.view.inputmethod.InputMethodInfo;
55 final List<InputMethodInfo> inputMethods = settings.getEnabledInputMethodList(); in reset()
57 final InputMethodInfo imi = inputMethods.get(i); in reset()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodSettingValuesWrapper.java25 import android.view.inputmethod.InputMethodInfo;
56 private final ArrayList<InputMethodInfo> mMethodList = new ArrayList<>();
93 List<InputMethodInfo> imis = mImm.getInputMethodListAsUser( in refreshAllInputMethodAndSubtypes()
96 InputMethodInfo imi = imis.get(i); in refreshAllInputMethodAndSubtypes()
103 public List<InputMethodInfo> getInputMethodList() { in getInputMethodList()
107 public boolean isAlwaysCheckedIme(InputMethodInfo imi) { in isAlwaysCheckedIme()
124 final List<InputMethodInfo> enabledImis = getEnabledInputMethodList(); in getEnabledValidNonAuxAsciiCapableImeCount()
125 for (final InputMethodInfo imi : enabledImis) { in getEnabledValidNonAuxAsciiCapableImeCount()
136 public boolean isEnabledImi(InputMethodInfo imi) { in isEnabledImi()
137 final List<InputMethodInfo> enabledImis = getEnabledInputMethodList(); in isEnabledImi()
[all …]
DInputMethodAndSubtypeUtilCompat.java30 import android.view.inputmethod.InputMethodInfo;
169 ContentResolver resolver, List<InputMethodInfo> inputMethodInfos, in saveInputMethodSubtypeList()
186 ContentResolver resolver, List<InputMethodInfo> inputMethodInfos, in saveInputMethodSubtypeListForUser()
193 ContentResolver resolver, List<InputMethodInfo> inputMethodInfos, in saveInputMethodSubtypeListForUserInternal()
203 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeListForUserInternal()
333 final ContentResolver resolver, final List<InputMethodInfo> inputMethodInfos, in loadInputMethodSubtypeList()
338 for (final InputMethodInfo imi : inputMethodInfos) { in loadInputMethodSubtypeList()
357 final List<InputMethodInfo> inputMethodProperties, final String id, in setSubtypesPreferenceEnabled()
360 for (final InputMethodInfo imi : inputMethodProperties) { in setSubtypesPreferenceEnabled()
376 final List<InputMethodInfo> inputMethodProperties, in updateSubtypesPreferenceChecked()
[all …]
DInputMethodAndSubtypeUtil.java28 import android.view.inputmethod.InputMethodInfo;
158 ContentResolver resolver, List<InputMethodInfo> inputMethodInfos, in saveInputMethodSubtypeList()
168 for (final InputMethodInfo imi : inputMethodInfos) { in saveInputMethodSubtypeList()
290 final ContentResolver resolver, final List<InputMethodInfo> inputMethodInfos, in loadInputMethodSubtypeList()
295 for (final InputMethodInfo imi : inputMethodInfos) { in loadInputMethodSubtypeList()
314 final List<InputMethodInfo> inputMethodProperties, final String id, in setSubtypesPreferenceEnabled()
317 for (final InputMethodInfo imi : inputMethodProperties) { in setSubtypesPreferenceEnabled()
333 final List<InputMethodInfo> inputMethodProperties, in updateSubtypesPreferenceChecked()
336 for (final InputMethodInfo imi : inputMethodProperties) { in updateSubtypesPreferenceChecked()
373 @NonNull final Context context, @NonNull final InputMethodInfo inputMethodInfo) { in getSubtypeLocaleNameAsSentence()
[all …]
DInputMethodAndSubtypeEnablerManagerCompat.java23 import android.view.inputmethod.InputMethodInfo;
51 private List<InputMethodInfo> mInputMethodInfoList;
65 for (final InputMethodInfo imi : mInputMethodInfoList) { in init()
119 InputMethodInfo imi, final PreferenceScreen root) { in addInputMethodSubtypePreferences()
221 for (final InputMethodInfo imi : mInputMethodInfoList) { in updateImplicitlyEnabledSubtypes()
235 private void updateImplicitlyEnabledSubtypesOf(final InputMethodInfo imi) { in updateImplicitlyEnabledSubtypesOf()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodManagerServiceRestrictImeAmountTest.java29 import android.view.inputmethod.InputMethodInfo;
51 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_loadsAllImesBelowThreshold()
59 for (int i = 0; i < 2 * InputMethodInfo.MAX_IMES_PER_PACKAGE; i++) { in testFilterInputMethodServices_ignoresImesBeyondThreshold()
64 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_ignoresImesBeyondThreshold()
67 InputMethodInfo.MAX_IMES_PER_PACKAGE); in testFilterInputMethodServices_ignoresImesBeyondThreshold()
73 for (int i = 0; i < 2 * InputMethodInfo.MAX_IMES_PER_PACKAGE; i++) { in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
79 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
82 2 * InputMethodInfo.MAX_IMES_PER_PACKAGE); in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
88 for (int i = 0; i < 2 * InputMethodInfo.MAX_IMES_PER_PACKAGE; i++) { in testFilterInputMethodServices_ignoresImesBeyondThresholdFromTwoPackages()
92 for (int i = 0; i < 2 * InputMethodInfo.MAX_IMES_PER_PACKAGE; i++) { in testFilterInputMethodServices_ignoresImesBeyondThresholdFromTwoPackages()
[all …]
DInputMethodUtilsTest.java38 import android.view.inputmethod.InputMethodInfo;
176 final ArrayList<InputMethodInfo> originalList = getSamplePreinstalledImes("en-rUS"); in testParcelable()
177 final List<InputMethodInfo> clonedList = cloneViaParcel(originalList); in testParcelable()
179 final List<InputMethodInfo> clonedClonedList = cloneViaParcel(clonedList); in testParcelable()
267 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
291 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
315 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
340 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
361 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
383 final InputMethodInfo imi = createFakeInputMethodInfo( in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DTestUtils.java23 import android.view.inputmethod.InputMethodInfo;
81 public static InputMethodInfo createFakeInputMethodInfo( in createFakeInputMethodInfo()
98 return new InputMethodInfo(ri, false /* isAuxIme */, null /* settingsActivity */, in createFakeInputMethodInfo()
DAdditionalSubtypeUtilsTest.java25 import android.view.inputmethod.InputMethodInfo;
50 ArrayMap<String, InputMethodInfo> methodMap = new ArrayMap<>(); in testSaveAndLoad()
51 methodMap.put(fakeImeId, new InputMethodInfo("", "", "", "")); in testSaveAndLoad()
DInputMethodMapTest.java29 import android.view.inputmethod.InputMethodInfo;
38 private static InputMethodMap toMap(InputMethodInfo... list) { in toMap()
39 final ArrayMap<String, InputMethodInfo> map = new ArrayMap<>(); in toMap()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodInfoSafeList.java23 import android.view.inputmethod.InputMethodInfo;
55 public static List<InputMethodInfo> extractFrom(@Nullable InputMethodInfoSafeList from) { in extractFrom()
59 final InputMethodInfo[] array = unmarshall(buf); in extractFrom()
68 private static InputMethodInfo[] toArray(@Nullable List<InputMethodInfo> original) { in toArray()
70 return new InputMethodInfo[0]; in toArray()
72 return original.toArray(new InputMethodInfo[0]); in toArray()
76 private static byte[] marshall(@NonNull InputMethodInfo[] array) { in marshall()
90 private static InputMethodInfo[] unmarshall(byte[] data) { in unmarshall()
96 return parcel.createTypedArray(InputMethodInfo.CREATOR); in unmarshall()
116 public static InputMethodInfoSafeList create(@Nullable List<InputMethodInfo> list) { in create()
/frameworks/base/core/tests/InputMethodCoreTests/src/com/android/internal/inputmethod/
DInputMethodInfoSafeListTest.java30 import android.view.inputmethod.InputMethodInfo;
49 private static InputMethodInfo createFakeInputMethodInfo(String packageName, String name) { in createFakeInputMethodInfo()
63 return new InputMethodInfo(ri, false, "", Collections.emptyList(), 1, false); in createFakeInputMethodInfo()
67 private static List<InputMethodInfo> createTestInputMethodList() { in createTestInputMethodList()
68 final ArrayList<InputMethodInfo> list = new ArrayList<>(); in createTestInputMethodList()
102 private static void assertItemsAfterExtract(@NonNull List<InputMethodInfo> originals, in assertItemsAfterExtract()
103 @NonNull Function<List<InputMethodInfo>, InputMethodInfoSafeList> factory) { in assertItemsAfterExtract() argument
105 final List<InputMethodInfo> extracted = InputMethodInfoSafeList.extractFrom(list); in assertItemsAfterExtract()
115 final List<InputMethodInfo> extracted2 = InputMethodInfoSafeList.extractFrom(list); in assertItemsAfterExtract()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java79 public final class InputMethodInfo implements Parcelable { class
237 public InputMethodInfo(Context context, ResolveInfo service) in InputMethodInfo() method in InputMethodInfo
251 public InputMethodInfo(Context context, ResolveInfo service, in InputMethodInfo() method in InputMethodInfo
434 public InputMethodInfo(InputMethodInfo source) { in InputMethodInfo() method in InputMethodInfo
441 public InputMethodInfo(@NonNull InputMethodInfo source, in InputMethodInfo() method in InputMethodInfo
477 InputMethodInfo(Parcel source) { in InputMethodInfo() method in InputMethodInfo
502 public InputMethodInfo(String packageName, String className, in InputMethodInfo() method in InputMethodInfo
521 public InputMethodInfo(@NonNull String packageName, @NonNull String className, in InputMethodInfo() method in InputMethodInfo
540 public InputMethodInfo(@NonNull String packageName, @NonNull String className, in InputMethodInfo() method in InputMethodInfo
560 public InputMethodInfo(@NonNull String packageName, @NonNull String className, in InputMethodInfo() method in InputMethodInfo
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java44 import android.view.inputmethod.InputMethodInfo;
161 final ArrayList<InputMethodInfo> inputMethods = new ArrayList<>(); in addsystemImes()
164 final InputMethodInfo inputMethodInfo = new InputMethodInfo( in addsystemImes()
171 final InputMethodInfo inputMethodInfo = new InputMethodInfo( in addsystemImes()
266 List<InputMethodInfo> mImis;
298 List<InputMethodInfo> getInputMethodList() { in getInputMethodList()
302 void setInputMethodList(List<InputMethodInfo> imis) { in setInputMethodList()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java26 import android.view.inputmethod.InputMethodInfo;
138 List<InputMethodInfo> infos = im.getInputMethodList(); in setStubIme()
140 for (InputMethodInfo info : infos) { in setStubIme()
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl22 import android.view.inputmethod.InputMethodInfo;
48 InputMethodInfo getCurrentInputMethodInfoAsUser(int userId); in getCurrentInputMethodInfoAsUser()
61 List<InputMethodInfo> getInputMethodListLegacy(int userId, int directBootAwareness); in getInputMethodListLegacy()
66 List<InputMethodInfo> getEnabledInputMethodListLegacy(int userId); in getEnabledInputMethodListLegacy()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java24 import android.view.inputmethod.InputMethodInfo;
120 private static InputMethodInfo createInputMethodInfo( in createInputMethodInfo()
146 return new InputMethodInfo( in createInputMethodInfo()
/frameworks/base/core/java/com/android/internal/app/
DAppLocaleCollector.java31 import android.view.inputmethod.InputMethodInfo;
101 InputMethodInfo activeIme = getActiveIme(imm); in getActiveImeLocales()
118 private InputMethodInfo getActiveIme(InputMethodManager imm) { in getActiveIme()
119 InputMethodInfo activeIme = null; in getActiveIme()
120 List<InputMethodInfo> infoList = imm.getEnabledInputMethodList(); in getActiveIme()
124 for (InputMethodInfo method : infoList) { in getActiveIme()

1234