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

/packages/apps/Browser/src/com/android/browser/
H A DNetworkStateHandler.java115 private void sendNetworkType(String type, String subtype) { argument
118 WebViewClassic.fromWebView(w).setNetworkType(type, subtype);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAdditionalSubtype.java37 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { argument
38 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE);
65 public static String getPrefSubtype(final InputMethodSubtype subtype) { argument
66 final String localeString = subtype.getLocale();
67 final String keyboardLayoutSetName = SubtypeLocale.getKeyboardLayoutSetName(subtype);
70 StringUtils.removeFromCsvIfExists(IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue()));
80 throw new RuntimeException("Unknown additional subtype specified: " + prefSubtype);
96 final InputMethodSubtype subtype = createAdditionalSubtype(prefSubtype);
97 if (subtype.getNameResId() == SubtypeLocale.UNKNOWN_KEYBOARD_LAYOUT) {
98 // Skip unknown keyboard layout subtype
[all...]
H A DSubtypeLocale.java49 // Keyboard layout to subtype name resource id map.
52 // Exceptional locale to subtype name resource id map.
65 // This is for compatibility to keep the same subtype ids as pre-JellyBean.
89 // Register subtype name resource id of "No language" with key "zz_<layout>"
167 public static String getSubtypeDisplayName(final InputMethodSubtype subtype, Resources res) { argument
169 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME))
170 ? subtype.getExtraValueOf(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)
171 : getSubtypeLocaleDisplayName(subtype.getLocale());
172 final int nameResId = subtype.getNameResId();
181 Log.w(TAG, "Unknown subtype
194 isNoLanguage(InputMethodSubtype subtype) argument
199 getSubtypeLocale(InputMethodSubtype subtype) argument
204 getKeyboardLayoutSetDisplayName(InputMethodSubtype subtype) argument
213 getKeyboardLayoutSetName(InputMethodSubtype subtype) argument
[all...]
H A DSubtypeSwitcher.java104 throw new RuntimeException("Can't find no lanugage with QWERTY subtype");
123 * @return true if the current subtype is enabled.
135 * @param subtype the subtype to be checked
136 * @return true if the {@code subtype} is enabled.
138 private boolean updateEnabledSubtypesAndReturnIfEnabled(final InputMethodSubtype subtype) { argument
144 if (ims.equals(subtype)) {
149 Log.w(TAG, "Subtype: " + subtype.getLocale() + "/" + subtype.getExtraValue()
173 // TODO: Pick up the first found subtype fo
218 switchToTargetIME(final String imiId, final InputMethodSubtype subtype, final InputMethodService context) argument
[all...]
H A DAdditionalSubtypeSettings.java99 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
102 subtype.getLocale(), subtype.hashCode(), subtype.hashCode(),
103 SubtypeLocale.getSubtypeDisplayName(subtype, context.getResources())));
105 if (subtype.containsExtraValueKey(ASCII_CAPABLE)) {
106 items.add(createItem(context, subtype.getLocale()));
125 public KeyboardLayoutSetItem(final InputMethodSubtype subtype) { argument
126 super(SubtypeLocale.getKeyboardLayoutSetName(subtype),
127 SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype));
176 SubtypePreference(final Context context, final InputMethodSubtype subtype, final SubtypeDialogProxy proxy) argument
197 setSubtype(final InputMethodSubtype subtype) argument
493 showSubtypeAlreadyExistsToast(final InputMethodSubtype subtype) argument
501 findDuplicatedSubtype(final InputMethodSubtype subtype) argument
[all...]
H A DLatinIME.java648 public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) { argument
651 mSubtypeSwitcher.updateSubtype(subtype);
722 // Current subtype is disabled. Needs to update subtype and keyboard.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodManagerCompatWrapper.java72 public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) { argument
73 mImm.setInputMethodAndSubtype(token, id, subtype);
/packages/apps/Email/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/keyboard/
H A DKeyboardId.java80 public KeyboardId(int elementId, InputMethodSubtype subtype, int deviceFormFactor, argument
83 mSubtype = subtype;
84 mLocale = SubtypeLocale.getSubtypeLocale(subtype);
H A DKeyboardLayoutSet.java238 public Builder setSubtype(final InputMethodSubtype subtype) { argument
239 final boolean asciiCapable = subtype.containsExtraValueKey(ASCII_CAPABLE);
248 : subtype;
278 throw new RuntimeException("KeyboardLayoutSet subtype is not specified");
H A DMainKeyboardView.java950 private String layoutLanguageOnSpacebar(final Paint paint, final InputMethodSubtype subtype, argument
953 String text = getFullDisplayName(subtype, getResources());
958 text = getMiddleDisplayName(subtype);
963 text = getShortDisplayName(subtype);
980 final InputMethodSubtype subtype = getKeyboard().mId.mSubtype;
981 final String language = layoutLanguageOnSpacebar(paint, subtype, width);
1026 static String getFullDisplayName(final InputMethodSubtype subtype, final Resources res) { argument
1027 if (SubtypeLocale.isNoLanguage(subtype)) {
1028 return SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype);
1031 return SubtypeLocale.getSubtypeDisplayName(subtype, re
1035 getShortDisplayName(final InputMethodSubtype subtype) argument
1044 getMiddleDisplayName(final InputMethodSubtype subtype) argument
[all...]

Completed in 3051 milliseconds