Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java28 public void verifyLocale(final String localeString) { in verifyLocale() argument
31 assertEquals(localeString, createDummySubtype(localeString).getLocale()); in verifyLocale()
34 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
35 cloneViaParcel(createDummySubtype(localeString)).getLocale()); in verifyLocale()
38 assertEquals(createDummySubtype(localeString).getLocale(), in verifyLocale()
39 cloneViaParcel(cloneViaParcel(createDummySubtype(localeString))).getLocale()); in verifyLocale()
42 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
43 createDummySubtype(localeString).hashCode()); in verifyLocale()
44 assertEquals(createDummySubtype(localeString).hashCode(), in verifyLocale()
45 cloneViaParcel(createDummySubtype(localeString)).hashCode()); in verifyLocale()
[all …]
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java338 String localeString = parseEnginePrefFromList( in getLocalePrefForEngine() local
342 if (TextUtils.isEmpty(localeString)) { in getLocalePrefForEngine()
347 Locale result = parseLocaleString(localeString); in getLocalePrefForEngine()
349 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead"); in getLocalePrefForEngine()
379 public Locale parseLocaleString(String localeString) { in parseLocaleString() argument
381 if (!TextUtils.isEmpty(localeString)) { in parseLocaleString()
382 String[] split = localeString.split( in parseLocaleString()
386 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Only" + in parseLocaleString()
391 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object. Too" + in parseLocaleString()
423 Log.w(TAG, "Failed to convert " + localeString + " to a valid Locale object."); in parseLocaleString()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java309 String localeString = loc.getLanguage(); in getLocaleData() local
312 localeString += "-" + country; in getLocaleData()
314 return localeString.getBytes(); in getLocaleData()
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DInputMethodUtilsTest.java983 private static ArrayList<InputMethodInfo> getSamplePreinstalledImes(final String localeString) { in getSamplePreinstalledImes() argument
999 final boolean isDefaultIme = contains(new String[]{ "hi", "en-rIN" }, localeString); in getSamplePreinstalledImes()
1015 final boolean isDefaultIme = contains(new String[]{ "zh-rCN" }, localeString); in getSamplePreinstalledImes()
1027 final boolean isDefaultIme = contains(new String[]{ "ko" }, localeString); in getSamplePreinstalledImes()
1040 new String[]{ "en-rUS", "en-rGB", "en-rIN", "en", "hi" }, localeString); in getSamplePreinstalledImes()
1061 final boolean isDefaultIme = contains(new String[]{ "ja", "ja-rJP" }, localeString); in getSamplePreinstalledImes()
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java487 final String localeString = currentInputMethodSubtype.getLocale(); in getCurrentSpellCheckerSubtype() local
488 if (!TextUtils.isEmpty(localeString)) { in getCurrentSpellCheckerSubtype()
490 candidateLocale = localeString; in getCurrentSpellCheckerSubtype()