Home
last modified time | relevance | path

Searched refs:localeStr (Results 1 – 7 of 7) 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.java144 final String localeStr = locale.toString(); in newSpellCheckerSession() local
148 if (tempSubtypeLocale.equals(localeStr)) { in newSpellCheckerSession()
151 } else if (localeStr.length() >= 2 && tempSubtypeLocale.length() >= 2 in newSpellCheckerSession()
152 && localeStr.startsWith(tempSubtypeLocale)) { in newSpellCheckerSession()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java215 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() local
217 return localeStr; in getDisplayName()
225 : localeStr; in getDisplayName()
234 return localeStr; in getDisplayName()
331 private static Locale constructLocaleFromString(String localeStr) { in constructLocaleFromString() argument
332 if (TextUtils.isEmpty(localeStr)) in constructLocaleFromString()
334 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp280 const char *localeStr = env->GetStringUTFChars(locale, NULL); in android_media_MediaScanner_setLocale() local
281 if (localeStr == NULL) { // Out of memory in android_media_MediaScanner_setLocale()
284 mp->setLocale(localeStr); in android_media_MediaScanner_setLocale()
286 env->ReleaseStringUTFChars(locale, localeStr); in android_media_MediaScanner_setLocale()
/frameworks/base/tools/aapt/
DCommand.cpp790 const char* localeStr = locales[i].string(); in doDump() local
791 assets.setLocale(localeStr != NULL ? localeStr : ""); in doDump()
794 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
801 printf("application-label-%s:'%s'\n", localeStr, in doDump()
1456 const char* localeStr = locales[i].string(); in doDump() local
1457 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
1458 localeStr = "--_--"; in doDump()
1460 printf(" '%s'", localeStr); in doDump()
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java176 final String localeStr = getLocale(); in onGetSentenceSuggestionsMultiple() local
177 if (!TextUtils.isEmpty(localeStr)) { in onGetSentenceSuggestionsMultiple()
178 mSentenceLevelAdapter = new SentenceLevelAdapter(new Locale(localeStr)); in onGetSentenceSuggestionsMultiple()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp270 jstring localeStr) { in nativeRegisterLocalizedCollators() argument
273 const char* locale = env->GetStringUTFChars(localeStr, NULL); in nativeRegisterLocalizedCollators()
275 env->ReleaseStringUTFChars(localeStr, locale); in nativeRegisterLocalizedCollators()