Searched refs:locales (Results 1 – 25 of 28) sorted by relevance
12
123 final List<Locale> locales = getLocalesForBuckets(systemLocales); in ContactLocaleUtilsBase() local125 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() local155 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 …]
47 public static LocaleSet newForTest(Locale... locales) { in newForTest() argument48 return new LocaleSet(new LocaleList(locales), locales[0]); in newForTest()
2731 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData() argument2733 if (!dbLocale.equals(locales.toString())) { in needsToUpdateLocaleData()2752 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData() local2753 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() argument2774 PropertyUtils.setProperty(db, DbProperties.LOCALE, locales.toString()); in rebuildLocaleData()2782 public void setLocale(LocaleSet locales) { in setLocale() argument2783 if (!needsToUpdateLocaleData(locales)) { in setLocale()2786 Log.i(TAG, "Switching to locale " + locales in setLocale()[all …]
1793 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData() argument1800 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()
89 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference() local91 doReturn(locales).when(mController).getUserDictLocalesSet(mContext); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference()102 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference() local104 doReturn(locales).when(mController).getUserDictLocalesSet(mContext); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference()117 final TreeSet<String> locales = new TreeSet<>(); in createUserDictSettings_threeLocales_shouldAddFourPreference() local118 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()
28 final String[] locales = {"en_US", "de", "el", "es", "fi", "it", "nl", "pt", "ru"}; in testSwitchLanguagesAndInputLatinRandomCodePoints() local35 changeLanguageWithoutWait(locales[random.nextInt(locales.length)], in testSwitchLanguagesAndInputLatinRandomCodePoints()45 final String[] locales = {"en_US", "de", "el", "es", "fi", "it", "nl", "pt", "ru"}; in testSwitchLanguagesAndInputRandomCodePoints() local53 changeLanguageWithoutWait(locales[random.nextInt(locales.length)], in testSwitchLanguagesAndInputRandomCodePoints()
24 public AlphabeticIndexCompat(LocaleList locales) { in AlphabeticIndexCompat() argument25 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()
237 final TreeSet<String> locales = in getLocalesList() local240 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()
256 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); in getLocalesList() local258 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()
45 List<LocalePicker.LocaleInfo> locales = LocalePicker.getAllAssetLocales(context, in init() local48 final int finalSize = locales.size(); in init()55 final LocalePicker.LocaleInfo info = locales.get(i); in init()
65 LocaleList locales = LocaleList.getDefault(); in getSystemPreferenceLanguageList() local66 for (int i = 0; i < locales.size() ; i++) { in getSystemPreferenceLanguageList()67 languageList.add(locales.get(i).getLanguage()); in getSystemPreferenceLanguageList()
121 LocaleList locales = LocaleList.getDefault();122 for (int i = 0; i < locales.size(); i++) {123 languages.add(locales.get(i).getLanguage());
343 ArrayList<Locale> locales = new ArrayList<>(); in updateDefaultLanguagePreference() local347 locales.add(locale); in updateDefaultLanguagePreference()350 Collections.sort(locales, in updateDefaultLanguagePreference()361 for (Locale locale : locales) { in updateDefaultLanguagePreference()
29 final LocaleList locales = LocalePicker.getLocales(); in getLocaleNames() local33 locales, displayLocale, 2 /* Show up to two locales from the list */), in getLocaleNames()
68 List<Locale> locales = new ArrayList<Locale>() {{ in createStreamingService() local72 StreamingServiceInfo info = new StreamingServiceInfo(localeDict, className, locales, in createStreamingService()
84 List<Locale> locales = new ArrayList<Locale>(2) {{ in createFileService() local95 FileServiceInfo info = new FileServiceInfo(localeDict, className, locales, in createFileService()
112 private void setLocales(Locale... locales) { in setLocales() argument113 mTargetUtils = ContactLocaleUtils.newInstanceForTest(locales); in setLocales()
34 // Include all the resources regardless of system supported locales
26 // Include all the resources regardless of system supported locales
150 …lish messages in `rapidjson/error/en.h`. User can customize it for other locales, or use a custom …
1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...