Home | History | Annotate | Download | only in latin

Lines Matching refs:Subtype

19 import static com.android.inputmethod.latin.common.Constants.Subtype.KEYBOARD_MODE;
109 // Initialize the current input method subtype and the shortcut IME.
151 Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype="
157 // The current subtype is the last or only enabled one and it needs to switch to
179 // The next IME has no subtype.
221 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
222 if (!subtype.isAuxiliary()) {
290 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) {
291 return checkIfSubtypeBelongsToList(subtype,
298 final InputMethodSubtype subtype) {
299 final boolean subtypeEnabled = checkIfSubtypeBelongsToThisImeAndEnabled(subtype);
300 final boolean subtypeExplicitlyEnabled = checkIfSubtypeBelongsToList(subtype,
305 private static boolean checkIfSubtypeBelongsToList(final InputMethodSubtype subtype,
307 return getSubtypeIndexInList(subtype, subtypes) != INDEX_NOT_FOUND;
310 private static int getSubtypeIndexInList(final InputMethodSubtype subtype,
315 if (ims.equals(subtype)) {
333 static void forceSubtype(@Nonnull final InputMethodSubtype subtype) {
334 sForcedSubtypeForTesting = RichInputMethodSubtype.getRichInputMethodSubtype(subtype);
386 for (InputMethodSubtype subtype : subtypes) {
387 if (subtype.isAuxiliary()) {
407 // both explicitly and implicitly enabled input method subtype.
409 for (InputMethodSubtype subtype : subtypes) {
410 if (KEYBOARD_MODE.equals(subtype.getMode())) {
422 final InputMethodSubtype subtype = myImi.getSubtypeAt(i);
423 final String layoutName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
424 if (localeString.equals(subtype.getLocale())
426 return subtype;
433 // Find the best subtype based on a straightforward matching algorithm.
439 final InputMethodSubtype subtype = subtypes.get(i);
440 final Locale subtypeLocale = InputMethodSubtypeCompatUtils.getLocaleObject(subtype);
442 return subtype;
446 final InputMethodSubtype subtype = subtypes.get(i);
447 final Locale subtypeLocale = InputMethodSubtypeCompatUtils.getLocaleObject(subtype);
451 return subtype;
455 final InputMethodSubtype subtype = subtypes.get(i);
456 final Locale subtypeLocale = InputMethodSubtypeCompatUtils.getLocaleObject(subtype);
459 return subtype;
463 final InputMethodSubtype subtype = subtypes.get(i);
464 final Locale subtypeLocale = InputMethodSubtypeCompatUtils.getLocaleObject(subtype);
466 return subtype;
472 public void setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) {
474 token, getInputMethodIdOfThisIme(), subtype);
524 for (final InputMethodSubtype subtype : enabledSubtypesOfEnabledImes) {
525 if (!subtype.isAuxiliary() && !subtype.getLocale().isEmpty()
526 && !systemLocale.equals(SubtypeLocaleUtils.getSubtypeLocale(subtype))) {
533 private void updateCurrentSubtype(@Nullable final InputMethodSubtype subtype) {
534 mCurrentRichInputMethodSubtype = RichInputMethodSubtype.getRichInputMethodSubtype(subtype);
564 // TODO: Pick up the first found subtype for now. Should handle all subtypes
587 private void switchToTargetIME(final String imiId, final InputMethodSubtype subtype,
597 imm.setInputMethodAndSubtype(token, imiId, subtype);