Home
last modified time | relevance | path

Searched refs:LocaleSet (Results 1 – 5 of 5) 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 …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java29 public class LocaleSet { class
36 private LocaleSet(LocaleList localeList, Locale defaultLocaleOverrideForTest) { in LocaleSet() method in LocaleSet
41 public static LocaleSet newDefault() { in newDefault()
42 return new LocaleSet(LocaleList.getDefault(), in newDefault()
47 public static LocaleSet newForTest(Locale... locales) { in newForTest()
48 return new LocaleSet(new LocaleList(locales), locales[0]); in newForTest()
171 if (object instanceof LocaleSet) { in equals()
172 final LocaleSet other = (LocaleSet) object; in equals()
DContactLocaleUtils.java115 public ContactLocaleUtilsBase(LocaleSet systemLocales) { in ContactLocaleUtilsBase()
139 static List<Locale> getLocalesForBuckets(LocaleSet systemLocales) { in getLocalesForBuckets()
171 if (LocaleSet.isLanguageChinese(locale)) { in getLocalesForBuckets()
177 if (LocaleSet.isLanguageJapanese(locale)) { in getLocalesForBuckets()
301 public JapaneseContactUtils(LocaleSet locales) { in JapaneseContactUtils()
456 public SimplifiedChineseContactUtils(LocaleSet locales) { in SimplifiedChineseContactUtils()
510 private final LocaleSet mLocales;
513 private ContactLocaleUtils(LocaleSet locales) { in ContactLocaleUtils()
515 mLocales = LocaleSet.newDefault(); in ContactLocaleUtils()
530 public boolean isLocale(LocaleSet locales) { in isLocale()
[all …]
DContactsDatabaseHelper.java2727 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData()
2748 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData()
2756 … private void rebuildLocaleData(SQLiteDatabase db, LocaleSet locales, boolean rebuildSqliteStats) { in rebuildLocaleData()
2778 public void setLocale(LocaleSet locales) { in setLocale()
DContactsProvider2.java1471 private LocaleSet mCurrentLocales;
1600 mCurrentLocales = LocaleSet.newDefault(); in initForDefaultLocale()
1793 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData()
1826 final LocaleSet currentLocales = mCurrentLocales; in updateLocaleInBackground()
1856 final LocaleSet currentLocales = LocaleSet.newDefault(); in updateLocaleOffline()