Home
last modified time | relevance | path

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

12345

/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.h122 class U_I18N_API TimeZone : public UObject {
127 virtual ~TimeZone();
135 static const TimeZone* U_EXPORT2 getGMT(void);
147 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
239 static TimeZone* U_EXPORT2 createDefault(void);
250 static void U_EXPORT2 adoptDefault(TimeZone* zone);
259 static void U_EXPORT2 setDefault(const TimeZone& zone);
312 virtual UBool operator==(const TimeZone& that) const;
323 UBool operator!=(const TimeZone& that) const {return !operator==(that);}
584 virtual UBool hasSameRules(const TimeZone& other) const;
[all …]
Dcalendar.h301 static Calendar* U_EXPORT2 createInstance(TimeZone* zoneToAdopt, UErrorCode& success);
314 static Calendar* U_EXPORT2 createInstance(const TimeZone& zone, UErrorCode& success);
341 …static Calendar* U_EXPORT2 createInstance(TimeZone* zoneToAdopt, const Locale& aLocale, UErrorCode…
355 …static Calendar* U_EXPORT2 createInstance(const TimeZone& zoneToAdopt, const Locale& aLocale, UErr…
763 void adoptTimeZone(TimeZone* value);
772 void setTimeZone(const TimeZone& zone);
782 const TimeZone& getTimeZone(void) const;
792 TimeZone* orphanTimeZone(void);
1284 Calendar(TimeZone* zone, const Locale& aLocale, UErrorCode& success);
1295 Calendar(const TimeZone& zone, const Locale& aLocale, UErrorCode& success);
[all …]
/external/icu4c/test/intltest/
Dtztest.cpp84 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
100 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
102 TimeZone* pstZone = TimeZone::createTimeZone("America/Los_Angeles"); in TestGenericAPI()
128 TimeZone::adoptDefault(zone); in TestGenericAPI()
129 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
133 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
139 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
228 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
258 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
304 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.cpp73 TimeZone* saveDefaultTimeZone = NULL; in runIndexedTest()
76 saveDefaultTimeZone = TimeZone::createDefault(); in runIndexedTest()
77 TimeZone *tz = TimeZone::createTimeZone("PST"); in runIndexedTest()
78 TimeZone::setDefault(*tz); in runIndexedTest()
139 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()
801 TimeZone *tz = TimeZone::createDefault(); in Test4154650()
855 TimeZone *DATA_TZ [] = { in Test4162593()
879 TimeZone *tz = (TimeZone*)DATA_TZ[j]; in Test4162593()
[all …]
/external/icu4c/i18n/
Dtimezone.cpp118 static U_NAMESPACE_QUALIFIER TimeZone* DEFAULT_ZONE = NULL;
119 static U_NAMESPACE_QUALIFIER TimeZone* _GMT = NULL; // cf. TimeZone::GMT
271 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
320 const TimeZone* U_EXPORT2
321 TimeZone::getGMT(void) in getGMT()
346 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
348 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
355 TimeZone::TimeZone(const UnicodeString &id) in TimeZone() function in TimeZone
362 TimeZone::~TimeZone() in ~TimeZone()
368 TimeZone::TimeZone(const TimeZone &source) in TimeZone() function in TimeZone
[all …]
Ducal.cpp30 static TimeZone*
32 TimeZone* zone = NULL; in _createTimeZone()
40 zone = TimeZone::createTimeZone(zoneStrID); in _createTimeZone()
50 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(), ec); in ucal_openTimeZones()
55 return uenum_openFromStringEnumeration(TimeZone::createEnumeration(country), ec); in ucal_openCountryTimeZones()
62 TimeZone* zone = TimeZone::createDefault(); in ucal_getDefaultTimeZone()
77 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_setDefaultTimeZone()
79 TimeZone::adoptDefault(zone); in ucal_setDefaultTimeZone()
86 TimeZone* zone = _createTimeZone(zoneID, -1, ec); in ucal_getDSTSavings()
132 TimeZone* zone = (zoneID==NULL) ? TimeZone::createDefault() in ucal_open()
[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()
Dsystem_access.h22 virtual void TimezoneChanged(const icu::TimeZone& timezone) = 0;
28 virtual const icu::TimeZone& GetTimezone() = 0;
31 virtual void SetTimezone(const icu::TimeZone& timezone) = 0;
/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/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/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DZipEntryTest.java19 import java.util.TimeZone;
365 TimeZone zone = TimeZone.getDefault(); in test_setTimeJ()
367 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()
386 TimeZone.setDefault(zone); in test_setTimeJ()

12345