/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimeZoneTest.java | 51 TimeZone st1 = TimeZone.getTimeZone("America/New_York"); in test_getDSTSavings() 56 st1 = TimeZone.getTimeZone("Australia/Lord_Howe"); in test_getDSTSavings() 78 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long() 86 st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long() 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() [all …]
|
D | SimpleTimeZoneTest.java | 262 TimeZone tz = TimeZone.getTimeZone("EST"); in test_equalsLjava_lang_Object() 299 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getOffsetIIIIII() 304 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getOffsetIIIIII() 356 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getRawOffset() 371 assertTrue(TimeZone.getTimeZone("EST").hashCode() != 0); in test_hashCode() 402 TimeZone tz = TimeZone.getTimeZone("EST"); in test_inDaylightTimeLjava_util_Date() 603 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_setRawOffsetI() 704 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_setStartRuleIIIIZ() 707 SimpleTimeZone st = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_setStartRuleIIIIZ() 780 String string = TimeZone.getTimeZone("EST").toString(); in test_toString() [all …]
|
D | GregorianCalendarTest.java | 31 private static final TimeZone AMERICA_CHICAGO = TimeZone.getTimeZone("America/Chicago"); 32 private static final TimeZone AMERICA_NEW_YORK = TimeZone.getTimeZone("America/New_York"); 55 assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals( in test_ConstructorIII() 78 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIII() 109 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIIII() 150 Calendar c1 = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in test_ConstructorLjava_util_TimeZone() 328 TimeZone tz = TimeZone.getTimeZone(ids[i]); in test_getActualMaximumI() 673 .getTimeZone("Europe/London"), new Locale("en", "GB")); in test_getMinimalDaysInFirstWeek() 677 g = new GregorianCalendar(TimeZone.getTimeZone("Europe/London"), in test_getMinimalDaysInFirstWeek() 682 g = new GregorianCalendar(TimeZone.getTimeZone("Europe/London"), in test_getMinimalDaysInFirstWeek() [all …]
|
D | DateTest.java | 316 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String() 321 cal.setTimeZone(TimeZone.getTimeZone("MST")); in test_parseLjava_lang_String() 326 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String() 456 TimeZone.setDefault(TimeZone.getTimeZone("GMT-5")); in test_toString() 466 TimeZone.setDefault(TimeZone.getTimeZone("MST")); in test_toString() 491 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_toLocaleString()
|
D | CalendarTest.java | 41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST")); in test_setII() 404 cal.setTimeZone(TimeZone.getTimeZone("EST")); in test_setTimeLjava_util_Date() 457 assertNotSame("getTimeZone", cal.getTimeZone(), anotherCal in test_clone() 458 .getTimeZone()); in test_clone() 468 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_getTimeInMillis() 665 .getTimeZone("GMT"), Locale.US); in test_getInstance() 666 assertEquals(TimeZone.getTimeZone("GMT"), in test_getInstance() 667 gmt_calendar.getTimeZone()); in test_getInstance() 669 .getTimeZone("EST"), Locale.US); in test_getInstance() 670 assertEquals(TimeZone.getTimeZone("EST") in test_getInstance() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 30 TimeZone asiaTaipei = TimeZone.getTimeZone("Asia/Taipei"); in test_useDaylightTime_Taiwan() 36 TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik"); in test_useDaylightTime_Iceland() 61 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in testPreHistoricInDaylightTime() 80 TimeZone tz = TimeZone.getTimeZone("Africa/Bissau"); in testPreHistoricOffsets() 106 TimeZone tz = TimeZone.getTimeZone(id); in testZeroTransitionZones() 120 TimeZone timeZone = TimeZone.getTimeZone("Europe/Helsinki"); in testHelsinkiOverflow() 129 TimeZone denver = TimeZone.getTimeZone("America/Denver"); in testHasSameRules() 130 TimeZone phoenix = TimeZone.getTimeZone("America/Phoenix"); in testHasSameRules() 137 TimeZone.getTimeZone(null); in testNullId() 146 assertEquals("GMT+05:00", TimeZone.getTimeZone("GMT+05:00").getID()); in testCustomZoneIds() [all …]
|
D | OldTimeZoneTest.java | 71 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDs() 80 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDsI() 86 TimeZone tz = TimeZone.getTimeZone("GMT-6"); in test_getDisplayName() 88 tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayName() 93 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameLjava_util_Locale() 100 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameZI() 108 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameZILjava_util_Locale() 131 TimeZone iranTz = TimeZone.getTimeZone("Asia/Tehran"); in test_getDisplayNameZILjava_util_Locale() 141 TimeZone tz = TimeZone.getTimeZone("GMT-6"); in test_getID() 143 tz = TimeZone.getTimeZone("America/Denver"); in test_getID() [all …]
|
D | OldGregorianCalendarTest.java | 33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); in testGetHour() 35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); in testGetHour() 42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow")); in test_computeTime() 56 TimeZone.getTimeZone("Europe/London"), in test_computeFields() 70 TimeZone.getTimeZone("Europe/London"), in test_hashCode() 76 TimeZone.getTimeZone("Europe/Moscow")); in test_hashCode() 84 TimeZone.getTimeZone("Europe/London"), in test_setFirstDayOfWeekI() 98 TimeZone.getTimeZone("Europe/London"), in test_setMinimalDaysInFirstWeekI()
|
D | DateTest.java | 30 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_us() 38 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_nonUs() 44 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_us() 58 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_nonUs()
|
D | CalendarTest.java | 28 private static final TimeZone AMERICA_SAO_PAULO = TimeZone.getTimeZone("America/Sao_Paulo"); 31 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe"); 38 private static final TimeZone ASIA_KUALA_LUMPUR = TimeZone.getTimeZone("Asia/Kuala_Lumpur"); 40 private static final TimeZone ASIA_SEOUL = TimeZone.getTimeZone("Asia/Seoul"); 46 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.US); in test_setTimeZone() 48 TimeZone tz = java.util.TimeZone.getTimeZone("GMT+7"); in test_setTimeZone() 190 calendar.setTimeZone(TimeZone.getTimeZone("GMT-08:00")); in testCalendarSerialization() 214 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles")); in test_clear_45877()
|
D | FormatterTest.java | 44 Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT-08:00")); in test_numberLocalization() 166 TimeZone utc = TimeZone.getTimeZone("UTC"); in checkFormat()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | TimeZoneBenchmark.java | 31 TimeZone.getTimeZone("UTC"); in timeTimeZone_getTimeZoneUTC() 38 TimeZone.getTimeZone(defaultId); in timeTimeZone_getTimeZone_default() 45 TimeZone.getTimeZone("America/Caracas"); in timeTimeZone_getTimeZone_America_Caracas() 52 TimeZone.getTimeZone("America/Santiago"); in timeTimeZone_getTimeZone_America_Santiago() 58 TimeZone.getTimeZone("GMT+10"); in timeTimeZone_getTimeZone_GMT_plus_10()
|
D | DateIntervalFormatBenchmark.java | 29 TimeZone utc = TimeZone.getTimeZone("UTC"); in timeDateIntervalFormat_formatDateRange_DATE() 39 TimeZone utc = TimeZone.getTimeZone("UTC"); in timeDateIntervalFormat_formatDateRange_TIME() 49 TimeZone utc = TimeZone.getTimeZone("UTC"); in timeDateIntervalFormat_formatDateRange_DATE_TIME()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 30 private static final TimeZone AMERICA_LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles"); 31 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe"); 54 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testStandAloneNames() 94 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testFiveCount_M() 105 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testFiveCount_L() 116 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testFiveCount_E() 128 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testFiveCount_c() 140 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testFiveCount_Z() 151 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_parsing_Z() 165 format.setTimeZone(TimeZone.getTimeZone("UTC")); in test2038() [all …]
|
/libcore/luni/src/test/java/libcore/icu/ |
D | DateIntervalFormatTest.java | 33 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_formatDateInterval() 171 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test8862241() 185 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10089890() 186 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test10089890() 207 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10318326() 234 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_when_time_not_displayed() 258 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_for_single_day_events() 270 TimeZone utc = TimeZone.getTimeZone("UTC"); in test_single_day_events_later_than_epoch() 288 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test_single_day_events_not_in_UTC() 309 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10209343_when_not_this_year() [all …]
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormat.java | 263 && calendar.getTimeZone().equals( in equals() 264 dateFormat.calendar.getTimeZone()) in equals() 543 public TimeZone getTimeZone() { in getTimeZone() method in DateFormat 544 return calendar.getTimeZone(); in getTimeZone() 551 + calendar.getTimeZone().hashCode() in hashCode()
|
D | DateFormatSymbols.java | 329 zone[1] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.LONG, locale); in getZoneStrings() 332 zone[2] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale); in getZoneStrings() 335 zone[3] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.LONG, locale); in getZoneStrings() 338 zone[4] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale); in getZoneStrings()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | TimestampTest.java | 30 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in testToString() 52 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOf()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpDate.java | 39 rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Time.java | 44 GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in getDecodedObject()
|
D | ASN1UTCTime.java | 99 sdf.setTimeZone(TimeZone.getTimeZone("UTC")); in setEncodingContent()
|
D | ASN1GeneralizedTime.java | 88 sdf.setTimeZone(TimeZone.getTimeZone("UTC")); in setEncodingContent()
|
/libcore/luni/src/main/java/java/util/ |
D | Calendar.java | 882 && getTimeZone().equals(cal.getTimeZone()); in equals() 1055 public TimeZone getTimeZone() { in getTimeZone() method in Calendar 1062 + getMinimalDaysInFirstWeek() + getTimeZone().hashCode(); in hashCode()
|
D | TimeZone.java | 150 defaultTimeZone = TimeZone.getTimeZone(zoneName); in getDefault() 347 public static synchronized TimeZone getTimeZone(String id) { in getTimeZone() method in TimeZone
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipEntryTest.java | 344 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ() 348 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_setTimeJ() 352 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ()
|