Searched refs:parseLocaleString (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TtsEnginesTests.java | 17 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-usa")); in testParseLocaleString() 18 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-USA")); in testParseLocaleString() 19 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en-US")); in testParseLocaleString() 20 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en_us")); in testParseLocaleString() 21 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng_US")); in testParseLocaleString() 23 mTtsHelper.parseLocaleString("eng_US-foobar")); in testParseLocaleString() 24 assertEquals(new Locale("en", "", "foobar"), mTtsHelper.parseLocaleString("eng__foobar")); in testParseLocaleString() 25 assertNull(mTtsHelper.parseLocaleString("cc_xx_barbar")); in testParseLocaleString() 26 assertNull(mTtsHelper.parseLocaleString("cc--barbar")); in testParseLocaleString() 28 assertEquals(new Locale("en"), mTtsHelper.parseLocaleString("eng")); in testParseLocaleString() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | TtsEngines.java | 352 Locale result = parseLocaleString(localeString); in getLocalePrefForEngine() 385 public Locale parseLocaleString(String localeString) { in parseLocaleString() method in TtsEngines
|