Searched refs:locales (Results 1 – 20 of 20) sorted by relevance
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()
2742 public boolean needsToUpdateLocaleData(LocaleSet locales) { in needsToUpdateLocaleData() argument2744 if (!dbLocale.equals(locales.toString())) { in needsToUpdateLocaleData()2759 final LocaleSet locales = LocaleSet.newDefault(); in upgradeLocaleData() local2760 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() argument2781 PropertyUtils.setProperty(db, DbProperties.LOCALE, locales.toString()); in rebuildLocaleData()2789 public void setLocale(LocaleSet locales) { in setLocale() argument2790 if (!needsToUpdateLocaleData(locales)) { in setLocale()2793 Log.i(TAG, "Switching to locale " + locales in setLocale()[all …]
1850 LocaleSet locales, ContactsDatabaseHelper contactsHelper, in needsToUpdateLocaleData() argument1857 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()
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()
232 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); in getLocalesList() local234 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()
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()
170 LocaleList locales = context.getResources().getConfiguration().getLocales(); in AlphabeticIndexVN() local171 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()
44 List<LocalePicker.LocaleInfo> locales = LocalePicker.getAllAssetLocales(context, in init() local47 final int finalSize = locales.size(); in init()54 final LocalePicker.LocaleInfo info = locales.get(i); in init()
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()
1163 LocaleList locales = mContext.getResources().getConfiguration().getLocales(); in rebuildSections() local1164 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()
115 private void setLocales(Locale... locales) { in setLocales() argument116 mTargetUtils = ContactLocaleUtils.newInstanceForTest(locales); in setLocales()
150 …lish messages in `rapidjson/error/en.h`. User can customize it for other locales, or use a custom …
1dictionary=main:en_us,locale=en_US,description=English (US),date ...