Home
last modified time | relevance | path

Searched refs:LocaleUtils (Results 1 – 24 of 24) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtilsTests.java23 import com.android.inputmethod.latin.common.LocaleUtils;
51 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en"))); in testGetMainDictId()
53 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en_US"))); in testGetMainDictId()
55 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en_GB"))); in testGetMainDictId()
58 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("es"))); in testGetMainDictId()
60 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("es_US"))); in testGetMainDictId()
63 LocaleUtils.constructLocaleFromString("en_US_POSIX"))); in testGetMainDictId()
DCapsModeUtilsTests.java24 import com.android.inputmethod.latin.common.LocaleUtils;
115 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("hy_AM")); in testGetCapsMode()
140 sp = job.runInLocale(res, LocaleUtils.constructLocaleFromString("el")); in testGetCapsMode()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DMoreKeysResources.java63 mResourcesMap.put(LocaleUtils.getLocaleCode(resMap.mLocale), resMap); in MoreKeysResources()
66 LocaleUtils.getLocaleCode(LocaleUtils.DEFAULT_LOCALE)); in MoreKeysResources()
170 return TEXTS_ARRAY_NAME_PREFIX + LocaleUtils.getLocaleCode(locale); in getArrayNameForLocale()
178 locale, LocaleUtils.getLocaleDisplayName(locale)); in dumpTexts()
190 final String localeStr = LocaleUtils.getLocaleCode(locale); in dumpLocalesMap()
191 final String localeToDump = (locale == LocaleUtils.DEFAULT_LOCALE) in dumpLocalesMap()
197 LocaleUtils.getLocaleDisplayName(locale)); in dumpLocalesMap()
DJarUtils.java99 return LocaleUtils.DEFAULT_LOCALE;
104 return LocaleUtils.constructLocaleFromString(localeStr);
106 return LocaleUtils.constructLocaleFromString(localeStr.replace("-r", "_"));
DLocaleUtils.java28 public final class LocaleUtils { class
34 private LocaleUtils() { in LocaleUtils() method in LocaleUtils
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPersonalDictionaryLookup.java30 import com.android.inputmethod.latin.common.LocaleUtils;
331 … final int match = LocaleUtils.getMatchLevel(wordLocaleString, inputLocaleString); in getWordsForLocale()
332 if (LocaleUtils.isMatch(match)) { in getWordsForLocale()
369 LocaleUtils.constructLocaleFromString(inputLocale.getLanguage()); in getShortcutsForLocale()
427 final int matchLevel = LocaleUtils.getMatchLevel(dictLocale.toString(), in isValidWord()
433 if (LocaleUtils.isMatch(matchLevel)) { in isValidWord()
489 LocaleUtils.constructLocaleFromString(inputLocale.getLanguage()); in expandShortcut()
581 final Locale dictLocale = LocaleUtils.constructLocaleFromString(localeString); in loadPersonalDictionary()
DRichInputMethodSubtype.java26 import com.android.inputmethod.latin.common.LocaleUtils;
50 mLocale = LocaleUtils.constructLocaleFromString(mSubtype.getLocale()); in RichInputMethodSubtype()
133 return LocaleUtils.isRtlLanguage(mLocale); in isRtlSubtype()
DBinaryDictionaryGetter.java24 import com.android.inputmethod.latin.common.LocaleUtils;
174 final int matchLevel = LocaleUtils.getMatchLevel(dirLocale, locale); in getCachedWordLists()
175 if (LocaleUtils.isMatch(matchLevel)) { in getCachedWordLists()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java30 import com.android.inputmethod.latin.common.LocaleUtils;
180 return LocaleUtils.constructLocaleFromString(localeString); in getDisplayLocaleOfSubtypeLocale()
202 languageString = LocaleUtils.constructLocaleFromString(localeString).getLanguage(); in getSubtypeLanguageDisplayName()
234 displayName = LocaleUtils.constructLocaleFromString(localeString) in getSubtypeLocaleDisplayNameInternal()
313 return LocaleUtils.constructLocaleFromString(localeString); in getSubtypeLocale()
DDictionaryInfoUtils.java34 import com.android.inputmethod.latin.common.LocaleUtils;
509 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
536 LocaleUtils.constructLocaleFromString(locale));
547 final Locale locale = LocaleUtils.constructLocaleFromString(localeString);
574 Locale locale = LocaleUtils.constructLocaleFromString(subtype.getLocale());
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordContents.java31 import com.android.inputmethod.latin.common.LocaleUtils;
189 null : LocaleUtils.constructLocaleFromString(mLocale)); in apply()
231 mDescription = LocaleUtils.constructLocaleFromString(localeString).getDisplayName(); in LocaleRenderer()
DUserDictionarySettingsUtils.java20 import com.android.inputmethod.latin.common.LocaleUtils;
38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr); in getLocaleDisplayName()
DUserDictionaryList.java34 import com.android.inputmethod.latin.common.LocaleUtils;
149 LocaleUtils.constructLocaleFromString(localeString).getDisplayName()); in createUserDictionaryPreference()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java19 import com.android.inputmethod.latin.common.LocaleUtils;
322 final int matchLevel = LocaleUtils.getMatchLevel(systemLocaleString, localeString); in createInstalledDictSettingsCollection()
323 final String matchLevelString = LocaleUtils.getMatchLevelSortedString(matchLevel); in createInstalledDictSettingsCollection()
DDictionaryProvider.java34 import com.android.inputmethod.latin.common.LocaleUtils;
391 final int matchLevel = LocaleUtils.getMatchLevel(wordListLocale, locale); in getDictionaryWordListsForLocale()
392 if (!LocaleUtils.isMatch(matchLevel)) { in getDictionaryWordListsForLocale()
DDownloadOverMeteredDialog.java29 import com.android.inputmethod.latin.common.LocaleUtils;
61 : LocaleUtils.constructLocaleFromString(localeString).getDisplayLanguage(); in setTexts()
DDictionaryService.java30 import com.android.inputmethod.latin.common.LocaleUtils;
171 this, LocaleUtils.constructLocaleFromString(localeString)); in onStartCommand()
DActionBatch.java30 import com.android.inputmethod.latin.common.LocaleUtils;
198 LocaleUtils.constructLocaleFromString(localeString), context, false); in execute()
DUpdateHandler.java42 import com.android.inputmethod.latin.common.LocaleUtils;
873 : LocaleUtils.constructLocaleFromString(localeString).getDisplayLanguage(); in showDictionaryAvailableNotification()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputTestsBase.java47 import com.android.inputmethod.latin.common.LocaleUtils;
376 mEditText.mCurrentLocale = LocaleUtils.constructLocaleFromString(locale); in changeLanguageWithoutWait()
408 mLatinIME.replaceDictionariesForTest(LocaleUtils.constructLocaleFromString(dictLocale)); in changeKeyboardLocaleAndDictLocale()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DLocaleUtils.java33 public final class LocaleUtils { class
34 private LocaleUtils() { in LocaleUtils() method in LocaleUtils
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DSuggestionSpanUtils.java29 import com.android.inputmethod.latin.common.LocaleUtils;
117 return LocaleUtils.constructLocaleFromString(localeString); in findFirstLocaleFromSuggestionSpans()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DActionTestsBase.java33 import com.android.inputmethod.latin.common.LocaleUtils;
77 return LocaleUtils.constructLocaleFromString(localeString); in getLabelLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java36 import com.android.inputmethod.latin.common.LocaleUtils;
118 : LocaleUtils.constructLocaleFromString(localeString); in onCreate()