Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLocaleSetTest.java28 assertEquals(Locale.CANADA, LocaleSet.newForTest(Locale.CANADA).getPrimaryLocale()); in testPrimaryLocale()
29 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN).getPrimaryLocale()); in testPrimaryLocale()
30 assertEquals(Locale.GERMAN, LocaleSet.newForTest(Locale.GERMAN, Locale.CANADA) in testPrimaryLocale()
33 assertEquals(Locale.getDefault(), LocaleSet.newDefault().getPrimaryLocale()); in testPrimaryLocale()
37 assertEquals(Locale.JAPANESE, LocaleSet.newDefault().getPrimaryLocale()); in testPrimaryLocale()
44 assertTrue(LocaleSet.isLanguageChinese(Locale.CHINESE)); in testIsLanguageChinese()
45 assertTrue(LocaleSet.isLanguageChinese(Locale.TRADITIONAL_CHINESE)); in testIsLanguageChinese()
46 assertTrue(LocaleSet.isLanguageChinese(Locale.SIMPLIFIED_CHINESE)); in testIsLanguageChinese()
48 assertFalse(LocaleSet.isLanguageChinese(Locale.JAPANESE)); in testIsLanguageChinese()
49 assertFalse(LocaleSet.isLanguageChinese(Locale.ENGLISH)); in testIsLanguageChinese()
[all …]
DContactLocaleUtilsTest.java190 LocaleSet.newForTest(Locale.ENGLISH, Locale.SIMPLIFIED_CHINESE)); in testPinyinEnabledSecondaryLocale()
200 LocaleSet.newForTest(Locale.ENGLISH, Locale.JAPAN)); in testPinyinDisabledSecondaryLocale()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java28 public class LocaleSet { class
35 private LocaleSet(LocaleList localeList, Locale defaultLocaleOverrideForTest) { in LocaleSet() method in LocaleSet
40 public static LocaleSet newDefault() { in newDefault()
41 return new LocaleSet(LocaleList.getDefault(), in newDefault()
46 public static LocaleSet newForTest(Locale... locales) { in newForTest()
47 return new LocaleSet(new LocaleList(locales), locales[0]); in newForTest()
163 if (object instanceof LocaleSet) { in equals()
164 final LocaleSet other = (LocaleSet) object; in equals()
DContactLocaleUtils.java100 public ContactLocaleUtilsBase(LocaleSet locales) { in ContactLocaleUtilsBase()
247 public JapaneseContactUtils(LocaleSet locales) { in JapaneseContactUtils()
389 public SimplifiedChineseContactUtils(LocaleSet locales) { in SimplifiedChineseContactUtils()
443 private final LocaleSet mLocales;
446 private ContactLocaleUtils(LocaleSet locales) { in ContactLocaleUtils()
448 mLocales = LocaleSet.newDefault(); in ContactLocaleUtils()
463 public boolean isLocale(LocaleSet locales) { in isLocale()
469 sSingleton = new ContactLocaleUtils(LocaleSet.newDefault()); in getInstance()
476 setLocales(LocaleSet.newForTest(locales)); in setLocaleForTest()
479 public static synchronized void setLocales(LocaleSet locales) { in setLocales()
DContactsDatabaseHelper.java3533 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData()
3550 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData()
3559 … private void rebuildLocaleData(SQLiteDatabase db, LocaleSet locales, boolean rebuildSqliteStats) { in rebuildLocaleData()
3581 public void setLocale(LocaleSet locales) { in setLocale()
DContactsProvider2.java1527 private LocaleSet mCurrentLocales;
1653 mCurrentLocales = LocaleSet.newDefault(); in initForDefaultLocale()
1848 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData()
1881 final LocaleSet currentLocales = mCurrentLocales; in updateLocaleInBackground()
1905 final LocaleSet currentLocales = LocaleSet.newDefault(); in updateLocaleOffline()