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.java199 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+05:00").getID()); in testCustomZoneIds()
200 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5:00").getID()); in testCustomZoneIds()
201 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+0500").getID()); in testCustomZoneIds()
202 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+500").getID()); in testCustomZoneIds()
203 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5").getID()); in testCustomZoneIds()
205 assertEquals("GMT", TimeZone.getTimeZone("GMT+5.5").getID()); in testCustomZoneIds()
206 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:5").getID()); in testCustomZoneIds()
207 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:0").getID()); in testCustomZoneIds()
208 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:005").getID()); in testCustomZoneIds()
209 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/luni/src/main/java/libcore/timezone/
DCountryTimeZones.java395 if (bias != null && match.getID().equals(bias.getID())) { in lookupByOffsetWithBias()
459 if (bias != null && match.getID().equals(bias.getID())) { in lookupByOffsetWithBias()
493 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in getValidFrozenTimeZoneOrNull()
/libcore/luni/src/test/java/libcore/libcore/icu/
DTimeZoneIntegrationTest.java64 assertEquals(origTz.getID(), origIcuTz.getID()); in testJavaSetDefaultAppliesToIcuTimezone()
69 assertEquals(tz.getID(), icuTz.getID()); in testJavaSetDefaultAppliesToIcuTimezone()
386 if (icuTimeZone.getID().equals(android.icu.util.TimeZone.UNKNOWN_ZONE_ID)) { in testTimeZoneIdLookup()
420 android.icu.util.TimeZone utz = android.icu.util.TimeZone.getTimeZone(tz.getID()); in testDisplayNamesWithScript()
/libcore/benchmarks/src/benchmarks/regression/
DTimeZoneBenchmark.java35 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java289 public String getID() in getID() method in TimeZone
403 String canonicalID = android.icu.util.TimeZone.getCanonicalID(getID()); in getDisplayName()
621 return ZoneId.of(getID(), ZoneId.SHORT_IDS); in toZoneId()
DSimpleTimeZone.java902 return getID().equals(that.getID()) && in equals()
947 "[id=" + getID() + in toString()
DCalendar.java3575 String id = zone.getID(); in readObject()
3577 if (tz != null && tz.hasSameRules(zone) && tz.getID().equals(id)) { in readObject()
/libcore/luni/src/test/java/libcore/libcore/timezone/
DZoneInfoDBTest.java229 assertFalse(first.getID().equals(second.getID())); in testMakeTimeZone_timeZoneMutability()
DCountryTimeZonesTest.java707 assertEquals(expected.mTimeZone.getID(), actual.mTimeZone.getID()); in assertOffsetResultEquals()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java670 return getID().equals(other.getID()) && hasSameRules(other); in equals()
677 result = prime * result + getID().hashCode(); in hashCode()
689 return getClass().getName() + "[id=\"" + getID() + "\"" + in toString()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java100 if (tz.getID().equals("GMT")) { in test_printText()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java602 assertEquals(timeZoneId, timeZone.getID()); in doTestFormat()
650 assertEquals(timeZoneId, timeZone.getID()); in doUtcParsingTest()
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java490 assertEquals(id, zoneInfo.getID()); in testReadTimeZone_All()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java129 assertEquals(test.getId(), TimeZone.getDefault().getID()); in test_systemDefault()