Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 18 of 18) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java123 final List<Locale> locales = getLocalesForBuckets(systemLocales); in ContactLocaleUtilsBase() local
125 AlphabeticIndex ai = new AlphabeticIndex(locales.get(0)) in ContactLocaleUtilsBase()
127 for (int i = 1; i < locales.size(); i++) { in ContactLocaleUtilsBase()
128 ai.addLabels(locales.get(i)); in ContactLocaleUtilsBase()
152 final List<Locale> locales = new ArrayList<>( in getLocalesForBuckets() local
155 locales.add(localeList.get(i)); in getLocalesForBuckets()
158 locales.add(sDefaultLabelLocales[i]); in getLocalesForBuckets()
162 final List<Locale> ret = new ArrayList<>(locales.size()); in getLocalesForBuckets()
165 for (int i = 0; i < locales.size(); i++) { in getLocalesForBuckets()
166 final Locale locale = locales.get(i); in getLocalesForBuckets()
[all …]
DLocaleSet.java47 public static LocaleSet newForTest(Locale... locales) { in newForTest() argument
48 return new LocaleSet(new LocaleList(locales), locales[0]); in newForTest()
DContactsDatabaseHelper.java2734 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData() argument
2736 if (!dbLocale.equals(locales.toString())) { in needsToUpdateLocaleData()
2751 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData() local
2752 Log.i(TAG, "Upgrading locale data for " + locales in upgradeLocaleData()
2755 rebuildLocaleData(db, locales, rebuildSqliteStats); in upgradeLocaleData()
2759 … private void rebuildLocaleData(SQLiteDatabase db, LocaleSet locales, boolean rebuildSqliteStats) { in rebuildLocaleData() argument
2773 PropertyUtils.setProperty(db, DbProperties.LOCALE, locales.toString()); in rebuildLocaleData()
2781 public void setLocale(LocaleSet locales) { in setLocale() argument
2782 if (!needsToUpdateLocaleData(locales)) { in setLocale()
2785 Log.i(TAG, "Switching to locale " + locales in setLocale()
[all …]
DContactsProvider2.java1851 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData() argument
1858 if (!locales.toString().equals(providerLocales)) { in needsToUpdateLocaleData()
1860 + " to " + locales); in needsToUpdateLocaleData()
1863 if (contactsHelper.needsToUpdateLocaleData(locales) || in needsToUpdateLocaleData()
1864 profileHelper.needsToUpdateLocaleData(locales)) { in needsToUpdateLocaleData()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DLatinImeStressTests.java28 final String[] locales = {"en_US", "de", "el", "es", "fi", "it", "nl", "pt", "ru"}; in testSwitchLanguagesAndInputLatinRandomCodePoints() local
35 changeLanguageWithoutWait(locales[random.nextInt(locales.length)], in testSwitchLanguagesAndInputLatinRandomCodePoints()
45 final String[] locales = {"en_US", "de", "el", "es", "fi", "it", "nl", "pt", "ru"}; in testSwitchLanguagesAndInputRandomCodePoints() local
53 changeLanguageWithoutWait(locales[random.nextInt(locales.length)], in testSwitchLanguagesAndInputRandomCodePoints()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java233 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); in getLocalesList() local
235 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
238 locales.remove(systemLocale); // system locale may not be null in getLocalesList()
239 locales.remove(""); // Remove the empty string if it's there in getLocalesList()
247 for (final String l : locales) { in getLocalesList()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordContents.java256 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); in getLocalesList() local
258 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
261 locales.remove(systemLocale); // system locale may not be null in getLocalesList()
262 locales.remove(""); // Remove the empty string if it's there in getLocalesList()
270 for (final String l : locales) { in getLocalesList()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAlphabeticIndexCompat.java170 LocaleList locales = context.getResources().getConfiguration().getLocales(); in AlphabeticIndexVN() local
171 int localeCount = locales.size(); in AlphabeticIndexVN()
173 Locale primaryLocale = localeCount == 0 ? Locale.ENGLISH : locales.get(0); in AlphabeticIndexVN()
176 indexBuilder.addLabels(locales.get(i)); in AlphabeticIndexVN()
/packages/apps/Settings/src/com/android/settings/accessibility/
DLocalePreference.java44 List<LocalePicker.LocaleInfo> locales = LocalePicker.getAllAssetLocales(context, in init() local
47 final int finalSize = locales.size(); in init()
54 final LocalePicker.LocaleInfo info = locales.get(i); in init()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleFeatureProviderImpl.java29 final LocaleList locales = LocalePicker.getLocales(); in getLocaleNames() local
33 locales, displayLocale, 2 /* Show up to two locales from the list */), in getLocaleNames()
/packages/apps/Settings/src/com/android/settings/applications/
DManageApplications.java1108 LocaleList locales = mContext.getResources().getConfiguration().getLocales(); in rebuildSections() local
1109 if (locales.size() == 0) { in rebuildSections()
1110 locales = new LocaleList(Locale.ENGLISH); in rebuildSections()
1112 AlphabeticIndex<Locale> index = new AlphabeticIndex<>(locales.get(0)); in rebuildSections()
1113 int localeCount = locales.size(); in rebuildSections()
1115 index.addLabels(locales.get(i)); in rebuildSections()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java115 private void setLocales(Locale... locales) { in setLocales() argument
116 mTargetUtils = ContactLocaleUtils.newInstanceForTest(locales); in setLocales()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Ddom.md150 …lish messages in `rapidjson/error/en.h`. User can customize it for other locales, or use a custom …
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Des_wordlist.combined.gz1dictionary=main:es,locale=es,description=Español,date=1414726268, ...