Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/inputmethod/
DSubtypeLocaleUtils.java47 public static Locale constructLocaleFromString(String localeStr) { in constructLocaleFromString() argument
48 if (TextUtils.isEmpty(localeStr)) { in constructLocaleFromString()
52 String[] localeParams = localeStr.split("_", 3); in constructLocaleFromString()
/frameworks/minikin/libs/minikin/
DHyphenatorMap.h34 static void add(const std::string& localeStr, const Hyphenator* hyphenator) { in add() argument
35 getInstance().addInternal(localeStr, hyphenator); in add()
62 void addInternal(const std::string& localeStr, const Hyphenator* hyphenator);
DHyphenatorMap.cpp36 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator) { in addHyphenator() argument
37 HyphenatorMap::add(localeStr, hyphenator); in addHyphenator()
48 void HyphenatorMap::addInternal(const std::string& localeStr, const Hyphenator* hyphenator) { in addInternal() argument
49 const Locale locale(localeStr); in addInternal()
DLocaleListCache.cpp90 StringPiece localeStr = it.next(); in parseLocaleList() local
91 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
/frameworks/minikin/tests/unittest/
DLocaleListTest.cpp28 const LocaleList& getLocaleList(const std::string& localeStr) { in getLocaleList() argument
29 return LocaleListCache::getById(LocaleListCache::getId(localeStr)); in getLocaleList()
DHyphenatorMapTest.cpp133 const Locale& getLocale(const std::string& localeStr) { in getLocale() argument
136 const uint32_t id = LocaleListCache::getId(localeStr); in getLocale()
142 const Hyphenator* lookup(const std::string& localeStr) { in lookup() argument
143 return mMap.lookupInternal(getLocale(localeStr)); in lookup()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java247 final String localeStr = locale != null ? locale.getDisplayName() : mSubtypeLocale; in getDisplayName() local
249 return localeStr; in getDisplayName()
254 return String.format(subtypeName.toString(), localeStr); in getDisplayName()
256 return localeStr; in getDisplayName()
DTextServicesManager.java188 final String localeStr = locale.toString(); in newSpellCheckerSession() local
193 if (tempSubtypeLocale.equals(localeStr)) { in newSpellCheckerSession()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp328 const char *localeStr = env->GetStringUTFChars(locale, NULL); in android_media_MediaScanner_setLocale() local
329 if (localeStr == NULL) { // Out of memory in android_media_MediaScanner_setLocale()
332 mp->setLocale(localeStr); in android_media_MediaScanner_setLocale()
334 env->ReleaseStringUTFChars(locale, localeStr); in android_media_MediaScanner_setLocale()
/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/native/android/
Dsystem_fonts.cpp142 XmlCharUniquePtr localeStr(xmlGetProp(xmlDoc->parent, LOCALE_ATTR_NAME)); in copyFont() local
144 localeStr ? new std::string(reinterpret_cast<const char*>(localeStr.get())) : nullptr); in copyFont()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DRuimRecords.java739 final String localeStr = locales[i]; in getAssetLanguages() local
740 final int separator = localeStr.indexOf('-'); in getAssetLanguages()
742 localeLangs[i] = localeStr; in getAssetLanguages()
744 localeLangs[i] = localeStr.substring(0, separator); in getAssetLanguages()
/frameworks/base/tools/aapt/
DCommand.cpp1320 const char* localeStr = locales[i].string(); in doDump() local
1321 assets.setConfiguration(config, localeStr != NULL ? localeStr : ""); in doDump()
1325 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
1333 printf("application-label-%s:'%s'\n", localeStr, in doDump()
2281 const char* localeStr = locales[i].string(); in doDump() local
2282 if (localeStr == NULL || strlen(localeStr) == 0) { in doDump()
2283 localeStr = "--_--"; in doDump()
2285 printf(" '%s'", localeStr); in doDump()
/frameworks/minikin/include/minikin/
DHyphenator.h37 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator);
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp284 jstring localeStr) { in nativeRegisterLocalizedCollators() argument
287 const char* locale = env->GetStringUTFChars(localeStr, NULL); in nativeRegisterLocalizedCollators()
289 env->ReleaseStringUTFChars(localeStr, locale); in nativeRegisterLocalizedCollators()