/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SubtypeLocale.java | 167 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 …]
|
D | AdditionalSubtypeSettings.java | 99 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 …]
|
D | ImfUtils.java | 72 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 …]
|
D | AdditionalSubtype.java | 37 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 …]
|
D | SubtypeSwitcher.java | 138 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()
|
D | Settings.java | 317 for (final InputMethodSubtype subtype : subtypes) { in updateCustomInputStylesSummary() 319 styles.append(SubtypeLocale.getSubtypeDisplayName(subtype, res)); in updateCustomInputStylesSummary()
|
D | LatinIME.java | 648 public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) { in onCurrentInputMethodSubtypeChanged() argument 651 mSubtypeSwitcher.updateSubtype(subtype); in onCurrentInputMethodSubtypeChanged()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | SpacebarTextTests.java | 48 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/ |
D | InputMethodAndSubtypeUtil.java | 165 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()
|
D | SingleSpellCheckerPreference.java | 142 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()
|
D | InputMethodAndSubtypeEnabler.java | 252 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()
|
D | InputMethodPreference.java | 213 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/ |
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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MainKeyboardView.java | 950 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 …]
|
D | KeyboardId.java | 80 public KeyboardId(int elementId, InputMethodSubtype subtype, int deviceFormFactor, in KeyboardId() argument 83 mSubtype = subtype; in KeyboardId() 84 mLocale = SubtypeLocale.getSubtypeLocale(subtype); in KeyboardId()
|
D | KeyboardLayoutSet.java | 238 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/ |
D | InputMethodManagerCompatWrapper.java | 72 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/ |
D | SubtypeLocaleTests.java | 44 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()
|
D | InputTestsBase.java | 272 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/ |
D | NetworkStateHandler.java | 115 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/ |
D | BodyDescriptor.java | 109 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/ |
D | CryptKeeper.java | 587 for (InputMethodSubtype subtype : subtypes) { in hasMultipleEnabledIMEsOrSubtypes() 588 if (subtype.isAuxiliary()) { in hasMultipleEnabledIMEsOrSubtypes()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | ContactsSyncAdapter.java | 1138 int subtype = cv.getAsInteger(Phone.TYPE); in findUntypedData() local 1139 if (type != subtype) { in findUntypedData()
|