/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | LocaleUtils.java | 53 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()
|
D | JarUtils.java | 101 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", "_"));
|
D | MoreKeysResources.java | 190 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/search/ |
D | Index.java | 724 private void indexOneSearchIndexableData(SQLiteDatabase database, String localeStr, in indexOneSearchIndexableData() argument 727 indexOneResource(database, localeStr, (SearchIndexableResource) data, nonIndexableKeys); in indexOneSearchIndexableData() 729 indexOneRaw(database, localeStr, (SearchIndexableRaw) data); in indexOneSearchIndexableData() 733 private void indexOneRaw(SQLiteDatabase database, String localeStr, in indexOneRaw() argument 736 if (!raw.locale.toString().equalsIgnoreCase(localeStr)) { in indexOneRaw() 740 updateOneRowWithFilteredData(database, localeStr, in indexOneRaw() 773 private void indexOneResource(SQLiteDatabase database, String localeStr, in indexOneResource() argument 789 indexFromResource(sir.context, database, localeStr, in indexOneResource() 815 indexFromProvider(mContext, database, localeStr, provider, sir.className, in indexOneResource() 841 private void indexFromResource(Context context, SQLiteDatabase database, String localeStr, in indexFromResource() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettingsUtils.java | 31 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/ |
D | UserDictionarySettingsUtils.java | 32 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/ |
D | dic_traverse_session.h | 41 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/ |
D | UserBinaryDictionary.java | 63 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/ |
D | AndroidSpellCheckerSession.java | 165 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/ |
D | Utils.java | 268 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument 275 if (null == localeStr) in createLocaleFromString() 277 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()
|