Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSubtypeLocale.java167 public static String getSubtypeDisplayName(final InputMethodSubtype subtype, Resources res) { in getSubtypeDisplayName() argument
169 && subtype.containsExtraValueKey(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME)) in getSubtypeDisplayName()
170 ? subtype.getExtraValueOf(UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME) in getSubtypeDisplayName()
171 : getSubtypeLocaleDisplayName(subtype.getLocale()); in getSubtypeDisplayName()
172 final int nameResId = subtype.getNameResId(); in getSubtypeDisplayName()
181 Log.w(TAG, "Unknown subtype: mode=" + subtype.getMode() in getSubtypeDisplayName()
182 + " locale=" + subtype.getLocale() in getSubtypeDisplayName()
183 + " extra=" + subtype.getExtraValue() in getSubtypeDisplayName()
189 final Locale locale = isNoLanguage(subtype) in getSubtypeDisplayName()
190 ? res.getConfiguration().locale : getSubtypeLocale(subtype); in getSubtypeDisplayName()
[all …]
DAdditionalSubtypeSettings.java99 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in SubtypeLocaleAdapter() local
102 subtype.getLocale(), subtype.hashCode(), subtype.hashCode(), in SubtypeLocaleAdapter()
103 SubtypeLocale.getSubtypeDisplayName(subtype, context.getResources()))); in SubtypeLocaleAdapter()
105 if (subtype.containsExtraValueKey(ASCII_CAPABLE)) { in SubtypeLocaleAdapter()
106 items.add(createItem(context, subtype.getLocale())); in SubtypeLocaleAdapter()
125 public KeyboardLayoutSetItem(final InputMethodSubtype subtype) { in KeyboardLayoutSetItem() argument
126 super(SubtypeLocale.getKeyboardLayoutSetName(subtype), in KeyboardLayoutSetItem()
127 SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype)); in KeyboardLayoutSetItem()
144 final InputMethodSubtype subtype = AdditionalSubtype.createAdditionalSubtype( in KeyboardLayoutSetAdapter() local
146 add(new KeyboardLayoutSetItem(subtype)); in KeyboardLayoutSetAdapter()
[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()
133 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
134 if (subtype.isAuxiliary()) { in hasMultipleEnabledSubtypes()
157 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledSubtypes()
158 if (KEYBOARD_MODE.equals(subtype.getMode())) { in hasMultipleEnabledSubtypes()
170 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in findSubtypeByLocaleAndKeyboardLayoutSet() local
171 final String layoutName = SubtypeLocale.getKeyboardLayoutSetName(subtype); in findSubtypeByLocaleAndKeyboardLayoutSet()
[all …]
DAdditionalSubtype.java37 public static boolean isAdditionalSubtype(final InputMethodSubtype subtype) { in isAdditionalSubtype() argument
38 return subtype.containsExtraValueKey(IS_ADDITIONAL_SUBTYPE); in isAdditionalSubtype()
65 public static String getPrefSubtype(final 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()
112 for (final InputMethodSubtype subtype : subtypes) { in createPrefSubtypes()
[all …]
DSubtypeSwitcher.java138 private boolean updateEnabledSubtypesAndReturnIfEnabled(final InputMethodSubtype subtype) { in updateEnabledSubtypesAndReturnIfEnabled() argument
144 if (ims.equals(subtype)) { in updateEnabledSubtypesAndReturnIfEnabled()
149 Log.w(TAG, "Subtype: " + subtype.getLocale() + "/" + subtype.getExtraValue() in updateEnabledSubtypesAndReturnIfEnabled()
218 private void switchToTargetIME(final String imiId, final InputMethodSubtype subtype, in switchToTargetIME() argument
228 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.java648 public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) { in onCurrentInputMethodSubtypeChanged() argument
651 mSubtypeSwitcher.updateSubtype(subtype); in onCurrentInputMethodSubtypeChanged()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DSpacebarTextTests.java48 for (final InputMethodSubtype subtype : mSubtypesList) { in testAllFullDisplayName()
49 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype, mRes); in testAllFullDisplayName()
50 final String spacebarText = MainKeyboardView.getFullDisplayName(subtype, mRes); in testAllFullDisplayName()
52 SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in testAllFullDisplayName()
53 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllFullDisplayName()
62 for (final InputMethodSubtype subtype : mSubtypesList) { in testAllMiddleDisplayName()
63 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype, mRes); in testAllMiddleDisplayName()
64 final String spacebarText = MainKeyboardView.getMiddleDisplayName(subtype); in testAllMiddleDisplayName()
65 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllMiddleDisplayName()
67 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/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/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java950 private String layoutLanguageOnSpacebar(final Paint paint, final InputMethodSubtype subtype, in layoutLanguageOnSpacebar() argument
953 String text = getFullDisplayName(subtype, getResources()); in layoutLanguageOnSpacebar()
958 text = getMiddleDisplayName(subtype); in layoutLanguageOnSpacebar()
963 text = getShortDisplayName(subtype); in layoutLanguageOnSpacebar()
980 final InputMethodSubtype subtype = getKeyboard().mId.mSubtype; in drawSpacebar() local
981 final String language = layoutLanguageOnSpacebar(paint, subtype, width); in drawSpacebar()
1026 static String getFullDisplayName(final InputMethodSubtype subtype, final Resources res) { in getFullDisplayName() argument
1027 if (SubtypeLocale.isNoLanguage(subtype)) { in getFullDisplayName()
1028 return SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype); in getFullDisplayName()
1031 return SubtypeLocale.getSubtypeDisplayName(subtype, res); in getFullDisplayName()
[all …]
DKeyboardId.java80 public KeyboardId(int elementId, InputMethodSubtype subtype, int deviceFormFactor, in KeyboardId() argument
83 mSubtype = subtype; in KeyboardId()
84 mLocale = SubtypeLocale.getSubtypeLocale(subtype); in KeyboardId()
DKeyboardLayoutSet.java238 public Builder setSubtype(final InputMethodSubtype subtype) { in setSubtype() argument
239 final boolean asciiCapable = subtype.containsExtraValueKey(ASCII_CAPABLE); in setSubtype()
248 : subtype; in setSubtype()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DInputMethodManagerCompatWrapper.java72 public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) { in setInputMethodAndSubtype() argument
73 mImm.setInputMethodAndSubtype(token, id, subtype); in setInputMethodAndSubtype()
/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.java272 final InputMethodSubtype subtype = mSubtypeMap.get(locale); in changeLanguage() local
274 if (subtype == null) { in changeLanguage()
277 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.java587 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledIMEsOrSubtypes()
588 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()