Home
last modified time | relevance | path

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

12

/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.java2731 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData() argument
2733 if (!dbLocale.equals(locales.toString())) { in needsToUpdateLocaleData()
2752 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData() local
2753 Log.i(TAG, "Upgrading locale data for " + locales in upgradeLocaleData()
2756 rebuildLocaleData(db, locales, rebuildSqliteStats); in upgradeLocaleData()
2760 … private void rebuildLocaleData(SQLiteDatabase db, LocaleSet locales, boolean rebuildSqliteStats) { in rebuildLocaleData() argument
2774 PropertyUtils.setProperty(db, DbProperties.LOCALE, locales.toString()); in rebuildLocaleData()
2782 public void setLocale(LocaleSet locales) { in setLocale() argument
2783 if (!needsToUpdateLocaleData(locales)) { in setLocale()
2786 Log.i(TAG, "Switching to locale " + locales in setLocale()
[all …]
DContactsProvider2.java1793 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData() argument
1800 if (!locales.toString().equals(providerLocales)) { in needsToUpdateLocaleData()
1802 + " to " + locales); in needsToUpdateLocaleData()
1805 if (contactsHelper.needsToUpdateLocaleData(locales) || in needsToUpdateLocaleData()
1806 profileHelper.needsToUpdateLocaleData(locales)) { in needsToUpdateLocaleData()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DUserDictionaryListControllerTest.java89 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference() local
91 doReturn(locales).when(mController).getUserDictLocalesSet(mContext); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference()
102 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference() local
104 doReturn(locales).when(mController).getUserDictLocalesSet(mContext); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference()
117 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_threeLocales_shouldAddFourPreference() local
118 locales.add("en"); in createUserDictSettings_threeLocales_shouldAddFourPreference()
119 locales.add("es"); in createUserDictSettings_threeLocales_shouldAddFourPreference()
120 locales.add("fr"); in createUserDictSettings_threeLocales_shouldAddFourPreference()
122 doReturn(locales).when(mController).getUserDictLocalesSet(mContext); in createUserDictSettings_threeLocales_shouldAddFourPreference()
/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/Launcher3/src/com/android/launcher3/compat/
DAlphabeticIndexCompat.java24 public AlphabeticIndexCompat(LocaleList locales) { in AlphabeticIndexCompat() argument
25 int localeCount = locales.size(); in AlphabeticIndexCompat()
27 Locale primaryLocale = localeCount == 0 ? Locale.ENGLISH : locales.get(0); in AlphabeticIndexCompat()
30 indexBuilder.addLabels(locales.get(i)); in AlphabeticIndexCompat()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionaryAddWordContents.java237 final TreeSet<String> locales = in getLocalesList() local
240 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
243 locales.remove(systemLocale); // system locale may not be null in getLocalesList()
244 locales.remove(""); // Remove the empty string if it's there in getLocalesList()
252 for (final String l : locales) { in getLocalesList()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java237 final TreeSet<String> locales = in getLocalesList() local
240 locales.remove(mLocale); // mLocale may not be null in getLocalesList()
243 locales.remove(systemLocale); // system locale may not be null in getLocalesList()
244 locales.remove(""); // Remove the empty string if it's there in getLocalesList()
252 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/Settings/src/com/android/settings/accessibility/
DLocalePreference.java45 List<LocalePicker.LocaleInfo> locales = LocalePicker.getAllAssetLocales(context, in init() local
48 final int finalSize = locales.size(); in init()
55 final LocalePicker.LocaleInfo info = locales.get(i); in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DLocalePreference.java45 List<LocalePicker.LocaleInfo> locales = LocalePicker.getAllAssetLocales(context, in init() local
48 final int finalSize = locales.size(); in init()
55 final LocalePicker.LocaleInfo info = locales.get(i); in init()
/packages/apps/TV/src/com/android/tv/util/
DCaptionSettings.java65 LocaleList locales = LocaleList.getDefault(); in getSystemPreferenceLanguageList() local
66 for (int i = 0; i < locales.size() ; i++) { in getSystemPreferenceLanguageList()
67 languageList.add(locales.get(i).getLanguage()); in getSystemPreferenceLanguageList()
DTvTrackInfoUtils.java121 LocaleList locales = LocaleList.getDefault();
122 for (int i = 0; i < locales.size(); i++) {
123 languages.add(locales.get(i).getLanguage());
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java343 ArrayList<Locale> locales = new ArrayList<>(); in updateDefaultLanguagePreference() local
347 locales.add(locale); in updateDefaultLanguagePreference()
350 Collections.sort(locales, in updateDefaultLanguagePreference()
361 for (Locale locale : locales) { in updateDefaultLanguagePreference()
/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java112 private void setLocales(Locale... locales) { in setLocales() argument
113 mTargetUtils = ContactLocaleUtils.newInstanceForTest(locales); in setLocales()
/packages/inputmethods/LatinIME/java/
DAndroid.bp34 // Include all the resources regardless of system supported locales
/packages/apps/Car/LatinIME/
DAndroid.bp26 // Include all the resources regardless of system supported locales
/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 ...

12