Home
last modified time | relevance | path

Searched refs:getDisplayName (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java86 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 …]
DTimeZoneTest.java53 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
54 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
55 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); in testCustomTimeZoneDisplayNames()
78 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets()
79 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in testGetDisplayNameShort_nonHourOffsets()
208 String longDst = tz.getDisplayName(true, TimeZone.LONG, Locale.US); in testDisplayNames()
209 String longStd = tz.getDisplayName(false, TimeZone.LONG, Locale.US); in testDisplayNames()
210 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, Locale.US); in testDisplayNames()
211 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, Locale.US); in testDisplayNames()
267 assertEquals("Apia Daylight Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); in testApia()
[all …]
DOldAndroidLocaleTest.java65 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()
DCurrencyTest.java60 assertEquals("Swiss Franc", Currency.getInstance("CHF").getDisplayName(Locale.US)); in test_getDisplayName()
61 …assertEquals("Schweizer Franken", Currency.getInstance("CHF").getDisplayName(new Locale("de", "CH"… in test_getDisplayName()
62 … assertEquals("franc suisse", Currency.getInstance("CHF").getDisplayName(new Locale("fr", "CH"))); in test_getDisplayName()
63 …assertEquals("franco svizzero", Currency.getInstance("CHF").getDisplayName(new Locale("it", "CH"))… in test_getDisplayName()
DLocaleTest.java46 assertEquals("aabbcc (DDEEFF,GGHHII)", invalid.getDisplayName()); in test_getDisplayName_invalid()
72 assertEquals("xx (YY,Traditional)", unknown.getDisplayName()); in test_getDisplayName_unknown()
86 Locale.forLanguageTag("zh-Hant-CN").getDisplayName(Locale.US)); in test_getDisplayName_withScriptsAndVariants()
89 Locale.forLanguageTag("zh-Hant-VARIANT").getDisplayName(Locale.US)); in test_getDisplayName_withScriptsAndVariants()
92 Locale.forLanguageTag("zh-CN-VARIANT").getDisplayName(Locale.US)); in test_getDisplayName_withScriptsAndVariants()
95 Locale.forLanguageTag("zh-Hant-CN-VARIANT").getDisplayName(Locale.US)); in test_getDisplayName_withScriptsAndVariants()
DGregorianCalendarTest.java422 public String getDisplayName(boolean daylightTime, int style, Locale locale) { in getDisplayName() method in GregorianCalendarTest.DelegatingTimeZone
423 return timeZone.getDisplayName(daylightTime, style, locale); in getDisplayName()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java322 public final String getDisplayName() { in getDisplayName() method in TimeZone
323 return getDisplayName(false, LONG, in getDisplayName()
342 public final String getDisplayName(Locale locale) { in getDisplayName() method in TimeZone
343 return getDisplayName(false, LONG, locale); in getDisplayName()
370 public final String getDisplayName(boolean daylight, int style) { in getDisplayName() method in TimeZone
371 return getDisplayName(daylight, style, in getDisplayName()
385 public String getDisplayName(boolean daylightTime, int style, Locale locale) { in getDisplayName() method in TimeZone
391 String result = TimeZoneNames.getDisplayName(zoneStrings, getID(), daylightTime, style); in getDisplayName()
DCurrency.java250 public String getDisplayName() { in getDisplayName() method in Currency
251 return icuCurrency.getDisplayName(); in getDisplayName()
265 public String getDisplayName(Locale locale) { in getDisplayName() method in Currency
266 return icuCurrency.getDisplayName(locale); in getDisplayName()
DLocale.java1899 public final String getDisplayName() { in getDisplayName() method in Locale
1900 return getDisplayName(getDefault(Category.DISPLAY)); in getDisplayName()
1919 public String getDisplayName(Locale locale) { in getDisplayName() method in Locale
DDate.java1060 sb.append(zi.getDisplayName(date.isDaylightTime(), zi.SHORT, Locale.US)); // zzz in toString()
DCalendar.java1394 public String getDisplayName(int field, int style, Locale locale) { in getDisplayName() method in Calendar
DFormatter.java4002 sb.append(tz.getDisplayName((t.get(Calendar.DST_OFFSET) != 0),
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java182 .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()
257 String defaultName = defaultZone.getDisplayName(); in test_getDisplayName()
258 String expectedName = defaultZone.getDisplayName(defaulLocal); in test_getDisplayName()
270 String actualName = defaultZone.getDisplayName(false, TimeZone.LONG); in test_getDisplayName_ZI()
271 String expectedName = defaultZone.getDisplayName(false, TimeZone.LONG, in test_getDisplayName_ZI()
DCalendarTest.java804 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 …]
DLocaleTest.java216 assertEquals("English (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName()); in test_getDisplayName()
220 assertEquals("anglais (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName(l)); in test_getDisplayNameLjava_util_Locale()
/libcore/luni/src/main/native/
Dlibcore_icu_TimeZoneNames.cpp92 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_STANDARD, now, long_std); in TimeZoneNames_fillZoneStrings()
94 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_STANDARD, now, short_std); in TimeZoneNames_fillZoneStrings()
96 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_DAYLIGHT, now, long_dst); in TimeZoneNames_fillZoneStrings()
98 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_DAYLIGHT, now, short_dst); in TimeZoneNames_fillZoneStrings()
139 names->getDisplayName(tz.unicodeString(), UTZNM_EXEMPLAR_LOCATION, now, s); in TimeZoneNames_getExemplarLocation()
/libcore/ojluni/src/main/java/java/util/spi/
DTimeZoneNameProvider.java79 public abstract String getDisplayName(String ID, boolean daylight, int style, Locale locale); in getDisplayName() method in TimeZoneNameProvider
DCurrencyNameProvider.java95 public String getDisplayName(String currencyCode, Locale locale) { in getDisplayName() method in CurrencyNameProvider
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DNetworkInterfaceTest.java184 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/text/
DDateFormatSymbols.java871 TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.LONG, locale); in internalZoneStrings()
875 TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale); in internalZoneStrings()
878 zone[3] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.LONG, locale); in internalZoneStrings()
882 TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale); in internalZoneStrings()
DSimpleDateFormat.java1105 current = calendar.getDisplayName(field, style, locale); in subFormat()
1196 String zoneString = tz.getDisplayName(daylight, tzstyle, formatData.locale); in subFormat()
/libcore/ojluni/src/main/java/sun/util/calendar/
DEra.java96 public String getDisplayName(Locale locale) { in getDisplayName() method in Era
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java114 …public static String getDisplayName(String[][] zoneStrings, String id, boolean daylight, int style… in getDisplayName() method in TimeZoneNames
/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java244 public String getDisplayName() { in getDisplayName() method in NetworkInterface