/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimeZoneTest.java | 110 "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 …]
|
D | SimpleTimeZoneTest.java | 39 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()
|
D | CalendarTest.java | 671 .getID(), est_calendar.getTimeZone().getID()); in test_getInstance()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 168 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 …]
|
D | OldTimeZoneTest.java | 128 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()
|
D | GregorianCalendarTest.java | 453 public String getID() { in getID() method in GregorianCalendarTest.DelegatingTimeZone 454 return timeZone.getID(); in getID()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | Extension.java | 61 public String getID() { in getID() method in Extension 66 return getID(); in toString()
|
D | LocaleExtensions.java | 223 public String getID() { in getID() method in LocaleExtensions
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | TimeZoneBenchmark.java | 35 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 292 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()
|
D | SimpleTimeZone.java | 902 return getID().equals(that.getID()) && in equals() 947 "[id=" + getID() + in toString()
|
D | Locale.java | 1371 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()
|
D | Calendar.java | 3570 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/ |
D | TimeZoneFinder.java | 163 if (match.getID().equals(bias.getID())) { in lookupTimeZoneByCountryAndOffset() 529 if (tz.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in process()
|
D | ZoneInfo.java | 641 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/ |
D | ZoneInfoDBTest.java | 225 assertFalse(first.getID().equals(second.getID())); in testMakeTimeZone_timeZoneMutability()
|
D | ZoneInfoTest.java | 349 assertEquals(id, zoneInfo.getID()); in testReadTimeZone_All()
|
D | TimeZoneFinderTest.java | 666 androidZones.stream().map(TimeZone::getID).sorted() in consistencyTest()
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 1279 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/ |
D | TestZoneTextPrinterParser.java | 100 if (tz.getID().equals("GMT")) { in test_printText()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestZoneId.java | 129 assertEquals(test.getId(), TimeZone.getDefault().getID()); in test_systemDefault()
|