Searched defs:subtype (Results 1 - 25 of 27) sorted by relevance

12

/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/settings/
H A DAdditionalFeaturesSettingUtils.java53 @Nonnull final InputMethodSubtype subtype,
55 return new RichInputMethodSubtype(subtype);
51 createRichInputMethodSubtype( @onnull final RichInputMethodManager imm, @Nonnull final InputMethodSubtype subtype, final Context context) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DLanguageOnSpacebarUtils.java45 @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
H A DAdditionalSubtypeUtils.java49 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { argument
50 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE);
90 public static String getPrefSubtype(final InputMethodSubtype subtype) { argument
91 final String localeString = subtype.getLocale();
92 final String keyboardLayoutSetName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
96 IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue()));
113 Log.w(TAG, "Unknown additional subtype specified: " + prefSubtype + " in "
120 // This is actually what the setting dialog for additional subtype is doing.
121 final InputMethodSubtype subtype = createAsciiEmojiCapableAdditionalSubtype(
123 if (subtype
[all...]
H A DSubtypeLocaleUtils.java40 * A helper class to deal with subtype locales.
60 // Keyboard layout to subtype name resource id map.
65 // Exceptional locale to subtype name resource id map.
67 // Exceptional locale to subtype name with layout resource id map.
81 // This is for compatibility to keep the same subtype ids as pre-JellyBean.
112 // Register subtype name resource id of "No language" with key "zz_<layout>"
211 // No language subtype should be displayed in system locale.
259 private static String getReplacementString(@Nonnull final InputMethodSubtype subtype, argument
262 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)) {
263 return subtype
269 getSubtypeDisplayNameInSystemLocale( @onnull final InputMethodSubtype subtype) argument
276 getSubtypeNameForLogging(@ullable final InputMethodSubtype subtype) argument
284 getSubtypeDisplayNameInternal(@onnull final InputMethodSubtype subtype, @Nonnull final Locale displayLocale) argument
311 getSubtypeLocale(@onnull final InputMethodSubtype subtype) argument
317 getKeyboardLayoutSetDisplayName( @onnull final InputMethodSubtype subtype) argument
329 getKeyboardLayoutSetName(final InputMethodSubtype subtype) argument
348 getCombiningRulesExtraValue(final InputMethodSubtype subtype) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
H A DTestsSplitLayoutQwertyEnglishUS.java40 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
43 return super.createKeyboardLayoutSet(subtype, editorInfo, voiceInputKeyEnabled,
H A DTestsDvorakEmail.java46 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
53 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled,
H A DTestsDvorakUrl.java46 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
53 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled,
H A DTestsQwertyEmail.java44 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
51 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled,
H A DTestsQwertyUrl.java44 protected KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, argument
51 subtype, emailField, voiceInputKeyEnabled, languageSwitchKeyEnabled,
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DAdditionalSubtypeUtilsTests.java40 * 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...]
H A DLanguageOnSpacebarUtilsTests.java76 final InputMethodSubtype subtype = mRichImm.findSubtypeByLocaleAndKeyboardLayoutSet(
78 if (subtype == null) {
79 throw new RuntimeException("Can't find subtype of " + localeString + " with "
82 return new RichInputMethodSubtype(subtype);
87 for (final RichInputMethodSubtype subtype : subtypes) {
88 enabledSubtypes.add(subtype.getRawSubtype());
93 private static void assertFormatType(final RichInputMethodSubtype subtype, argument
96 LanguageOnSpacebarUtils.onSubtypeChanged(subtype, implicitlyEnabledSubtype, systemLocale);
97 assertEquals(subtype.getLocale() + " implicitly=" + implicitlyEnabledSubtype
99 LanguageOnSpacebarUtils.getLanguageOnSpacebarFormatType(subtype));
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodSubtypeCompatUtils.java75 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/action/
H A DActionTestsBase.java72 protected static Locale getLabelLocale(final InputMethodSubtype subtype) { argument
73 final String localeString = subtype.getLocale();
89 protected void doTestActionKey(final String tag, final InputMethodSubtype subtype, argument
93 doTestActionKey(tag, subtype, editorInfo, expectedKey);
96 protected void doTestActionKey(final String tag, final InputMethodSubtype subtype, argument
100 final KeyboardLayoutSet layoutSet = createKeyboardLayoutSet(subtype, editorInfo);
112 final KeyboardLayoutSet passwordSet = createKeyboardLayoutSet(subtype, editorInfo);
H A DKlpActionLabelTests.java36 void doTestActionKeys(final InputMethodSubtype subtype, final String tag, argument
42 tag + " unspecified", subtype, EditorInfo.IME_ACTION_UNSPECIFIED, unspecifiedKey);
43 doTestActionKey(tag + " none", subtype, EditorInfo.IME_ACTION_NONE, noneKey);
44 doTestActionKey(tag + " go", subtype, EditorInfo.IME_ACTION_GO, goKey);
45 doTestActionKey(tag + " search", subtype, EditorInfo.IME_ACTION_SEARCH, searchKey);
46 doTestActionKey(tag + " send", subtype, EditorInfo.IME_ACTION_SEND, sendKey);
47 doTestActionKey(tag + " next", subtype, EditorInfo.IME_ACTION_NEXT, nextKey);
48 doTestActionKey(tag + " done", subtype, EditorInfo.IME_ACTION_DONE, doneKey);
49 doTestActionKey(tag + " previous", subtype, EditorInfo.IME_ACTION_PREVIOUS, previousKey);
55 private void doTestActionKeysInLocaleWithStringResources(final InputMethodSubtype subtype, argument
111 doTestActionKeysInLocaleWithKeyboardTextsSet(final InputMethodSubtype subtype, final Locale labelLocale, final Locale systemLocale) argument
[all...]
/packages/services/Car/car-lib/src/android/car/vms/
H A DVmsLayer.java42 public VmsLayer(int type, int subtype, int version) { argument
44 mSubtype = subtype;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputMethodSubtype.java40 * Right now, this returns the extra value of its primary subtype.
64 public RichInputMethodSubtype(@Nonnull final InputMethodSubtype subtype) { argument
65 mSubtype = subtype;
71 // Extra values are determined by the primary subtype. This is probably right, but
77 // The mode is also determined by the primary subtype.
141 return "Multi-lingual subtype: " + mSubtype + ", " + mLocale;
155 // The subtype is considered RTL if the language of the main subtype is RTL.
169 @Nullable final InputMethodSubtype subtype) {
170 if (subtype
168 getRichInputMethodSubtype( @ullable final InputMethodSubtype subtype) argument
[all...]
H A DRichInputMethodManager.java109 // Initialize the current input method subtype and the shortcut IME.
151 Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype="
157 // The current subtype is the last or only enabled one and it needs to switch to
179 // The next IME has no subtype.
221 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
222 if (!subtype.isAuxiliary()) {
290 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) { argument
291 return checkIfSubtypeBelongsToList(subtype,
298 final InputMethodSubtype subtype) {
297 checkIfSubtypeBelongsToThisImeAndImplicitlyEnabled( final InputMethodSubtype subtype) argument
305 checkIfSubtypeBelongsToList(final InputMethodSubtype subtype, final List<InputMethodSubtype> subtypes) argument
310 getSubtypeIndexInList(final InputMethodSubtype subtype, final List<InputMethodSubtype> subtypes) argument
333 forceSubtype(@onnull final InputMethodSubtype subtype) argument
472 setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) argument
533 updateCurrentSubtype(@ullable final InputMethodSubtype subtype) argument
587 switchToTargetIME(final String imiId, final InputMethodSubtype subtype, final InputMethodService context) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
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.java46 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/apps/Settings/src/com/android/settings/inputmethod/
H A DSpellCheckersSettings.java145 final SpellCheckerSubtype subtype) {
149 if (subtype == null) {
152 return subtype.getDisplayName(
206 final SpellCheckerSubtype subtype = currentSci.getSubtypeAt(index);
208 items[itemId] = getSpellCheckerSubtypeLabel(currentSci, subtype);
209 if (subtype.equals(currentScs)) {
228 final SpellCheckerSubtype subtype = mTsm.getCurrentSpellCheckerSubtype(
231 + subtype == null ? "null" : subtype.getLocale());
268 // Reset the spell checker subtype
144 getSpellCheckerSubtypeLabel(final SpellCheckerInfo sci, final SpellCheckerSubtype subtype) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java25 private String subtype; field in class:ContentTypeParser
30 public String getSubType() { return subtype; }
66 Token subtype;
69 subtype = jj_consume_token(ATOKEN);
71 this.subtype = subtype.image;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DCustomInputStylePreference.java71 public CustomInputStylePreference(final Context context, final InputMethodSubtype subtype, argument
77 setSubtype(subtype);
92 public void setSubtype(final InputMethodSubtype subtype) { argument
94 mSubtype = subtype;
101 SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype);
104 setKey(KEY_PREFIX + subtype.getLocale() + "_"
105 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype));
179 final InputMethodSubtype subtype =
182 setSubtype(subtype);
261 public SubtypeLocaleItem(final InputMethodSubtype subtype) { argument
311 KeyboardLayoutSetItem(final InputMethodSubtype subtype) argument
[all...]
H A DCustomInputStyleSettingsFragment.java87 for (final InputMethodSubtype subtype : subtypes) {
88 subtypeNames.add(SubtypeLocaleUtils.getSubtypeDisplayNameInSystemLocale(subtype));
171 final InputMethodSubtype subtype = stylePref.getSubtype();
175 if (findDuplicatedSubtype(subtype) == null) {
180 // Saved subtype is duplicated.
185 showSubtypeAlreadyExistsToast(subtype);
191 final InputMethodSubtype subtype = stylePref.getSubtype();
192 if (findDuplicatedSubtype(subtype) == null) {
200 // Newly added subtype is duplicated.
203 showSubtypeAlreadyExistsToast(subtype);
216 showSubtypeAlreadyExistsToast(final InputMethodSubtype subtype) argument
224 findDuplicatedSubtype(final InputMethodSubtype subtype) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
H A DAndroidSpellCheckerService.java227 final InputMethodSubtype subtype = AdditionalSubtypeUtils.createDummyAdditionalSubtype(
229 final KeyboardLayoutSet keyboardLayoutSet = createKeyboardSetForSpellChecker(subtype);
233 private KeyboardLayoutSet createKeyboardSetForSpellChecker(final InputMethodSubtype subtype) { argument
239 builder.setSubtype(RichInputMethodSubtype.getRichInputMethodSubtype(subtype));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardLayoutSet.java152 @Nonnull final InputMethodSubtype subtype) {
153 final Integer value = sScriptIdsForSubtypes.get(subtype);
155 final int scriptId = Builder.readScriptId(resources, subtype);
156 sScriptIdsForSubtypes.put(subtype, scriptId);
297 public Builder setSubtype(@Nonnull final RichInputMethodSubtype subtype) { argument
298 final boolean asciiCapable = InputMethodSubtypeCompatUtils.isAsciiCapable(subtype);
308 : subtype;
340 // Super redux version of reading the script ID for some subtype from Xml.
341 static int readScriptId(final Resources resources, final InputMethodSubtype subtype) { argument
343 + SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
151 getScriptId(final Resources resources, @Nonnull final InputMethodSubtype subtype) argument
[all...]

Completed in 447 milliseconds

12