/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSetNavigateMoreKeysBase.java | 79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestMoreKeysOf() argument 85 final KeyboardLayoutSet layoutSet = createKeyboardLayoutSet(subtype, editorInfo); in doTestMoreKeysOf() 120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestNavigationMoreKeysOf() argument 123 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 127 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 131 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 135 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 139 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 143 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() 147 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf() [all …]
|
D | KeyboardLayoutSetTestsBase.java | 46 public boolean accept(final InputMethodSubtype subtype); in accept() 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) { in getSubtypesFilteredBy() 114 if (filter.accept(subtype)) { in getSubtypesFilteredBy() 115 list.add(subtype); in getSubtypesFilteredBy() 127 for (final InputMethodSubtype subtype : mAllSubtypesList) { in getSubtype() 128 final Locale subtypeLocale = SubtypeLocaleUtils.getSubtypeLocale(subtype); in getSubtype() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 221 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in isAuxiliaryIme() local 222 if (!subtype.isAuxiliary()) { in isAuxiliaryIme() 290 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) { in checkIfSubtypeBelongsToThisImeAndEnabled() argument 291 return checkIfSubtypeBelongsToList(subtype, in checkIfSubtypeBelongsToThisImeAndEnabled() 298 final InputMethodSubtype subtype) { in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() argument 299 final boolean subtypeEnabled = checkIfSubtypeBelongsToThisImeAndEnabled(subtype); in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() 300 final boolean subtypeExplicitlyEnabled = checkIfSubtypeBelongsToList(subtype, in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() 305 private static boolean checkIfSubtypeBelongsToList(final InputMethodSubtype subtype, in checkIfSubtypeBelongsToList() argument 307 return getSubtypeIndexInList(subtype, subtypes) != INDEX_NOT_FOUND; in checkIfSubtypeBelongsToList() 310 private static int getSubtypeIndexInList(final InputMethodSubtype subtype, in getSubtypeIndexInList() argument [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | AdditionalSubtypeUtilsTests.java | 108 private static void assertEnUsDvorak(InputMethodSubtype subtype) { in assertEnUsDvorak() argument 109 assertEquals("en_US", subtype.getLocale()); in assertEnUsDvorak() 111 assertEquals(EXTRA_VALUE_EN_US_DVORAK_KITKAT, subtype.getExtraValue()); in assertEnUsDvorak() 113 assertEquals(EXTRA_VALUE_EN_US_DVORAK_JELLY_BEAN, subtype.getExtraValue()); in assertEnUsDvorak() 115 assertEquals(EXTRA_VALUE_EN_US_DVORAK_ICS, subtype.getExtraValue()); in assertEnUsDvorak() 117 assertTrue(subtype.containsExtraValueKey(ASCII_CAPABLE)); in assertEnUsDvorak() 118 assertTrue(InputMethodSubtypeCompatUtils.isAsciiCapable(subtype)); in assertEnUsDvorak() 123 assertTrue(subtype.containsExtraValueKey(EMOJI_CAPABLE)); in assertEnUsDvorak() 124 assertTrue(subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE)); in assertEnUsDvorak() 125 assertEquals("dvorak", subtype.getExtraValueOf(KEYBOARD_LAYOUT_SET)); in assertEnUsDvorak() [all …]
|
D | SubtypeLocaleUtilsTests.java | 86 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp() local 87 mSubtypesList.add(new RichInputMethodSubtype(subtype)); in setUp() 147 for (final RichInputMethodSubtype subtype : mSubtypesList) { in testAllFullDisplayName() 149 .getSubtypeDisplayNameInSystemLocale(subtype.getRawSubtype()); in testAllFullDisplayName() 150 if (subtype.isNoLanguage()) { in testAllFullDisplayName() 152 .getKeyboardLayoutSetDisplayName(subtype.getRawSubtype()); in testAllFullDisplayName() 156 .getSubtypeLocaleDisplayNameInSystemLocale(subtype.getLocale().toString()); in testAllFullDisplayName() 466 for (final RichInputMethodSubtype subtype : mSubtypesList) { in testIsRtlLanguage() 467 final InputMethodSubtype rawSubtype = subtype.getRawSubtype(); in testIsRtlLanguage() 472 assertTrue(subtypeName, subtype.isRtlSubtype()); in testIsRtlLanguage() [all …]
|
D | LanguageOnSpacebarUtilsTests.java | 76 final InputMethodSubtype subtype = mRichImm.findSubtypeByLocaleAndKeyboardLayoutSet( in findSubtypeOf() local 78 if (subtype == null) { in findSubtypeOf() 82 return new RichInputMethodSubtype(subtype); in findSubtypeOf() 87 for (final RichInputMethodSubtype subtype : subtypes) { in enableSubtypes() 88 enabledSubtypes.add(subtype.getRawSubtype()); in enableSubtypes() 93 private static void assertFormatType(final RichInputMethodSubtype subtype, in assertFormatType() argument 96 LanguageOnSpacebarUtils.onSubtypeChanged(subtype, implicitlyEnabledSubtype, systemLocale); in assertFormatType() 97 assertEquals(subtype.getLocale() + " implicitly=" + implicitlyEnabledSubtype in assertFormatType() 99 LanguageOnSpacebarUtils.getLanguageOnSpacebarFormatType(subtype)); in assertFormatType()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtils.java | 259 private static String getReplacementString(@Nonnull final InputMethodSubtype subtype, in getReplacementString() argument 262 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)) { in getReplacementString() 263 return subtype.getExtraValueOf(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME); in getReplacementString() 265 return getSubtypeLocaleDisplayNameInternal(subtype.getLocale(), displayLocale); in getReplacementString() 270 @Nonnull final InputMethodSubtype subtype) { in getSubtypeDisplayNameInSystemLocale() 272 return getSubtypeDisplayNameInternal(subtype, displayLocale); in getSubtypeDisplayNameInSystemLocale() 276 public static String getSubtypeNameForLogging(@Nullable final InputMethodSubtype subtype) { in getSubtypeNameForLogging() argument 277 if (subtype == null) { in getSubtypeNameForLogging() 280 return getSubtypeLocale(subtype) + "/" + getKeyboardLayoutSetName(subtype); in getSubtypeNameForLogging() 284 private static String getSubtypeDisplayNameInternal(@Nonnull final InputMethodSubtype subtype, in getSubtypeDisplayNameInternal() argument [all …]
|
D | AdditionalSubtypeUtils.java | 49 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { in isAdditionalSubtype() argument 50 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE); in isAdditionalSubtype() 90 public static String getPrefSubtype(final InputMethodSubtype subtype) { in getPrefSubtype() argument 91 final String localeString = subtype.getLocale(); in getPrefSubtype() 92 final String keyboardLayoutSetName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype); in getPrefSubtype() 96 IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue())); in getPrefSubtype() 121 final InputMethodSubtype subtype = createAsciiEmojiCapableAdditionalSubtype( in createAdditionalSubtypesArray() local 123 if (subtype.getNameResId() == SubtypeLocaleUtils.UNKNOWN_KEYBOARD_LAYOUT) { in createAdditionalSubtypesArray() 128 subtypesList.add(subtype); in createAdditionalSubtypesArray() 138 for (final InputMethodSubtype subtype : subtypes) { in createPrefSubtypes() [all …]
|
D | LanguageOnSpacebarUtils.java | 45 @Nonnull final RichInputMethodSubtype subtype) { in getLanguageOnSpacebarFormatType() 46 if (subtype.isNoLanguage()) { in getLanguageOnSpacebarFormatType() 53 final Locale locale = subtype.getLocale(); in getLanguageOnSpacebarFormatType() 58 final String keyboardLayout = subtype.getKeyboardLayoutSetName(); in getLanguageOnSpacebarFormatType() 77 public static void onSubtypeChanged(@Nonnull final RichInputMethodSubtype subtype, in onSubtypeChanged() argument 79 final Locale newLocale = subtype.getLocale(); in onSubtypeChanged()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | CustomInputStylePreference.java | 71 public CustomInputStylePreference(final Context context, final InputMethodSubtype subtype, in CustomInputStylePreference() argument 77 setSubtype(subtype); in CustomInputStylePreference() 92 public void setSubtype(final InputMethodSubtype subtype) { in setSubtype() argument 94 mSubtype = subtype; in setSubtype() 101 SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype); in setSubtype() 104 setKey(KEY_PREFIX + subtype.getLocale() + "_" in setSubtype() 105 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype)); in setSubtype() 179 final InputMethodSubtype subtype = in onClick() local 182 setSubtype(subtype); in onClick() 261 public SubtypeLocaleItem(final InputMethodSubtype subtype) { in SubtypeLocaleItem() argument [all …]
|
D | CustomInputStyleSettingsFragment.java | 87 for (final InputMethodSubtype subtype : subtypes) { in updateCustomInputStylesSummary() 88 subtypeNames.add(SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype)); in updateCustomInputStylesSummary() 171 final InputMethodSubtype subtype = stylePref.getSubtype(); in onSaveCustomInputStyle() local 175 if (findDuplicatedSubtype(subtype) == null) { in onSaveCustomInputStyle() 185 showSubtypeAlreadyExistsToast(subtype); in onSaveCustomInputStyle() 191 final InputMethodSubtype subtype = stylePref.getSubtype(); in onAddCustomInputStyle() local 192 if (findDuplicatedSubtype(subtype) == null) { in onAddCustomInputStyle() 203 showSubtypeAlreadyExistsToast(subtype); in onAddCustomInputStyle() 216 private void showSubtypeAlreadyExistsToast(final InputMethodSubtype subtype) { in showSubtypeAlreadyExistsToast() argument 220 SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype)); in showSubtypeAlreadyExistsToast() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | RichInputMethodSubtypeTests.java | 89 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp() local 90 mSubtypesList.add(new RichInputMethodSubtype(subtype)); in setUp() 163 for (final RichInputMethodSubtype subtype : mSubtypesList) { in testAllFullDisplayNameForSpacebar() 165 .getSubtypeDisplayNameInSystemLocale(subtype.getRawSubtype()); in testAllFullDisplayNameForSpacebar() 166 final String spacebarText = subtype.getFullDisplayName(); in testAllFullDisplayNameForSpacebar() 168 .getSubtypeLocaleDisplayName(subtype.getLocale().toString()); in testAllFullDisplayNameForSpacebar() 169 if (subtype.isNoLanguage()) { in testAllFullDisplayNameForSpacebar() 178 for (final RichInputMethodSubtype subtype : mSubtypesList) { in testAllMiddleDisplayNameForSpacebar() 180 .getSubtypeDisplayNameInSystemLocale(subtype.getRawSubtype()); in testAllMiddleDisplayNameForSpacebar() 181 final Locale locale = subtype.getLocale(); in testAllMiddleDisplayNameForSpacebar() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
D | KlpActionLabelTests.java | 36 void doTestActionKeys(final InputMethodSubtype subtype, final String tag, in doTestActionKeys() argument 42 tag + " unspecified", subtype, EditorInfo.IME_ACTION_UNSPECIFIED, unspecifiedKey); in doTestActionKeys() 43 doTestActionKey(tag + " none", subtype, EditorInfo.IME_ACTION_NONE, noneKey); in doTestActionKeys() 44 doTestActionKey(tag + " go", subtype, EditorInfo.IME_ACTION_GO, goKey); in doTestActionKeys() 45 doTestActionKey(tag + " search", subtype, EditorInfo.IME_ACTION_SEARCH, searchKey); in doTestActionKeys() 46 doTestActionKey(tag + " send", subtype, EditorInfo.IME_ACTION_SEND, sendKey); in doTestActionKeys() 47 doTestActionKey(tag + " next", subtype, EditorInfo.IME_ACTION_NEXT, nextKey); in doTestActionKeys() 48 doTestActionKey(tag + " done", subtype, EditorInfo.IME_ACTION_DONE, doneKey); in doTestActionKeys() 49 doTestActionKey(tag + " previous", subtype, EditorInfo.IME_ACTION_PREVIOUS, previousKey); in doTestActionKeys() 55 private void doTestActionKeysInLocaleWithStringResources(final InputMethodSubtype subtype, in doTestActionKeysInLocaleWithStringResources() argument [all …]
|
D | ActionTestsBase.java | 72 protected static Locale getLabelLocale(final InputMethodSubtype subtype) { in getLabelLocale() argument 73 final String localeString = subtype.getLocale(); in getLabelLocale() 89 protected void doTestActionKey(final String tag, final InputMethodSubtype subtype, in doTestActionKey() argument 93 doTestActionKey(tag, subtype, editorInfo, expectedKey); in doTestActionKey() 96 protected void doTestActionKey(final String tag, final InputMethodSubtype subtype, in doTestActionKey() argument 100 final KeyboardLayoutSet layoutSet = createKeyboardLayoutSet(subtype, editorInfo); in doTestActionKey() 112 final KeyboardLayoutSet passwordSet = createKeyboardLayoutSet(subtype, editorInfo); in doTestActionKey()
|
D | KlpActionDoneTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { in testActionDone() 30 final String tag = "done " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); in testActionDone() 32 R.string.label_done_key, getLabelLocale(subtype), getContext()); in testActionDone() 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_DONE, expectedKey); in testActionDone()
|
D | KlpActionPreviousTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { in testActionPrevious() 30 final String tag = "previous " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); in testActionPrevious() 32 R.string.label_previous_key, getLabelLocale(subtype), getContext()); in testActionPrevious() 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_PREVIOUS, expectedKey); in testActionPrevious()
|
D | KlpActionSendTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { in testActionSend() 30 final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); in testActionSend() 32 R.string.label_send_key, getLabelLocale(subtype), getContext()); in testActionSend() 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey); in testActionSend()
|
D | KlpActionNextTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { in testActionNext() 30 final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); in testActionNext() 32 R.string.label_next_key, getLabelLocale(subtype), getContext()); in testActionNext() 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey); in testActionNext()
|
D | KlpActionGoTests.java | 29 for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) { in testActionGo() 30 final String tag = "go " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype); in testActionGo() 32 R.string.label_go_key, getLabelLocale(subtype), getContext()); in testActionGo() 33 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_GO, expectedKey); in testActionGo()
|
D | KlpActionTestsBase.java | 32 public boolean accept(final InputMethodSubtype subtype) { 34 SubtypeLocaleUtils.getDisplayLocaleOfSubtypeLocale(subtype.getLocale())); 45 public boolean accept(final InputMethodSubtype subtype) { in setUp() 46 return !SUBTYPE_FILTER_NAME_IN_BASE_LOCALE.accept(subtype); in setUp()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | InputMethodSubtypeCompatUtils.java | 75 public static boolean isAsciiCapable(final RichInputMethodSubtype subtype) { in isAsciiCapable() argument 76 return isAsciiCapable(subtype.getRawSubtype()); in isAsciiCapable() 79 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { in isAsciiCapable() argument 80 return isAsciiCapableWithAPI(subtype) in isAsciiCapable() 81 || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE); in isAsciiCapable() 88 public static Locale getLocaleObject(final InputMethodSubtype subtype) { in getLocaleObject() argument 91 final String languageTag = (String) CompatUtils.invoke(subtype, null, GET_LANGUAGE_TAG); in getLocaleObject() 96 return LocaleUtils.constructLocaleFromString(subtype.getLocale()); in getLocaleObject() 100 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { in isAsciiCapableWithAPI() argument 101 return (Boolean)CompatUtils.invoke(subtype, false, METHOD_isAsciiCapable); in isAsciiCapableWithAPI()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | SpellCheckersSettings.java | 142 final SpellCheckerSubtype subtype) { in getSpellCheckerSubtypeLabel() argument 146 if (subtype == null) { in getSpellCheckerSubtypeLabel() 149 return subtype.getDisplayName( in getSpellCheckerSubtypeLabel() 198 final SpellCheckerSubtype subtype = currentSci.getSubtypeAt(index); in showChooseLanguageDialog() local 200 items[itemId] = getSpellCheckerSubtypeLabel(currentSci, subtype); in showChooseLanguageDialog() 201 if (subtype.equals(currentScs)) { in showChooseLanguageDialog() 220 final SpellCheckerSubtype subtype = mTsm.getCurrentSpellCheckerSubtype( in showChooseLanguageDialog() 223 + subtype == null ? "null" : subtype.getLocale()); in showChooseLanguageDialog()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardTextsSetTests.java | 48 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in setUp() local 49 allSubtypesList.add(subtype); in setUp() 60 for (final InputMethodSubtype subtype : mAllSubtypesList) { in testSwitchToAlphaKeyLabel() 61 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); in testSwitchToAlphaKeyLabel() 86 for (final InputMethodSubtype subtype : mAllSubtypesList) { in testTextFromResources() 87 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); in testTextFromResources()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSet.java | 152 @Nonnull final InputMethodSubtype subtype) { in getScriptId() argument 153 final Integer value = sScriptIdsForSubtypes.get(subtype); in getScriptId() 155 final int scriptId = Builder.readScriptId(resources, subtype); in getScriptId() 156 sScriptIdsForSubtypes.put(subtype, scriptId); in getScriptId() 297 public Builder setSubtype(@Nonnull final RichInputMethodSubtype subtype) { in setSubtype() argument 298 final boolean asciiCapable = InputMethodSubtypeCompatUtils.isAsciiCapable(subtype); in setSubtype() 308 : subtype; in setSubtype() 341 static int readScriptId(final Resources resources, final InputMethodSubtype subtype) { in readScriptId() argument 343 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype); in readScriptId()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ContentTypeParser.java | 25 private String subtype; field in ContentTypeParser 30 public String getSubType() { return subtype; } in getSubType() 66 Token subtype; in parse() local 69 subtype = jj_consume_token(ATOKEN); in parse() 71 this.subtype = subtype.image; in parse()
|