Home
last modified time | relevance | path

Searched refs:getPrimaryLocale (Results 1 – 4 of 4) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java103 public @NonNull Locale getPrimaryLocale() { in getPrimaryLocale() method in LocaleSet
115 return isLocaleCJK(getPrimaryLocale()); in isPrimaryLocaleCJK()
122 if (isLanguageJapanese(getPrimaryLocale())) { in shouldPreferJapanese()
141 if (isLocaleSimplifiedChinese(getPrimaryLocale())) { in shouldPreferSimplifiedChinese()
DContactsDatabaseHelper.java2787 db.setLocale(locales.getPrimaryLocale()); in setLocale()
DContactsProvider2.java1601 mNameSplitter = mContactsHelper.createNameSplitter(mCurrentLocales.getPrimaryLocale()); in initForDefaultLocale()
1603 mPostalSplitter = new PostalSplitter(mCurrentLocales.getPrimaryLocale()); in initForDefaultLocale()
/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()
31 .getPrimaryLocale()); in testPrimaryLocale()
33 assertEquals(Locale.getDefault(), LocaleSet.newDefault().getPrimaryLocale()); in testPrimaryLocale()
37 assertEquals(Locale.JAPANESE, LocaleSet.newDefault().getPrimaryLocale()); in testPrimaryLocale()