/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/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/ |
D | RichInputMethodManager.java | 220 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in isAuxiliaryIme() local 221 if (!subtype.isAuxiliary()) { in isAuxiliaryIme() 289 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) { in checkIfSubtypeBelongsToThisImeAndEnabled() argument 290 return checkIfSubtypeBelongsToList(subtype, in checkIfSubtypeBelongsToThisImeAndEnabled() 297 final InputMethodSubtype subtype) { in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() argument 298 final boolean subtypeEnabled = checkIfSubtypeBelongsToThisImeAndEnabled(subtype); in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() 299 final boolean subtypeExplicitlyEnabled = checkIfSubtypeBelongsToList(subtype, in checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled() 304 private static boolean checkIfSubtypeBelongsToList(final InputMethodSubtype subtype, in checkIfSubtypeBelongsToList() argument 306 return getSubtypeIndexInList(subtype, subtypes) != INDEX_NOT_FOUND; in checkIfSubtypeBelongsToList() 309 private static int getSubtypeIndexInList(final InputMethodSubtype subtype, in getSubtypeIndexInList() argument [all …]
|
D | RichInputMethodSubtype.java | 48 public RichInputMethodSubtype(@Nonnull final InputMethodSubtype subtype) { in RichInputMethodSubtype() argument 49 mSubtype = subtype; in RichInputMethodSubtype() 146 @Nullable final InputMethodSubtype subtype) { in getRichInputMethodSubtype() 147 if (subtype == null) { in getRichInputMethodSubtype() 150 return new RichInputMethodSubtype(subtype); in getRichInputMethodSubtype()
|
/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 | 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()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | SpellCheckersSettings.java | 132 final SpellCheckerSubtype subtype) { in getSpellCheckerSubtypeLabel() argument 136 if (subtype == null) { in getSpellCheckerSubtypeLabel() 139 return subtype.getDisplayName( in getSpellCheckerSubtypeLabel() 181 final SpellCheckerSubtype subtype = currentSci.getSubtypeAt(index); in showChooseLanguageDialog() local 183 items[itemId] = getSpellCheckerSubtypeLabel(currentSci, subtype); in showChooseLanguageDialog() 184 if (subtype.equals(currentScs)) { in showChooseLanguageDialog() 198 final SpellCheckerSubtype subtype = mTsm.getCurrentSpellCheckerSubtype( in showChooseLanguageDialog() 201 + subtype == null ? "null" : subtype.getLocale()); in showChooseLanguageDialog()
|
D | InputMethodAndSubtypeUtil.java | 196 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local 197 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeList() 215 if (selectedInputMethodSubtype == subtype.hashCode()) { in saveInputMethodSubtypeList() 319 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled() local 321 .findPreference(id + subtype.hashCode()); in setSubtypesPreferenceEnabled() 343 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked() local 344 final String hashCode = String.valueOf(subtype.hashCode()); in updateSubtypesPreferenceChecked()
|
D | InputMethodAndSubtypeEnabler.java | 188 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences() local 189 if (subtype.overridesImplicitlyEnabledSubtype()) { in addInputMethodSubtypePreferences() 191 autoSubtypeLabel = subtype.getDisplayName( in addInputMethodSubtypePreferences() 196 context, subtype, imi); in addInputMethodSubtypePreferences() 292 for (final InputMethodSubtype subtype : implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypesOf() 293 final String implicitlyEnabledSubtypePrefKey = imiId + subtype.hashCode(); in updateImplicitlyEnabledSubtypesOf()
|
D | InputMethodSettingValuesWrapper.java | 102 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateAsciiCapableEnabledImis() local 103 if (InputMethodUtils.SUBTYPE_MODE_KEYBOARD.equalsIgnoreCase(subtype.getMode()) in updateAsciiCapableEnabledImis() 104 && subtype.isAsciiCapable()) { in updateAsciiCapableEnabledImis() 126 final InputMethodSubtype subtype = mImm.getCurrentInputMethodSubtype(); in getCurrentInputMethodName() local 127 return InputMethodUtils.getImeAndSubtypeDisplayName(context, imi, subtype); in getCurrentInputMethodName()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | InputMethodSubtypeCompatUtils.java | 72 public static boolean isAsciiCapable(final RichInputMethodSubtype subtype) { in isAsciiCapable() argument 73 return isAsciiCapable(subtype.getRawSubtype()); in isAsciiCapable() 76 public static boolean isAsciiCapable(final InputMethodSubtype subtype) { in isAsciiCapable() argument 77 return isAsciiCapableWithAPI(subtype) in isAsciiCapable() 78 || subtype.containsExtraValueKey(Constants.Subtype.ExtraValue.ASCII_CAPABLE); in isAsciiCapable() 82 public static boolean isAsciiCapableWithAPI(final InputMethodSubtype subtype) { in isAsciiCapableWithAPI() argument 83 return (Boolean)CompatUtils.invoke(subtype, false, METHOD_isAsciiCapable); in isAsciiCapableWithAPI()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSet.java | 151 @Nonnull final InputMethodSubtype subtype) { in getScriptId() argument 152 final Integer value = sScriptIdsForSubtypes.get(subtype); in getScriptId() 154 final int scriptId = Builder.readScriptId(resources, subtype); in getScriptId() 155 sScriptIdsForSubtypes.put(subtype, scriptId); in getScriptId() 286 public Builder setSubtype(@Nonnull final RichInputMethodSubtype subtype) { in setSubtype() argument 287 final boolean asciiCapable = InputMethodSubtypeCompatUtils.isAsciiCapable(subtype); in setSubtype() 297 : subtype; in setSubtype() 330 static int readScriptId(final Resources resources, final InputMethodSubtype subtype) { in readScriptId() argument 332 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype); in readScriptId()
|
/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/services/Telephony/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()
|
/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()
|