Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 20 of 20) 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.java2742 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData() argument
2744 if (!dbLocale.equals(locales.toString())) { in needsToUpdateLocaleData()
2759 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData() local
2760 Log.i(TAG, "Upgrading locale data for " + locales in upgradeLocaleData()
2763 rebuildLocaleData(db, locales, rebuildSqliteStats); in upgradeLocaleData()
2767 … private void rebuildLocaleData(SQLiteDatabase db, LocaleSet locales, boolean rebuildSqliteStats) { in rebuildLocaleData() argument
2781 PropertyUtils.setProperty(db, DbProperties.LOCALE, locales.toString()); in rebuildLocaleData()
2789 public void setLocale(LocaleSet locales) { in setLocale() argument
2790 if (!needsToUpdateLocaleData(locales)) { in setLocale()
2793 Log.i(TAG, "Switching to locale " + locales in setLocale()
[all …]
DContactsProvider2.java1850 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData() argument
1857 if (!locales.toString().equals(providerLocales)) { in needsToUpdateLocaleData()
1859 + " to " + locales); in needsToUpdateLocaleData()
1862 if (contactsHelper.needsToUpdateLocaleData(locales) || in needsToUpdateLocaleData()
1863 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.java232 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); in getLocalesList() local
234 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
237 locales.remove(systemLocale); // system locale may not be null in getLocalesList()
238 locales.remove(""); // Remove the empty string if it's there in getLocalesList()
246 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/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DStreamingServiceRepository.java68 List<Locale> locales = new ArrayList<Locale>() {{ in createStreamingService() local
72 StreamingServiceInfo info = new StreamingServiceInfo(localeDict, className, locales, in createStreamingService()
DFileServiceRepository.java84 List<Locale> locales = new ArrayList<Locale>(2) {{ in createFileService() local
95 FileServiceInfo info = new FileServiceInfo(localeDict, className, locales, in createFileService()
/packages/apps/Settings/src/com/android/settings/applications/
DManageApplications.java1163 LocaleList locales = mContext.getResources().getConfiguration().getLocales(); in rebuildSections() local
1164 if (locales.size() == 0) { in rebuildSections()
1165 locales = new LocaleList(Locale.ENGLISH); in rebuildSections()
1167 AlphabeticIndex<Locale> index = new AlphabeticIndex<>(locales.get(0)); in rebuildSections()
1168 int localeCount = locales.size(); in rebuildSections()
1170 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.gz
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz
Des_wordlist.combined.gz