/external/icu/android_icu4j/testing/src/com/android/icu/test/util/ |
D | LocaleNativeTest.java | 51 (targetLocale, displayLocale) in testGetDisplayCountry() 53 ULocale.forLocale(displayLocale)) in testGetDisplayCountry() 60 (targetLocale, displayLocale) in testGetDisplayLanguage() 62 ULocale.forLocale(displayLocale)) in testGetDisplayLanguage() 69 (targetLocale, displayLocale) in testGetDisplayScript() 71 ULocale.forLocale(displayLocale)) in testGetDisplayScript() 78 (targetLocale, displayLocale) in testGetDisplayVariant() 80 ULocale.forLocale(displayLocale)) in testGetDisplayVariant() 88 Locale displayLocale = Locale.forLanguageTag(languageTag); in assertSameDisplayNames() local 90 String icu4cName = icu4cGetDisplayName.get(targetLocale, displayLocale); in assertSameDisplayNames() [all …]
|
/external/icu/icu4c/source/common/ |
D | locdispnames.cpp | 56 Locale::getDisplayLanguage(const Locale &displayLocale, in getDisplayLanguage() argument 68 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName, in getDisplayLanguage() 80 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName, in getDisplayLanguage() 96 Locale::getDisplayScript(const Locale &displayLocale, in getDisplayScript() argument 108 length=uloc_getDisplayScript(fullName, displayLocale.fullName, in getDisplayScript() 120 length=uloc_getDisplayScript(fullName, displayLocale.fullName, in getDisplayScript() 136 Locale::getDisplayCountry(const Locale &displayLocale, in getDisplayCountry() argument 148 length=uloc_getDisplayCountry(fullName, displayLocale.fullName, in getDisplayCountry() 160 length=uloc_getDisplayCountry(fullName, displayLocale.fullName, in getDisplayCountry() 176 Locale::getDisplayVariant(const Locale &displayLocale, in getDisplayVariant() argument [all …]
|
D | ucnvdisp.cpp | 37 const char *displayLocale, in ucnv_getDisplayName() argument 56 rb=ures_open(NULL, displayLocale, pErrorCode); in ucnv_getDisplayName()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | TestLocaleNamePackaging.java | 90 for (ULocale displayLocale : locales) { in testRegionDisplayNames() 91 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testRegionDisplayNames() 94 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); in testRegionDisplayNames() 156 for (ULocale displayLocale : locales) { in testLanguageDisplayNames() 157 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testLanguageDisplayNames() 160 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); in testLanguageDisplayNames() 204 for (ULocale displayLocale : locales) { in testLocaleDisplayNameWithKeywords() 205 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testLocaleDisplayNameWithKeywords() 207 assertEquals(kl + " in " + displayLocale, expected[n++], result); in testLocaleDisplayNameWithKeywords()
|
/external/icu/icu4j/main/tests/packaging/src/com/ibm/icu/dev/test/ |
D | TestLocaleNamePackaging.java | 87 for (ULocale displayLocale : locales) { in testRegionDisplayNames() 88 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testRegionDisplayNames() 91 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); in testRegionDisplayNames() 153 for (ULocale displayLocale : locales) { in testLanguageDisplayNames() 154 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testLanguageDisplayNames() 157 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); in testLanguageDisplayNames() 201 for (ULocale displayLocale : locales) { in testLocaleDisplayNameWithKeywords() 202 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); in testLocaleDisplayNameWithKeywords() 204 assertEquals(kl + " in " + displayLocale, expected[n++], result); in testLocaleDisplayNameWithKeywords()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRLocale.java | 52 public SimpleFormatter(ULocale displayLocale) { in SimpleFormatter() argument 53 this.ldn = LocaleDisplayNames.getInstance(displayLocale); in SimpleFormatter() 551 public String getDisplayName(NameFormatter displayLocale) { 552 if (displayLocale == null) displayLocale = getDefaultFormatter(); 553 return displayLocale.getDisplayName(this); 583 public String getDisplayName(ULocale displayLocale) { 584 return getSimpleFormatterFor(displayLocale).getDisplayName(this); 602 public String getDisplayCountry(NameFormatter displayLocale) { 603 if (displayLocale == null) displayLocale = getDefaultFormatter(); 604 return displayLocale.getDisplayCountry(this); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ULocale.java | 1879 public String getDisplayLanguage(ULocale displayLocale) { in getDisplayLanguage() argument 1880 return getDisplayLanguageInternal(this, displayLocale, false); in getDisplayLanguage() 1904 public static String getDisplayLanguage(String localeID, ULocale displayLocale) { in getDisplayLanguage() argument 1905 return getDisplayLanguageInternal(new ULocale(localeID), displayLocale, false); in getDisplayLanguage() 1925 public String getDisplayLanguageWithDialect(ULocale displayLocale) { in getDisplayLanguageWithDialect() argument 1926 return getDisplayLanguageInternal(this, displayLocale, true); in getDisplayLanguageWithDialect() 1952 public static String getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) { in getDisplayLanguageWithDialect() argument 1953 return getDisplayLanguageInternal(new ULocale(localeID), displayLocale, true); in getDisplayLanguageWithDialect() 1956 private static String getDisplayLanguageInternal(ULocale locale, ULocale displayLocale, in getDisplayLanguageInternal() argument 1959 return LocaleDisplayNames.getInstance(displayLocale).languageDisplayName(lang); in getDisplayLanguageInternal() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | ULocale.java | 1783 public String getDisplayLanguage(ULocale displayLocale) { in getDisplayLanguage() argument 1784 return getDisplayLanguageInternal(this, displayLocale, false); in getDisplayLanguage() 1806 public static String getDisplayLanguage(String localeID, ULocale displayLocale) { in getDisplayLanguage() argument 1807 return getDisplayLanguageInternal(new ULocale(localeID), displayLocale, false); in getDisplayLanguage() 1825 public String getDisplayLanguageWithDialect(ULocale displayLocale) { in getDisplayLanguageWithDialect() argument 1826 return getDisplayLanguageInternal(this, displayLocale, true); in getDisplayLanguageWithDialect() 1850 public static String getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) { in getDisplayLanguageWithDialect() argument 1851 return getDisplayLanguageInternal(new ULocale(localeID), displayLocale, true); in getDisplayLanguageWithDialect() 1854 private static String getDisplayLanguageInternal(ULocale locale, ULocale displayLocale, in getDisplayLanguageInternal() argument 1857 return LocaleDisplayNames.getInstance(displayLocale).languageDisplayName(lang); in getDisplayLanguageInternal() [all …]
|
/external/icu/libicu/ndk_headers/unicode/ |
D | uloc.h | 565 const char* displayLocale, 596 const char* displayLocale, 630 const char* displayLocale, 662 const char* displayLocale, 713 const char* displayLocale, 744 const char* displayLocale,
|
/external/icu/libicu/cts_headers/unicode/ |
D | uloc.h | 575 const char* displayLocale, 604 const char* displayLocale, 636 const char* displayLocale, 666 const char* displayLocale, 715 const char* displayLocale, 744 const char* displayLocale,
|
D | locid.h | 838 UnicodeString& getDisplayLanguage( const Locale& displayLocale, 866 UnicodeString& getDisplayScript( const Locale& displayLocale, 894 UnicodeString& getDisplayCountry( const Locale& displayLocale, 914 UnicodeString& getDisplayVariant( const Locale& displayLocale, 942 UnicodeString& getDisplayName( const Locale& displayLocale,
|
/external/icu/libandroidicu/include/unicode/ |
D | uloc.h | 575 const char* displayLocale, 604 const char* displayLocale, 636 const char* displayLocale, 666 const char* displayLocale, 715 const char* displayLocale, 744 const char* displayLocale,
|
/external/icu/icu4c/source/common/unicode/ |
D | uloc.h | 575 const char* displayLocale, 604 const char* displayLocale, 636 const char* displayLocale, 666 const char* displayLocale, 715 const char* displayLocale, 744 const char* displayLocale,
|
D | locid.h | 838 UnicodeString& getDisplayLanguage( const Locale& displayLocale, 866 UnicodeString& getDisplayScript( const Locale& displayLocale, 894 UnicodeString& getDisplayCountry( const Locale& displayLocale, 914 UnicodeString& getDisplayVariant( const Locale& displayLocale, 942 UnicodeString& getDisplayName( const Locale& displayLocale,
|
/external/icu/icu4c/source/test/cintltst/ |
D | cloctst.c | 771 static const char *displayLocale="ja"; in TestDisplayNames() local 778 int32_t preflightLen=uloc_getDisplayName(locale, displayLocale, NULL, 0, &ec); in TestDisplayNames() 783 len=uloc_getDisplayName(locale, displayLocale, result, UPRV_LENGTHOF(result), &ec); in TestDisplayNames() 786 locale, displayLocale, u_errorName(ec)); in TestDisplayNames() 793 locale, displayLocale, len, expectedLen); in TestDisplayNames() 796 locale, displayLocale, preflightLen, expectedLen); in TestDisplayNames() 802 log_err("uloc_getDisplayName(%s, %s...) mismatch", locale, displayLocale); in TestDisplayNames() 805 locale, displayLocale, resultChars, expectedChars); in TestDisplayNames() 812 len=uloc_getDisplayName(locale, displayLocale, result, i, &ec); in TestDisplayNames() 997 static void doTestDisplayNames(const char* displayLocale, int32_t compareIndex) in doTestDisplayNames() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CollatorServiceShim.java | 82 public String getDisplayName(String id, ULocale displayLocale) { in registerFactory() argument 84 return delegate.getDisplayName(objectLocale, displayLocale); in registerFactory() 127 String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 129 return service.getDisplayName(id, displayLocale); in getDisplayName()
|
D | Collator.java | 523 public String getDisplayName(Locale objectLocale, Locale displayLocale) { in getDisplayName() argument 524 … return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); in getDisplayName() 534 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 539 return objectLocale.getDisplayName(displayLocale); in getDisplayName() 1060 static public String getDisplayName(Locale objectLocale, Locale displayLocale) { in getDisplayName() argument 1062 ULocale.forLocale(displayLocale)); in getDisplayName() 1072 static public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 1073 return getShim().getDisplayName(objectLocale, displayLocale); in getDisplayName()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollatorServiceShim.java | 81 public String getDisplayName(String id, ULocale displayLocale) { in registerFactory() argument 83 return delegate.getDisplayName(objectLocale, displayLocale); in registerFactory() 126 String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 128 return service.getDisplayName(id, displayLocale); in getDisplayName()
|
D | Collator.java | 550 public String getDisplayName(Locale objectLocale, Locale displayLocale) { in getDisplayName() argument 551 … return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); in getDisplayName() 562 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 567 return objectLocale.getDisplayName(displayLocale); in getDisplayName() 1102 static public String getDisplayName(Locale objectLocale, Locale displayLocale) { in getDisplayName() argument 1104 ULocale.forLocale(displayLocale)); in getDisplayName() 1115 static public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in getDisplayName() argument 1116 return getShim().getDisplayName(objectLocale, displayLocale); in getDisplayName()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/ |
D | CurrencyDemo.java | 36 Locale displayLocale, in getCurrencyFormat() argument 40 NumberFormat result = NumberFormat.getCurrencyInstance(displayLocale); in getCurrencyFormat() 46 DecimalFormat result = (DecimalFormat)NumberFormat.getCurrencyInstance(displayLocale); in getCurrencyFormat()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 1154 public String displayLocale; in TestDisplayNames() field in ULocaleTest.Item 1162 displayLocale = dLoc; in TestDisplayNames() 1219 ULocale locale = new ULocale(item.displayLocale); in TestDisplayNames() 1229 … errln("FAIL: displayLoc: " + item.displayLocale + ", dialectNam?: " + item.dialectHandling + in TestDisplayNames() 1235 … errln("FAIL: displayLoc: " + item.displayLocale + ", dialectNam?: " + item.dialectHandling + in TestDisplayNames() 5028 final ULocale displayLocale = ULocale.ENGLISH; in TestUnd() local 5031 Assert.assertEquals(displayName, empty_new.getDisplayName(displayLocale)); in TestUnd() 5032 Assert.assertEquals(displayName, root_new.getDisplayName(displayLocale)); in TestUnd() 5033 Assert.assertEquals(displayName, und_new.getDisplayName(displayLocale)); in TestUnd() 5035 Assert.assertEquals(displayName, empty_tag.getDisplayName(displayLocale)); in TestUnd() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ULocaleTest.java | 1157 public String displayLocale; in TestDisplayNames() field in ULocaleTest.Item 1165 displayLocale = dLoc; in TestDisplayNames() 1222 ULocale locale = new ULocale(item.displayLocale); in TestDisplayNames() 1232 … errln("FAIL: displayLoc: " + item.displayLocale + ", dialectNam?: " + item.dialectHandling + in TestDisplayNames() 1238 … errln("FAIL: displayLoc: " + item.displayLocale + ", dialectNam?: " + item.dialectHandling + in TestDisplayNames() 5031 final ULocale displayLocale = ULocale.ENGLISH; in TestUnd() local 5034 Assert.assertEquals(displayName, empty_new.getDisplayName(displayLocale)); in TestUnd() 5035 Assert.assertEquals(displayName, root_new.getDisplayName(displayLocale)); in TestUnd() 5036 Assert.assertEquals(displayName, und_new.getDisplayName(displayLocale)); in TestUnd() 5038 Assert.assertEquals(displayName, empty_tag.getDisplayName(displayLocale)); in TestUnd() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationServiceTest.java | 142 String getDisplayName(ULocale displayLocale) { in TestRegisterFactory() argument 145 name = (String)displayNames.get(displayLocale); in TestRegisterFactory() 148 name = locale.getDisplayName(displayLocale); in TestRegisterFactory() 176 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in TestRegisterFactory() argument 179 return ci.getDisplayName(displayLocale); in TestRegisterFactory()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationServiceTest.java | 145 String getDisplayName(ULocale displayLocale) { in TestRegisterFactory() argument 148 name = (String)displayNames.get(displayLocale); in TestRegisterFactory() 151 name = locale.getDisplayName(displayLocale); in TestRegisterFactory() 179 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { in TestRegisterFactory() argument 182 return ci.getDisplayName(displayLocale); in TestRegisterFactory()
|
/external/icu/icu4c/source/test/intltest/ |
D | svccoll.cpp | 225 UnicodeString& getDisplayName(const Locale& displayLocale, UnicodeString& name) const; 242 CollatorInfo::getDisplayName(const Locale& displayLocale, UnicodeString& name) const { in getDisplayName() argument 244 UnicodeString* val = (UnicodeString*)displayNames->get(displayLocale.getName()); in getDisplayName() 251 return locale.getDisplayName(displayLocale, name); in getDisplayName() 298 const Locale& displayLocale, in getDisplayName() argument 303 ci->getDisplayName(displayLocale, result); in getDisplayName()
|