Home
last modified time | relevance | path

Searched refs:localeStr (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLocaleUtils.java205 public static Locale constructLocaleFromString(final String localeStr) { in constructLocaleFromString() argument
206 if (localeStr == null) in constructLocaleFromString()
209 if (sLocaleCache.containsKey(localeStr)) in constructLocaleFromString()
210 return sLocaleCache.get(localeStr); in constructLocaleFromString()
212 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
221 sLocaleCache.put(localeStr, retval); in constructLocaleFromString()
238 final String localeStr = ss[i * 2]; in localeAndTimeStrToHashMap() local
240 retval.put(localeStr, time); in localeAndTimeStrToHashMap()
250 for (String localeStr : map.keySet()) { in localeAndTimeHashMapToStr()
254 final Long time = map.get(localeStr); in localeAndTimeHashMapToStr()
[all …]
DExpandableBinaryDictionary.java142 protected static String getFilenameWithLocale(final String name, final String localeStr) { in getFilenameWithLocale() argument
143 return name + "." + localeStr + ".dict"; in getFilenameWithLocale()
DLatinIME.java499 final String localeStr = subtypeLocale.toString(); in initSuggest() local
519 mUserDictionary = new UserBinaryDictionary(this, localeStr); in initSuggest()
526 mUserHistoryDictionary = UserHistoryDictionary.getInstance(this, localeStr, prefs); in initSuggest()
/packages/inputmethods/LatinIME/native/jni/src/
Dadditional_proximity_chars.h41 AK_FORCE_INLINE static bool isEnLocale(const char *localeStr) { in isEnLocale() argument
43 return localeStr && strlen(localeStr) >= LOCALE_EN_US_SIZE in isEnLocale()
44 && strncmp(localeStr, LOCALE_EN_US, LOCALE_EN_US_SIZE) == 0; in isEnLocale()
48 static int getAdditionalCharsSize(const char *const localeStr, const int c) { in getAdditionalCharsSize() argument
49 if (!isEnLocale(localeStr)) { in getAdditionalCharsSize()
68 static const int *getAdditionalChars(const char *const localeStr, const int c) { in getAdditionalChars() argument
69 if (!isEnLocale(localeStr)) { in getAdditionalChars()
Dproximity_info_utils.h54 const char *const localeStr, in initializeProximities() argument
67 keyCount, x, y, primaryKey, localeStr, codeToKeyMap, proximities); in initializeProximities()
158 const int x, const int y, const int primaryKey, const char *const localeStr, in calculateProximities() argument
186 AdditionalProximityChars::getAdditionalCharsSize(localeStr, primaryKey); in calculateProximities()
197 AdditionalProximityChars::getAdditionalChars(localeStr, primaryKey); in calculateProximities()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DLocaleUtils.java183 public static Locale constructLocaleFromString(final String localeStr) { in constructLocaleFromString() argument
184 if (localeStr == null) in constructLocaleFromString()
187 if (sLocaleCache.containsKey(localeStr)) in constructLocaleFromString()
188 return sLocaleCache.get(localeStr); in constructLocaleFromString()
190 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
199 sLocaleCache.put(localeStr, retval); in constructLocaleFromString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java411 final String localeStr = locale.toString(); in createDictAndKeyboard() local
412 UserBinaryDictionary userDictionary = mUserDictionaries.get(localeStr); in createDictAndKeyboard()
414 userDictionary = new SynchronouslyLoadedUserBinaryDictionary(this, localeStr, true); in createDictAndKeyboard()
415 mUserDictionaries.put(localeStr, userDictionary); in createDictAndKeyboard()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java54 ProximityInfo(final String localeStr, final int gridWidth, final int gridHeight, in ProximityInfo() argument
58 if (TextUtils.isEmpty(localeStr)) { in ProximityInfo()
61 mLocaleStr = localeStr; in ProximityInfo()
/packages/apps/Settings/src/com/android/settings/
DUtils.java369 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument
376 if (null == localeStr) in createLocaleFromString()
378 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.cpp31 static void *getSessionInstance(JNIEnv *env, jstring localeStr) { in getSessionInstance() argument
32 return new DicTraverseSession(env, localeStr); in getSessionInstance()
Ddic_traverse_session.h36 AK_FORCE_INLINE DicTraverseSession(JNIEnv *env, jstring localeStr) in DicTraverseSession() argument