/libcore/luni/src/test/java/libcore/java/util/ |
Locales.java | 32 private final Locale displayLocale; 35 private Locales(Locale uncategorizedLocale, Locale displayLocale, Locale formatLocale) { 37 this.displayLocale = displayLocale; 54 public static Locales getAndSetDefaultForTest(Locale uncategorizedLocale, Locale displayLocale, 57 Locales newLocales = new Locales(uncategorizedLocale, displayLocale, formatLocale); 70 && displayLocale.equals(that.displayLocale) 76 return Objects.hash(uncategorizedLocale, displayLocale, formatLocale); 81 return "Locales[displayLocale=" + displayLocale + ", locale=" + uncategorizedLocale [all...] |
/packages/apps/Settings/src/com/android/settings/localepicker/ |
LocaleFeatureProviderImpl.java | 30 final Locale displayLocale = Locale.getDefault(); 33 locales, displayLocale, 2 /* Show up to two locales from the list */), 34 displayLocale);
|
/external/icu/icu4c/source/common/ |
locdispnames.cpp | 53 Locale::getDisplayLanguage(const Locale &displayLocale, 65 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName, 77 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName, 93 Locale::getDisplayScript(const Locale &displayLocale, 105 length=uloc_getDisplayScript(fullName, displayLocale.fullName, 117 length=uloc_getDisplayScript(fullName, displayLocale.fullName, 133 Locale::getDisplayCountry(const Locale &displayLocale, 145 length=uloc_getDisplayCountry(fullName, displayLocale.fullName, 157 length=uloc_getDisplayCountry(fullName, displayLocale.fullName, 173 Locale::getDisplayVariant(const Locale &displayLocale, [all...] |
ucnvdisp.c | 37 const char *displayLocale, 56 rb=ures_open(NULL, displayLocale, pErrorCode);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
TestLocaleNamePackaging.java | 85 for (ULocale displayLocale : locales) { 86 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 89 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 151 for (ULocale displayLocale : locales) { 152 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 155 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 196 for (ULocale displayLocale : locales) { 197 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 199 assertEquals(kl + " in " + displayLocale, expected[n++], result);
|
/external/icu/icu4j/main/tests/packaging/src/com/ibm/icu/dev/test/ |
TestLocaleNamePackaging.java | 84 for (ULocale displayLocale : locales) { 85 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 88 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 150 for (ULocale displayLocale : locales) { 151 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 154 assertEquals(targetLocale + " in " + displayLocale, expected[n++], result); 195 for (ULocale displayLocale : locales) { 196 LocaleDisplayNames dn = LocaleDisplayNames.getInstance(displayLocale); 198 assertEquals(kl + " in " + displayLocale, expected[n++], result);
|
/frameworks/base/core/java/com/android/internal/app/ |
LocaleHelper.java | 108 * @param displayLocale the locale in which to display the name. 112 public static String getDisplayName(Locale locale, Locale displayLocale, boolean sentenceCase) { 113 final ULocale displayULocale = ULocale.forLocale(displayLocale); 117 return sentenceCase ? toSentenceCase(result, displayLocale) : result; 135 * @param displayLocale the locale in which to display the name. 138 public static String getDisplayCountry(Locale locale, Locale displayLocale) { 139 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.forLocale(displayLocale)); 156 * @param displayLocale the locale in which to display the names. 162 LocaleList locales, Locale displayLocale, @IntRange(from=1) int maxLocales) { 164 final Locale dispLocale = displayLocale == null ? Locale.getDefault() : displayLocale [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
SubtypeLocaleUtils.java | 185 final Locale displayLocale = sResources.getConfiguration().locale; 186 return getSubtypeLocaleDisplayNameInternal(localeString, displayLocale); 191 final Locale displayLocale = getDisplayLocaleOfSubtypeLocale(localeString); 192 return getSubtypeLocaleDisplayNameInternal(localeString, displayLocale); 197 final Locale displayLocale = getDisplayLocaleOfSubtypeLocale(localeString); 204 return getSubtypeLocaleDisplayNameInternal(languageString, displayLocale); 209 @Nonnull final Locale displayLocale) { 215 if (displayLocale.equals(Locale.ROOT) 232 displayName = getExceptionalName.runInLocale(sResources, displayLocale); 235 .getDisplayName(displayLocale); [all...] |
/external/icu/icu4c/source/common/unicode/ |
locid.h | 177 * const Locale& displayLocale, 526 * user display in the locale specified by "displayLocale". For example, if the locale's 527 * language code is "en" and displayLocale's language code is "fr", this function would set 529 * @param displayLocale Specifies the locale to be used to display the name. In other words, 531 * displayLocale would result in "Anglais", while passing Locale::getGerman() 532 * for displayLocale would result in "Englisch". 537 UnicodeString& getDisplayLanguage( const Locale& displayLocale, 553 * for user display in the locale specified by "displayLocale". For example, if the locale's 554 * script code is "LATN" and displayLocale's language code is "en", this function would set 556 * @param displayLocale Specifies the locale to be used to display the name. In othe [all...] |
uloc.h | 553 * @param displayLocale Specifies the locale to be used to display the name. In other words, 567 const char* displayLocale, 576 * @param displayLocale Specifies the locale to be used to display the name. In other words, 590 const char* displayLocale, 601 * @param displayLocale Specifies the locale to be used to display the name. In other words, 615 const char* displayLocale, 625 * @param displayLocale Specifies the locale to be used to display the name. In other words, 639 const char* displayLocale, 670 * @param displayLocale Specifies the locale to be used to display the name. In other words, 686 const char* displayLocale, [all...] |
brkiter.h | 474 * @param displayLocale specifies the desired locale for output. 481 const Locale& displayLocale,
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/ |
CurrencyDemo.java | 36 Locale displayLocale, 40 NumberFormat result = NumberFormat.getCurrencyInstance(displayLocale); 46 DecimalFormat result = (DecimalFormat)NumberFormat.getCurrencyInstance(displayLocale);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
ULocale.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CollatorServiceShim.java | 82 public String getDisplayName(String id, ULocale displayLocale) { 84 return delegate.getDisplayName(objectLocale, displayLocale); 127 String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 129 return service.getDisplayName(id, displayLocale);
|
Collator.java | 517 * Return the name of the collator for the objectLocale, localized for the displayLocale. 520 * @param displayLocale the locale for which the display name of the collator should be localized 523 public String getDisplayName(Locale objectLocale, Locale displayLocale) { 524 return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); 528 * Return the name of the collator for the objectLocale, localized for the displayLocale. 531 * @param displayLocale the locale for which the display name of the collator should be localized 534 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 539 return objectLocale.getDisplayName(displayLocale); [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
CollatorServiceShim.java | 81 public String getDisplayName(String id, ULocale displayLocale) { 83 return delegate.getDisplayName(objectLocale, displayLocale); 126 String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 128 return service.getDisplayName(id, displayLocale);
|
Collator.java | 543 * Return the name of the collator for the objectLocale, localized for the displayLocale. 546 * @param displayLocale the locale for which the display name of the collator should be localized 550 public String getDisplayName(Locale objectLocale, Locale displayLocale) { 551 return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); 555 * Return the name of the collator for the objectLocale, localized for the displayLocale. 558 * @param displayLocale the locale for which the display name of the collator should be localized 562 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 567 return objectLocale.getDisplayName(displayLocale); [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ULocale.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ULocale.java | [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cloctst.c | 734 static const char *displayLocale="ja"; 741 int32_t preflightLen=uloc_getDisplayName(locale, displayLocale, NULL, 0, &ec); 746 len=uloc_getDisplayName(locale, displayLocale, result, UPRV_LENGTHOF(result), &ec); 749 locale, displayLocale, u_errorName(ec)); 756 locale, displayLocale, len, expectedLen); 759 locale, displayLocale, preflightLen, expectedLen); 765 log_err("uloc_getDisplayName(%s, %s...) mismatch", locale, displayLocale); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
CollationServiceTest.java | 140 String getDisplayName(ULocale displayLocale) { 143 name = (String)displayNames.get(displayLocale); 146 name = locale.getDisplayName(displayLocale); 172 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 175 return ci.getDisplayName(displayLocale);
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
CollationServiceTest.java | 139 String getDisplayName(ULocale displayLocale) { 142 name = (String)displayNames.get(displayLocale); 145 name = locale.getDisplayName(displayLocale); 171 public String getDisplayName(ULocale objectLocale, ULocale displayLocale) { 174 return ci.getDisplayName(displayLocale);
|
/external/icu/icu4c/source/test/intltest/ |
svccoll.cpp | 225 UnicodeString& getDisplayName(const Locale& displayLocale, UnicodeString& name) const; 242 CollatorInfo::getDisplayName(const Locale& displayLocale, UnicodeString& name) const { 244 UnicodeString* val = (UnicodeString*)displayNames->get(displayLocale.getName()); 251 return locale.getDisplayName(displayLocale, name); 298 const Locale& displayLocale, 303 ci->getDisplayName(displayLocale, result);
|
/external/icu/icu4c/source/i18n/unicode/ |
coll.h | 677 * @param displayLocale specifies the desired locale for output 684 const Locale& displayLocale, [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputMethodSubtype.java | 514 * @param displayLocale {@link Locale} to be used to display {@code localeToDisplay} 515 * @param localeToDisplay {@link Locale} to be displayed in {@code displayLocale} 517 * {@code displayLocale} 522 @Nullable Locale displayLocale, @Nullable Locale localeToDisplay, 528 displayLocale != null ? displayLocale : Locale.getDefault();
|