Lines Matching refs:subtype

35  * This class is used to specify meta information of a subtype contained in an input method editor
37 * and is used for IME switch and settings. The input method subtype allows the system to bring up
38 * the specified subtype of the designated IME directly.
41 * <code>&lt;subtype&gt;</code> element, which resides within an {@code &lt;input-method>} element.
86 * @param isAuxiliary should true when this subtype is auxiliary, false otherwise.
87 * An auxiliary subtype has the following differences with a regular subtype:
88 * - An auxiliary subtype cannot be chosen as the default IME in Settings.
89 * - The framework will never switch to this subtype through
91 * Note that the subtype will still be available in the IME switcher.
102 * @param overridesImplicitlyEnabledSubtype should be true if this subtype should be
104 * subtype with this parameter set will not be shown in the list of subtypes in each IME's
105 * subtype enabler. A canonical use of this would be for an IME to supply an "automatic"
106 * subtype that adapts to the current system language.
116 * @param isAsciiCapable should be true if this subtype is ASCII capable. If the subtype
118 * this subtype. This is important because many password fields only allow
128 * @param subtypeIconResId is a resource ID of the subtype icon drawable.
137 * @param subtypeNameResId is the resource ID of the subtype name string.
149 * @param subtypeId is the unique ID for this subtype. The input method framework keeps
162 * @param subtypeLocale is the locale supported by this subtype.
171 * @param subtypeMode is the mode supported by this subtype.
179 * @param subtypeExtraValue is the extra value of the subtype. This string is free-form,
214 * Constructor with no subtype ID specified.
230 * @param nameId Resource ID of the subtype name string. The string resource may have exactly
233 * @param iconId Resource ID of the subtype icon drawable.
234 * @param locale The locale supported by the subtype
235 * @param mode The mode supported by the subtype
236 * @param extraValue The extra value of the subtype. This string is free-form, but the API
239 * @param isAuxiliary true when this subtype is auxiliary, false otherwise. An auxiliary
240 * subtype will not be shown in the list of enabled IMEs for choosing the current IME in
241 * the Settings even when this subtype is enabled. Please note that this subtype will still
243 * to this subtype while an IME is shown. The framework will never switch the current IME to
244 * this subtype by {@link android.view.inputmethod.InputMethodManager#switchToLastInputMethod}.
247 * @param overridesImplicitlyEnabledSubtype true when this subtype should be enabled by default
248 * if no other subtypes in the IME are enabled explicitly. Note that a subtype with this
249 * parameter being true will not be shown in the list of subtypes in each IME's subtype enabler.
250 * Having an "automatic" subtype is an example use of this flag.
251 * @param id The unique ID for the subtype. The input method framework keeps track of enabled
277 // If hashCode() of this subtype is 0 and you want to specify it as an id of this subtype,
278 // just specify 0 as this subtype's id. Then, this subtype's id is treated as 0.
302 * @return Resource ID of the subtype name string.
309 * @return Resource ID of the subtype icon drawable.
316 * @return The locale of the subtype. This method returns the "locale" string parameter passed
324 * @return The mode of the subtype.
331 * @return The extra value of the subtype.
338 * @return true if this subtype is auxiliary, false otherwise. An auxiliary subtype will not be
340 * subtype is enabled. Please note that this subtype will still be shown in the list of IMEs in
341 * the IME switcher to allow the user to tentatively switch to this subtype while an IME is
342 * shown. The framework will never switch the current IME to this subtype by
352 * @return true when this subtype will be enabled by default if no other subtypes in the IME
353 * are enabled explicitly, false otherwise. Note that a subtype with this method returning true
354 * will not be shown in the list of subtypes in each IME's subtype enabler. Having an
355 * "automatic" subtype is an example use of this flag.
362 * @return true if this subtype is Ascii capable, false otherwise. If the subtype is ASCII
363 * capable, it should guarantee that the user can input ASCII characters with this subtype.
374 * @return a display name for this subtype. The string resource of the label (mSubtypeNameResId)
398 Slog.w(TAG, "Found illegal format in subtype name("+ subtypeName + "): " + e);
431 * The string of ExtraValue in subtype should be defined as follows:
434 * @return The subtype contains specified the extra value
441 * The string of ExtraValue in subtype should be defined as follows:
458 InputMethodSubtype subtype = (InputMethodSubtype) o;
459 if (subtype.mSubtypeId != 0 || mSubtypeId != 0) {
460 return (subtype.hashCode() == hashCode());
462 return (subtype.hashCode() == hashCode())
463 && (subtype.getLocale().equals(getLocale()))
464 && (subtype.getMode().equals(getMode()))
465 && (subtype.getExtraValue().equals(getExtraValue()))
466 && (subtype.isAuxiliary() == isAuxiliary())
467 && (subtype.overridesImplicitlyEnabledSubtype()
469 && (subtype.isAsciiCapable() == isAsciiCapable());
553 InputMethodSubtype subtype = imi.getSubtypeAt(i);
554 if (inputSubtypesSet.contains(subtype)) {
555 sortedList.add(subtype);
556 inputSubtypesSet.remove(subtype);
561 for (InputMethodSubtype subtype: inputSubtypesSet) {
562 sortedList.add(subtype);