Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DLocaleUtils.java53 public static Locale constructLocaleFromString(final String localeStr) { in constructLocaleFromString() argument
54 if (localeStr == null) { in constructLocaleFromString()
58 if (sLocaleCache.containsKey(localeStr)) { in constructLocaleFromString()
59 return sLocaleCache.get(localeStr); in constructLocaleFromString()
63 final String[] localeElements = localeStr.split("_", ELEMENT_LIMIT); in constructLocaleFromString()
69 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString()
80 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString()
88 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString()
92 sLocaleCache.put(localeStr, locale); in constructLocaleFromString()
DJarUtils.java101 final String localeStr = parentName.substring(localePos + 1);
102 final int regionPos = localeStr.indexOf("-r");
104 return LocaleUtils.constructLocaleFromString(localeStr);
106 return LocaleUtils.constructLocaleFromString(localeStr.replace("-r", "_"));
DMoreKeysResources.java190 final String localeStr = LocaleUtils.getLocaleCode(locale); in dumpLocalesMap() local
192 ? String.format("\"%s\"", localeStr) in dumpLocalesMap()
193 : String.format("\"%s\"%s", localeStr, " ".substring(localeStr.length())); in dumpLocalesMap()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionarySettingsUtils.java31 public static String getLocaleDisplayName(Context context, String localeStr) { in getLocaleDisplayName() argument
32 if (TextUtils.isEmpty(localeStr)) { in getLocaleDisplayName()
37 final Locale locale = Utils.createLocaleFromString(localeStr); in getLocaleDisplayName()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionarySettingsUtils.java31 public static String getLocaleDisplayName(Context context, String localeStr) { in getLocaleDisplayName() argument
32 if (TextUtils.isEmpty(localeStr)) { in getLocaleDisplayName()
37 final Locale locale = Utils.createLocaleFromString(localeStr); in getLocaleDisplayName()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionarySettingsUtils.java32 public static String getLocaleDisplayName(Context context, String localeStr) { in getLocaleDisplayName() argument
33 if (TextUtils.isEmpty(localeStr)) { in getLocaleDisplayName()
38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr); in getLocaleDisplayName()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java290 final String localeStr = Locale.getDefault().toString(); in setIndexed() local
296 .putBoolean(localeStr, true) in setIndexed()
311 final String localeStr = Locale.getDefault().toString(); in isFullIndex() local
319 && prefs.getBoolean(localeStr, false) in isFullIndex()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.h41 static AK_FORCE_INLINE void *getSessionInstance(JNIEnv *env, jstring localeStr, in getSessionInstance() argument
45 return new DicTraverseSession(env, localeStr, in getSessionInstance()
53 AK_FORCE_INLINE DicTraverseSession(JNIEnv *env, jstring localeStr, bool usesLargeCache) in DicTraverseSession() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java63 final String localeStr = locale.toString(); in UserBinaryDictionary() local
64 if (SubtypeLocaleUtils.NO_LANGUAGE.equals(localeStr)) { in UserBinaryDictionary()
68 mLocaleString = localeStr; in UserBinaryDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java165 final String localeStr = getLocale(); in splitAndSuggest() local
166 if (!TextUtils.isEmpty(localeStr)) { in splitAndSuggest()
168 new Locale(localeStr)); in splitAndSuggest()
/packages/apps/Settings/src/com/android/settings/
DUtils.java248 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument
255 if (null == localeStr) in createLocaleFromString()
257 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java253 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument
260 if (null == localeStr) in createLocaleFromString()
262 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()