Lines Matching defs:subtype

365         // subtype)
407 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
409 final Locale subtypeLocale = subtype.getLocaleObject();
417 subtype.getLocale()));
423 mode.equalsIgnoreCase(subtype.getMode())) {
444 final InputMethodSubtype subtype = imi.getSubtypeAt(i);
445 if (subtype.overridesImplicitlyEnabledSubtype() && subtype.getMode().equals(mode)) {
446 subtypes.add(subtype);
506 InputMethodSubtype subtype = subtypes.get(i);
507 if (subtype.overridesImplicitlyEnabledSubtype()) {
508 final String mode = subtype.getMode();
510 applicableModeAndSubtypesMap.put(mode, subtype);
518 final InputMethodSubtype subtype = subtypes.get(i);
519 final String locale = subtype.getLocale();
520 final String mode = subtype.getMode();
522 // When system locale starts with subtype's locale, that subtype will be applicable
527 // subtype = en, but it is not necessarily considered applicable for cases like system
528 // locale = en and subtype = en_US.
543 applicableModeAndSubtypesMap.put(mode, subtype);
552 final InputMethodSubtype subtype = subtypes.get(i);
553 final String mode = subtype.getMode();
554 if (SUBTYPE_MODE_KEYBOARD.equals(mode) && subtype.containsExtraValueKey(
556 applicableSubtypes.add(subtype);
586 * @param subtypes this function will search the most applicable subtype in subtypes
589 * @param canIgnoreLocaleAsLastResort if this function can't find the most applicable subtype,
590 * it will return the first subtype matched with mode
608 InputMethodSubtype subtype = subtypes.get(i);
609 final String subtypeLocale = subtype.getLocale();
611 // An applicable subtype should match "mode". If mode is null, mode will be ignored,
615 firstMatchedModeSubtype = subtype;
618 // Exact match (e.g. system locale is "en_US" and subtype locale is "en_US")
619 applicableSubtype = subtype;
622 // Partial match (e.g. system locale is "en_US" and subtype locale is "en")
623 applicableSubtype = subtype;
633 // The first subtype applicable to the system locale will be defined as the most applicable
634 // subtype.
644 public static boolean canAddToLastInputMethod(InputMethodSubtype subtype) {
645 if (subtype == null) return true;
646 return !subtype.isAuxiliary();
740 InputMethodSubtype subtype) {
742 return subtype != null
743 ? TextUtils.concat(subtype.getDisplayName(context,
1078 Slog.v(TAG, "Add subtype to the history: " + imeId + ", " + subtypeId);
1111 // If imeId is empty, returns the first IME and subtype in the history
1119 Slog.d(TAG, "Enabled subtype found in the history: " + subtypeHashCode);
1161 // Check whether the subtype id is valid or not