Home
last modified time | relevance | path

Searched refs:getID (Results 1 – 13 of 13) 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.java146 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+05:00").getID()); in testCustomZoneIds()
147 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5:00").getID()); in testCustomZoneIds()
148 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+0500").getID()); in testCustomZoneIds()
149 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+500").getID()); in testCustomZoneIds()
150 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+5").getID()); in testCustomZoneIds()
152 assertEquals("GMT", TimeZone.getTimeZone("GMT+5.5").getID()); in testCustomZoneIds()
153 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:5").getID()); in testCustomZoneIds()
154 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:0").getID()); in testCustomZoneIds()
155 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:005").getID()); in testCustomZoneIds()
156 assertEquals("GMT", TimeZone.getTimeZone("GMT+5:000").getID()); in testCustomZoneIds()
[all …]
DOldTimeZoneTest.java142 assertEquals("GMT-06:00", tz.getID()); in test_getID()
144 assertEquals("America/Denver", tz.getID()); in test_getID()
157 assertFalse(tz1.getID().equals(tz2.getID())); in test_hasSameRulesLjava_util_TimeZone()
164 assertEquals("GMT-06:00", tz.getID()); in test_setIDLjava_lang_String()
166 assertEquals("New ID for GMT-6", tz.getID()); in test_setIDLjava_lang_String()
/libcore/luni/src/test/java/libcore/util/
DZoneInfoDBTest.java92 assertFalse(first.getID().equals(second.getID())); in testMakeTimeZone_timeZoneMutability()
/libcore/benchmarks/src/benchmarks/regression/
DTimeZoneBenchmark.java36 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
/libcore/luni/src/main/java/java/util/
DTimeZone.java194 String result = TimeZoneNames.getDisplayName(zoneStrings, getID(), daylightTime, style); in getDisplayName()
262 public String getID() { in getID() method in TimeZone
DSimpleTimeZone.java320 return getID().equals(tz.getID()) in equals()
496 int hashCode = getID().hashCode() + rawOffset; in hashCode()
801 + getID() in toString()
DCalendar.java1228 ",zone=" + zone.getID() + in toString()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java284 return getID().equals(other.getID()) && hasSameRules(other); in equals()
291 result = prime * result + getID().hashCode(); in hashCode()
303 return getClass().getName() + "[id=\"" + getID() + "\"" + in toString()
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java102 … return formatDateInterval(getFormatter(skeleton, locale.toString(), tz.getID()), startMs, endMs); in formatDateRange()
/libcore/luni/src/main/java/java/text/
DDateFormatSymbols.java508 return TimeZoneNames.getDisplayName(zoneStrings, tz.getID(), daylight, style); in getTimeZoneDisplayName()