Lines Matching refs:subtypes

975      * @param imiId if null, returns enabled subtypes for the current imi
976 * @return enabled subtypes of the specified imi
1462 final List<InputMethodSubtype> subtypes =
1464 final int subtypeCount = subtypes.size();
1469 final InputMethodSubtype subtype = subtypes.get(j);
2188 // TODO: Handle the case of the last IME with no subtypes
2208 public void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes) {
2213 // additional input method subtypes to the IME.
2214 if (TextUtils.isEmpty(imiId) || subtypes == null || subtypes.length == 0) return;
2229 mFileManager.addInputMethodSubtypes(imi, subtypes);
3022 // 4. Search by the current subtype's locale from all subtypes.
3027 // 5. Search by the system locale from all subtypes.
3028 // 6. Search the first enabled subtype matched with mode from all subtypes.
3096 // If there are no selected subtypes, the framework will try to find
3098 // subtypes.
3127 ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>();
3128 subtypes.add(subtype);
3129 mShortcutInputMethodsAndSubtypes.put(imi, subtypes);
3140 // If there are no selected shortcut subtypes, the framework will try to find
3141 // the most applicable subtype from all subtypes whose mode is
3267 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId());
3272 // We show all enabled IMEs and subtypes when an IME is shown.
3302 private static final String ADDITIONAL_SUBTYPES_FILE_NAME = "subtypes.xml";
3303 private static final String NODE_SUBTYPES = "subtypes";
3332 // If "subtypes.xml" doesn't exist, create a blank file.
3352 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>();
3356 if (!subtypes.contains(subtype)) {
3357 subtypes.add(subtype);
3363 mAdditionalSubtypesMap.put(imi.getId(), subtypes);
3415 Slog.w(TAG, "Error writing subtypes", e);
3437 throw new XmlPullParserException("Xml doesn't start with subtypes");
3450 Slog.w(TAG, "Invalid imi id found in subtypes.xml");
3479 Slog.w(TAG, "Error reading subtypes: " + e);
3482 Slog.w(TAG, "Error reading subtypes: " + e);
3485 Slog.w(TAG, "Error reading subtypes: " + e);