Lines Matching defs:subtypes

439         ArrayList<InputMethodSubtype> subtypes = new ArrayList<>();
442 subtypes.add(imi.getSubtypeAt(i));
444 return subtypes;
449 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>();
454 subtypes.add(subtype);
457 return subtypes;
517 // it does not check if subtypes are also identical.
539 final List<InputMethodSubtype> subtypes = InputMethodUtils.getSubtypes(imi);
543 final int numSubtypes = subtypes.size();
548 // scan overriding implicitly enabled subtypes.
549 final InputMethodSubtype subtype = subtypes.get(i);
566 final InputMethodSubtype subtype = subtypes.get(i);
607 res, subtypes, SUBTYPE_MODE_KEYBOARD, systemLocale, true);
613 // For each non-keyboard mode, extract subtypes with system locales.
636 * If there are no selected subtypes, tries finding the most applicable one according to the
638 * @param subtypes this function will search the most applicable subtype in subtypes
639 * @param mode subtypes will be filtered by mode
640 * @param locale subtypes will be filtered by locale
646 Resources res, List<InputMethodSubtype> subtypes, String mode, String locale,
648 if (subtypes == null || subtypes.size() == 0) {
658 final int N = subtypes.size();
660 InputMethodSubtype subtype = subtypes.get(i);
664 // and all subtypes with all modes can be candidates.
665 if (mode == null || subtypes.get(i).getMode().equalsIgnoreCase(mode)) {
822 * Parses the setting stored input methods and subtypes string value.
824 * @param inputMethodsAndSubtypesString The input method subtypes value stored in settings.
825 * @return Map from input method ID to set of input method subtypes IDs.
846 ArraySet<String> subtypes = new ArraySet<>();
848 subtypes.addAll(ime.second);
850 imeMap.put(ime.first, subtypes);
864 final ArrayList<String> subtypes = new ArrayList<>(2);
866 subtypes.addAll(subtypeSet);
868 imeMap.add(new Pair<>(imeName, subtypes));
904 // Inputmethod and subtypes are saved in the settings as follows:
1292 // If there are no explicitly enabled subtypes, applicable subtypes are
1294 // If IME is enabled and no subtypes are enabled, applicable subtypes