Lines Matching refs:subtype

42  * This class is used to specify meta information of a subtype contained in an input method editor
44 * and is used for IME switch and settings. The input method subtype allows the system to bring up
45 * the specified subtype of the designated IME directly.
48 * <code>&lt;subtype&gt;</code> element, which resides within an {@code <input-method>} element.
97 * @param isAuxiliary should true when this subtype is auxiliary, false otherwise.
98 * An auxiliary subtype has the following differences with a regular subtype:
99 * - An auxiliary subtype cannot be chosen as the default IME in Settings.
100 * - The framework will never switch to this subtype through
102 * Note that the subtype will still be available in the IME switcher.
113 * @param overridesImplicitlyEnabledSubtype should be true if this subtype should be
115 * subtype with this parameter set will not be shown in the list of subtypes in each IME's
116 * subtype enabler. A canonical use of this would be for an IME to supply an "automatic"
117 * subtype that adapts to the current system language.
127 * @param isAsciiCapable should be true if this subtype is ASCII capable. If the subtype
129 * this subtype. This is important because many password fields only allow
139 * @param subtypeIconResId is a resource ID of the subtype icon drawable.
148 * @param subtypeNameResId is the resource ID of the subtype name string.
160 * @param subtypeId is the unique ID for this subtype. The input method framework keeps
173 * @param subtypeLocale is the locale supported by this subtype.
182 * @param languageTag is the BCP-47 Language Tag supported by this subtype.
191 * @param subtypeMode is the mode supported by this subtype.
199 * @param subtypeExtraValue is the extra value of the subtype. This string is free-form,
234 * Constructor with no subtype ID specified.
250 * @param nameId Resource ID of the subtype name string. The string resource may have exactly
253 * @param iconId Resource ID of the subtype icon drawable.
254 * @param locale The locale supported by the subtype
255 * @param mode The mode supported by the subtype
256 * @param extraValue The extra value of the subtype. This string is free-form, but the API
259 * @param isAuxiliary true when this subtype is auxiliary, false otherwise. An auxiliary
260 * subtype will not be shown in the list of enabled IMEs for choosing the current IME in
261 * the Settings even when this subtype is enabled. Please note that this subtype will still
263 * to this subtype while an IME is shown. The framework will never switch the current IME to
264 * this subtype by {@link android.view.inputmethod.InputMethodManager#switchToLastInputMethod}.
267 * @param overridesImplicitlyEnabledSubtype true when this subtype should be enabled by default
268 * if no other subtypes in the IME are enabled explicitly. Note that a subtype with this
269 * parameter being true will not be shown in the list of subtypes in each IME's subtype enabler.
270 * Having an "automatic" subtype is an example use of this flag.
271 * @param id The unique ID for the subtype. The input method framework keeps track of enabled
298 // If hashCode() of this subtype is 0 and you want to specify it as an id of this subtype,
299 // just specify 0 as this subtype's id. Then, this subtype's id is treated as 0.
328 * @return Resource ID of the subtype name string.
335 * @return Resource ID of the subtype icon drawable.
342 * @return The locale of the subtype. This method returns the "locale" string parameter passed
354 * @return the BCP-47 Language Tag of the subtype. Returns an empty string when no Language Tag
380 * @return The mode of the subtype.
387 * @return The extra value of the subtype.
394 * @return true if this subtype is auxiliary, false otherwise. An auxiliary subtype will not be
396 * subtype is enabled. Please note that this subtype will still be shown in the list of IMEs in
397 * the IME switcher to allow the user to tentatively switch to this subtype while an IME is
398 * shown. The framework will never switch the current IME to this subtype by
408 * @return true when this subtype will be enabled by default if no other subtypes in the IME
409 * are enabled explicitly, false otherwise. Note that a subtype with this method returning true
410 * will not be shown in the list of subtypes in each IME's subtype enabler. Having an
411 * "automatic" subtype is an example use of this flag.
418 * @return true if this subtype is Ascii capable, false otherwise. If the subtype is ASCII
419 * capable, it should guarantee that the user can input ASCII characters with this subtype.
427 * Returns a display name for this subtype.
432 * {@code %s} will be replaced with the display name of the subtype locale in the user's locale.
435 * of the subtype locale, as capitalized for use in UI lists, in the user's locale.
441 * @return a display name for this subtype.
479 Slog.w(TAG, "Found illegal format in subtype name("+ subtypeName + "): " + e);
545 * The string of ExtraValue in subtype should be defined as follows:
548 * @return The subtype contains specified the extra value
555 * The string of ExtraValue in subtype should be defined as follows:
571 * @return {@code true} if a valid subtype ID exists.
579 * @return subtype ID. {@code 0} means that not subtype ID is specified.
588 InputMethodSubtype subtype = (InputMethodSubtype) o;
589 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) {
590 return (subtype.hashCode() == hashCode());
592 return (subtype.hashCode() == hashCode())
593 && (subtype.getLocale().equals(getLocale()))
594 && (subtype.getLanguageTag().equals(getLanguageTag()))
595 && (subtype.getMode().equals(getMode()))
596 && (subtype.getExtraValue().equals(getExtraValue()))
597 && (subtype.isAuxiliary() == isAuxiliary())
598 && (subtype.overridesImplicitlyEnabledSubtype()
600 && (subtype.isAsciiCapable() == isAsciiCapable());
669 InputMethodSubtype subtype = imi.getSubtypeAt(i);
670 if (inputSubtypesSet.contains(subtype)) {
671 sortedList.add(subtype);
672 inputSubtypesSet.remove(subtype);
677 for (InputMethodSubtype subtype: inputSubtypesSet) {
678 sortedList.add(subtype);