Home
last modified time | relevance | path

Searched refs:subtype (Results 1 – 22 of 22) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSubtypeLocale.java161 public static String getSubtypeDisplayName(final InputMethodSubtype subtype, Resources res) { in getSubtypeDisplayName() argument
163 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)) in getSubtypeDisplayName()
164 ? subtype.getExtraValueOf(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME) in getSubtypeDisplayName()
165 : getSubtypeLocaleDisplayName(subtype.getLocale()); in getSubtypeDisplayName()
166 final int nameResId = subtype.getNameResId(); in getSubtypeDisplayName()
175 Log.w(TAG, "Unknown subtype: mode=" + subtype.getMode() in getSubtypeDisplayName()
176 + " locale=" + subtype.getLocale() in getSubtypeDisplayName()
177 + " extra=" + subtype.getExtraValue() in getSubtypeDisplayName()
183 final Locale locale = isNoLanguage(subtype) in getSubtypeDisplayName()
184 ? res.getConfiguration().locale : getSubtypeLocale(subtype); in getSubtypeDisplayName()
[all …]
DAdditionalSubtypeSettings.java96 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in SubtypeLocaleAdapter() local
97 if (subtype.containsExtraValueKey(ASCII_CAPABLE)) { in SubtypeLocaleAdapter()
98 items.add(createItem(context, subtype.getLocale())); in SubtypeLocaleAdapter()
116 public KeyboardLayoutSetItem(InputMethodSubtype subtype) { in KeyboardLayoutSetItem() argument
117 super(SubtypeLocale.getKeyboardLayoutSetName(subtype), in KeyboardLayoutSetItem()
118 SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype)); in KeyboardLayoutSetItem()
135 final InputMethodSubtype subtype = AdditionalSubtype.createAdditionalSubtype( in KeyboardLayoutSetAdapter() local
137 add(new KeyboardLayoutSetItem(subtype)); in KeyboardLayoutSetAdapter()
167 public SubtypePreference(Context context, InputMethodSubtype subtype, in SubtypePreference() argument
173 setSubtype(subtype); in SubtypePreference()
[all …]
DImfUtils.java72 for (final InputMethodSubtype subtype : subtypes) { in checkIfSubtypeBelongsToThisImeAndEnabled()
73 if (subtype.equals(ims)) { in checkIfSubtypeBelongsToThisImeAndEnabled()
85 final InputMethodSubtype subtype = myImi.getSubtypeAt(i); in checkIfSubtypeBelongsToThisIme() local
86 if (subtype.equals(ims)) { in checkIfSubtypeBelongsToThisIme()
126 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
127 if (subtype.isAuxiliary()) { in hasMultipleEnabledSubtypes()
150 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
151 if (KEYBOARD_MODE.equals(subtype.getMode())) { in hasMultipleEnabledSubtypes()
163 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in findSubtypeByLocaleAndKeyboardLayoutSet() local
164 final String layoutName = SubtypeLocale.getKeyboardLayoutSetName(subtype); in findSubtypeByLocaleAndKeyboardLayoutSet()
[all …]
DAdditionalSubtype.java37 public static boolean isAdditionalSubtype(InputMethodSubtype subtype) { in isAdditionalSubtype() argument
38 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE); in isAdditionalSubtype()
65 public static String getPrefSubtype(InputMethodSubtype subtype) { in getPrefSubtype() argument
66 final String localeString = subtype.getLocale(); in getPrefSubtype()
67 final String keyboardLayoutSetName = SubtypeLocale.getKeyboardLayoutSetName(subtype); in getPrefSubtype()
70 StringUtils.removeFromCsvIfExists(IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue())); in getPrefSubtype()
96 final InputMethodSubtype subtype = createAdditionalSubtype(prefSubtype); in createAdditionalSubtypesArray() local
97 if (subtype.getNameResId() == SubtypeLocale.UNKNOWN_KEYBOARD_LAYOUT) { in createAdditionalSubtypesArray()
102 subtypesList.add(subtype); in createAdditionalSubtypesArray()
DSubtypeSwitcher.java213 private void switchToTargetIME(final String imiId, final InputMethodSubtype subtype) { in switchToTargetIME() argument
222 imm.setInputMethodAndSubtype(token, imiId, subtype); in switchToTargetIME()
DSettings.java317 for (final InputMethodSubtype subtype : subtypes) { in updateCustomInputStylesSummary()
319 styles.append(SubtypeLocale.getSubtypeDisplayName(subtype, res)); in updateCustomInputStylesSummary()
DLatinIME.java628 public void onCurrentInputMethodSubtypeChanged(InputMethodSubtype subtype) { in onCurrentInputMethodSubtypeChanged() argument
631 mSubtypeSwitcher.updateSubtype(subtype); in onCurrentInputMethodSubtypeChanged()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DSpacebarTextTests.java47 for (final InputMethodSubtype subtype : mSubtypesList) { in testAllFullDisplayName()
48 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype, mRes); in testAllFullDisplayName()
49 final String spacebarText = LatinKeyboardView.getFullDisplayName(subtype, mRes); in testAllFullDisplayName()
51 SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in testAllFullDisplayName()
52 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllFullDisplayName()
61 for (final InputMethodSubtype subtype : mSubtypesList) { in testAllMiddleDisplayName()
62 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype, mRes); in testAllMiddleDisplayName()
63 final String spacebarText = LatinKeyboardView.getMiddleDisplayName(subtype); in testAllMiddleDisplayName()
64 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllMiddleDisplayName()
66 SubtypeLocale.getKeyboardLayoutSetName(subtype), spacebarText); in testAllMiddleDisplayName()
[all …]
/packages/apps/Settings/src/com/android/settings/inputmethod/
DInputMethodAndSubtypeUtil.java165 final InputMethodSubtype subtype = imm.getCurrentInputMethodSubtype(); in getCurrentInputMethodName() local
167 final CharSequence summary = subtype != null in getCurrentInputMethodName()
168 ? TextUtils.concat(subtype.getDisplayName(context, in getCurrentInputMethodName()
213 InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList() local
214 final String subtypeHashCodeStr = String.valueOf(subtype.hashCode()); in saveInputMethodSubtypeList()
230 if (selectedInputMethodSubtype == subtype.hashCode()) { in saveInputMethodSubtypeList()
335 InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled() local
337 id + subtype.hashCode()); in setSubtypesPreferenceEnabled()
356 InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked() local
357 String hashCode = String.valueOf(subtype.hashCode()); in updateSubtypesPreferenceChecked()
DSingleSpellCheckerPreference.java142 final SpellCheckerSubtype subtype = mSpellCheckerInfo.getSubtypeAt(i); in onSubtypeButtonClicked() local
143 final CharSequence label = subtype.getDisplayName( in onSubtypeButtonClicked()
169 final SpellCheckerSubtype subtype = mTsm.getCurrentSpellCheckerSubtype(true); in onSubtypeButtonClicked()
171 + subtype == null ? "null" : subtype.getLocale()); in onSubtypeButtonClicked()
DInputMethodAndSubtypeEnabler.java252 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in createPreferenceHierarchy() local
253 final CharSequence subtypeLabel = subtype.getDisplayName(context, in createPreferenceHierarchy()
255 if (subtype.overridesImplicitlyEnabledSubtype()) { in createPreferenceHierarchy()
262 context, subtype.getLocale(), mSystemLocale); in createPreferenceHierarchy()
263 chkbxPref.setKey(imiId + subtype.hashCode()); in createPreferenceHierarchy()
350 for (InputMethodSubtype subtype: implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypes()
351 String implicitlyEnabledSubtypePrefKey = imiId + subtype.hashCode(); in updateImplicitlyEnabledSubtypes()
DInputMethodPreference.java213 for (InputMethodSubtype subtype : subtypes) { in getSummaryString()
217 final CharSequence subtypeLabel = subtype.getDisplayName(mFragment.getActivity(), in getSummaryString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DLatinKeyboardView.java916 private String layoutLanguageOnSpacebar(Paint paint, InputMethodSubtype subtype, in layoutLanguageOnSpacebar() argument
919 String text = getFullDisplayName(subtype, getResources()); in layoutLanguageOnSpacebar()
924 text = getMiddleDisplayName(subtype); in layoutLanguageOnSpacebar()
929 text = getShortDisplayName(subtype); in layoutLanguageOnSpacebar()
946 final InputMethodSubtype subtype = getKeyboard().mId.mSubtype; in drawSpacebar() local
947 final String language = layoutLanguageOnSpacebar(paint, subtype, width); in drawSpacebar()
992 static String getFullDisplayName(InputMethodSubtype subtype, Resources res) { in getFullDisplayName() argument
993 if (SubtypeLocale.isNoLanguage(subtype)) { in getFullDisplayName()
994 return SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype); in getFullDisplayName()
997 return SubtypeLocale.getSubtypeDisplayName(subtype, res); in getFullDisplayName()
[all …]
DKeyboardId.java75 public KeyboardId(int elementId, InputMethodSubtype subtype, int orientation, int width, in KeyboardId() argument
78 mSubtype = subtype; in KeyboardId()
79 mLocale = SubtypeLocale.getSubtypeLocale(subtype); in KeyboardId()
DKeyboardLayoutSet.java247 public Builder setSubtype(InputMethodSubtype subtype) { in setSubtype() argument
248 final boolean asciiCapable = subtype.containsExtraValueKey(ASCII_CAPABLE); in setSubtype()
257 : subtype; in setSubtype()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java25 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DSubtypeLocaleTests.java44 for (final InputMethodSubtype subtype : mSubtypesList) { in testAllFullDisplayName()
45 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype, mRes); in testAllFullDisplayName()
46 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllFullDisplayName()
51 SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in testAllFullDisplayName()
DInputTestsBase.java254 final InputMethodSubtype subtype = mSubtypeMap.get(locale); in changeLanguage() local
255 if (subtype == null) { in changeLanguage()
258 SubtypeSwitcher.getInstance().updateSubtype(subtype); in changeLanguage()
/packages/apps/Browser/src/com/android/browser/
DNetworkStateHandler.java115 private void sendNetworkType(String type, String subtype) { in sendNetworkType() argument
118 WebViewClassic.fromWebView(w).setNetworkType(type, subtype); in sendNetworkType()
/packages/apps/Email/src/org/apache/james/mime4j/
DBodyDescriptor.java109 String subtype = main.substring(index + 1).trim(); in addField() local
110 if (type.length() > 0 && subtype.length() > 0) { in addField()
111 main = type + "/" + subtype; in addField()
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java567 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledIMEsOrSubtypes()
568 if (subtype.isAuxiliary()) { in hasMultipleEnabledIMEsOrSubtypes()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DContactsSyncAdapter.java1138 int subtype = cv.getAsInteger(Phone.TYPE); in findUntypedData() local
1139 if (type != subtype) { in findUntypedData()