Home
last modified time | relevance | path

Searched refs:TimeZone (Results 1 – 25 of 142) sorted by relevance

123456

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DTimeZoneTest.java28 import java.util.TimeZone;
41 TimeZone.getDefault(), TimeZone.getDefault()); in test_getDefault()
51 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getDSTSavings()
56 st1 = TimeZone.getTimeZone("Australia/Lord_Howe"); in test_getDSTSavings()
61 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); in test_getDSTSavings()
78 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long()
86 st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long()
91 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); 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()
[all …]
DSimpleTimeZoneTest.java24 import java.util.TimeZone;
100 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
107 TimeZone.SHORT, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
109 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
112 TimeZone.LONG)); in test_ConstructorILjava_lang_StringIIIIIIIIIII()
116 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
123 TimeZone.SHORT, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
125 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
128 TimeZone.LONG)); in test_ConstructorILjava_lang_StringIIIIIIIIIII()
158 assertTrue("Equalty test1 failed", TimeZone.getTimeZone("EST").equals( in test_equalsLjava_lang_Object()
[all …]
DDateTest.java23 import java.util.TimeZone;
320 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()
459 TimeZone tz = TimeZone.getDefault(); in test_toString()
460 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_toString()
467 TimeZone.setDefault(tz); in test_toString()
471 TimeZone.setDefault(TimeZone.getTimeZone("MST")); in test_toString()
489 static TimeZone defaultTimeZone = TimeZone.getDefault();
503 TimeZone.setDefault(defaultTimeZone); in tearDown()
DGregorianCalendarTest.java26 import java.util.TimeZone;
53 TimeZone.getDefault())); in test_ConstructorIII()
76 TimeZone.getDefault())); in test_ConstructorIIIII()
107 TimeZone.getDefault())); in test_ConstructorIIIIII()
132 TimeZone.getDefault(); in test_ConstructorLjava_util_TimeZone()
133 GregorianCalendar gc1 = new GregorianCalendar(TimeZone in test_ConstructorLjava_util_TimeZone()
136 GregorianCalendar gc2 = new GregorianCalendar(TimeZone in test_ConstructorLjava_util_TimeZone()
150 Calendar c1 = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in test_ConstructorLjava_util_TimeZone()
171 TimeZone.getDefault(); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
172 GregorianCalendar gc1 = new GregorianCalendar(TimeZone in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
[all …]
/external/icu4c/i18n/unicode/
Dtimezone.h129 class U_I18N_API TimeZone : public UObject {
134 virtual ~TimeZone();
149 static const TimeZone& U_EXPORT2 getUnknown();
164 static const TimeZone* U_EXPORT2 getGMT(void);
177 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
290 static TimeZone* U_EXPORT2 createDefault(void);
301 static void U_EXPORT2 adoptDefault(TimeZone* zone);
312 static void U_EXPORT2 setDefault(const TimeZone& zone);
366 virtual UBool operator==(const TimeZone& that) const;
377 UBool operator!=(const TimeZone& that) const {return !operator==(that);}
[all …]
/external/icu4c/test/intltest/
Dtztest.cpp93 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
109 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
111 TimeZone* pstZone = TimeZone::createTimeZone("America/Los_Angeles"); in TestGenericAPI()
137 TimeZone::adoptDefault(zone); in TestGenericAPI()
138 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
142 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
148 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
237 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
267 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
313 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
[all …]
Dtzbdtest.cpp108 TimeZone *zone = TimeZone::createDefault(); in findDaylightBoundaryUsingTimeZone()
116 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone()
189 TimeZoneBoundaryTest::verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expIn… in verifyDST()
278 TimeZone* pst = TimeZone::createTimeZone("PST"); in TestBoundaries()
291 TimeZone* utc = TimeZone::createTimeZone("UTC"); in TestBoundaries()
298 TimeZone* save = TimeZone::createDefault(); in TestBoundaries()
299 TimeZone::setDefault(*pst); in TestBoundaries()
316 TimeZone::setDefault(*save); in TestBoundaries()
325 TimeZone *z = TimeZone::createTimeZone("PST"); in TestBoundaries()
337 TimeZone *tz; in TestBoundaries()
[all …]
Ditformat.cpp77 TimeZone* saveDefaultTimeZone = NULL; in runIndexedTest()
80 saveDefaultTimeZone = TimeZone::createDefault(); in runIndexedTest()
81 TimeZone *tz = TimeZone::createTimeZone("PST"); in runIndexedTest()
82 TimeZone::setDefault(*tz); in runIndexedTest()
152 TimeZone::adoptDefault(saveDefaultTimeZone); in runIndexedTest()
Dtzregts.cpp79 TimeZone *z1 = TimeZone::createTimeZone("PST"); in Test4073209()
80 TimeZone *z2 = TimeZone::createTimeZone("PST"); in Test4073209()
209 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4084933()
318 TimeZone *PST = TimeZone::createTimeZone("PST"); in Test4109314()
350 TimeZoneRegressionTest::checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ) in checkCalendar314()
460 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4126678()
508 StringEnumeration* ids = TimeZone::createEnumeration(rawoffset); in Test4151406()
805 TimeZone *tz = TimeZone::createDefault(); in Test4154650()
859 TimeZone *DATA_TZ [] = { in Test4162593()
883 TimeZone *tz = (TimeZone*)DATA_TZ[j]; in Test4162593()
[all …]
/external/icu4c/i18n/
Dtimezone.cpp114 static icu::TimeZone* DEFAULT_ZONE = NULL;
115 static icu::TimeZone* _GMT = NULL;
116 static icu::TimeZone* _UNKNOWN_ZONE = NULL;
239 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
319 const TimeZone& U_EXPORT2
320 TimeZone::getUnknown() in getUnknown()
326 const TimeZone* U_EXPORT2
327 TimeZone::getGMT(void) in getGMT()
337 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
339 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
[all …]
Ducal.cpp31 static TimeZone*
33 TimeZone* zone = NULL; in _createTimeZone()
41 zone = TimeZone::createTimeZone(zoneStrID); in _createTimeZone()
52 return uenum_openFromStringEnumeration(TimeZone::createTimeZoneIDEnumeration( in ucal_openTimeZoneIDEnumeration()
58 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(), ec); in ucal_openTimeZones()
63 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(country), ec); in ucal_openCountryTimeZones()
70 TimeZone* zone = TimeZone::createDefault(); in ucal_getDefaultTimeZone()
85 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_setDefaultTimeZone()
87 TimeZone::adoptDefault(zone); in ucal_setDefaultTimeZone()
94 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_getDSTSavings()
[all …]
/external/chromium/chrome/browser/ui/webui/options/chromeos/
Dsystem_settings_provider.cc131 string16 GetExemplarCity(const icu::TimeZone& zone) { in GetExemplarCity()
185 timezones_.push_back(icu::TimeZone::createTimeZone( in SystemSettingsProvider()
207 const icu::TimeZone* timezone = GetTimezone(value); in DoSet()
228 void SystemSettingsProvider::TimezoneChanged(const icu::TimeZone& timezone) { in TimezoneChanged()
235 for (std::vector<icu::TimeZone*>::iterator iter = timezones_.begin(); in GetTimezoneList()
237 const icu::TimeZone* timezone = *iter; in GetTimezoneList()
247 const icu::TimeZone& timezone) { in GetTimezoneName()
276 timezone.getDisplayName(dst_offset != 0, icu::TimeZone::LONG, name); in GetTimezoneName()
285 const icu::TimeZone& timezone) { in GetTimezoneID()
291 const icu::TimeZone* SystemSettingsProvider::GetTimezone( in GetTimezone()
[all …]
Dsystem_settings_provider.h31 virtual void TimezoneChanged(const icu::TimeZone& timezone);
41 static string16 GetTimezoneName(const icu::TimeZone& timezone);
44 static string16 GetTimezoneID(const icu::TimeZone& timezone);
47 const icu::TimeZone* GetTimezone(const string16& timezone_id);
56 string16 GetKnownTimezoneID(const icu::TimeZone& timezone) const;
59 std::vector<icu::TimeZone*> timezones_;
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java22 import java.util.TimeZone;
201 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()
[all …]
DTimeTest.java21 import java.util.TimeZone;
101 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
117 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
142 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTime()
305 static TimeZone defaultTimeZone = TimeZone.getDefault();
308 TimeZone.setDefault(defaultTimeZone); in tearDown()
DDateTest.java22 import java.util.TimeZone;
33 static Calendar aCal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
246 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
278 TimeZone.setDefault(TimeZone.getTimeZone(timeZoneName)); in testSetTimelong()
389 static TimeZone defaultTimeZone = TimeZone.getDefault();
392 TimeZone.setDefault(defaultTimeZone); in tearDown()
/external/chromium/chrome/browser/chromeos/
Dsystem_access.cc59 virtual const icu::TimeZone& GetTimezone();
60 virtual void SetTimezone(const icu::TimeZone& timezone);
76 scoped_ptr<icu::TimeZone> timezone_;
140 const icu::TimeZone& SystemAccessImpl::GetTimezone() { in GetTimezone()
144 void SystemAccessImpl::SetTimezone(const icu::TimeZone& timezone) { in SetTimezone()
152 icu::TimeZone::setDefault(timezone); in SetTimezone()
183 icu::TimeZone* timezone = in SystemAccessImpl()
184 icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(id)); in SystemAccessImpl()
186 icu::TimeZone::setDefault(*timezone); in SystemAccessImpl()
/external/chromium/chrome/browser/chromeos/status/
Dclock_menu_button_browsertest.cc43 scoped_ptr<icu::TimeZone> timezone_first(icu::TimeZone::createTimeZone( in IN_PROC_BROWSER_TEST_F()
47 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone( in IN_PROC_BROWSER_TEST_F()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java16 import java.util.TimeZone;
44 private TimeZone timeZone = TimeZone.getTimeZone("UTC");
70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl()
98 public XMPDateTimeImpl(Date date, TimeZone timeZone) in XMPDateTimeImpl()
296 public TimeZone getTimeZone() in getTimeZone()
305 public void setTimeZone(TimeZone timeZone) in setTimeZone()
/external/icu4c/samples/datefmt/answers/
Dmain_2.cpp20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
38 TimeZone *zone; in main()
Dmain_3.cpp20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
38 TimeZone *zone; in main()
/external/icu4c/tools/tzcode/
Dicuzdump.cpp115 void setTimeZone(TimeZone* tz) { in setTimeZone()
202 TimeZone* timezone;
215 zenum = TimeZone::createEnumeration(); in ZoneIterator()
238 TimeZone* next() { in next()
239 TimeZone* tz = NULL; in next()
244 tz = TimeZone::createTimeZone(*zid); in next()
250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
253 tz = TimeZone::createDefault(); in next()
375 TimeZone* tz = zit->next(); in main()
406 TimeZone* tz = zit->next(); in main()
/external/icu4c/samples/datefmt/
Dmain.cpp20 TimeZone* createZone(const UnicodeString& id) { in createZone()
22 TimeZone* zone = TimeZone::createTimeZone(id); in createZone()
38 TimeZone *zone; in main()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPDateTime.java13 import java.util.TimeZone;
86 TimeZone getTimeZone(); in getTimeZone()
89 void setTimeZone(TimeZone tz); in setTimeZone()
DXMPDateTimeFactory.java15 import java.util.TimeZone;
29 private static final TimeZone UTC = TimeZone.getTimeZone("UTC");
114 cal.setTimeZone(TimeZone.getDefault()); in setLocalTimeZone()

123456