HomeSort by relevance Sort by last modified time
    Searched defs:locales (Results 26 - 50 of 92) sorted by null

12 3 4

  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
LocaleMenuListener.java 81 List<Locale> locales = chooser.getLocaleList(); local
84 for (Locale locale : locales) {
101 if (locales.size() > 1) {
106 "Preview All Locales", chooser, RenderPreviewMode.LOCALES);
ConfigurationDescription.java 205 String locales[] = localeString.split(SEP_LOCALE); local
206 if (locales[0].length() > 0) {
207 language = new LanguageQualifier(locales[0]);
209 if (locales.length > 1 && locales[1].length() > 0) {
210 region = new RegionQualifier(locales[1]);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
LocaleTest.java 89 assertTrue("Different locales returned true", !testLocale.equals(l));
99 // Assumes there will generally be about 100+ available locales...
100 Locale[] locales = Locale.getAvailableLocales(); local
101 assertTrue("Wrong number of locales: ", locales.length > 100);
103 // HashSet can filter duplicate locales
104 Set<Locale> localesSet = new HashSet<Locale>(Arrays.asList(locales));
106 assertTrue(localesSet.size() <= locales.length);
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DateFormatTest.java 45 Locale[] locales = DateFormat.getAvailableLocales(); local
46 assertTrue("No locales", locales.length > 0);
48 for (int i = locales.length; --i >= 0;) {
49 if (locales[i].equals(Locale.ENGLISH))
51 if (locales[i].equals(Locale.GERMAN))
54 DateFormat.SHORT, locales[i]);
58 assertTrue("Missing locales", english && german);
BreakIteratorTest.java 166 Locale[] locales = BreakIterator.getAvailableLocales(); local
167 assertTrue(locales.length > 0);
DateFormatSymbolsTest.java 57 Locale[] locales = DateFormatSymbols.getAvailableLocales(); local
58 assertNotNull(locales);
61 for (Locale locale : locales) {
80 Locale[] locales = DateFormatSymbols.getAvailableLocales();
81 assertNotNull(locales);
84 for (Locale locale : locales) {
DecimalFormatSymbolsTest.java 66 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); local
67 assertNotNull(locales);
70 for (Locale locale : locales) {
89 Locale[] locales = DecimalFormatSymbols.getAvailableLocales();
90 assertNotNull(locales);
93 for (Locale locale : locales) {
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
TtsPlatformImpl.java 213 Locale[] locales = Locale.getAvailableLocales(); local
215 for (int i = 0; i < locales.length; ++i) {
216 if (!locales[i].getVariant().isEmpty()) continue;
217 if (mTextToSpeech.isLanguageAvailable(locales[i]) > 0) {
218 String name = locales[i].getDisplayLanguage();
219 if (!locales[i].getCountry().isEmpty()) {
220 name += " " + locales[i].getDisplayCountry();
222 TtsVoice voice = new TtsVoice(name, locales[i].toString());
  /external/chromium_org/third_party/icu/source/test/intltest/
dtfmapts.cpp 72 const char *LOCALES[] = {
81 DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Locale(LOCALES[i]));
214 const Locale *locales = DateFormat::getAvailableLocales(count); local
215 logln((UnicodeString) "Got " + count + " locales" );
218 name = locales[i].getName();
nmfmapts.cpp 190 const Locale *locales = NumberFormat::getAvailableLocales(count); local
191 logln((UnicodeString) "Got " + count + " locales" );
193 UnicodeString name(locales[i].getName(),"");
tufmtts.cpp 37 const char* locales[] = {"en", "sl", "fr", "zh", "ar", "ru", "zh_Hant", "pa"}; local
39 locIndex < sizeof(locales)/sizeof(locales[0]);
42 Locale loc(locales[locIndex]);
49 std::cout << "locale: " << locales[locIndex] << "\n";
214 const char* locales[] = {"el-GR", "el"}; local
256 locIndex < sizeof(locales)/sizeof(locales[0]);
259 Locale l = Locale::createFromName(locales[locIndex]);
286 std::cout << "Failed to get TimeUnitFormat for " << locales[locIndex] << "\n" local
    [all...]
tzfmttst.cpp 86 // Set up test locales
94 const Locale *LOCALES;
98 LOCALES = testLocales;
101 LOCALES = Locale::getAvailableLocales(nLocales);
117 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], status);
120 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status));
187 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx]
192 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx]
217 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx]
225 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx
246 const Locale* locales; \/\/ Static member in struct:LocaleData
    [all...]
  /external/chromium_org/ui/base/l10n/
l10n_util.cc 211 // We added 30+ minimally populated locales with only a few entries
213 // lanaguage name). These locales have to be distinguished from the
214 // fully populated locales to which Chrome is localized.
216 // For partially populated locales, even the translation for "English"
233 // but it'd slow down the start up time a little bit for locales Chrome is
354 std::vector<std::string>* locales = local
363 // Filter out locales for which we have only partially populated data
379 locales->push_back(locale_name);
383 locales->push_back("es-419");
384 return locales;
    [all...]
  /external/icu4c/layoutex/
plruns.cpp 215 * Construct a <code>LocaleRuns</code> object from pre-existing arrays of locales
218 * @param locales is the address of an array of locale name strings. This array,
229 ULocRuns(const char **locales, const le_int32 *limits, le_int32 count);
331 Locale **locales = LE_NEW_ARRAY(Locale *, count); local
334 locales[i] = new Locale(Locale::createFromName(localeNames[i]));
337 return (const Locale **) locales;
340 ULocRuns::ULocRuns(const char **locales, const le_int32 *limits, le_int32 count)
341 : LocaleRuns(getLocales(locales, count), limits, count), fLocaleNames(locales)
409 pl_openLocaleRuns(const char **locales,
    [all...]
  /external/icu4c/samples/layout/
paragraph.cpp 91 LocaleRuns *locales = NULL; local
115 paragraphLayout = new ParagraphLayout(pStart, pEnd - pStart, &fr, NULL, NULL, locales, fParagraphLevel, FALSE, status);
pflow.c 114 pl_localeRuns *locales = NULL; local
143 locales = pl_openEmptyLocaleRuns(0);
168 pl_resetLocaleRuns(locales);
169 pl_addLocaleRun(locales, TEST_LOCALE, pEnd - pStart);
172 paragraphLayout = pl_create(pStart, pEnd - pStart, fr, NULL, NULL, locales, flow->fParagraphLevel, FALSE, status);
216 pl_closeLocaleRuns(locales);
  /external/icu4c/test/intltest/
dtfmapts.cpp 72 const char *LOCALES[] = {
81 DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Locale(LOCALES[i]));
214 const Locale *locales = DateFormat::getAvailableLocales(count); local
215 logln((UnicodeString) "Got " + count + " locales" );
218 name = locales[i].getName();
nmfmapts.cpp 190 const Locale *locales = NumberFormat::getAvailableLocales(count); local
191 logln((UnicodeString) "Got " + count + " locales" );
193 UnicodeString name(locales[i].getName(),"");
plurults.cpp 348 const Locale* locales = Locale::getAvailableLocales(numLocales); local
352 PluralRules *rules = PluralRules::forLocale(locales[i], status);
366 locales[i].getName() +
376 locales[i].getName() +
tufmtts.cpp 38 const char* locales[] = {"en", "sl", "fr", "zh", "ar", "ru", "zh_Hant", "pa"}; local
40 locIndex < sizeof(locales)/sizeof(locales[0]);
43 Locale loc(locales[locIndex]);
50 std::cout << "locale: " << locales[locIndex] << "\n";
215 const char* locales[] = {"el-GR", "el"}; local
257 locIndex < sizeof(locales)/sizeof(locales[0]);
260 Locale l = Locale::createFromName(locales[locIndex]);
287 std::cout << "Failed to get TimeUnitFormat for " << locales[locIndex] << "\n" local
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
LocalePicker.java 123 String[] locales = new String[localeList.size()]; local
124 locales = localeList.toArray(locales);
128 Arrays.sort(locales);
129 final int origSize = locales.length;
133 final String s = locales[i];
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
MccTable.java 251 String[] locales = context.getAssets().getLocales(); local
252 final int N = locales.length;
255 // only match full (lang + country) locales
256 if (locales[i]!=null && locales[i].length() >= 5 &&
257 locales[i].substring(0,2).equals(language)) {
258 if (locales[i].substring(3,5).equals(country)) {
259 bestMatch = locales[i];
262 bestMatch = locales[i];
  /packages/apps/Settings/src/com/android/settings/inputmethod/
UserDictionaryAddWordContents.java 94 // It may also be the empty string, which means "all locales"
160 // In this class we use the empty string to represent 'all locales' and mLocale cannot
161 // be null. However the addWord method takes null to mean 'all locales'.
229 // Helper method to get the list of locales to display for this word
231 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); local
233 locales.remove(mLocale); // mLocale may not be null
236 locales.remove(systemLocale); // system locale may not be null
237 locales.remove(""); // Remove the empty string if it's there
245 for (final String l : locales) {
  /libcore/luni/src/test/java/tests/api/java/util/
CurrencyTest.java 197 ArrayList<Locale> locales = new ArrayList<Locale>(); local
200 locales.add(desiredLocale);
204 Locale[] loc1 = locales.toArray(new Locale[locales.size()]);
212 // Starting CLDR 1.7 release, currency symbol for CAD changed to CA$ in some locales such as ja.
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
UserDictionaryAddWordContents.java 112 // It may also be the empty string, which means "all locales"
181 // In this class we use the empty string to represent 'all locales' and mLocale cannot
182 // be null. However the addWord method takes null to mean 'all locales'.
250 // Helper method to get the list of locales to display for this word
252 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); local
254 locales.remove(mLocale); // mLocale may not be null
257 locales.remove(systemLocale); // system locale may not be null
258 locales.remove(""); // Remove the empty string if it's there
266 for (final String l : locales) {

Completed in 5209 milliseconds

12 3 4