Home
last modified time | relevance | path

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

1234567

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DTimeZoneTest.java23 TimeZone tz1 = TimeZone.getTimeZone("PST"); in testHashCode()
24 TimeZone tz2 = TimeZone.getTimeZone("PST"); in testHashCode()
25 TimeZone tzn = TimeZone.getTimeZone("CST"); in testHashCode()
40 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetOffset()
49 TimeZone tz = TimeZone.getTimeZone("PST"); in testSetRawOffset()
62 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetRawOffset()
71 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetID()
79 TimeZone tz = TimeZone.getTimeZone("PST"); in testSetID()
92 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetDisplayName()
100 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetDisplayNameLocale()
[all …]
DCalendarTest.java55 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in testGetInstanceTimeZone()
59 assertEquals(tz, cal.getTimeZone()); in testGetInstanceTimeZone()
84 TimeZone tz = TimeZone.getTimeZone("America/New_York"); in testGetInstanceTimeZoneLocale()
94 TimeZone tz = TimeZone.getTimeZone("America/New_York"); in testGetInstanceTimeZoneULocale()
250 cal.setTimeZone(TimeZone.getTimeZone("CST")); in testIsEquivalentTo()
251 cal2.setTimeZone(TimeZone.getTimeZone("PDT")); in testIsEquivalentTo()
392 assertNotNull(cal.getTimeZone()); in testGetTimeZone()
400 TimeZone value1 = cal.getTimeZone(); in testSetTimeZone()
402 TimeZone value2 = TimeZone.getTimeZone(tzn); in testSetTimeZone()
404 TimeZone result = cal.getTimeZone(); in testSetTimeZone()
DDateFormatTest.java52 anESTCal.setTimeZone(TimeZone.getTimeZone("EST")); in setUp()
268 cal.setTimeZone(TimeZone.getTimeZone("EST")); in testSetCalendar()
279 cal.setTimeZone(TimeZone.getTimeZone("EST")); in testGetCalendar()
309 TimeZone tz = TimeZone.getTimeZone("EST"); in testSetTimeZone()
319 TimeZone tz = TimeZone.getTimeZone("EST"); in testGetTimeZone()
321 assertEquals(tz, df.getTimeZone()); in testGetTimeZone()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCalendarTests.java43 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
74 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
90 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
106 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
122 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
138 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
154 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
170 TimeZone jst = TimeZone.getTimeZone("Asia/Jerusalem"); in getTestObjects()
186 TimeZone jst = TimeZone.getTimeZone("Asia/Calcutta"); in getTestObjects()
201 TimeZone cst = TimeZone.getTimeZone("Africa/Cairo"); in getTestObjects()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCalendarTests.java42 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
73 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
89 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
105 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
121 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
137 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
153 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
169 TimeZone jst = TimeZone.getTimeZone("Asia/Jerusalem"); in getTestObjects()
185 TimeZone jst = TimeZone.getTimeZone("Asia/Calcutta"); in getTestObjects()
200 TimeZone cst = TimeZone.getTimeZone("Africa/Cairo"); in getTestObjects()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/
DCalendarTest.java36 cal.setTimeZone(TimeZone.getTimeZone("GMT-8:00")); in testDumpDstIgnored()
86 cal.setTimeZone(TimeZone.getTimeZone(timeZone)); in check()
105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean()
106 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean()
117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag()
118 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timezone/
DBasicTimeZoneExample.java36 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in nextTransitionExample()
63 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in previousTransitionExample()
90 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in timeZoneRulesExample()
105 …BasicTimeZone tzNewYork = (BasicTimeZone)TimeZone.getTimeZone("America/New_York", TimeZone.TIMEZON… in equivalentTransitionsExample()
106 …BasicTimeZone tzDetroit = (BasicTimeZone)TimeZone.getTimeZone("America/Detroit", TimeZone.TIMEZONE… in equivalentTransitionsExample()
108 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/GMT")); in equivalentTransitionsExample()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DTimeZone.java543 public static synchronized TimeZone getTimeZone(String ID) { in getTimeZone() method in TimeZone
544 return new TimeZone(java.util.TimeZone.getTimeZone(ID)); in getTimeZone()
564 return getTimeZone(ID).freeze(); in getFrozenTimeZone()
578 public static synchronized TimeZone getTimeZone(String ID, int type) { in getTimeZone() method in TimeZone
580 return new TimeZone(java.util.TimeZone.getTimeZone(ID)); in getTimeZone()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java198 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTimelong()
216 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetTime()
254 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetDate()
267 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetHours()
280 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetMinutes()
293 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetSeconds()
307 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
330 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString1()
401 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testToString()
417 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegression.java62 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
63 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
106 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
147 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
184 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
309 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678()
371 TimeZone tz = TimeZone.getTimeZone("GMT"); in Test4151429()
623 z = TimeZone.getTimeZone(null); in Test4159922()
628 z = TimeZone.getTimeZone("GMT"); in Test4159922()
797 TimeZone pst = TimeZone.getTimeZone("PST"); in Test4173604()
[all …]
DTimeZoneTest.java194 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
301 TimeZone zone = TimeZone.getTimeZone(id); in TestCustomParse()
332 TimeZone zone = TimeZone.getTimeZone("PST"); in TestDisplayName()
466 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2()
682 TimeZone tz = TimeZone.getTimeZone( "PRT" ); in TestPRTOffset()
697 TimeZone time_zone = TimeZone.getTimeZone("PST"); in TestVariousAPI518()
746 TimeZone tz = TimeZone.getTimeZone("PST"); in TestGetAvailableIDs913()
752 tz = TimeZone.getTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
759 tz = TimeZone.getTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
844 TimeZone tz = TimeZone.getTimeZone(id); in TestGetAvailableIDsNew()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java58 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
59 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
102 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
143 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
180 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
305 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678()
367 TimeZone tz = TimeZone.getTimeZone("GMT"); in Test4151429()
619 z = TimeZone.getTimeZone(null); in Test4159922()
624 z = TimeZone.getTimeZone("GMT"); in Test4159922()
793 TimeZone pst = TimeZone.getTimeZone("PST"); in Test4173604()
[all …]
DTimeZoneTest.java190 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
297 TimeZone zone = TimeZone.getTimeZone(id); in TestCustomParse()
328 TimeZone zone = TimeZone.getTimeZone("PST"); in TestDisplayName()
462 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2()
678 TimeZone tz = TimeZone.getTimeZone( "PRT" ); in TestPRTOffset()
693 TimeZone time_zone = TimeZone.getTimeZone("PST"); in TestVariousAPI518()
742 TimeZone tz = TimeZone.getTimeZone("PST"); in TestGetAvailableIDs913()
748 tz = TimeZone.getTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
755 tz = TimeZone.getTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
840 TimeZone tz = TimeZone.getTimeZone(id); in TestGetAvailableIDsNew()
[all …]
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZone.java702 public static TimeZone getTimeZone(String ID) { in getTimeZone() method in TimeZone
703 return getTimeZone(ID, TZ_IMPL, false); in getTimeZone()
722 return getTimeZone(ID, TZ_IMPL, true); in getFrozenTimeZone()
737 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone() method in TimeZone
738 return getTimeZone(ID, type, false); in getTimeZone()
749 private static TimeZone getTimeZone(String ID, int type, boolean frozen) { in getTimeZone() method in TimeZone
995 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
1003 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeZone.java638 public static TimeZone getTimeZone(String ID) { in getTimeZone() method in TimeZone
639 return getTimeZone(ID, TZ_IMPL, false); in getTimeZone()
657 return getTimeZone(ID, TZ_IMPL, true); in getFrozenTimeZone()
671 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone() method in TimeZone
672 return getTimeZone(ID, type, false); in getTimeZone()
683 private static TimeZone getTimeZone(String ID, int type, boolean frozen) { in getTimeZone() method in TimeZone
919 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
927 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegression.java79 TimeZone zone = TimeZone.getTimeZone(ids[i]); in Test4031502()
103 …l.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(ids[i])); in Test4031502()
252 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4059654()
253 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4059654()
280 Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"), in Test4061476()
365 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4071385()
366 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4071385()
395 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in Test4083167()
429 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in Test4086724()
487 TimeZone GMT = TimeZone.getTimeZone("GMT"); in Test4096231()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegression.java83 TimeZone zone = TimeZone.getTimeZone(ids[i]); in Test4031502()
107 …l.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(ids[i])); in Test4031502()
256 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4059654()
257 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4059654()
284 Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"), in Test4061476()
369 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4071385()
370 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4071385()
399 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in Test4083167()
433 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in Test4086724()
491 TimeZone GMT = TimeZone.getTimeZone("GMT"); in Test4096231()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DTimestampTagTest.java71 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Europe/Moscow")); in testTimestampOut()
80 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Europe/Moscow")); in testTimestampOutMap()
92 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in getText()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DGlobalizationPreferencesTest.java697 TimeZone tz = gp.getTimeZone(); in TestTimeZone()
706 tz = gp.getTimeZone(); in TestTimeZone()
715 tz = gp.getTimeZone(); in TestTimeZone()
723 tz = gp.getTimeZone(); in TestTimeZone()
730 TimeZone jst = TimeZone.getTimeZone("Asia/Tokyo"); in TestTimeZone()
734 tz = gp.getTimeZone(); in TestTimeZone()
742 TimeZone cst = TimeZone.getTimeZone("Europe/Paris"); in TestTimeZone()
758 tz = gp1.getTimeZone(); in TestTimeZone()
766 tz = gp1.getTimeZone(); in TestTimeZone()
1294 TimeZone tz = TimeZone.getTimeZone("America/Sao_Paulo"); in TestDateFormat()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java693 TimeZone tz = gp.getTimeZone(); in TestTimeZone()
702 tz = gp.getTimeZone(); in TestTimeZone()
711 tz = gp.getTimeZone(); in TestTimeZone()
719 tz = gp.getTimeZone(); in TestTimeZone()
726 TimeZone jst = TimeZone.getTimeZone("Asia/Tokyo"); in TestTimeZone()
730 tz = gp.getTimeZone(); in TestTimeZone()
738 TimeZone cst = TimeZone.getTimeZone("Europe/Paris"); in TestTimeZone()
754 tz = gp1.getTimeZone(); in TestTimeZone()
762 tz = gp1.getTimeZone(); in TestTimeZone()
1290 TimeZone tz = TimeZone.getTimeZone("America/Sao_Paulo"); in TestDateFormat()
[all …]
/external/ksoap2/kobjects/org/ksoap2/kobjects/isodate/
DIsoDate.java39 c.setTimeZone(TimeZone.getTimeZone("GMT")); in dateToString()
136 TimeZone.getTimeZone( in stringToDate()
140 c.setTimeZone(TimeZone.getTimeZone("GMT")); in stringToDate()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java193 tz = TimeZone.getTimeZone("UTC"); in parse()
195 tz = TimeZone.getTimeZone(time.timezone); in parse()
217 strftime.setTimeZone(TimeZone.getTimeZone(time.timezone)); in format()
259 Calendar c = Calendar.getInstance(TimeZone.getTimeZone(time.timezone)); in getCalendar()
384 public TimeZone getTimeZone() { in getTimeZone() method in ShadowTime.Strftime
385 return simpleDateFormat.getTimeZone(); in getTimeZone()
/external/jetty/src/java/org/eclipse/jetty/util/
DDateCache.java137 public TimeZone getTimeZone() in getTimeZone() method in DateCache
139 return _tzFormat.getTimeZone(); in getTimeZone()
149 setTimeZone(TimeZone.getTimeZone(timeZoneId)); in setTimeZoneID()

1234567