Home
last modified time | relevance | path

Searched refs:getScriptIfChinese (Results 1 – 2 of 2) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLocaleSetTest.java53 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh"))); in testGetScriptIfChinese()
54 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-SG"))); in testGetScriptIfChinese()
56 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-TW"))); in testGetScriptIfChinese()
57 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-HK"))); in testGetScriptIfChinese()
59 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.ENGLISH)); in testGetScriptIfChinese()
60 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja"))); in testGetScriptIfChinese()
61 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja-JP"))); in testGetScriptIfChinese()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java85 static String getScriptIfChinese(@Nullable Locale locale) { in getScriptIfChinese() method in LocaleSet
90 return SCRIPT_SIMPLIFIED_CHINESE.equals(getScriptIfChinese(locale)); in isLocaleSimplifiedChinese()
95 return SCRIPT_TRADITIONAL_CHINESE.equals(getScriptIfChinese(locale)); in isLocaleTraditionalChinese()