use of com.android.inputmethod.latin.RichInputMethodManager in project android_packages_inputmethods_LatinIME by CyanogenMod.
the class KeyboardTextsSetTests method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
RichInputMethodManager.init(getContext());
final RichInputMethodManager richImm = RichInputMethodManager.getInstance();
final ArrayList<InputMethodSubtype> allSubtypesList = new ArrayList<>();
final InputMethodInfo imi = richImm.getInputMethodInfoOfThisIme();
final int subtypeCount = imi.getSubtypeCount();
for (int index = 0; index < subtypeCount; index++) {
final InputMethodSubtype subtype = imi.getSubtypeAt(index);
allSubtypesList.add(subtype);
}
mAllSubtypesList = Collections.unmodifiableList(allSubtypesList);
}
Aggregations