Home
last modified time | relevance | path

Searched refs:SubtypeLocale (Results 1 – 13 of 13) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DSubtypeLocaleTests.java59 SubtypeLocale.init(context); in setUp()
74 SubtypeLocale.NO_LANGUAGE, "qwerty"); in setUp()
86 SubtypeLocale.NO_LANGUAGE, "pcqwerty", null); in setUp()
92 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype); in testAllFullDisplayName()
93 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllFullDisplayName()
98 SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in testAllFullDisplayName()
123 assertEquals("en_US", "qwerty", SubtypeLocale.getKeyboardLayoutSetName(EN_US)); in testPredefinedSubtypesInEnglish()
124 assertEquals("en_GB", "qwerty", SubtypeLocale.getKeyboardLayoutSetName(EN_GB)); in testPredefinedSubtypesInEnglish()
125 assertEquals("es_US", "spanish", SubtypeLocale.getKeyboardLayoutSetName(ES_US)); in testPredefinedSubtypesInEnglish()
126 assertEquals("fr ", "azerty", SubtypeLocale.getKeyboardLayoutSetName(FR)); in testPredefinedSubtypesInEnglish()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DSpacebarTextTests.java29 import com.android.inputmethod.latin.SubtypeLocale;
62 SubtypeLocale.init(context); in setUp()
71 ZZ = mRichImm.findSubtypeByLocaleAndKeyboardLayoutSet(SubtypeLocale.NO_LANGUAGE, "qwerty"); in setUp()
79 SubtypeLocale.NO_LANGUAGE, "azerty", null); in setUp()
84 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype); in testAllFullDisplayName()
87 SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in testAllFullDisplayName()
88 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllFullDisplayName()
98 final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype); in testAllMiddleDisplayName()
100 if (SubtypeLocale.isNoLanguage(subtype)) { in testAllMiddleDisplayName()
102 SubtypeLocale.getKeyboardLayoutSetName(subtype), spacebarText); in testAllMiddleDisplayName()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAdditionalSubtypeSettings.java74 SubtypeLocale.getSubtypeLocaleDisplayNameInSystemLocale(localeString)); in SubtypeLocaleItem()
105 SubtypeLocale.getSubtypeDisplayNameInSystemLocale(subtype))); in SubtypeLocaleAdapter()
117 if (localeString.equals(SubtypeLocale.NO_LANGUAGE)) { in createItem()
128 super(SubtypeLocale.getKeyboardLayoutSetName(subtype), in KeyboardLayoutSetItem()
129 SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype)); in KeyboardLayoutSetItem()
144 for (final String layout : SubtypeLocale.getPredefinedKeyboardLayoutSet()) { in KeyboardLayoutSetAdapter()
147 SubtypeLocale.NO_LANGUAGE, layout, null); in KeyboardLayoutSetAdapter()
208 SubtypeLocale.getSubtypeDisplayNameInSystemLocale(subtype); in setSubtype()
212 + SubtypeLocale.getKeyboardLayoutSetName(subtype)); in setSubtype()
500 SubtypeLocale.getSubtypeDisplayNameInSystemLocale(subtype)); in showSubtypeAlreadyExistsToast()
[all …]
DSubtypeSwitcher.java82 SubtypeLocale.init(context); in init()
100 SubtypeLocale.NO_LANGUAGE, SubtypeLocale.QWERTY); in initialize()
158 Log.w(TAG, "onSubtypeChanged: " + SubtypeLocale.getSubtypeDisplayName(newSubtype)); in onSubtypeChanged()
161 final Locale newLocale = SubtypeLocale.getSubtypeLocale(newSubtype); in onSubtypeChanged()
237 if (keyboardLocale.toString().equals(SubtypeLocale.NO_LANGUAGE)) { in needsToDisplayLanguage()
254 return SubtypeLocale.getSubtypeLocale(getCurrentSubtype()); in getCurrentSubtypeLocale()
DAdditionalSubtype.java49 && SubtypeLocale.isExceptionalLocale(localeString)) { in createAdditionalSubtype()
50 final String layoutDisplayName = SubtypeLocale.getKeyboardLayoutSetDisplayName( in createAdditionalSubtype()
59 final int nameId = SubtypeLocale.getSubtypeNameId(localeString, keyboardLayoutSetName); in createAdditionalSubtype()
67 final String keyboardLayoutSetName = SubtypeLocale.getKeyboardLayoutSetName(subtype); in getPrefSubtype()
97 if (subtype.getNameResId() == SubtypeLocale.UNKNOWN_KEYBOARD_LAYOUT) { in createAdditionalSubtypesArray()
DRichInputMethodManager.java87 SubtypeLocale.init(context); in initInternal()
137 + SubtypeLocale.getSubtypeDisplayName(currentSubtype)); in switchToNextInputSubtypeInThisIme()
347 final String layoutName = SubtypeLocale.getKeyboardLayoutSetName(subtype); in findSubtypeByLocaleAndKeyboardLayoutSet()
DSubtypeLocale.java33 public final class SubtypeLocale { class
34 static final String TAG = SubtypeLocale.class.getSimpleName();
72 private SubtypeLocale() { in SubtypeLocale() method in SubtypeLocale
DSettingsFragment.java93 SubtypeLocale.init(context); in onCreate()
290 styles.append(SubtypeLocale.getSubtypeDisplayNameInSystemLocale(subtype)); in updateCustomInputStylesSummary()
DUserBinaryDictionary.java78 if (SubtypeLocale.NO_LANGUAGE.equals(locale)) { in UserBinaryDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java71 import com.android.inputmethod.latin.SubtypeLocale;
1458 if (SubtypeLocale.isNoLanguage(subtype)) { in getFullDisplayName()
1459 return SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype); in getFullDisplayName()
1461 return SubtypeLocale.getSubtypeLocaleDisplayName(subtype.getLocale()); in getFullDisplayName()
1466 if (SubtypeLocale.isNoLanguage(subtype)) { in getShortDisplayName()
1469 final Locale locale = SubtypeLocale.getSubtypeLocale(subtype); in getShortDisplayName()
1475 if (SubtypeLocale.isNoLanguage(subtype)) { in getMiddleDisplayName()
1476 return SubtypeLocale.getKeyboardLayoutSetDisplayName(subtype); in getMiddleDisplayName()
1478 final Locale locale = SubtypeLocale.getSubtypeLocale(subtype); in getMiddleDisplayName()
1479 return SubtypeLocale.getSubtypeLocaleDisplayName(locale.getLanguage()); in getMiddleDisplayName()
DKeyboardId.java29 import com.android.inputmethod.latin.SubtypeLocale;
79 mLocale = SubtypeLocale.getSubtypeLocale(mSubtype); in KeyboardId()
DKeyboardLayoutSet.java50 import com.android.inputmethod.latin.SubtypeLocale;
270 + SubtypeLocale.getKeyboardLayoutSetName(keyboardSubtype); in setSubtype()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java36 import com.android.inputmethod.latin.SubtypeLocale;
288 final Locale locale = SubtypeLocale.isNoLanguage(params.mId.mSubtype) in parseKeyboardAttributes()