/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
D | CalendarTests.java | 42 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 44 Calendar calendars[] = new Calendar[locales.length]; in getTestObjects() 46 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 47 calendars[i] = Calendar.getInstance(pst, locales[i]); in getTestObjects() 73 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 75 BuddhistCalendar calendars[] = new BuddhistCalendar[locales.length]; in getTestObjects() 77 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 78 calendars[i] = new BuddhistCalendar(tst, locales[i]); in getTestObjects() 89 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 91 ChineseCalendar calendars[] = new ChineseCalendar[locales.length]; in getTestObjects() [all …]
|
D | ExceptionTests.java | 47 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 48 ArabicShapingException exceptions[] = new ArabicShapingException[locales.length]; in getTestObjects() 50 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 51 exceptions[i] = new ArabicShapingException(locales[i].toString()); in getTestObjects() 62 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 64 StringPrepParseException exceptions[] = new StringPrepParseException[locales.length]; in getTestObjects() 66 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 67 exceptions[i] = new StringPrepParseException(locales[i].toString(), i, rules, i); in getTestObjects() 78 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 79 … UResourceTypeMismatchException exceptions[] = new UResourceTypeMismatchException[locales.length]; in getTestObjects() [all …]
|
D | FormatTests.java | 1106 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 1107 DecimalFormat formats[] = new DecimalFormat[locales.length]; in getTestObjects() 1109 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 1110 ULocale uloc = ULocale.forLocale(locales[i]); in getTestObjects() 1650 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 1651 … RuleBasedNumberFormat formats[] = new RuleBasedNumberFormat[types.length * locales.length]; in getTestObjects() 1655 for (int l = 0; l < locales.length; l += 1) { in getTestObjects() 1656 … String cannedRules = (String) cannedData.get(locales[l].toString() + "/" + typeNames[t]); in getTestObjects() 1659 formats[i++] = new RuleBasedNumberFormat(cannedRules, locales[l]); in getTestObjects() 1661 formats[i++] = new RuleBasedNumberFormat(locales[l], types[t]); in getTestObjects() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | CalendarTests.java | 41 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 43 Calendar calendars[] = new Calendar[locales.length]; in getTestObjects() 45 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 46 calendars[i] = Calendar.getInstance(pst, locales[i]); in getTestObjects() 72 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 74 BuddhistCalendar calendars[] = new BuddhistCalendar[locales.length]; in getTestObjects() 76 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 77 calendars[i] = new BuddhistCalendar(tst, locales[i]); in getTestObjects() 88 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 90 ChineseCalendar calendars[] = new ChineseCalendar[locales.length]; in getTestObjects() [all …]
|
D | ExceptionTests.java | 46 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 47 ArabicShapingException exceptions[] = new ArabicShapingException[locales.length]; in getTestObjects() 49 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 50 exceptions[i] = new ArabicShapingException(locales[i].toString()); in getTestObjects() 61 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 63 StringPrepParseException exceptions[] = new StringPrepParseException[locales.length]; in getTestObjects() 65 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 66 exceptions[i] = new StringPrepParseException(locales[i].toString(), i, rules, i); in getTestObjects() 77 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 78 … UResourceTypeMismatchException exceptions[] = new UResourceTypeMismatchException[locales.length]; in getTestObjects() [all …]
|
D | FormatTests.java | 1105 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 1106 DecimalFormat formats[] = new DecimalFormat[locales.length]; in getTestObjects() 1108 for (int i = 0; i < locales.length; i += 1) { in getTestObjects() 1109 ULocale uloc = ULocale.forLocale(locales[i]); in getTestObjects() 1649 Locale locales[] = SerializableTest.getLocales(); in getTestObjects() local 1650 … RuleBasedNumberFormat formats[] = new RuleBasedNumberFormat[types.length * locales.length]; in getTestObjects() 1654 for (int l = 0; l < locales.length; l += 1) { in getTestObjects() 1655 … String cannedRules = (String) cannedData.get(locales[l].toString() + "/" + typeNames[t]); in getTestObjects() 1658 formats[i++] = new RuleBasedNumberFormat(cannedRules, locales[l]); in getTestObjects() 1660 formats[i++] = new RuleBasedNumberFormat(locales[l], types[t]); in getTestObjects() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 246 final Locale[] locales = NumberFormat.getAvailableLocales(); in TestAvailableLocales() local 247 int count = locales.length; in TestAvailableLocales() 256 all += locales[i].getDisplayName(); in TestAvailableLocales() 271 Locale[] locales = allLocales; in TestMonster() local 272 count = locales.length; in TestMonster() 277 locales = new Locale[6]; in TestMonster() 278 locales[0] = allLocales[0]; in TestMonster() 279 locales[1] = allLocales[1]; in TestMonster() 280 locales[2] = allLocales[2]; in TestMonster() 284 locales[3] = new Locale("ar", "AE", ""); in TestMonster() [all …]
|
D | IntlTestDateFormat.java | 230 final ULocale[] locales = DateFormat.getAvailableULocales(); in TestAvailableLocales() local 231 long count = locales.length; in TestAvailableLocales() 233 if (locales != null && count != 0) { in TestAvailableLocales() 237 all.append(locales[i].getDisplayName()); in TestAvailableLocales() 245 ULocale[] locales; in TestRoundtrip() local 247 locales = new ULocale[] { in TestRoundtrip() 253 locales = DateFormat.getAvailableULocales(); in TestRoundtrip() 255 long count = locales.length; in TestRoundtrip() 256 if (locales != null && count != 0) { in TestRoundtrip() 258 String name = locales[i].getDisplayName(); in TestRoundtrip() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 250 final Locale[] locales = NumberFormat.getAvailableLocales(); in TestAvailableLocales() local 251 int count = locales.length; in TestAvailableLocales() 260 all += locales[i].getDisplayName(); in TestAvailableLocales() 275 Locale[] locales = allLocales; in TestMonster() local 276 count = locales.length; in TestMonster() 281 locales = new Locale[6]; in TestMonster() 282 locales[0] = allLocales[0]; in TestMonster() 283 locales[1] = allLocales[1]; in TestMonster() 284 locales[2] = allLocales[2]; in TestMonster() 288 locales[3] = new Locale("ar", "AE", ""); in TestMonster() [all …]
|
D | IntlTestDateFormat.java | 234 final ULocale[] locales = DateFormat.getAvailableULocales(); in TestAvailableLocales() local 235 long count = locales.length; in TestAvailableLocales() 237 if (locales != null && count != 0) { in TestAvailableLocales() 241 all.append(locales[i].getDisplayName()); in TestAvailableLocales() 249 ULocale[] locales; in TestRoundtrip() local 251 locales = new ULocale[] { in TestRoundtrip() 257 locales = DateFormat.getAvailableULocales(); in TestRoundtrip() 259 long count = locales.length; in TestRoundtrip() 260 if (locales != null && count != 0) { in TestRoundtrip() 262 String name = locales[i].getDisplayName(); in TestRoundtrip() [all …]
|
D | GlobalizationPreferencesTest.java | 278 ArrayList locales = new ArrayList(); in TestSetLocales() local 281 locales.add(new ULocale(localeStrings[j])); in TestSetLocales() 290 gp.setLocales(locales); in TestSetLocales() 402 ULocale[] locales = new ULocale[2]; in TestResourceBundle() local 403 locales[0] = new ULocale("en_GB"); in TestResourceBundle() 404 locales[1] = new ULocale("en_US"); in TestResourceBundle() 405 gp.setLocales(locales); in TestResourceBundle() 422 locales = new ULocale[2]; in TestResourceBundle() 423 locales[0] = new ULocale("ja"); in TestResourceBundle() 424 locales[1] = new ULocale("en_US_California"); in TestResourceBundle() [all …]
|
/external/v8/src/js/ |
D | i18n.js | 266 function supportedLocalesOf(service, locales, options) { argument 288 var requestedLocales = initializeLocaleList(locales); 609 var locales = %GetLanguageTagVariants([original, resolved]); 610 if (locales[0].maximized !== locales[1].maximized) { 615 var resolvedBase = new GlobalRegExp('^' + locales[1].base); 616 return %_Call(StringReplace, resolved, resolvedBase, locales[0].base); 757 function initializeLocaleList(locales) { argument 759 if (IS_UNDEFINED(locales)) { 764 if (typeof locales === 'string') { 765 %_Call(ArrayPush, seen, canonicalizeLanguageTag(locales)); [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | LocaleNameTest.java | 35 Locale[] locales = Locale.getAvailableLocales(); in TestLanguageNames() local 37 for (Locale inLocale : locales) { in TestLanguageNames() 45 for (Locale forLocale : locales) { in TestLanguageNames() 100 Locale[] locales = Locale.getAvailableLocales(); in TestScriptNames() local 101 for (Locale inLocale : locales) { in TestScriptNames() 156 Locale[] locales = Locale.getAvailableLocales(); in TestCountryNames() local 157 for (Locale inLocale : locales) { in TestCountryNames() 165 for (Locale forLocale : locales) { in TestCountryNames() 201 Set<Locale> locales = new HashSet<Locale>(); in TestVariantNames() local 203 locales.add(l); in TestVariantNames() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tsnmfmt.cpp | 400 const Locale* locales = NumberFormat::getAvailableLocales(count); in testAvailableLocales() local 402 if (locales && count) in testAvailableLocales() 410 all += locales[i].getName(); in testAvailableLocales() 423 Locale* locales = (Locale*)allLocales; in monsterTest() local 430 locales = quickLocales; in monsterTest() 431 locales[0] = allLocales[0]; in monsterTest() 432 locales[1] = allLocales[1]; in monsterTest() 433 locales[2] = allLocales[2]; in monsterTest() 437 locales[3] = Locale("ar", "AE", ""); in monsterTest() 438 locales[4] = Locale("cs", "CZ", ""); in monsterTest() [all …]
|
D | tsdate.cpp | 253 const Locale* locales = DateFormat::getAvailableLocales(count); in testAvailableLocales() local 255 if (locales && count) in testAvailableLocales() 262 all += locales[i].getName(); in testAvailableLocales() 272 const Locale* locales = DateFormat::getAvailableLocales(count); in monsterTest() local 273 if (locales && count) in monsterTest() 281 UnicodeString name = UnicodeString(locales[i].getName(), ""); in monsterTest() 283 testLocale(/*par, */locales[i], name); in monsterTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TestBagFormatter.java | 150 Locale[] locales = Collator.getAvailableLocales(); in testLocales() local 152 for (int i = 0; i < locales.length; ++i) { in testLocales() 153 String lang = locales[i].getLanguage(); in testLocales() 154 String dlang = locales[i].getDisplayLanguage(); in testLocales() 155 String country = locales[i].getCountry(); in testLocales() 156 String dcountry = locales[i].getDisplayCountry(); in testLocales() 195 Locale[] locales = Locale.getAvailableLocales(); in testIsRTL() local 197 for (int i = 0; i < locales.length; ++i) { in testIsRTL() 198 s.add((isRTL(locales[i]) ? "R " : "L ") + locales[i].getDisplayName()); in testIsRTL()
|
D | ICUResourceBundleTest.java | 686 ULocale[] locales = ULocale.getAvailableLocales(); in TestLocaleDisplayNames() local 687 for (int i = 0; i < locales.length; ++i) { in TestLocaleDisplayNames() 688 …if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i]) && (locales[i].getLanguage().compareTo("t… in TestLocaleDisplayNames() 689 errln("Could not get English localized country for " + locales[i]); in TestLocaleDisplayNames() 691 if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){ in TestLocaleDisplayNames() 692 errln("Could not get English localized language for " + locales[i]); in TestLocaleDisplayNames() 694 if(!hasLocalizedCountryFor(locales[i], locales[i]) && in TestLocaleDisplayNames() 695 …!(locales[i].getLanguage().equals("ti") || // TODO: restore test for ti_* when cldrbug 3058 is fix… in TestLocaleDisplayNames() 696 …((locales[i].getBaseName().equals("lrc_IQ") || locales[i].getBaseName().equals("lrc_IR") || locale… in TestLocaleDisplayNames() 697 errln("Could not get native localized country for " + locales[i]); in TestLocaleDisplayNames() [all …]
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/ |
D | TestBagFormatter.java | 149 Locale[] locales = Collator.getAvailableLocales(); in testLocales() local 151 for (int i = 0; i < locales.length; ++i) { in testLocales() 152 String lang = locales[i].getLanguage(); in testLocales() 153 String dlang = locales[i].getDisplayLanguage(); in testLocales() 154 String country = locales[i].getCountry(); in testLocales() 155 String dcountry = locales[i].getDisplayCountry(); in testLocales() 194 Locale[] locales = Locale.getAvailableLocales(); in testIsRTL() local 196 for (int i = 0; i < locales.length; ++i) { in testIsRTL() 197 s.add((isRTL(locales[i]) ? "R " : "L ") + locales[i].getDisplayName()); in testIsRTL()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/ |
D | CalendarFrame.java | 87 private Locale[] locales = DemoUtility.getG7Locales(); field in CalendarFrame 184 for (int i = 0; i < locales.length; i++) { in init() 186 locales[i].getLanguage().equals(locales[i-1].getLanguage()) || in init() 187 i < locales.length - 1 && in init() 188 locales[i].getLanguage().equals(locales[i+1].getLanguage())) in init() 190 displayMenu.addItem( locales[i].getDisplayName() ); in init() 192 displayMenu.addItem( locales[i].getDisplayLanguage()); in init() 195 thisMatch = DemoUtility.compareLocales(locales[i], defaultLocale); in init() 209 Locale loc = locales[displayMenu.getSelectedIndex()]; in init() 239 calendarPanel = new CalendarPanel( locales[displayMenu.getSelectedIndex()] ); in init() [all …]
|
/external/icu/icu4c/source/layoutex/ |
D | plruns.cpp | 229 ULocRuns(const char **locales, const le_int32 *limits, le_int32 count); 330 Locale **locales = LE_NEW_ARRAY(Locale *, count); in getLocales() local 333 locales[i] = new Locale(Locale::createFromName(localeNames[i])); in getLocales() 336 return (const Locale **) locales; in getLocales() 339 ULocRuns::ULocRuns(const char **locales, const le_int32 *limits, le_int32 count) in ULocRuns() argument 340 : LocaleRuns(getLocales(locales, count), limits, count), fLocaleNames(locales) in ULocRuns() 408 pl_openLocaleRuns(const char **locales, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 412 return (pl_localeRuns *) new ULocRuns(locales, limits, count); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
|
/external/icu/icu4j/main/tests/packaging/src/com/ibm/icu/dev/test/ |
D | TestLocaleNamePackaging.java | 34 private static ULocale[] locales = { field in TestLocaleNamePackaging 84 for (ULocale displayLocale : locales) { in testRegionDisplayNames() 86 for (ULocale targetLocale : locales) { in testRegionDisplayNames() 149 for (ULocale displayLocale : locales) { in testLanguageDisplayNames() 151 for (ULocale targetLocale : locales) { in testLanguageDisplayNames() 193 for (ULocale displayLocale : locales) { in testLocaleDisplayNameWithKeywords()
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | I18NBundle.java | 263 List<Locale> locales = new ArrayList<Locale>(4); in getCandidateLocales() local 265 locales.add(locale); in getCandidateLocales() 268 locales.add((locales.size() == 0) ? locale : new Locale(language, country)); in getCandidateLocales() 271 locales.add((locales.size() == 0) ? locale : new Locale(language)); in getCandidateLocales() 273 locales.add(ROOT_LOCALE); in getCandidateLocales() 274 return locales; in getCandidateLocales()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ICUResourceBundleTest.java | 682 ULocale[] locales = ULocale.getAvailableLocales(); in TestLocaleDisplayNames() local 683 for (int i = 0; i < locales.length; ++i) { in TestLocaleDisplayNames() 684 …if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i]) && (locales[i].getLanguage().compareTo("t… in TestLocaleDisplayNames() 685 errln("Could not get English localized country for " + locales[i]); in TestLocaleDisplayNames() 687 if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){ in TestLocaleDisplayNames() 688 errln("Could not get English localized language for " + locales[i]); in TestLocaleDisplayNames() 690 if(!hasLocalizedCountryFor(locales[i], locales[i]) && in TestLocaleDisplayNames() 691 …!(locales[i].getLanguage().equals("ti") || // TODO: restore test for ti_* when cldrbug 3058 is fix… in TestLocaleDisplayNames() 692 …((locales[i].getBaseName().equals("lrc_IQ") || locales[i].getBaseName().equals("lrc_IR") || locale… in TestLocaleDisplayNames() 693 errln("Could not get native localized country for " + locales[i]); in TestLocaleDisplayNames() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
D | GlobalizationPreferencesTest.java | 274 ArrayList locales = new ArrayList(); in TestSetLocales() local 277 locales.add(new ULocale(localeStrings[j])); in TestSetLocales() 286 gp.setLocales(locales); in TestSetLocales() 398 ULocale[] locales = new ULocale[2]; in TestResourceBundle() local 399 locales[0] = new ULocale("en_GB"); in TestResourceBundle() 400 locales[1] = new ULocale("en_US"); in TestResourceBundle() 401 gp.setLocales(locales); in TestResourceBundle() 418 locales = new ULocale[2]; in TestResourceBundle() 419 locales[0] = new ULocale("ja"); in TestResourceBundle() 420 locales[1] = new ULocale("en_US_California"); in TestResourceBundle() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | TestLocaleNamePackaging.java | 38 private static ULocale[] locales = { field in TestLocaleNamePackaging 88 for (ULocale displayLocale : locales) { in testRegionDisplayNames() 90 for (ULocale targetLocale : locales) { in testRegionDisplayNames() 153 for (ULocale displayLocale : locales) { in testLanguageDisplayNames() 155 for (ULocale targetLocale : locales) { in testLanguageDisplayNames() 197 for (ULocale displayLocale : locales) { in testLocaleDisplayNameWithKeywords()
|