Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java152 public static Locale constructLocaleFromString(String localeStr) { in constructLocaleFromString() argument
153 if (TextUtils.isEmpty(localeStr)) in constructLocaleFromString()
155 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
181 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() local
183 return localeStr; in getDisplayName()
188 return String.format(subtypeName.toString(), localeStr); in getDisplayName()
190 return localeStr; in getDisplayName()
DTextServicesManager.java155 final String localeStr = locale.toString(); in newSpellCheckerSession() local
160 if (tempSubtypeLocale.equals(localeStr)) { in newSpellCheckerSession()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java383 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() local
385 return localeStr; in getDisplayName()
393 : localeStr; in getDisplayName()
402 return localeStr; in getDisplayName()
506 private static Locale constructLocaleFromString(String localeStr) { in constructLocaleFromString() argument
507 if (TextUtils.isEmpty(localeStr)) in constructLocaleFromString()
509 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp325 const char *localeStr = env->GetStringUTFChars(locale, NULL); in android_media_MediaScanner_setLocale() local
326 if (localeStr == NULL) { // Out of memory in android_media_MediaScanner_setLocale()
329 mp->setLocale(localeStr); in android_media_MediaScanner_setLocale()
331 env->ReleaseStringUTFChars(locale, localeStr); in android_media_MediaScanner_setLocale()
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java175 final String localeStr = getLocale(); in onGetSentenceSuggestionsMultiple() local
176 if (!TextUtils.isEmpty(localeStr)) { in onGetSentenceSuggestionsMultiple()
177 mSentenceLevelAdapter = new SentenceLevelAdapter(new Locale(localeStr)); in onGetSentenceSuggestionsMultiple()
/frameworks/base/tools/aapt/
DCommand.cpp1083 const char* localeStr = locales[i].string(); in doDump() local
1084 assets.setLocale(localeStr != NULL ? localeStr : ""); in doDump()
1088 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
1096 printf("application-label-%s:'%s'\n", localeStr, in doDump()
1987 const char* localeStr = locales[i].string(); in doDump() local
1988 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
1989 localeStr = "--_--"; in doDump()
1991 printf(" '%s'", localeStr); in doDump()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DRuimRecords.java729 final String localeStr = locales[i]; in getAssetLanguages() local
730 final int separator = localeStr.indexOf('-'); in getAssetLanguages()
732 localeLangs[i] = localeStr; in getAssetLanguages()
734 localeLangs[i] = localeStr.substring(0, separator); in getAssetLanguages()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp271 jstring localeStr) { in nativeRegisterLocalizedCollators() argument
274 const char* locale = env->GetStringUTFChars(localeStr, NULL); in nativeRegisterLocalizedCollators()
276 env->ReleaseStringUTFChars(localeStr, locale); in nativeRegisterLocalizedCollators()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1703 final String localeStr = XmlUtils.readStringAttribute(parser, XML_ATTR_LOCALE); in readXmlAttrs() local
1704 if (localeStr != null) { in readXmlAttrs()
1705 configOut.locale = Locale.forLanguageTag(localeStr); in readXmlAttrs()
/frameworks/base/libs/androidfw/
DAssetManager.cpp827 const String8& localeStr = locales->itemAt(i); in getLocales() local
828 if (localeStr.find(kTlPrefix) == 0) { in getLocales()
830 replaced += (localeStr.string() + kTlPrefixLen); in getLocales()
DResourceTypes.cpp2572 char localeStr[RESTABLE_MAX_LOCALE_LEN]; in toString() local
2573 getBcp47Locale(localeStr); in toString()
2574 if (strlen(localeStr) > 0) { in toString()
2576 res.append(localeStr); in toString()