Home
last modified time | relevance | path

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

/frameworks/base/core/tests/inputmethodtests/src/android/os/
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 …]
DInputMethodTest.java763 private static ArrayList<InputMethodInfo> getSamplePreinstalledImes(final String localeString) { in getSamplePreinstalledImes() argument
779 final boolean isDefaultIme = contains(new String[]{ "hi", "en-rIN" }, localeString); in getSamplePreinstalledImes()
795 final boolean isDefaultIme = contains(new String[]{ "zh-rCN" }, localeString); in getSamplePreinstalledImes()
807 final boolean isDefaultIme = contains(new String[]{ "ko" }, localeString); in getSamplePreinstalledImes()
820 new String[]{ "en-rUS", "en-rGB", "en-rIN", "en", "hi" }, localeString); in getSamplePreinstalledImes()
841 final boolean isDefaultIme = contains(new String[]{ "ja", "ja-rJP" }, localeString); in getSamplePreinstalledImes()
/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.java297 String localeString = loc.getLanguage(); in getLocaleData() local
300 localeString += "-" + country; in getLocaleData()
302 return localeString.getBytes(); in getLocaleData()
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java455 final String localeString = currentInputMethodSubtype.getLocale(); in getCurrentSpellCheckerSubtype() local
456 if (!TextUtils.isEmpty(localeString)) { in getCurrentSpellCheckerSubtype()
458 candidateLocale = localeString; in getCurrentSpellCheckerSubtype()