/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | AdditionalSubtypeUtilsTests.java | 40 * Predictable subtype ID for en_US dvorak layout. This is actually a hash code calculated as 75 * Predictable subtype ID for azerty layout. This is actually a hash code calculated as follows. 108 private static void assertEnUsDvorak(InputMethodSubtype subtype) { argument 109 assertEquals("en_US", subtype.getLocale()); 111 assertEquals(EXTRA_VALUE_EN_US_DVORAK_KITKAT, subtype.getExtraValue()); 113 assertEquals(EXTRA_VALUE_EN_US_DVORAK_JELLY_BEAN, subtype.getExtraValue()); 115 assertEquals(EXTRA_VALUE_EN_US_DVORAK_ICS, subtype.getExtraValue()); 117 assertTrue(subtype.containsExtraValueKey(ASCII_CAPABLE)); 118 assertTrue(InputMethodSubtypeCompatUtils.isAsciiCapable(subtype)); 121 // assertTrue(InputMethodSubtypeCompatUtils.isAsciiCapableWithAPI(subtype)); 131 assertAzerty(InputMethodSubtype subtype) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardLayoutSetNavigateMoreKeysBase.java | 79 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 D | KeyboardLayoutSetTestsBase.java | 46 public boolean accept(final InputMethodSubtype subtype); argument 51 public boolean accept(InputMethodSubtype subtype) { 52 return InputMethodSubtypeCompatUtils.isAsciiCapable(subtype); 58 public boolean accept(InputMethodSubtype subtype) { 59 return AdditionalSubtypeUtils.isAdditionalSubtype(subtype); 113 for (final InputMethodSubtype subtype : mAllSubtypesList) { 114 if (filter.accept(subtype)) { 115 list.add(subtype); 127 for (final InputMethodSubtype subtype : mAllSubtypesList) { 128 final Locale subtypeLocale = SubtypeLocaleUtils.getSubtypeLocale(subtype); 147 createKeyboardLayoutSet(final InputMethodSubtype subtype, final EditorInfo editorInfo) argument 153 createKeyboardLayoutSet(final InputMethodSubtype subtype, final EditorInfo editorInfo, final boolean voiceInputKeyEnabled, final boolean languageSwitchKeyEnabled, final boolean splitLayoutEnabled) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
H A D | KlpActionCustomTests.java | 28 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 29 final String tag = "custom " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 34 doTestActionKey(tag, subtype, editorInfo, expectedKey);
|
H A D | KlpActionNoneTests.java | 31 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 32 final String tag = "none " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NONE, expectedKey);
|
H A D | KlpActionSearchTests.java | 31 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 32 final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey);
|
H A D | KlpActionUnspecifiedTests.java | 31 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 33 + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_UNSPECIFIED, expectedKey);
|
H A D | LxxActionCustomTests.java | 28 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 29 final String tag = "custom " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 34 doTestActionKey(tag, subtype, editorInfo, expectedKey);
|
H A D | LxxActionDoneTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "done " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_DONE, expectedKey);
|
H A D | LxxActionGoTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "go " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_GO, expectedKey);
|
H A D | LxxActionNextTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey);
|
H A D | LxxActionNoneTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "none " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NONE, expectedKey);
|
H A D | LxxActionPreviousTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "previous " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_PREVIOUS, expectedKey);
|
H A D | LxxActionSearchTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey);
|
H A D | LxxActionSendTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 32 final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey);
|
H A D | LxxActionUnspecifiedTests.java | 31 for (final InputMethodSubtype subtype : getAllSubtypesList()) { 33 + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_UNSPECIFIED, expectedKey);
|
H A D | KlpActionDoneTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 30 final String tag = "done " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 32 R.string.label_done_key, getLabelLocale(subtype), getContext()); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_DONE, expectedKey);
|
H A D | KlpActionGoTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 30 final String tag = "go " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 32 R.string.label_go_key, getLabelLocale(subtype), getContext()); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_GO, expectedKey);
|
H A D | KlpActionNextTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 30 final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 32 R.string.label_next_key, getLabelLocale(subtype), getContext()); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey);
|
H A D | KlpActionPreviousTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 30 final String tag = "previous " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 32 R.string.label_previous_key, getLabelLocale(subtype), getContext()); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_PREVIOUS, expectedKey);
|
H A D | KlpActionSendTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { 30 final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); 32 R.string.label_send_key, getLabelLocale(subtype), getContext()); 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey);
|
H A D | KlpActionTestsBase.java | 28 // Filter a subtype whose name should be displayed using {@link Locale#ROOT}, such like 32 public boolean accept(final InputMethodSubtype subtype) { 34 SubtypeLocaleUtils.getDisplayLocaleOfSubtypeLocale(subtype.getLocale())); 45 public boolean accept(final InputMethodSubtype subtype) { 46 return !SUBTYPE_FILTER_NAME_IN_BASE_LOCALE.accept(subtype);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | LanguageOnSpacebarUtils.java | 45 @Nonnull final RichInputMethodSubtype subtype) { 46 if (subtype.isNoLanguage()) { 49 // Only this subtype is enabled and equals to the system locale. 53 final Locale locale = subtype.getLocale(); 58 final String keyboardLayout = subtype.getKeyboardLayoutSetName(); 77 public static void onSubtypeChanged(@Nonnull final RichInputMethodSubtype subtype, argument 79 final Locale newLocale = subtype.getLocale(); 88 // If the subtype is enabled explicitly, the language name should be displayed even when 44 getLanguageOnSpacebarFormatType( @onnull final RichInputMethodSubtype subtype) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | InputMethodSubtypeCompatUtils.java | 75 public static boolean isAsciiCapable(final RichInputMethodSubtype subtype) { argument 76 return isAsciiCapable(subtype.getRawSubtype()); 79 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { argument 80 return isAsciiCapableWithAPI(subtype) 81 || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE); 88 public static Locale getLocaleObject(final InputMethodSubtype subtype) { argument 91 final String languageTag = (String) CompatUtils.invoke(subtype, null, GET_LANGUAGE_TAG); 96 return LocaleUtils.constructLocaleFromString(subtype.getLocale()); 100 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { argument 101 return (Boolean)CompatUtils.invoke(subtype, fals [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardTextsSetTests.java | 48 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);
|