/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 86 assertEquals("GMT-06:00", tz.getDisplayName()); in test_getDisplayName() 88 assertEquals("Pacific Standard Time", tz.getDisplayName()); in test_getDisplayName() 93 assertEquals("Pacific Standard Time", tz.getDisplayName(Locale.US)); in test_getDisplayNameLjava_util_Locale() 94 assertEquals("heure normale du Pacifique nord-américain", tz.getDisplayName(Locale.FRANCE)); in test_getDisplayNameLjava_util_Locale() 100 assertEquals("PST", tz.getDisplayName(false, TimeZone.SHORT)); in test_getDisplayNameZI() 101 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, TimeZone.LONG)); in test_getDisplayNameZI() 102 assertEquals("Pacific Standard Time", tz.getDisplayName(false, TimeZone.LONG)); in test_getDisplayNameZI() 107 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); in test_getDisplayNameZILjava_util_Locale() 108 assertEquals("Pacific Standard Time", tz.getDisplayName(false, TimeZone.LONG, Locale.UK)); in test_getDisplayNameZILjava_util_Locale() 110 tz.getDisplayName(true, TimeZone.LONG, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale() [all …]
|
D | CurrencyTest.java | 84 assertEquals("Swiss Franc", currency.getDisplayName(Locale.US)); in test_getDisplayName_locale_chf() 85 assertEquals("Schweizer Franken", currency.getDisplayName(new Locale("de", "CH"))); in test_getDisplayName_locale_chf() 86 assertEquals("franc suisse", currency.getDisplayName(new Locale("fr", "CH"))); in test_getDisplayName_locale_chf() 87 assertEquals("franco svizzero", currency.getDisplayName(new Locale("it", "CH"))); in test_getDisplayName_locale_chf() 92 assertEquals("Deutsche Mark", currency.getDisplayName(Locale.GERMANY)); in test_getDisplayName_locale_dem() 93 assertEquals("German Mark", currency.getDisplayName(Locale.US)); in test_getDisplayName_locale_dem() 94 assertEquals("mark allemand", currency.getDisplayName(Locale.FRANCE)); in test_getDisplayName_locale_dem() 100 currency.getDisplayName(null); in test_getDisplayName_null() 116 assertEquals("Deutsche Mark", currency.getDisplayName()); in test_getDisplayName_noLocaleArgument()
|
D | TimeZoneTest.java | 55 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 56 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 57 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames() 101 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets() 102 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets() 265 String longDst = tz.getDisplayName(true, TimeZone.LONG, locale); in checkDisplayNames() 266 String longStd = tz.getDisplayName(false, TimeZone.LONG, locale); in checkDisplayNames() 267 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, locale); in checkDisplayNames() 268 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, locale); in checkDisplayNames() 324 assertEquals("Apia Daylight Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); in testApia() [all …]
|
D | OldAndroidLocaleTest.java | 65 berlin.getDisplayName(false, TimeZone.LONG, eng)); in testResourceBundles() 67 berlin.getDisplayName(true, TimeZone.LONG, eng)); in testResourceBundles() 70 berlin.getDisplayName(false, TimeZone.LONG, deu)); in testResourceBundles() 72 berlin.getDisplayName(true, TimeZone.LONG, deu)); in testResourceBundles()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoField.java | 125 String name = IsoFields.WEEK_OF_WEEK_BASED_YEAR.getDisplayName(locale); in test_IsoFields_week_based_year() 132 String name = IsoFields.WEEK_OF_WEEK_BASED_YEAR.getDisplayName((Locale)null); in test_nullIsoFields_week_based_year() 139 String name = weekOfYearField.getDisplayName(locale); in test_WeekFields_week_based_year() 147 String name = weekOfYearField.getDisplayName((Locale)null); in test_nullWeekFields_week_based_year() 152 ChronoField.YEAR.getDisplayName((Locale)null); in test_nullLocaleChronoFieldDisplayName() 159 IsoFields.DAY_OF_QUARTER.getDisplayName((Locale)null); in test_nullLocaleTemporalFieldDisplayName()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimeZoneTest.java | 182 .getDisplayName(Locale.CHINA)); in test_getDisplayNameLjava_util_Locale() 192 timezone.getDisplayName(false, TimeZone.LONG, Locale.CHINA)); in test_getDisplayNameZILjava_util_Locale() 194 timezone.getDisplayName(false, TimeZone.SHORT, Locale.CHINA)); in test_getDisplayNameZILjava_util_Locale() 196 timezone.getDisplayName(false, 100, Locale.CHINA); in test_getDisplayNameZILjava_util_Locale() 256 String defaultName = defaultZone.getDisplayName(); in test_getDisplayName() 257 String expectedName = defaultZone.getDisplayName(defaulLocal); in test_getDisplayName() 269 String actualName = defaultZone.getDisplayName(false, TimeZone.LONG); in test_getDisplayName_ZI() 270 String expectedName = defaultZone.getDisplayName(false, TimeZone.LONG, in test_getDisplayName_ZI()
|
D | CalendarTest.java | 804 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 806 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale() 810 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 812 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale() 818 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 820 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale() 824 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 826 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale() 834 assertEquals(cal.getDisplayName(field, Calendar.SHORT, in test_getDisplayNameIILjava_util_Locale() 837 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale() [all …]
|
D | LocaleTest.java | 211 assertEquals("English (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName()); in test_getDisplayName() 215 assertEquals("anglais (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName(l)); in test_getDisplayNameLjava_util_Locale()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 325 public final String getDisplayName() { in getDisplayName() method in TimeZone 326 return getDisplayName(false, LONG, in getDisplayName() 345 public final String getDisplayName(Locale locale) { in getDisplayName() method in TimeZone 346 return getDisplayName(false, LONG, locale); in getDisplayName() 373 public final String getDisplayName(boolean daylight, int style) { in getDisplayName() method in TimeZone 374 return getDisplayName(daylight, style, in getDisplayName() 388 public String getDisplayName(boolean daylightTime, int style, Locale locale) { in getDisplayName() method in TimeZone 409 String displayName = names.getDisplayName(canonicalID, nameType, now); in getDisplayName()
|
D | Currency.java | 546 public String getDisplayName() { in getDisplayName() method in Currency 547 return getDisplayName(Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName() 561 public String getDisplayName(Locale locale) { in getDisplayName() method in Currency 576 return icuCurrency.getDisplayName(Objects.requireNonNull(locale)); in getDisplayName()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyDisplayNameTest.java | 54 String displayName = chronology.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testDisplayName() 65 String displayName = era.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testEras()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | NetworkInterfaceTest.java | 184 networkInterface1.getDisplayName()); in test_getDisplayName() 187 networkInterface1.getDisplayName().equals("")); in test_getDisplayName() 192 networkInterface1.getDisplayName().equals( in test_getDisplayName() 193 networkInterface2.getDisplayName())); in test_getDisplayName()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalField.java | 107 default String getDisplayName(Locale locale) { in getDisplayName() method
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 249 assertEquals(DayOfWeek.MONDAY.getDisplayName(TextStyle.SHORT, Locale.US), "Mon"); in test_getText() 254 DayOfWeek.MONDAY.getDisplayName(null, Locale.US); in test_getText_nullStyle() 259 DayOfWeek.MONDAY.getDisplayName(TextStyle.FULL, null); in test_getText_nullLocale()
|
D | TCKZoneId.java | 235 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), id); in factory_of_String_offsetBasedValid_noPrefix() 283 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("UTC" + id)); in factory_of_String_offsetBasedValid_prefixUTC() 294 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("GMT" + id)); in factory_of_String_offsetBasedValid_prefixGMT() 305 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), displayName("UT" + id)); in factory_of_String_offsetBasedValid_prefixUT()
|
D | TCKMonth.java | 241 assertEquals(Month.JANUARY.getDisplayName(TextStyle.SHORT, Locale.US), "Jan"); in test_getText() 246 Month.JANUARY.getDisplayName(null, Locale.US); in test_getText_nullStyle() 251 Month.JANUARY.getDisplayName(TextStyle.FULL, null); in test_getText_nullLocale()
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | Era.java | 41 public java.lang.String getDisplayName(java.util.Locale locale) { in getDisplayName() method in Era
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | Era.java | 97 public String getDisplayName(Locale locale) { in getDisplayName() method in Era
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 320 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() method
|
D | Chronology.java | 633 default String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() method
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | ZoneId.java | 111 public java.lang.String getDisplayName( in getDisplayName() method in ZoneId
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 105 tz.getDisplayName(isDST, TimeZone.LONG, locale)); in test_printText() 107 tz.getDisplayName(isDST, TimeZone.SHORT, locale)); in test_printText()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 226 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() method in DayOfWeek
|
D | Month.java | 253 public String getDisplayName(TextStyle style, Locale locale) { in getDisplayName() method in Month
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 125 …public static String getDisplayName(String[][] zoneStrings, String id, boolean daylight, int style… in getDisplayName() method in TimeZoneNames
|