Home
last modified time | relevance | path

Searched refs:getTimeZone (Results 1 – 25 of 56) sorted by relevance

123

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DTimeZoneTest.java51 TimeZone st1 = TimeZone.getTimeZone("EST"); 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 …]
DGregorianCalendarTest.java52 assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals( in test_ConstructorIII()
75 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIII()
106 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIIII()
134 .getTimeZone("EST")); in test_ConstructorLjava_util_TimeZone()
137 .getTimeZone("CST")); in test_ConstructorLjava_util_TimeZone()
150 Calendar c1 = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in test_ConstructorLjava_util_TimeZone()
173 .getTimeZone("EST"), Locale.JAPAN); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
176 .getTimeZone("EST"), Locale.JAPAN); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
179 .getTimeZone("CST"), Locale.ITALY); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
212 gc1 = new GregorianCalendar(TimeZone.getTimeZone("EST")); in test_addII()
[all …]
DSimpleTimeZoneTest.java158 assertTrue("Equalty test1 failed", TimeZone.getTimeZone("EST").equals( in test_equalsLjava_lang_Object()
160 assertTrue("Equalty test2 failed", !(TimeZone.getTimeZone("CST") in test_equalsLjava_lang_Object()
192 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getOffsetIIIIII()
197 st1 = TimeZone.getTimeZone("EST"); in test_getOffsetIIIIII()
215 st1 = (SimpleTimeZone) TimeZone.getTimeZone("EST"); in test_getRawOffset()
230 assertTrue("Returned different hashcodes", TimeZone.getTimeZone("EST") in test_hashCode()
261 TimeZone zone = TimeZone.getTimeZone("EST"); in test_inDaylightTimeLjava_util_Date()
365 st1 = (SimpleTimeZone) TimeZone.getTimeZone("EST"); in test_setRawOffsetI()
465 String string = TimeZone.getTimeZone("EST").toString(); in test_toString()
DDateTest.java320 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String()
325 cal.setTimeZone(TimeZone.getTimeZone("MST")); in test_parseLjava_lang_String()
330 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String()
460 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_toString()
471 TimeZone.setDefault(TimeZone.getTimeZone("MST")); in test_toString()
DCalendarTest.java41 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 …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java201 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTimelong()
219 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetTime()
257 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetDate()
270 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetHours()
283 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetMinutes()
296 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetSeconds()
310 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
342 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString1()
413 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testToString()
429 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
[all …]
DTimeTest.java101 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
117 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
142 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTime()
DDateTest.java33 static Calendar aCal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
246 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
278 TimeZone.setDefault(TimeZone.getTimeZone(timeZoneName)); in testSetTimelong()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java44 private TimeZone timeZone = TimeZone.getTimeZone("UTC");
70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl()
87 this.timeZone = intCalendar.getTimeZone(); in XMPDateTimeImpl()
296 public TimeZone getTimeZone() in getTimeZone() method in XMPDateTimeImpl
DISO8601Converter.java337 (dateTime.getTimeZone() != null && dateTime.getTimeZone().getRawOffset() != 0)) in render()
356 if (dateTime.getTimeZone() != null) in render()
360 int offset = dateTime.getTimeZone().getOffset(timeInMillis); in render()
/external/icu4c/test/intltest/
Ddtfmtrtts.cpp388 fmt->getTimeZone().getOffset(d[0], FALSE, startRaw, startDst, status); in test()
408 …else if((in0=fmt->getTimeZone().inDaylightTime(d[0], status)) && ! failure(status, "gettingDayligh… in test()
413 … fmt->getTimeZone().inDaylightTime(d[1], status) && !failure(status, "gettingDaylightTime")) in test()
423 && (fmt->getTimeZone().inDaylightTime(d[0], status) in test()
424 == fmt->getTimeZone().inDaylightTime(d[dmatch], status) in test()
Ddtfmapts.cpp243 const TimeZone& tz = def->getTimeZone(); in testAPI()
247 if( de->getTimeZone() != it->getTimeZone()) { in testAPI()
/external/apache-http/src/org/apache/http/impl/cookie/
DDateUtils.java78 public static final TimeZone GMT = TimeZone.getTimeZone("GMT");
252 format.setTimeZone(TimeZone.getTimeZone("GMT")); in formatFor()
/external/icu4c/i18n/
Ddatefmt.cpp242 TimeZone *tzsav = (TimeZone*)fCalendar->getTimeZone().clone(); in parse()
477 DateFormat::getTimeZone() const in getTimeZone() function in DateFormat
480 return fCalendar->getTimeZone(); in getTimeZone()
Dcecal.cpp90 if (U_FAILURE(status) || !getTimeZone().useDaylightTime()) { in inDaylightTime()
Dwindtfmt.cpp153 const TimeZone &tz = cal.getTimeZone(); in format()
213 fZoneID = setTimeZoneInfo(fTZI, fCalendar->getTimeZone()); in adoptCalendar()
Dislamcal.cpp452 if (U_FAILURE(status) || (&(getTimeZone()) == NULL && !getTimeZone().useDaylightTime())) in inDaylightTime()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPDateTime.java86 TimeZone getTimeZone(); in getTimeZone() method
DXMPDateTimeFactory.java29 private static final TimeZone UTC = TimeZone.getTimeZone("UTC");
/external/apache-http/src/org/apache/http/protocol/
DHttpDateGenerator.java57 public static final TimeZone GMT = TimeZone.getTimeZone("GMT");
/external/okhttp/src/main/java/libcore/net/http/
DHttpDate.java39 rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DZipEntryTest.java367 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ()
371 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_setTimeJ()
375 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ()
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_PortManager.java98 Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in somewhatRandomPort()
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DSimpleDateFormatTest.java95 format.setTimeZone(SimpleTimeZone.getTimeZone(timeZoneId)); in verifyFormatTimezone()
467 format.setTimeZone(TimeZone.getTimeZone("EST")); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
618 cal.setTimeZone(TimeZone.getTimeZone("HST")); in test_parseLjava_lang_StringLjava_text_ParsePosition()
687 cal.setTimeZone(TimeZone.getTimeZone("GMT+0:1")); in test_parseLjava_lang_StringLjava_text_ParsePosition()
690 cal.setTimeZone(TimeZone.getTimeZone("EST")); in test_parseLjava_lang_StringLjava_text_ParsePosition()
707 df.setTimeZone(TimeZone.getTimeZone("EST")); in test_parseLjava_lang_StringLjava_text_ParsePosition()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DUTCTimeTest.java49 sdf.setTimeZone(TimeZone.getTimeZone("GMT"));

123