Home
last modified time | relevance | path

Searched refs:InputMethodSubtype (Results 1 – 25 of 58) sorted by relevance

123

/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DSubtypeUtils.java27 import android.view.inputmethod.InputMethodSubtype;
65 private static ArrayList<InputMethodSubtype> sCachedResult;
74 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf()
98 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in getSubtypes()
114 InputMethodSubtype ims = imi.getSubtypeAt(i); in getSubtypeIdFromHashCode()
143 final ArrayList<InputMethodSubtype> result = in getImplicitlyApplicableSubtypesLocked()
166 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl()
183 final InputMethodSubtype subtype = subtypes.get(i); in getImplicitlyApplicableSubtypesLockedImpl()
263 InputMethodSubtype applicableSubtype = null; in findLastResortApplicableSubtypeLocked()
264 InputMethodSubtype firstMatchedModeSubtype = null; in findLastResortApplicableSubtypeLocked()
[all …]
H A DAdditionalSubtypeUtils.java31 import android.view.inputmethod.InputMethodSubtype;
116 static void save(ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in save()
145 static void saveToFile(ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in saveToFile()
161 final List<InputMethodSubtype> subtypesList = allSubtypes.get(imiId); in saveToFile()
168 for (final InputMethodSubtype subtype : subtypesList) { in saveToFile()
219 static void load(@NonNull ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in load()
246 ArrayList<InputMethodSubtype> tempSubtypesArray = null; in loadFromFile()
286 final InputMethodSubtype.InputMethodSubtypeBuilder in loadFromFile()
287 builder = new InputMethodSubtype.InputMethodSubtypeBuilder() in loadFromFile()
300 InputMethodSubtype.SUBTYPE_ID_NONE); in loadFromFile()
[all …]
H A DInputMethodSubtypeSwitchingController.java27 import android.view.inputmethod.InputMethodSubtype;
202 final List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = in getSortedInputMethodAndSubtypeList()
215 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
261 private int getIndex(InputMethodInfo imi, InputMethodSubtype subtype) { in getIndex()
275 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
332 private int getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) { in getUsageRank()
348 public void onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) { in onUserAction()
361 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
446 InputMethodSubtype subtype) { in getNextInputMethod()
505 public void onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype) { in onUserActionLocked()
[all …]
H A DHardwareKeyboardShortcutController.java23 import android.view.inputmethod.InputMethodSubtype;
43 final List<InputMethodSubtype> subtypes = in reset()
48 for (final InputMethodSubtype subtype : subtypes) { in reset()
H A DInputMethodUtils.java42 import android.view.inputmethod.InputMethodSubtype;
82 static boolean canAddToLastInputMethod(InputMethodSubtype subtype) { in canAddToLastInputMethod()
401 List<InputMethodSubtype> getEnabledInputMethodSubtypeListLocked( in getEnabledInputMethodSubtypeListLocked()
403 List<InputMethodSubtype> enabledSubtypes = in getEnabledInputMethodSubtypeListLocked()
408 return InputMethodSubtype.sort(imi, enabledSubtypes); in getEnabledInputMethodSubtypeListLocked()
414 ArrayList<InputMethodSubtype> enabledSubtypes = new ArrayList<>(); in getEnabledInputMethodSubtypeListLocked()
421 InputMethodSubtype ims = info.getSubtypeAt(i); in getEnabledInputMethodSubtypeListLocked()
598 InputMethodSubtype getLastInputMethodSubtypeLocked() { in getLastInputMethodSubtypeLocked()
816 InputMethodSubtype currentSubtype) { in saveCurrentInputMethodAndSubtypeToHistory()
836 InputMethodSubtype getCurrentInputMethodSubtypeForNonCurrentUsers() { in getCurrentInputMethodSubtypeForNonCurrentUsers()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
H A DAdditionalSubtypeUtilsTest.java26 import android.view.inputmethod.InputMethodSubtype;
45 InputMethodSubtype subtype1 = new InputMethodSubtype.InputMethodSubtypeBuilder() in testSaveAndLoad()
49 InputMethodSubtype subtype2 = new InputMethodSubtype.InputMethodSubtypeBuilder() in testSaveAndLoad()
57 ArrayMap<String, List<InputMethodSubtype>> allSubtypes = new ArrayMap<>(); in testSaveAndLoad()
64 ArrayMap<String, List<InputMethodSubtype>> loadedSubtypes = new ArrayMap<>(); in testSaveAndLoad()
69 List<InputMethodSubtype> subtypes = loadedSubtypes.get(fakeImeId); in testSaveAndLoad()
77 private void verifySubtype(InputMethodSubtype subtype, InputMethodSubtype expectedSubtype) { in verifySubtype()
H A DInputMethodUtilsTest.java53 import android.view.inputmethod.InputMethodSubtype;
288 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
312 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
336 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
361 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
382 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
404 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
426 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
443 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
965 private static void verifyEquality(InputMethodSubtype expected, InputMethodSubtype actual) { in verifyEquality()
[all …]
H A DInputMethodSubtypeSwitchingControllerTest.java28 import android.view.inputmethod.InputMethodSubtype;
29 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
57 private static InputMethodSubtype createDummySubtype(final String locale) { in createDummySubtype()
81 List<InputMethodSubtype> subtypes = null; in addDummyImeSubtypeListItems()
83 subtypes = new ArrayList<InputMethodSubtype>(); in addDummyImeSubtypeListItems()
118 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in createDummyItem()
168 InputMethodSubtype subtype = null; in assertNextInputMethod()
193 InputMethodSubtype subtype = null; in onUserAction()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeTest.java28 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
68 final InputMethodSubtype usSubtype = createSubtype("en_US"); in testLocaleObj_locale()
91 final InputMethodSubtype emptyLocaleSubtype = createSubtype(""); in testLocaleObj_emptyLocale()
116 final InputMethodSubtype subtypeIw = createSubtype("iw"); in testDeprecatedLocaleString()
117 final InputMethodSubtype subtypeHe = createSubtype("he"); in testDeprecatedLocaleString()
123 final InputMethodSubtype clonedSubtypeIw = cloneViaParcel(subtypeIw); in testDeprecatedLocaleString()
124 final InputMethodSubtype clonedSubtypeHe = cloneViaParcel(subtypeHe); in testDeprecatedLocaleString()
181 private static InputMethodSubtype cloneViaParcel(final InputMethodSubtype original) { in cloneViaParcel()
187 return InputMethodSubtype.CREATOR.createFromParcel(parcel); in cloneViaParcel()
195 private static InputMethodSubtype createSubtype(final String locale) { in createSubtype()
[all …]
H A DInputMethodSubtypeArrayTest.java27 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
44 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in testInstantiate()
112 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { in createDummySubtype()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java272 public InputMethodSubtype build() { in build()
273 return new InputMethodSubtype(this); in build()
373 InputMethodSubtype(Parcel source) { in InputMethodSubtype() method in InputMethodSubtype
753 if (o instanceof InputMethodSubtype) { in equals()
754 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals()
798 return new InputMethodSubtype(source);
802 public InputMethodSubtype[] newArray(int size) {
803 return new InputMethodSubtype[size];
829 List<InputMethodSubtype> subtypeList) { in sort()
831 final HashSet<InputMethodSubtype> inputSubtypesSet = new HashSet<InputMethodSubtype>( in sort()
[all …]
H A DInputMethodSubtypeArray.java55 public InputMethodSubtypeArray(final List<InputMethodSubtype> subtypes) { in InputMethodSubtypeArray()
61 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
136 public InputMethodSubtype get(final int index) { in get()
140 InputMethodSubtype[] instance = mInstance; in get()
154 instance = new InputMethodSubtype[mCount]; in get()
173 private volatile InputMethodSubtype[] mInstance;
177 private static byte[] marshall(final InputMethodSubtype[] array) { in marshall()
191 private static InputMethodSubtype[] unmarshall(final byte[] data) { in unmarshall()
197 return parcel.createTypedArray(InputMethodSubtype.CREATOR); in unmarshall()
H A DInputMethodInfo.java48 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
225 List<InputMethodSubtype> additionalSubtypes) in InputMethodInfo()
245 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in InputMethodInfo()
318 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo()
364 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo()
482 String settingsActivity, List<InputMethodSubtype> subtypes, int isDefaultResId, in InputMethodInfo()
497 List<InputMethodSubtype> subtypes, int isDefaultResId, boolean forceDefault, in InputMethodInfo()
511 List<InputMethodSubtype> subtypes, int isDefaultResId, boolean forceDefault, in InputMethodInfo()
649 public InputMethodSubtype getSubtypeAt(int index) { in getSubtypeAt()
/aosp14/frameworks/base/core/java/com/android/internal/view/
H A DIInputMethodManager.aidl22 import android.view.inputmethod.InputMethodSubtype;
57 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(in @nullable String imiId, in getEnabledInputMethodSubtypeList()
62 InputMethodSubtype getLastInputMethodSubtype(int userId); in getLastInputMethodSubtype()
101 @nullable InputMethodSubtype getCurrentInputMethodSubtype(int userId); in getCurrentInputMethodSubtype()
105 void setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes, in setAdditionalInputMethodSubtypes()
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/
H A DIInputMethodPrivilegedOperations.aidl21 import android.view.inputmethod.InputMethodSubtype;
36 void setInputMethodAndSubtype(String id, in InputMethodSubtype subtype, in setInputMethodAndSubtype()
H A DInputMethodSubtypeHandle.java29 import android.view.inputmethod.InputMethodSubtype;
98 @NonNull InputMethodInfo imi, @Nullable InputMethodSubtype subtype) { in of()
100 subtype != null ? subtype.hashCode() : InputMethodSubtype.SUBTYPE_ID_NONE; in of()
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
H A DInputMethodPreferenceTest.java25 import android.view.inputmethod.InputMethodSubtype;
128 final InputMethodSubtype systemLocaleSubtype = in createInputMethodInfo()
129 new InputMethodSubtype.InputMethodSubtypeBuilder() in createInputMethodInfo()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodAndSubtypeUtil.java31 import android.view.inputmethod.InputMethodSubtype;
193 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList()
321 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled()
345 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked()
372 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence()
386 @NonNull final List<InputMethodSubtype> subtypes, @NonNull final Context context, in getSubtypeLocaleNameListAsSentence()
428 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidNonAuxAsciiCapableIme()
H A DInputMethodAndSubtypeUtilCompat.java33 import android.view.inputmethod.InputMethodSubtype;
236 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeListForUserInternal()
364 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled()
388 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked()
415 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence()
429 @NonNull final List<InputMethodSubtype> subtypes, @NonNull final Context context, in getSubtypeLocaleNameListAsSentence()
471 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidSystemNonAuxAsciiCapableIme()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/
H A DInputMethodAndSubtypeUtilCompatTest.java25 import android.view.inputmethod.InputMethodSubtype;
26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
237 InputMethodSubtype... subtypes) { in createFakeIme()
254 private static InputMethodSubtype createFakeSubtype( in createFakeSubtype()
H A DInputMethodAndSubtypeUtilTest.java25 import android.view.inputmethod.InputMethodSubtype;
26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
230 InputMethodSubtype... subtypes) { in createFakeIme()
246 private static InputMethodSubtype createFakeSubtype( in createFakeSubtype()
/aosp14/frameworks/base/core/java/android/hardware/input/
H A DIInputManager.aidl39 import android.view.inputmethod.InputMethodSubtype;
117 in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype); in getKeyboardLayoutForInputDevice()
123 in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype, in setKeyboardLayoutForInputDevice()
127 int userId, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype); in getKeyboardLayoutListForInputDevice()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DKeyboardLayoutManagerTests.kt37 import android.view.inputmethod.InputMethodSubtype
823 imeSubtype: InputMethodSubtype,
835 private fun createImeSubtype(): InputMethodSubtype =
836 InputMethodSubtype.InputMethodSubtypeBuilder().setSubtypeId(nextImeSubtypeId++).build()
838 private fun createImeSubtypeForLanguageTag(languageTag: String): InputMethodSubtype =
839 InputMethodSubtype.InputMethodSubtypeBuilder().setSubtypeId(nextImeSubtypeId++)
845 ): InputMethodSubtype =
846 InputMethodSubtype.InputMethodSubtypeBuilder().setSubtypeId(nextImeSubtypeId++)
H A DKeyboardMetricsCollectorTests.kt23 import android.view.inputmethod.InputMethodSubtype
53 ): InputMethodSubtype =
54 InputMethodSubtype.InputMethodSubtypeBuilder().setSubtypeId(imeSubtypeId)
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
H A DInputMethodSubtypeHandleTest.java30 import android.view.inputmethod.InputMethodSubtype;
95 final InputMethodSubtype subtype = in testCreateFromInputMethodInfo()
96 new InputMethodSubtype.InputMethodSubtypeBuilder().setSubtypeId(1).build(); in testCreateFromInputMethodInfo()

123