/packages/apps/Settings/src/com/android/settings/search/ |
D | Index.java | 697 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/ |
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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | additional_proximity_chars.h | 41 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()
|
D | proximity_info_utils.h | 54 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/ |
D | PersonalizationHelper.java | 41 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/ |
D | LocaleUtils.java | 183 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/ |
D | LocaleUtils.java | 167 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/ |
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 | 40 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/ |
D | UserBinaryDictionary.java | 74 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/ |
D | AndroidSpellCheckerSession.java | 162 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/ |
D | ProximityInfo.java | 58 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/ |
D | CaptionSetupActivity.java | 819 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/ |
D | Utils.java | 306 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument 313 if (null == localeStr) in createLocaleFromString() 315 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()
|