Home
last modified time | relevance | path

Searched refs:displayName (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyDisplayNameTest.java54 String displayName = chronology.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testDisplayName() local
55 assertNotNull(displayName); in testDisplayName()
56 assertFalse("".equals(displayName)); in testDisplayName()
65 String displayName = era.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testEras() local
66 assertNotNull(displayName); in testEras()
67 assertFalse("".equals(displayName)); in testEras()
68 assertTrue("Era name for " + era + " not unique.", eraNames.add(displayName)); in testEras()
/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java69 private String displayName; field in NetworkInterface
272 return "".equals(displayName) ? null : displayName; in getDisplayName()
463 ni.displayName = name; in getAll()
731 if (displayName != null) { in toString()
732 result += " (" + displayName + ")"; in toString()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java409 String displayName = names.getDisplayName(canonicalID, nameType, now); in getDisplayName() local
410 if (displayName != null) { in getDisplayName()
411 return displayName; in getDisplayName()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java102 public java.lang.String displayName() { in displayName() method in Charset
110 public java.lang.String displayName(java.util.Locale locale) { in displayName() method in Charset
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetTest.java389 assertEquals(mockName, c.displayName()); in testConstructor_Normal()
390 assertEquals(mockName, c.displayName(Locale.getDefault())); in testConstructor_Normal()
435 assertEquals("mockChar", c.displayName()); in testConstructor_NullAliases()
436 assertEquals("mockChar", c.displayName(Locale.getDefault())); in testConstructor_NullAliases()
451 assertEquals("mockChar", c.displayName()); in testConstructor_NoAliases()
452 assertEquals("mockChar", c.displayName(Locale.getDefault())); in testConstructor_NoAliases()
526 assertEquals("mock", c.displayName(null)); in testDisplayName_Locale_Null()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneId.java283 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()
310 private String displayName(String id) { in displayName() method in TCKZoneId
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java731 public String displayName() {
759 public String displayName(Locale locale) {
/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java213 private static void assertObsolete(String newCode, String oldCode, String displayName) { in assertObsolete() argument
224 assertEquals(displayName, newLocale.getDisplayLanguage(newLocale)); in assertObsolete()
225 assertEquals(displayName, oldLocale.getDisplayLanguage(newLocale)); in assertObsolete()
226 assertEquals(displayName, newLocale.getDisplayLanguage(oldLocale)); in assertObsolete()
227 assertEquals(displayName, oldLocale.getDisplayLanguage(oldLocale)); in assertObsolete()