Home
last modified time | relevance | path

Searched refs:localeString (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java41 public void verifyLocale(final String localeString) { in verifyLocale() argument
44 assertEquals(localeString, createDummySubtype(localeString).getLocale()); in verifyLocale()
47 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
48 cloneViaParcel(createDummySubtype(localeString)).getLocale()); in verifyLocale()
51 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
52 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).getLocale()); in verifyLocale()
55 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
56 createDummySubtype(localeString).hashCode()); in verifyLocale()
57 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
58 cloneViaParcel(createDummySubtype(localeString)).hashCode()); in verifyLocale()
[all …]
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java343 String localeString = parseEnginePrefFromList( in getLocalePrefForEngine() local
347 if (TextUtils.isEmpty(localeString)) { in getLocalePrefForEngine()
352 Locale result = parseLocaleString(localeString); in getLocalePrefForEngine()
354 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead"); in getLocalePrefForEngine()
385 public Locale parseLocaleString(String localeString) { in parseLocaleString() argument
387 if (!TextUtils.isEmpty(localeString)) { in parseLocaleString()
388 String[] split = localeString.split( in parseLocaleString()
392 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Only" + in parseLocaleString()
397 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Too" + in parseLocaleString()
429 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object."); in parseLocaleString()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp40 std::string localeString = locale.toString(); // ICU only understands C-style string. in toLanguageTag() local
44 outLength = uloc_canonicalize(localeString.c_str(), output, outSize, &uErr); in toLanguageTag()
47 ALOGD("uloc_canonicalize(\"%s\") failed: %s", localeString.c_str(), u_errorName(uErr)); in toLanguageTag()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java154 final String localeString = a.getString(com.android.internal.R.styleable in TextAppearanceSpan() local
156 if (localeString != null) { in TextAppearanceSpan()
157 LocaleList localeList = LocaleList.forLanguageTags(localeString); in TextAppearanceSpan()
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodUtilsTest.java991 private static ArrayList<InputMethodInfo> getSamplePreinstalledImes(final String localeString) { in getSamplePreinstalledImes() argument
1007 final boolean isDefaultIme = contains(new String[]{ "hi", "en-rIN" }, localeString); in getSamplePreinstalledImes()
1023 final boolean isDefaultIme = contains(new String[]{ "zh-rCN" }, localeString); in getSamplePreinstalledImes()
1035 final boolean isDefaultIme = contains(new String[]{ "ko" }, localeString); in getSamplePreinstalledImes()
1048 new String[]{ "en-rUS", "en-rGB", "en-rIN", "en", "hi" }, localeString); in getSamplePreinstalledImes()
1069 final boolean isDefaultIme = contains(new String[]{ "ja", "ja-rJP" }, localeString); in getSamplePreinstalledImes()
/frameworks/base/core/java/android/widget/
DTextView.java3974 final String localeString = appearance.getString(attr); in readTextAppearance() local
3975 if (localeString != null) { in readTextAppearance()
3976 final LocaleList localeList = LocaleList.forLanguageTags(localeString); in readTextAppearance()