Home | History | Annotate | Download | only in latin

Lines Matching refs:subtype

19 import static com.android.inputmethod.latin.Constants.Subtype.KEYBOARD_MODE;
138 Log.w(TAG, "Can't find current subtype in enabled subtypes: subtype="
144 // The current subtype is the last or only enabled one and it needs to switch to
166 // The next IME has no subtype.
208 final InputMethodSubtype subtype = imi.getSubtypeAt(index);
209 if (!subtype.isAuxiliary()) {
224 public boolean checkIfSubtypeBelongsToThisImeAndEnabled(final InputMethodSubtype subtype) {
225 return checkIfSubtypeBelongsToImeAndEnabled(mInputMethodInfoOfThisIme, subtype);
229 final InputMethodSubtype subtype) {
230 final boolean subtypeEnabled = checkIfSubtypeBelongsToThisImeAndEnabled(subtype);
232 subtype, getMyEnabledInputMethodSubtypeList(
238 final InputMethodSubtype subtype) {
239 return checkIfSubtypeBelongsToList(subtype, getEnabledInputMethodSubtypeList(imi,
243 private static boolean checkIfSubtypeBelongsToList(final InputMethodSubtype subtype,
245 return getSubtypeIndexInList(subtype, subtypes) != INDEX_NOT_FOUND;
248 private static int getSubtypeIndexInList(final InputMethodSubtype subtype,
253 if (ims.equals(subtype)) {
260 public boolean checkIfSubtypeBelongsToThisIme(final InputMethodSubtype subtype) {
261 return getSubtypeIndexInIme(subtype, mInputMethodInfoOfThisIme) != INDEX_NOT_FOUND;
264 private static int getSubtypeIndexInIme(final InputMethodSubtype subtype,
269 if (ims.equals(subtype)) {
309 for (InputMethodSubtype subtype : subtypes) {
310 if (subtype.isAuxiliary()) {
331 // both explicitly and implicitly enabled input method subtype.
333 for (InputMethodSubtype subtype : subtypes) {
334 if (KEYBOARD_MODE.equals(subtype.getMode())) {
346 final InputMethodSubtype subtype = myImi.getSubtypeAt(i);
347 final String layoutName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
348 if (localeString.equals(subtype.getLocale())
350 return subtype;
356 public void setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) {
358 token, mInputMethodInfoOfThisIme.getId(), subtype);