Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/search/
DIndex.java697 private void indexOneSearchIndexableData(SQLiteDatabase database, String localeStr, in indexOneSearchIndexableData() argument
700 indexOneResource(database, localeStr, (SearchIndexableResource) data, nonIndexableKeys); in indexOneSearchIndexableData()
702 indexOneRaw(database, localeStr, (SearchIndexableRaw) data); in indexOneSearchIndexableData()
706 private void indexOneRaw(SQLiteDatabase database, String localeStr, in indexOneRaw() argument
709 if (!raw.locale.toString().equalsIgnoreCase(localeStr)) { in indexOneRaw()
713 updateOneRowWithFilteredData(database, localeStr, in indexOneRaw()
746 private void indexOneResource(SQLiteDatabase database, String localeStr, in indexOneResource() argument
762 indexFromResource(sir.context, database, localeStr, in indexOneResource()
788 indexFromProvider(mContext, database, localeStr, provider, sir.className, in indexOneResource()
814 private void indexFromResource(Context context, SQLiteDatabase database, String localeStr, in indexFromResource() argument
[all …]
/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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
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()
146 const int x, const int y, const int primaryKey, const char *const localeStr, in calculateProximities() argument
180 AdditionalProximityChars::getAdditionalCharsSize(localeStr, primaryKey); in calculateProximities()
191 AdditionalProximityChars::getAdditionalChars(localeStr, primaryKey); in calculateProximities()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DPersonalizationHelper.java41 final String localeStr = locale.toString(); in getUserHistoryDictionary() local
43 if (sLangUserHistoryDictCache.containsKey(localeStr)) { in getUserHistoryDictionary()
45 sLangUserHistoryDictCache.get(localeStr); in getUserHistoryDictionary()
56 sLangUserHistoryDictCache.put(localeStr, new SoftReference<>(dict)); in getUserHistoryDictionary()
95 final String localeStr = locale.toString(); in getPersonalizationDictionary() local
97 if (sLangPersonalizationDictCache.containsKey(localeStr)) { in getPersonalizationDictionary()
99 sLangPersonalizationDictCache.get(localeStr); in getPersonalizationDictionary()
109 sLangPersonalizationDictCache.put(localeStr, new SoftReference<>(dict)); in getPersonalizationDictionary()
/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/utils/
DLocaleUtils.java167 public static Locale constructLocaleFromString(final String localeStr) { in constructLocaleFromString() argument
168 if (localeStr == null) { in constructLocaleFromString()
172 Locale retval = sLocaleCache.get(localeStr); in constructLocaleFromString()
176 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
185 sLocaleCache.put(localeStr, retval); in constructLocaleFromString()
/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/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/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.h40 static AK_FORCE_INLINE void *getSessionInstance(JNIEnv *env, jstring localeStr, in getSessionInstance() argument
44 return new DicTraverseSession(env, localeStr, in getSessionInstance()
52 AK_FORCE_INLINE DicTraverseSession(JNIEnv *env, jstring localeStr, bool usesLargeCache) in DicTraverseSession() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java74 final String localeStr = locale.toString(); in UserBinaryDictionary() local
75 if (SubtypeLocaleUtils.NO_LANGUAGE.equals(localeStr)) { in UserBinaryDictionary()
79 mLocale = localeStr; in UserBinaryDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java162 final String localeStr = getLocale(); in splitAndSuggest() local
163 if (!TextUtils.isEmpty(localeStr)) { in splitAndSuggest()
165 new Locale(localeStr)); in splitAndSuggest()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java58 ProximityInfo(final String localeStr, final int gridWidth, final int gridHeight, in ProximityInfo() argument
62 if (TextUtils.isEmpty(localeStr)) { in ProximityInfo()
65 mLocaleStr = localeStr; in ProximityInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionSetupActivity.java819 final String localeStr = systemLocales[i]; in getLanguages() local
820 final Locale locale = Locale.forLanguageTag(localeStr.replace('_', '-')); in getLanguages()
845 if (localeStr.equals("zz_ZZ")) { in getLanguages()
847 } else if (localeStr.equals("zz_ZY")) { in getLanguages()
/packages/apps/Settings/src/com/android/settings/
DUtils.java306 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument
313 if (null == localeStr) in createLocaleFromString()
315 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()