Home
last modified time | relevance | path

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

12345

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputMethodManager.java31 import android.view.inputmethod.InputMethodSubtype;
71 private InputMethodSubtype mShortcutSubtype;
113 public InputMethodSubtype[] getAdditionalSubtypes() { in getAdditionalSubtypes()
298 final InputMethodSubtype subtype) { in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled()
306 final List<InputMethodSubtype> subtypes) { in checkIfSubtypeBelongsToList()
311 final List<InputMethodSubtype> subtypes) { in getSubtypeIndexInList()
314 final InputMethodSubtype ims = subtypes.get(index); in getSubtypeIndexInList()
386 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
409 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
435 final List<InputMethodSubtype> subtypes = in findSubtypeByLocale()
[all …]
H A DRichInputMethodSubtype.java23 import android.view.inputmethod.InputMethodSubtype;
58 private final InputMethodSubtype mSubtype;
64 public RichInputMethodSubtype(@Nonnull final InputMethodSubtype subtype) { in RichInputMethodSubtype()
161 public InputMethodSubtype getRawSubtype() { return mSubtype; } in getRawSubtype()
169 @Nullable final InputMethodSubtype subtype) { in getRichInputMethodSubtype()
213 final InputMethodSubtype rawNoLanguageSubtype = RichInputMethodManager.getInstance() in getNoLanguageSubtype()
234 final InputMethodSubtype rawEmojiSubtype = RichInputMethodManager.getInstance() in getEmojiSubtype()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
H A DInputMethodUtilsTest.java40 import android.view.inputmethod.InputMethodSubtype;
277 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
301 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
325 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
350 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
371 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
393 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
415 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
432 final ArrayList<InputMethodSubtype> result = in testGetImplicitlyApplicableSubtypesLocked()
957 private static void verifyEquality(InputMethodSubtype expected, InputMethodSubtype actual) { in verifyEquality()
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DSubtypeLocaleUtilsTests.java55 InputMethodSubtype EN_US;
56 InputMethodSubtype EN_GB;
57 InputMethodSubtype ES_US;
58 InputMethodSubtype FR;
59 InputMethodSubtype FR_CA;
60 InputMethodSubtype FR_CH;
61 InputMethodSubtype DE;
62 InputMethodSubtype DE_CH;
63 InputMethodSubtype HI;
64 InputMethodSubtype SR;
[all …]
H A DAdditionalSubtypeUtilsTests.java32 import android.view.inputmethod.InputMethodSubtype;
118 private static void assertEnUsDvorak(InputMethodSubtype subtype) { in assertEnUsDvorak()
141 private static void assertAzerty(InputMethodSubtype subtype) { in assertAzerty()
164 final InputMethodSubtype EN_US_DVORAK = in testRestorable()
167 final InputMethodSubtype ZZ_AZERTY = in testRestorable()
174 final InputMethodSubtype[] subtypes = { EN_US_DVORAK, ZZ_AZERTY }; in testRestorable()
176 final InputMethodSubtype[] restoredSubtypes = in testRestorable()
179 final InputMethodSubtype restored_EN_US_DVORAK = restoredSubtypes[0]; in testRestorable()
180 final InputMethodSubtype restored_ZZ_AZERTY = restoredSubtypes[1]; in testRestorable()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardLayoutSetTestsBase.java25 import android.view.inputmethod.InputMethodSubtype;
46 public boolean accept(final InputMethodSubtype subtype); in accept()
51 public boolean accept(InputMethodSubtype subtype) {
58 public boolean accept(InputMethodSubtype subtype) {
64 private InputMethodSubtype[] mSavedAdditionalSubtypes;
79 final InputMethodSubtype[] predefinedAdditionalSubtypes = in setUp()
106 protected final ArrayList<InputMethodSubtype> getAllSubtypesList() { in getAllSubtypesList()
112 final ArrayList<InputMethodSubtype> list = new ArrayList<>(); in getSubtypesFilteredBy()
113 for (final InputMethodSubtype subtype : mAllSubtypesList) { in getSubtypesFilteredBy()
125 protected final InputMethodSubtype getSubtype(final Locale locale, in getSubtype()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DInputMethodSubtypeTest.java26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
65 final InputMethodSubtype usSubtype = createDummySubtype("en_US"); in testLocaleObj_locale()
88 final InputMethodSubtype emptyLocaleSubtype = createDummySubtype(""); in testLocaleObj_emptyLocale()
113 final InputMethodSubtype subtypeIw = createDummySubtype("iw"); in testDeprecatedLocaleString()
114 final InputMethodSubtype subtypeHe = createDummySubtype("he"); in testDeprecatedLocaleString()
120 final InputMethodSubtype clonedSubtypeIw = cloneViaParcel(subtypeIw); in testDeprecatedLocaleString()
121 final InputMethodSubtype clonedSubtypeHe = cloneViaParcel(subtypeHe); in testDeprecatedLocaleString()
128 private static InputMethodSubtype cloneViaParcel(final InputMethodSubtype original) { in cloneViaParcel()
134 return InputMethodSubtype.CREATOR.createFromParcel(parcel); in cloneViaParcel()
142 private static InputMethodSubtype createDummySubtype(final String locale) { in createDummySubtype()
[all …]
H A DInputMethodSubtypeArrayTest.java22 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
38 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in testInstantiate()
76 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { in createDummySubtype()
/aosp12/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java215 public InputMethodSubtype build() { in build()
216 return new InputMethodSubtype(this); in build()
313 InputMethodSubtype(Parcel source) { in InputMethodSubtype() method in InputMethodSubtype
602 if (o instanceof InputMethodSubtype) { in equals()
603 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals()
644 return new InputMethodSubtype(source);
648 public InputMethodSubtype[] newArray(int size) {
649 return new InputMethodSubtype[size];
677 List<InputMethodSubtype> subtypeList) { in sort()
679 final HashSet<InputMethodSubtype> inputSubtypesSet = new HashSet<InputMethodSubtype>( in sort()
[all …]
H A DInputMethodSubtypeArray.java54 public InputMethodSubtypeArray(final List<InputMethodSubtype> subtypes) { in InputMethodSubtypeArray()
60 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
132 public InputMethodSubtype get(final int index) { in get()
136 InputMethodSubtype[] instance = mInstance; in get()
150 instance = new InputMethodSubtype[mCount]; in get()
169 private volatile InputMethodSubtype[] mInstance;
173 private static byte[] marshall(final InputMethodSubtype[] array) { in marshall()
187 private static InputMethodSubtype[] unmarshall(final byte[] data) { in unmarshall()
193 return parcel.createTypedArray(InputMethodSubtype.CREATOR); in unmarshall()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodSubtypeCompatUtils.java21 import android.view.inputmethod.InputMethodSubtype;
40 CompatUtils.getConstructor(InputMethodSubtype.class,
54 InputMethodSubtype.class, "isAsciiCapable");
62 public static InputMethodSubtype newInputMethodSubtype(int nameId, int iconId, String locale, in newInputMethodSubtype()
67 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, in newInputMethodSubtype()
70 return (InputMethodSubtype) CompatUtils.newInstance(CONSTRUCTOR_INPUT_METHOD_SUBTYPE, in newInputMethodSubtype()
79 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { in isAsciiCapable()
86 CompatUtils.getMethod(InputMethodSubtype.class, "getLanguageTag");
88 public static Locale getLocaleObject(final InputMethodSubtype subtype) { in getLocaleObject()
100 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { in isAsciiCapableWithAPI()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DAdditionalSubtypeUtils.java29 import android.view.inputmethod.InputMethodSubtype;
42 private static final InputMethodSubtype[] EMPTY_SUBTYPE_ARRAY = new InputMethodSubtype[0];
49 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { in isAdditionalSubtype()
61 private static InputMethodSubtype createAdditionalSubtypeInternal( in createAdditionalSubtypeInternal()
78 public static InputMethodSubtype createDummyAdditionalSubtype( in createDummyAdditionalSubtype()
84 public static InputMethodSubtype createAsciiEmojiCapableAdditionalSubtype( in createAsciiEmojiCapableAdditionalSubtype()
90 public static String getPrefSubtype(final InputMethodSubtype subtype) { in getPrefSubtype()
121 final InputMethodSubtype subtype = createAsciiEmojiCapableAdditionalSubtype( in createAdditionalSubtypesArray()
130 return subtypesList.toArray(new InputMethodSubtype[subtypesList.size()]); in createAdditionalSubtypesArray()
133 public static String createPrefSubtypes(final InputMethodSubtype[] subtypes) { in createPrefSubtypes()
[all …]
H A DLanguageOnSpacebarUtils.java19 import android.view.inputmethod.InputMethodSubtype;
37 private static List<InputMethodSubtype> sEnabledSubtypes = Collections.emptyList();
60 for (final InputMethodSubtype ims : sEnabledSubtypes) { in getLanguageOnSpacebarFormatType()
73 public static void setEnabledSubtypes(@Nonnull final List<InputMethodSubtype> enabledSubtypes) { in setEnabledSubtypes()
H A DSubtypeLocaleUtils.java27 import android.view.inputmethod.InputMethodSubtype;
259 private static String getReplacementString(@Nonnull final InputMethodSubtype subtype, in getReplacementString()
270 @Nonnull final InputMethodSubtype subtype) { in getSubtypeDisplayNameInSystemLocale()
276 public static String getSubtypeNameForLogging(@Nullable final InputMethodSubtype subtype) { in getSubtypeNameForLogging()
284 private static String getSubtypeDisplayNameInternal(@Nonnull final InputMethodSubtype subtype, in getSubtypeDisplayNameInternal()
311 public static Locale getSubtypeLocale(@Nonnull final InputMethodSubtype subtype) { in getSubtypeLocale()
318 @Nonnull final InputMethodSubtype subtype) { in getKeyboardLayoutSetDisplayName()
329 public static String getKeyboardLayoutSetName(final InputMethodSubtype subtype) { in getKeyboardLayoutSetName()
348 public static String getCombiningRulesExtraValue(final InputMethodSubtype subtype) { in getCombiningRulesExtraValue()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
H A DKeyboardLayoutSetSubtypesCountTests.java20 import android.view.inputmethod.InputMethodSubtype;
39 private static String toString(final ArrayList<InputMethodSubtype> subtypeList) { in toString()
42 final InputMethodSubtype subtype = subtypeList.get(index); in toString()
51 final ArrayList<InputMethodSubtype> allSubtypesList = getAllSubtypesList(); in testAllSubtypesCount()
56 final ArrayList<InputMethodSubtype> asciiCapableSubtypesList = in testAsciiCapableSubtypesCount()
63 final ArrayList<InputMethodSubtype> additionalSubtypesList = in testAdditionalSubtypesCount()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DCustomInputStyleSettingsFragment.java38 import android.view.inputmethod.InputMethodSubtype;
84 final InputMethodSubtype[] subtypes = in updateCustomInputStylesSummary()
87 for (final InputMethodSubtype subtype : subtypes) { in updateCustomInputStylesSummary()
171 final InputMethodSubtype subtype = stylePref.getSubtype(); in onSaveCustomInputStyle()
191 final InputMethodSubtype subtype = stylePref.getSubtype(); in onAddCustomInputStyle()
224 private InputMethodSubtype findDuplicatedSubtype(final InputMethodSubtype subtype) { in findDuplicatedSubtype()
259 final InputMethodSubtype[] subtypesArray = in setPrefSubtypes()
261 for (final InputMethodSubtype subtype : subtypesArray) { in setPrefSubtypes()
268 private InputMethodSubtype[] getSubtypes() { in getSubtypes()
270 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in getSubtypes()
[all …]
H A DCustomInputStylePreference.java30 import android.view.inputmethod.InputMethodSubtype;
59 private InputMethodSubtype mSubtype;
60 private InputMethodSubtype mPreviousSubtype;
88 public InputMethodSubtype getSubtype() { in getSubtype()
92 public void setSubtype(final InputMethodSubtype subtype) { in setSubtype()
179 final InputMethodSubtype subtype = in onClick()
225 InputMethodSubtype mSubtype;
239 mSubtype = (InputMethodSubtype)source.readParcelable(null); in SavedState()
261 public SubtypeLocaleItem(final InputMethodSubtype subtype) { in SubtypeLocaleItem()
292 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in SubtypeLocaleAdapter()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DInputMethodUtils.java41 import android.view.inputmethod.InputMethodSubtype;
103 private static ArrayList<InputMethodSubtype> sCachedResult;
192 final InputMethodSubtype s = imi.getSubtypeAt(i); in isSystemAuxilialyImeThatHasAutomaticSubtype()
458 InputMethodSubtype ims = imi.getSubtypeAt(i); in getSubtypeIdFromHashCode()
491 final ArrayList<InputMethodSubtype> result = in getImplicitlyApplicableSubtypesLocked()
621 InputMethodSubtype applicableSubtype = null; in findLastResortApplicableSubtypeLocked()
622 InputMethodSubtype firstMatchedModeSubtype = null; in findLastResortApplicableSubtypeLocked()
625 InputMethodSubtype subtype = subtypes.get(i); in findLastResortApplicableSubtypeLocked()
756 InputMethodSubtype subtype) { in getImeAndSubtypeDisplayName()
962 List<InputMethodSubtype> enabledSubtypes = in getEnabledInputMethodSubtypeListLocked()
[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 DAdditionalSubtypeUtils.java32 import android.view.inputmethod.InputMethodSubtype;
108 static void save(ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in save()
151 final List<InputMethodSubtype> subtypesList = allSubtypes.get(imiId); in save()
154 final InputMethodSubtype subtype = subtypesList.get(i); in save()
194 static void load(@NonNull ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in load()
219 ArrayList<InputMethodSubtype> tempSubtypesArray = null; in load()
253 final InputMethodSubtype.InputMethodSubtypeBuilder in load()
254 builder = new InputMethodSubtype.InputMethodSubtypeBuilder() in load()
264 InputMethodSubtype.SUBTYPE_ID_NONE); in load()
265 if (subtypeId != InputMethodSubtype.SUBTYPE_ID_NONE) { in load()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardTextsSetTests.java24 import android.view.inputmethod.InputMethodSubtype;
46 private List<InputMethodSubtype> mAllSubtypesList;
57 final ArrayList<InputMethodSubtype> allSubtypesList = new ArrayList<>(); in setUp()
61 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp()
74 for (final InputMethodSubtype subtype : mAllSubtypesList) { in testSwitchToAlphaKeyLabel()
101 for (final InputMethodSubtype subtype : mAllSubtypesList) { in testTextFromResources()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
H A DKlpActionTestsBase.java19 import android.view.inputmethod.InputMethodSubtype;
32 public boolean accept(final InputMethodSubtype subtype) {
38 protected ArrayList<InputMethodSubtype> mSubtypesWhoseNameIsDisplayedInItsLocale;
45 public boolean accept(final InputMethodSubtype subtype) { in setUp()
H A DKlpActionLabelTests.java22 import android.view.inputmethod.InputMethodSubtype;
36 void doTestActionKeys(final InputMethodSubtype subtype, final String tag, in doTestActionKeys()
55 private void doTestActionKeysInLocaleWithStringResources(final InputMethodSubtype subtype, in doTestActionKeysInLocaleWithStringResources()
91 final InputMethodSubtype italian = richImm.findSubtypeByLocaleAndKeyboardLayoutSet( in testActionLabelInOtherLocale()
102 final InputMethodSubtype noLanguage = richImm.findSubtypeByLocaleAndKeyboardLayoutSet( in testNoLanguageSubtypeActionLabel()
111 private void doTestActionKeysInLocaleWithKeyboardTextsSet(final InputMethodSubtype subtype, in doTestActionKeysInLocaleWithKeyboardTextsSet()
150 final InputMethodSubtype hiLatn = richImm.findSubtypeByLocaleAndKeyboardLayoutSet( in testHinglishActionLabel()
167 final InputMethodSubtype srLatn = richImm.findSubtypeByLocaleAndKeyboardLayoutSet( in testSerbianLatinActionLabel()
/aosp12/frameworks/base/core/java/com/android/internal/view/
H A DIInputMethodManager.aidl21 import android.view.inputmethod.InputMethodSubtype;
40 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(in String imiId, in getEnabledInputMethodSubtypeList()
42 InputMethodSubtype getLastInputMethodSubtype(); in getLastInputMethodSubtype()
66 InputMethodSubtype getCurrentInputMethodSubtype(); in getCurrentInputMethodSubtype()
67 void setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes); in setAdditionalInputMethodSubtypes()
/aosp12/frameworks/base/core/java/com/android/internal/inputmethod/
H A DCallbackUtils.java23 import android.view.inputmethod.InputMethodSubtype;
105 @NonNull Supplier<InputMethodSubtype> resultSupplier) { in onResult()
106 InputMethodSubtype result = null; in onResult()
132 @NonNull Supplier<List<InputMethodSubtype>> resultSupplier) { in onResult()
133 List<InputMethodSubtype> result = null; in onResult()

12345