Search in sources :

Example 76 with InputMethodSubtype

use of android.view.inputmethod.InputMethodSubtype in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class KlpActionSearchTests method testActionSearch.

public void testActionSearch() {
    final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey(KeyboardIconsSet.NAME_SEARCH_KEY);
    for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) {
        final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
        doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey);
    }
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype)

Example 77 with InputMethodSubtype

use of android.view.inputmethod.InputMethodSubtype in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class LxxActionNoneTests method testActionNone.

public void testActionNone() {
    final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey(KeyboardIconsSet.NAME_ENTER_KEY);
    for (final InputMethodSubtype subtype : getAllSubtypesList()) {
        final String tag = "none " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
        doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NONE, expectedKey);
    }
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype)

Example 78 with InputMethodSubtype

use of android.view.inputmethod.InputMethodSubtype in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class LxxActionSearchTests method testActionSearch.

public void testActionSearch() {
    final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey(KeyboardIconsSet.NAME_SEARCH_KEY);
    for (final InputMethodSubtype subtype : getAllSubtypesList()) {
        final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
        doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey);
    }
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype)

Example 79 with InputMethodSubtype

use of android.view.inputmethod.InputMethodSubtype in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class KlpActionNextTests method testActionNext.

public void testActionNext() {
    for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) {
        final String tag = "next " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
        final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey(R.string.label_next_key, getLabelLocale(subtype), getContext());
        doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey);
    }
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype)

Example 80 with InputMethodSubtype

use of android.view.inputmethod.InputMethodSubtype in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class KlpActionSendTests method testActionSend.

public void testActionSend() {
    for (final InputMethodSubtype subtype : mSubtypesWhoseNameIsDisplayedInItsLocale) {
        final String tag = "send " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
        final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey(R.string.label_send_key, getLabelLocale(subtype), getContext());
        doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey);
    }
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype)

Aggregations

InputMethodSubtype (android.view.inputmethod.InputMethodSubtype)216 InputMethodInfo (android.view.inputmethod.InputMethodInfo)112 ArrayList (java.util.ArrayList)49 InputMethodManager (android.view.inputmethod.InputMethodManager)21 Locale (java.util.Locale)17 LocaleList (android.os.LocaleList)15 ImeSubtypeListItem (com.android.internal.inputmethod.InputMethodSubtypeSwitchingController.ImeSubtypeListItem)15 Context (android.content.Context)12 SmallTest (android.test.suitebuilder.annotation.SmallTest)10 Cursor (android.database.Cursor)9 PreferenceScreen (android.support.v7.preference.PreferenceScreen)9 View (android.view.View)9 TextView (android.widget.TextView)9 TreeSet (java.util.TreeSet)9 PreferenceCategory (android.support.v7.preference.PreferenceCategory)8 RichInputMethodSubtype (com.android.inputmethod.latin.RichInputMethodSubtype)8 List (java.util.List)8 Intent (android.content.Intent)7 Pair (android.util.Pair)7 AlertDialog (android.app.AlertDialog)6