Searched refs:subtype (Results 1 - 25 of 42) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSpacebarLanguageUtils.java44 public static String getFullDisplayName(final InputMethodSubtype subtype) { argument
45 if (SubtypeLocaleUtils.isNoLanguage(subtype)) {
46 return SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName(subtype);
48 return SubtypeLocaleUtils.getSubtypeLocaleDisplayName(subtype.getLocale());
52 public static String getMiddleDisplayName(final InputMethodSubtype subtype) { argument
53 if (SubtypeLocaleUtils.isNoLanguage(subtype)) {
54 return SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName(subtype);
56 return SubtypeLocaleUtils.getSubtypeLanguageDisplayName(subtype.getLocale());
H A DSubtypeLocaleUtils.java53 // Keyboard layout to subtype name resource id map.
55 // Exceptional locale to subtype name resource id map.
57 // Exceptional locale to subtype name with layout resource id map.
69 // This is for compatibility to keep the same subtype ids as pre-JellyBean.
101 // Register subtype name resource id of "No language" with key "zz_<layout>"
182 // No language subtype should be displayed in system locale.
220 private static String getReplacementString(final InputMethodSubtype subtype, argument
223 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)) {
224 return subtype.getExtraValueOf(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME);
226 return getSubtypeLocaleDisplayNameInternal(subtype
230 getSubtypeDisplayNameInSystemLocale(final InputMethodSubtype subtype) argument
235 getSubtypeNameForLogging(final InputMethodSubtype subtype) argument
242 getSubtypeDisplayNameInternal(final InputMethodSubtype subtype, final Locale displayLocale) argument
267 isNoLanguage(final InputMethodSubtype subtype) argument
272 getSubtypeLocale(final InputMethodSubtype subtype) argument
277 getKeyboardLayoutSetDisplayName(final InputMethodSubtype subtype) argument
286 getKeyboardLayoutSetName(final InputMethodSubtype subtype) argument
321 isRtlLanguage(final InputMethodSubtype subtype) argument
325 getCombiningRulesExtraValue(final InputMethodSubtype subtype) argument
[all...]
H A DAdditionalSubtypeUtils.java48 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { argument
49 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE);
89 public static String getPrefSubtype(final InputMethodSubtype subtype) { argument
90 final String localeString = subtype.getLocale();
91 final String keyboardLayoutSetName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
95 IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue()));
112 Log.w(TAG, "Unknown additional subtype specified: " + prefSubtype + " in "
119 // This is actually what the setting dialog for additional subtype is doing.
120 final InputMethodSubtype subtype = createAsciiEmojiCapableAdditionalSubtype(
122 if (subtype
[all...]
H A DDistracterFilterCheckingExactMatchesAndSuggestions.java92 for (final InputMethodSubtype subtype : enabledSubtypes) {
93 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
99 newLocaleToSubtypeMap.put(locale, subtype);
119 final InputMethodSubtype subtype;
121 subtype = mLocaleToSubtypeMap.get(newLocale);
123 if (subtype == null) {
134 builder.setSubtype(subtype);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardLayoutSetActionLabelLxxTests.java35 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
36 final String tag = "go " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
37 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_GO,
44 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
45 final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
46 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_SEND,
53 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
54 final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
55 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_NEXT,
62 for (final InputMethodSubtype subtype
[all...]
H A DKeyboardLayoutSetNavigateMoreKeysBase.java79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, argument
85 final KeyboardLayoutSet layoutSet = createKeyboardLayoutSet(subtype, editorInfo);
120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType,
127 doTestMoreKeysOf(code, subtype, elementId, inputType,
131 doTestMoreKeysOf(code, subtype, elementId, inputType,
135 doTestMoreKeysOf(code, subtype, elementId, inputType,
139 doTestMoreKeysOf(code, subtype, elementId, inputType,
143 doTestMoreKeysOf(code, subtype, elementId, inputType,
147 doTestMoreKeysOf(code, subtype, elementI
174 doTestNavigationWithEmojiMoreKeysOf(final int code, final InputMethodSubtype subtype, final int elementId, final int inputType) argument
229 doTestNoNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, final int elementId, final int inputType) argument
[all...]
H A DKeyboardLayoutSetTestsBase.java65 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
66 if (AdditionalSubtypeUtils.isAdditionalSubtype(subtype)) {
67 mAdditionalSubtypesList.add(subtype);
70 mAllSubtypesList.add(subtype);
71 if (InputMethodSubtypeCompatUtils.isAsciiCapable(subtype)) {
72 mAsciiCapableSubtypesList.add(subtype);
96 for (final InputMethodSubtype subtype : mAllSubtypesList) {
97 final Locale subtypeLocale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
98 final String subtypeLayout = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
100 // Found subtype tha
116 createKeyboardLayoutSet(final InputMethodSubtype subtype, final EditorInfo editorInfo) argument
122 createKeyboardLayoutSet(final InputMethodSubtype subtype, final EditorInfo editorInfo, final boolean voiceInputKeyEnabled, final boolean languageSwitchKeyEnabled) argument
[all...]
H A DKeyboardLayoutSetActionLabelKlpTests.java41 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
42 final String tag = "go " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
43 doTestActionKeyLabelResId(tag, subtype, EditorInfo.IME_ACTION_GO,
50 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
51 final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
52 doTestActionKeyLabelResId(tag, subtype, EditorInfo.IME_ACTION_SEND,
59 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
60 final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
61 doTestActionKeyLabelResId(tag, subtype, EditorInfo.IME_ACTION_NEXT,
68 for (final InputMethodSubtype subtype
87 doTestActionLabelInLocale(final InputMethodSubtype subtype, final Locale labelLocale, final Locale systemLocale) argument
[all...]
H A DKeyboardLayoutSetActionLabelBase.java33 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
35 + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
36 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_UNSPECIFIED,
42 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
43 final String tag = "none " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
44 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_NONE,
50 for (final InputMethodSubtype subtype : getAllSubtypesList()) {
51 final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
52 doTestActionKeyIcon(tag, subtype, EditorInfo.IME_ACTION_SEARCH,
64 for (final InputMethodSubtype subtype
83 doTestActionKeyLabelResId(final String tag, final InputMethodSubtype subtype, final int actionId, final int labelResId) argument
90 doTestActionKeyLabelResIdInLocale(final String tag, final InputMethodSubtype subtype, final int actionId, final Locale labelLocale, final int labelResId) argument
105 doTestActionKeyLabel(final String tag, final InputMethodSubtype subtype, final EditorInfo editorInfo, final CharSequence label) argument
132 doTestActionKeyIcon(final String tag, final InputMethodSubtype subtype, final int actionId, final String iconName) argument
[all...]
H A DKeyboardLayoutSetSubtypesCountTests.java40 final InputMethodSubtype subtype = subtypeList.get(index);
42 sb.append(SubtypeLocaleUtils.getSubtypeNameForLogging(subtype));
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DAdditionalSubtypeUtilsTests.java41 * Predictable subtype ID for en_US dvorak layout. This is actually a hash code calculated as
76 * Predictable subtype ID for azerty layout. This is actually a hash code calculated as follows.
109 private static void assertEnUsDvorak(InputMethodSubtype subtype) { argument
110 assertEquals("en_US", subtype.getLocale());
112 assertEquals(EXTRA_VALUE_EN_US_DVORAK_KITKAT, subtype.getExtraValue());
114 assertEquals(EXTRA_VALUE_EN_US_DVORAK_JELLY_BEAN, subtype.getExtraValue());
116 assertEquals(EXTRA_VALUE_EN_US_DVORAK_ICS, subtype.getExtraValue());
118 assertTrue(subtype.containsExtraValueKey(ASCII_CAPABLE));
119 assertTrue(InputMethodSubtypeCompatUtils.isAsciiCapable(subtype));
122 // assertTrue(InputMethodSubtypeCompatUtils.isAsciiCapableWithAPI(subtype));
132 assertAzerty(InputMethodSubtype subtype) argument
[all...]
H A DSpacebarLanguagetUtilsTests.java68 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
69 mSubtypesList.add(subtype);
107 for (final InputMethodSubtype subtype : mSubtypesList) {
109 .getSubtypeDisplayNameInSystemLocale(subtype);
110 final String spacebarText = SpacebarLanguageUtils.getFullDisplayName(subtype);
112 .getSubtypeLocaleDisplayName(subtype.getLocale());
113 if (SubtypeLocaleUtils.isNoLanguage(subtype)) {
122 for (final InputMethodSubtype subtype : mSubtypesList) {
124 .getSubtypeDisplayNameInSystemLocale(subtype);
125 final String spacebarText = SpacebarLanguageUtils.getMiddleDisplayName(subtype);
[all...]
H A DSubtypeLocaleUtilsTests.java68 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
69 mSubtypesList.add(subtype);
107 for (final InputMethodSubtype subtype : mSubtypesList) {
109 .getSubtypeDisplayNameInSystemLocale(subtype);
110 if (SubtypeLocaleUtils.isNoLanguage(subtype)) {
112 .getKeyboardLayoutSetDisplayName(subtype);
116 .getSubtypeLocaleDisplayNameInSystemLocale(subtype.getLocale());
301 for (final InputMethodSubtype subtype : mSubtypesList) {
303 .getSubtypeDisplayNameInSystemLocale(subtype);
304 if (subtype
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodSubtypeCompatUtils.java67 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { argument
68 return isAsciiCapableWithAPI(subtype)
69 || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE);
73 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { argument
74 return (Boolean)CompatUtils.invoke(subtype, false, METHOD_isAsciiCapable);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardTextsSetTests.java48 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
49 allSubtypesList.add(subtype);
60 for (final InputMethodSubtype subtype : mAllSubtypesList) {
61 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
86 for (final InputMethodSubtype subtype : mAllSubtypesList) {
87 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DLanguageOnSpacebarHelper.java37 public int getLanguageOnSpacebarFormatType(final InputMethodSubtype subtype) { argument
38 if (SubtypeLocaleUtils.isNoLanguage(subtype)) {
41 // Only this subtype is enabled and equals to the system locale.
45 final String keyboardLanguage = SubtypeLocaleUtils.getSubtypeLocale(subtype).getLanguage();
46 final String keyboardLayout = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputMethodManager.java133 Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype="
139 // The current subtype is the last or only enabled one and it needs to switch to
161 // The next IME has no subtype.
203 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
204 if (!subtype.isAuxiliary()) {
248 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) { argument
249 return checkIfSubtypeBelongsToImeAndEnabled(getInputMethodInfoOfThisIme(), subtype);
253 final InputMethodSubtype subtype) {
254 final boolean subtypeEnabled = checkIfSubtypeBelongsToThisImeAndEnabled(subtype);
252 checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled( final InputMethodSubtype subtype) argument
261 checkIfSubtypeBelongsToImeAndEnabled(final InputMethodInfo imi, final InputMethodSubtype subtype) argument
267 checkIfSubtypeBelongsToList(final InputMethodSubtype subtype, final List<InputMethodSubtype> subtypes) argument
272 getSubtypeIndexInList(final InputMethodSubtype subtype, final List<InputMethodSubtype> subtypes) argument
284 checkIfSubtypeBelongsToThisIme(final InputMethodSubtype subtype) argument
288 getSubtypeIndexInIme(final InputMethodSubtype subtype, final InputMethodInfo imi) argument
381 setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) argument
[all...]
H A DSubtypeSwitcher.java66 // Dummy no language QWERTY subtype. See {@link R.xml.method}.
80 // Caveat: We probably should remove this when we add an Emoji subtype in {@link R.xml.method}.
81 // Dummy Emoji subtype. See {@link R.xml.method}.
153 // TODO: Pick up the first found subtype for now. Should handle all subtypes
167 // Update the current subtype. LatinIME.onCurrentInputMethodSubtypeChanged calls this function.
199 private void switchToTargetIME(final String imiId, final InputMethodSubtype subtype, argument
209 imm.setInputMethodAndSubtype(token, imiId, subtype);
253 public int getLanguageOnSpacebarFormatType(final InputMethodSubtype subtype) { argument
254 return mLanguageOnSpacebarHelper.getLanguageOnSpacebarFormatType(subtype);
273 for (final InputMethodSubtype subtype
284 forceSubtype(final InputMethodSubtype subtype) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DCustomInputStyleSettingsFragment.java111 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
114 subtype.getLocale(), subtype.hashCode(), subtype.hashCode(),
115 SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype)));
117 if (InputMethodSubtypeCompatUtils.isAsciiCapable(subtype)) {
118 items.add(createItem(context, subtype.getLocale()));
136 public KeyboardLayoutSetItem(final InputMethodSubtype subtype) { argument
137 super(SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype),
138 SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName(subtype));
188 SubtypePreference(final Context context, final InputMethodSubtype subtype, final SubtypeDialogProxy proxy) argument
209 setSubtype(final InputMethodSubtype subtype) argument
541 showSubtypeAlreadyExistsToast(final InputMethodSubtype subtype) argument
549 findDuplicatedSubtype(final InputMethodSubtype subtype) argument
[all...]
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DInputMethodSubtypePreference.java31 * Input method subtype preference.
33 * This preference represents a subtype of an IME. It is used to enable or disable the subtype.
39 InputMethodSubtypePreference(final Context context, final InputMethodSubtype subtype, argument
43 setKey(imi.getId() + subtype.hashCode());
44 final CharSequence subtypeLabel = subtype.getDisplayName(context,
47 final String subtypeLocaleString = subtype.getLocale();
H A DSpellCheckersSettings.java126 final SpellCheckerSubtype subtype) {
130 if (subtype == null) {
133 return subtype.getDisplayName(
175 final SpellCheckerSubtype subtype = currentSci.getSubtypeAt(index);
177 items[itemId] = getSpellCheckerSubtypeLabel(currentSci, subtype);
178 if (subtype.equals(currentScs)) {
192 final SpellCheckerSubtype subtype = mTsm.getCurrentSpellCheckerSubtype(
195 + subtype == null ? "null" : subtype.getLocale());
125 getSpellCheckerSubtypeLabel(final SpellCheckerInfo sci, final SpellCheckerSubtype subtype) argument
H A DInputMethodSettingValuesWrapper.java102 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
103 if (InputMethodUtils.SUBTYPE_MODE_KEYBOARD.equalsIgnoreCase(subtype.getMode())
104 && subtype.isAsciiCapable()) {
126 final InputMethodSubtype subtype = mImm.getCurrentInputMethodSubtype();
127 return InputMethodUtils.getImeAndSubtypeDisplayName(context, imi, subtype);
193 Log.w(TAG, "ascii capable subtype enabled imi not found. Fall back to English"
194 + " Keyboard subtype.");
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
H A DTestsQwertyEmail.java43 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
50 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled);
H A DTestsQwertyUrl.java43 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
50 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled);
H A DTestsDvorakEmail.java45 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
52 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled);

Completed in 404 milliseconds

12