Home
last modified time | relevance | path

Searched refs:getID (Results 1 – 21 of 21) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java110 "GMT", TimeZone.getTimeZone("SMT-8").getID()); in test_getTimeZoneLjava_lang_String()
112 "GMT", TimeZone.getTimeZone("GMT+28:70").getID()); in test_getTimeZoneLjava_lang_String()
114 "GMT", TimeZone.getTimeZone("GMT+28:30").getID()); in test_getTimeZoneLjava_lang_String()
116 "GMT", TimeZone.getTimeZone("GMT+8:70").getID()); in test_getTimeZoneLjava_lang_String()
118 "GMT", TimeZone.getTimeZone("GMT+3:").getID()); in test_getTimeZoneLjava_lang_String()
120 "GMT", TimeZone.getTimeZone("GMT+3:0").getID()); in test_getTimeZoneLjava_lang_String()
122 "GMT", TimeZone.getTimeZone("GMT+2360").getID()); in test_getTimeZoneLjava_lang_String()
124 "GMT", TimeZone.getTimeZone("GMT+892").getID()); in test_getTimeZoneLjava_lang_String()
126 "GMT", TimeZone.getTimeZone("GMT+082").getID()); in test_getTimeZoneLjava_lang_String()
128 "GMT", TimeZone.getTimeZone("GMT+28").getID()); in test_getTimeZoneLjava_lang_String()
[all …]
DSimpleTimeZoneTest.java39 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_String()
62 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_StringIIIIIIII()
119 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_StringIIIIIIIII()
310 … st1 = new SimpleTimeZone(TimeZone.getDefault().getRawOffset(), TimeZone.getDefault().getID()); in test_getOffsetIIIIII()
815 … st1 = new SimpleTimeZone(TimeZone.getDefault().getRawOffset(), TimeZone.getDefault().getID()); in test_getOffsetJ()
DCalendarTest.java671 .getID(), est_calendar.getTimeZone().getID()); in test_getInstance()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java168 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+05:00").getID()); in testCustomZoneIds()
169 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5:00").getID()); in testCustomZoneIds()
170 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+0500").getID()); in testCustomZoneIds()
171 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+500").getID()); in testCustomZoneIds()
172 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5").getID()); in testCustomZoneIds()
174 assertEquals("GMT", TimeZone.getTimeZone("GMT+5.5").getID()); in testCustomZoneIds()
175 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:5").getID()); in testCustomZoneIds()
176 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:0").getID()); in testCustomZoneIds()
177 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:005").getID()); in testCustomZoneIds()
178 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:000").getID()); in testCustomZoneIds()
[all …]
DOldTimeZoneTest.java128 assertEquals("GMT-06:00", tz.getID()); in test_getID()
130 assertEquals("America/Denver", tz.getID()); in test_getID()
143 assertFalse(tz1.getID().equals(tz2.getID())); in test_hasSameRulesLjava_util_TimeZone()
150 assertEquals("GMT-06:00", tz.getID()); in test_setIDLjava_lang_String()
152 assertEquals("New ID for GMT-6", tz.getID()); in test_setIDLjava_lang_String()
DGregorianCalendarTest.java453 public String getID() { in getID() method in GregorianCalendarTest.DelegatingTimeZone
454 return timeZone.getID(); in getID()
/libcore/ojluni/src/main/java/sun/util/locale/
DExtension.java61 public String getID() { in getID() method in Extension
66 return getID(); in toString()
DLocaleExtensions.java223 public String getID() { in getID() method in LocaleExtensions
/libcore/benchmarks/src/benchmarks/regression/
DTimeZoneBenchmark.java35 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java292 public String getID() in getID() method in TimeZone
396 String result = TimeZoneNames.getDisplayName(zoneStrings, getID(), daylightTime, style); in getDisplayName()
614 return ZoneId.of(getID(), ZoneId.SHORT_IDS); in toZoneId()
DSimpleTimeZone.java902 return getID().equals(that.getID()) && in equals()
947 "[id=" + getID() + in toString()
DLocale.java1371 boolean e = (localeExtensions != null && localeExtensions.getID().length() != 0); in toString()
1393 result.append(localeExtensions.getID()); in toString()
2323 fields.put("extensions", localeExtensions == null ? "" : localeExtensions.getID()); in writeObject()
DCalendar.java3570 String id = zone.getID(); in readObject()
3572 if (tz != null && tz.hasSameRules(zone) && tz.getID().equals(id)) { in readObject()
/libcore/luni/src/main/java/libcore/util/
DTimeZoneFinder.java163 if (match.getID().equals(bias.getID())) { in lookupTimeZoneByCountryAndOffset()
529 if (tz.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in process()
DZoneInfo.java641 return getID().equals(other.getID()) && hasSameRules(other); in equals()
648 result = prime * result + getID().hashCode(); in hashCode()
660 return getClass().getName() + "[id=\"" + getID() + "\"" + in toString()
/libcore/luni/src/test/java/libcore/util/
DZoneInfoDBTest.java225 assertFalse(first.getID().equals(second.getID())); in testMakeTimeZone_timeZoneMutability()
DZoneInfoTest.java349 assertEquals(id, zoneInfo.getID()); in testReadTimeZone_All()
DTimeZoneFinderTest.java666 androidZones.stream().map(TimeZone::getID).sorted() in consistencyTest()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1279 formatData.getZoneStringsWrapper(), tz.getID(), daylight, tzstyle); in subFormat()
1281 if (UTC_ZONE_IDS.contains(tz.getID())) { in subFormat()
1295 String canonicalID = android.icu.util.TimeZone.getCanonicalID(tz.getID()); in subFormat()
1786 String currentTimeZoneID = android.icu.util.TimeZone.getCanonicalID(getTimeZone().getID()); in subParseZoneStringFromICU()
1872 int zoneIndex = formatData.getZoneIndex(currentTimeZone.getID()); in subParseZoneStringFromSymbols()
1888 zoneIndex = formatData.getZoneIndex(TimeZone.getDefault().getID()); in subParseZoneStringFromSymbols()
2675 String id = tz.getID(); in readObject()
2677 if (zi != null && zi.hasSameRules(tz) && zi.getID().equals(id)) { in readObject()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java100 if (tz.getID().equals("GMT")) { in test_printText()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java129 assertEquals(test.getId(), TimeZone.getDefault().getID()); in test_systemDefault()