Home | History | Annotate | Download | only in server

Lines Matching refs:subtypes

965      * @param imi if null, returns enabled subtypes for the current imi
966 * @return enabled subtypes of the specified imi
1451 final List<InputMethodSubtype> subtypes =
1453 final int subtypeCount = subtypes.size();
1458 final InputMethodSubtype subtype = subtypes.get(j);
2160 // TODO: Handle the case of the last IME with no subtypes
2180 public void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes) {
2185 // additional input method subtypes to the IME.
2186 if (TextUtils.isEmpty(imiId) || subtypes == null || subtypes.length == 0) return;
2201 mFileManager.addInputMethodSubtypes(imi, subtypes);
2994 // 4. Search by the current subtype's locale from all subtypes.
2999 // 5. Search by the system locale from all subtypes.
3000 // 6. Search the first enabled subtype matched with mode from all subtypes.
3068 // If there are no selected subtypes, the framework will try to find
3070 // subtypes.
3099 ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>();
3100 subtypes.add(subtype);
3101 mShortcutInputMethodsAndSubtypes.put(imi, subtypes);
3112 // If there are no selected shortcut subtypes, the framework will try to find
3113 // the most applicable subtype from all subtypes whose mode is
3239 Slog.v(TAG, "Add subtypes: " + subtypeCount + ", " + imi.getId());
3244 // We show all enabled IMEs and subtypes when an IME is shown.
3274 private static final String ADDITIONAL_SUBTYPES_FILE_NAME = "subtypes.xml";
3275 private static final String NODE_SUBTYPES = "subtypes";
3304 // If "subtypes.xml" doesn't exist, create a blank file.
3324 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>();
3328 if (!subtypes.contains(subtype)) {
3329 subtypes.add(subtype);
3335 mAdditionalSubtypesMap.put(imi.getId(), subtypes);
3387 Slog.w(TAG, "Error writing subtypes", e);
3409 throw new XmlPullParserException("Xml doesn't start with subtypes");
3422 Slog.w(TAG, "Invalid imi id found in subtypes.xml");
3451 Slog.w(TAG, "Error reading subtypes: " + e);
3454 Slog.w(TAG, "Error reading subtypes: " + e);
3457 Slog.w(TAG, "Error reading subtypes: " + e);