Home
last modified time | relevance | path

Searched refs:time_zone (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/webrtc/system_wrappers/source/
Devent_timer_posix.cc85 struct timezone time_zone; in Wait() local
86 time_zone.tz_minuteswest = 0; in Wait()
87 time_zone.tz_dsttime = 0; in Wait()
88 gettimeofday(&value, &time_zone); in Wait()
182 struct timezone time_zone; in Process()
183 time_zone.tz_minuteswest = 0; in Process()
184 time_zone.tz_dsttime = 0; in Process()
185 gettimeofday(&value, &time_zone); in Process()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dmessage_types_test.py55 time_zone = util.TimeZoneOffset(60 * 10)
58 datetime.datetime(2033, 2, 4, 11, 22, 10, tzinfo=time_zone))
82 time_zone = util.TimeZoneOffset(60 * 5)
83 self.assertEqual(datetime.datetime(2033, 2, 4, 11, 6, 40, tzinfo=time_zone),
Dutil_test.py377 time_zone = util.TimeZoneOffset(datetime.timedelta(minutes=3))
378 epoch = time_zone.utcoffset(datetime.datetime.utcfromtimestamp(0))
/external/icu/icu4c/source/test/intltest/
Dtzbdtest.cpp189 TimeZoneBoundaryTest::verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expIn… in verifyDST() argument
193 logln("-- Verifying time " + dateToString(d) + " in zone " + time_zone->getID(str)); in verifyDST()
194 if (time_zone->inDaylightTime(d, status) == expInDaylightTime) in verifyDST()
195 …logln(UnicodeString("PASS: inDaylightTime = ") + (time_zone->inDaylightTime(d, status)?"true":"fal… in verifyDST()
197 …dataerrln(UnicodeString("FAIL: inDaylightTime = ") + (time_zone->inDaylightTime(d, status)?"true":… in verifyDST()
200 if (time_zone->useDaylightTime() == expUseDaylightTime) in verifyDST()
201 … logln(UnicodeString("PASS: useDaylightTime = ") + (time_zone->useDaylightTime()?"true":"false")); in verifyDST()
203 …dataerrln(UnicodeString("FAIL: useDaylightTime = ") + (time_zone->useDaylightTime()?"true":"false"… in verifyDST()
204 if (time_zone->getRawOffset() == expZoneOffset) in verifyDST()
207 …dataerrln(UnicodeString("FAIL: getRawOffset() = ") + (time_zone->getRawOffset() / ONE_HOUR) + "; … in verifyDST()
[all …]
Dtzbdtest.h54 …virtual void verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expInDaylight…
Dtztest.cpp338 TimeZone* time_zone = TimeZone::createTimeZone("PST"); in TestVariousAPI518() local
341 logln("The timezone is " + time_zone->getID(str)); in TestVariousAPI518()
342 if (!time_zone->inDaylightTime(d, status)) dataerrln("FAIL: inDaylightTime returned FALSE"); in TestVariousAPI518()
344 if (!time_zone->useDaylightTime()) dataerrln("FAIL: useDaylightTime returned FALSE"); in TestVariousAPI518()
345 …if (time_zone->getRawOffset() != - 8 * millisPerHour) dataerrln("FAIL: getRawOffset returned wrong… in TestVariousAPI518()
350 if (time_zone->getOffset(gc->AD, gc->get(UCAL_YEAR, status), gc->get(UCAL_MONTH, status), in TestVariousAPI518()
355 delete time_zone; in TestVariousAPI518()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneBoundaryTest.java243 void verifyDST(String tag, Calendar cal, TimeZone time_zone, in verifyDST() argument
250 " in zone " + time_zone.getID() + " (" + in verifyDST()
253 if (time_zone.inDaylightTime(d) == expInDaylightTime) in verifyDST()
254 logln("PASS: inDaylightTime = " + time_zone.inDaylightTime(d)); in verifyDST()
256 errln("FAIL: inDaylightTime = " + time_zone.inDaylightTime(d)); in verifyDST()
258 if (time_zone.useDaylightTime() == expUseDaylightTime) in verifyDST()
259 logln("PASS: useDaylightTime = " + time_zone.useDaylightTime()); in verifyDST()
261 errln("FAIL: useDaylightTime = " + time_zone.useDaylightTime()); in verifyDST()
263 if (time_zone.getRawOffset() == expRawOffset) in verifyDST()
266 errln("FAIL: getRawOffset() = " + time_zone.getRawOffset()/(double)ONE_HOUR + in verifyDST()
[all …]
DTimeZoneTest.java697 TimeZone time_zone = TimeZone.getTimeZone("PST"); in TestVariousAPI518() local
702 logln("The timezone is " + time_zone.getID()); in TestVariousAPI518()
704 if (time_zone.inDaylightTime(d) != true) in TestVariousAPI518()
707 if (time_zone.useDaylightTime() != true) in TestVariousAPI518()
710 if (time_zone.getRawOffset() != -8*millisPerHour) in TestVariousAPI518()
715 …if (time_zone.getOffset(GregorianCalendar.AD, gc.get(GregorianCalendar.YEAR), gc.get(GregorianCale… in TestVariousAPI518()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneBoundaryTest.java239 void verifyDST(String tag, Calendar cal, TimeZone time_zone, in verifyDST() argument
246 " in zone " + time_zone.getID() + " (" + in verifyDST()
249 if (time_zone.inDaylightTime(d) == expInDaylightTime) in verifyDST()
250 logln("PASS: inDaylightTime = " + time_zone.inDaylightTime(d)); in verifyDST()
252 errln("FAIL: inDaylightTime = " + time_zone.inDaylightTime(d)); in verifyDST()
254 if (time_zone.useDaylightTime() == expUseDaylightTime) in verifyDST()
255 logln("PASS: useDaylightTime = " + time_zone.useDaylightTime()); in verifyDST()
257 errln("FAIL: useDaylightTime = " + time_zone.useDaylightTime()); in verifyDST()
259 if (time_zone.getRawOffset() == expRawOffset) in verifyDST()
262 errln("FAIL: getRawOffset() = " + time_zone.getRawOffset()/(double)ONE_HOUR + in verifyDST()
[all …]
DTimeZoneTest.java693 TimeZone time_zone = TimeZone.getTimeZone("PST"); in TestVariousAPI518() local
698 logln("The timezone is " + time_zone.getID()); in TestVariousAPI518()
700 if (time_zone.inDaylightTime(d) != true) in TestVariousAPI518()
703 if (time_zone.useDaylightTime() != true) in TestVariousAPI518()
706 if (time_zone.getRawOffset() != -8*millisPerHour) in TestVariousAPI518()
711 …if (time_zone.getOffset(GregorianCalendar.AD, gc.get(GregorianCalendar.YEAR), gc.get(GregorianCale… in TestVariousAPI518()
/external/libchrome/base/time/
Dtime_mac.cc179 base::ScopedCFTypeRef<CFTimeZoneRef> time_zone( in FromExploded() local
181 CFAbsoluteTime seconds = CFGregorianDateGetAbsoluteTime(date, time_zone) + in FromExploded()
197 base::ScopedCFTypeRef<CFTimeZoneRef> time_zone( in Explode() local
199 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(seconds, time_zone); in Explode()
201 int cf_day_of_week = CFAbsoluteTimeGetDayOfWeek(seconds, time_zone); in Explode()
/external/google-breakpad/src/processor/
Dminidump.cc313 static inline void Swap(MDTimeZoneInformation* time_zone) { in Swap() argument
314 Swap(&time_zone->bias); in Swap()
317 Swap(&time_zone->standard_date); in Swap()
318 Swap(&time_zone->standard_bias); in Swap()
321 Swap(&time_zone->daylight_date); in Swap()
322 Swap(&time_zone->daylight_bias); in Swap()
3442 Swap(&misc_info_.time_zone); in Read()
3460 ConvertUTF16BufferToUTF8String(misc_info_.time_zone.standard_name, in Read()
3461 sizeof(misc_info_.time_zone.standard_name), in Read()
3463 ConvertUTF16BufferToUTF8String(misc_info_.time_zone.daylight_name, in Read()
[all …]
/external/wpa_supplicant_8/src/ap/
Dieee802_11_shared.c429 len = os_strlen(hapd->conf->time_zone); in hostapd_eid_time_zone()
433 os_memcpy(eid, hapd->conf->time_zone, len); in hostapd_eid_time_zone()
Dap_config.h460 char *time_zone; member
Dap_config.c478 os_free(conf->time_zone); in hostapd_config_free_bss()
/external/v8/src/
Di18n.cc163 icu::UnicodeString time_zone; in SetResolvedDateSettings() local
164 tz.getID(time_zone); in SetResolvedDateSettings()
167 icu::TimeZone::getCanonicalID(time_zone, canonical_time_zone, status); in SetResolvedDateSettings()
/external/google-breakpad/src/google_breakpad/common/
Dminidump_format.h757 MDTimeZoneInformation time_zone; member
/external/gtest/test/
Dgtest_unittest.cc446 static void SetTimeZone(const char* time_zone) { in SetTimeZone() argument
454 std::string("TZ=") + (time_zone ? time_zone : ""); in SetTimeZone()
462 if (time_zone) { in SetTimeZone()
463 setenv(("TZ"), time_zone, 1); in SetTimeZone()
/external/google-breakpad/src/testing/gtest/test/
Dgtest_unittest.cc357 static void SetTimeZone(const char* time_zone) { in SetTimeZone() argument
365 std::string("TZ=") + (time_zone ? time_zone : ""); in SetTimeZone()
373 if (time_zone) { in SetTimeZone()
374 setenv(("TZ"), time_zone, 1); in SetTimeZone()
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest_unittest.cc446 static void SetTimeZone(const char* time_zone) { in SetTimeZone() argument
454 std::string("TZ=") + (time_zone ? time_zone : ""); in SetTimeZone()
462 if (time_zone) { in SetTimeZone()
463 setenv(("TZ"), time_zone, 1); in SetTimeZone()
/external/wpa_supplicant_8/hostapd/
Dconfig_file.c3084 os_free(bss->time_zone); in hostapd_config_fill()
3085 bss->time_zone = os_strdup(pos); in hostapd_config_fill()
3086 if (bss->time_zone == NULL) in hostapd_config_fill()