HomeSort by relevance Sort by last modified time
    Searched refs:tz (Results 1 - 25 of 171) sorted by null

1 2 3 4 5 6 7

  /libcore/luni/src/test/java/libcore/java/util/
TimeZoneTest.java 58 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
59 TimeZone.setDefault(tz);
63 assertEquals(-28800000, tz.getOffset(date.getTime()));
64 assertFalse(tz.inDaylightTime(date));
69 assertEquals(-28800000, tz.getOffset(date.getTime()));
70 assertFalse(tz.inDaylightTime(date));
82 TimeZone tz = TimeZone.getTimeZone("Asia/Saigon"); local
86 assertNonDaylightOffset(25580, -2005975000L, tz);
88 assertNonDaylightOffset(25580, -2005974400L, tz); // 0
89 assertNonDaylightOffset(25580, -2005974000L, tz);
124 TimeZone tz = TimeZone.getTimeZone(id); local
    [all...]
OldTimeZoneTest.java 86 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local
87 assertEquals("GMT-06:00", tz.getDisplayName());
88 tz = TimeZone.getTimeZone("America/Los_Angeles");
89 assertEquals("Pacific Standard Time", tz.getDisplayName());
93 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
94 assertEquals("Pacific Standard Time", tz.getDisplayName(new Locale("US")));
97 assertEquals("heure normale du Pacifique", tz.getDisplayName(Locale.FRANCE));
102 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
103 assertEquals("PST", tz.getDisplayName(false, 0));
104 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, 1))
110 TimeZone tz = TimeZone.getTimeZone("America\/Los_Angeles"); local
126 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local
148 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local
    [all...]
  /bionic/libc/unistd/
ftime.c 33 struct timezone tz; local
35 if (gettimeofday (&tv, &tz) < 0)
45 tb->timezone = tz.tz_minuteswest;
46 tb->dstflag = tz.tz_dsttime;
  /system/extras/tests/bionic/libc/common/
test_tm_zone.c 39 const char* tz = getenv("TZ");
44 if (tz) {
45 printf( "TZ set to '%s'\n", tz );
47 printf( "TZ is not defined\n" );
  /external/v8/src/
dateparser-inl.h 42 TimeZoneComposer tz; local
66 } else if (tz.IsExpecting(n)) {
67 tz.SetAbsoluteMinute(n);
94 tz.Set(KeywordTable::GetValue(index));
99 } else if (in.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
101 tz.SetSign(in.GetAsciiSignValue());
105 tz.SetAbsoluteHour(n);
106 tz.SetAbsoluteMinute(kNone);
108 tz.SetAbsoluteHour(n / 100);
109 tz.SetAbsoluteMinute(n % 100)
    [all...]
  /system/core/include/cutils/
tztime.h 26 time_t mktime_tz(struct tm * const tmp, char const * tz);
27 void localtime_tz(const time_t * const timep, struct tm * tmp, const char* tz);
  /external/qemu/android/utils/
timezone.c 44 check_timezone_is_zoneinfo(const char* tz)
48 if (tz == NULL)
52 slash1 = strchr( tz, '/' );
88 const char* tz = get_zoneinfo_timezone(); local
90 if (tz == NULL || !check_timezone_is_zoneinfo(tz))
93 return bufprint(p, end, "%s", tz);
109 const char* tz = getenv("TZ"); local
113 if (tz == NULL)
295 const char* tz = getenv( "TZ" ); local
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
TimeUtilsTest.java 52 TimeZone tz = TimeZone.getTimeZone(name); local
53 Calendar c = Calendar.getInstance(tz);
81 TimeZone tz = TimeZone.getTimeZone(name); local
82 Calendar c = Calendar.getInstance(tz);
105 TimeZone tz = TimeZone.getTimeZone(name); local
106 Calendar c = Calendar.getInstance(tz);
394 "tz", "Africa/Dar_es_Salaam",
428 TimeZone tz = TimeZone.getTimeZone(name); local
429 Calendar c = Calendar.getInstance(tz);
464 TimeZone tz = TimeZone.getTimeZone(name) local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
TimeUtilsTest.java 41 TimeZone tz = TimeZone.getTimeZone(name); local
42 Calendar c = Calendar.getInstance(tz);
62 TimeZone tz = TimeZone.getTimeZone(name); local
63 Calendar c = Calendar.getInstance(tz);
78 TimeZone tz = TimeZone.getTimeZone(name); local
79 Calendar c = Calendar.getInstance(tz);
358 "tz", "Africa/Dar_es_Salaam",
392 TimeZone tz = TimeZone.getTimeZone(name); local
393 Calendar c = Calendar.getInstance(tz);
416 TimeZone tz = TimeZone.getTimeZone(name) local
    [all...]
  /external/icu4c/tools/tzcode/
icuzdump.cpp 115 void setTimeZone(TimeZone* tz) {
116 timezone = tz;
239 TimeZone* tz = NULL; local
244 tz = TimeZone::createTimeZone(*zid);
250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]);
253 tz = TimeZone::createDefault();
258 return tz;
375 TimeZone* tz = zit->next(); local
376 if (tz == NULL) {
379 dumper.setTimeZone(tz);
406 TimeZone* tz = zit->next(); local
    [all...]
  /external/icu4c/test/intltest/
tzregts.h 53 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max);
54 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
tztest.h 49 void findTransition(const TimeZone& tz,
55 void testUsingBinarySearch(const TimeZone& tz,
tztest.cpp 228 TimeZoneTest::findTransition(const TimeZone& tz,
232 UBool startsInDST = tz.inDaylightTime(min, ec);
234 if (tz.inDaylightTime(max, ec) == startsInDST) {
235 logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"TRUE":"FALSE") +
242 if (tz.inDaylightTime(mid, ec) == startsInDST) {
251 logln(tz.getID(id) + " Before: " + min/1000 + " = " +
252 dateToString(min,s,tz));
253 logln(tz.getID(id) + " After: " + max/1000 + " = " +
254 dateToString(max,s,tz));
258 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz,
304 TimeZone* tz = TimeZone::createTimeZone("PRT"); local
490 TimeZone *tz = TimeZone::createTimeZone("PST"); local
    [all...]
tzbdtest.cpp 116 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz)
122 if (tz->inDaylightTime(d, status) != startsInDST) {
123 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDST ? "true" : "false"));
127 if (tz->inDaylightTime(max, status) == startsInDST) {
128 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsInDST ? "false" : "true"));
134 UBool isIn = tz->inDaylightTime(mid, status);
143 logln(tz->getID(str) + " Before: " + showDate(min));
144 logln(tz->getID(str) + " After: " + showDate(max));
337 TimeZone *tz; local
338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST")))
425 SimpleTimeZone *tz; local
    [all...]
itformat.cpp 77 TimeZone *tz = TimeZone::createTimeZone("PST"); local
78 TimeZone::setDefault(*tz);
79 delete tz;
tzbdtest.h 42 virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz);
65 virtual void testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary);
  /frameworks/base/core/tests/coretests/src/android/app/activity/
SetTimeZonePermissionsTest.java 55 String tz = mZones[i]; local
57 mAlarm.setTimeZone(tz);
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DateUtils.java 39 TimeZone tz = TimeZone.getTimeZone("GMT"); local
40 Calendar c = Calendar.getInstance(tz);
  /frameworks/media/libvideoeditor/osal/src/
M4OSA_Clock.c 59 struct timezone tz; local
76 if(gettimeofday(&tv, &tz) == 0)
  /hardware/ti/omap3/dspbridge/libbridge/
perfutils.c 41 struct timezone tz; local
42 Result = gettimeofday(tv, &tz);
  /libcore/luni/src/main/java/java/util/
SimpleTimeZone.java 312 SimpleTimeZone tz = (SimpleTimeZone) object; local
313 return getID().equals(tz.getID())
314 && rawOffset == tz.rawOffset
315 && useDaylight == tz.useDaylight
316 && (!useDaylight || (startYear == tz.startYear
317 && startMonth == tz.startMonth
318 && startDay == tz.startDay && startMode == tz.startMode
319 && startDayOfWeek == tz.startDayOfWeek
320 && startTime == tz.startTime && endMonth == tz.endMont
503 SimpleTimeZone tz = (SimpleTimeZone) zone; local
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/transforms/
TranslateTransformOperation.h 40 static PassRefPtr<TranslateTransformOperation> create(const Length& tx, const Length& ty, const Length& tz, OperationType type)
42 return adoptRef(new TranslateTransformOperation(tx, ty, tz, type));
75 TranslateTransformOperation(const Length& tx, const Length& ty, const Length& tz, OperationType type)
78 , m_z(tz)
  /frameworks/base/services/jni/
com_android_server_AlarmManagerService.cpp 42 struct timezone tz; local
44 tz.tz_minuteswest = minswest;
45 tz.tz_dsttime = 0;
47 int result = settimeofday(NULL, &tz);
  /external/icu4c/samples/date/
date.c 46 static void date(const UChar *tz, UDateFormatStyle style, char *format, UErrorCode *status);
64 const UChar *tz = 0; local
84 tz = GMT_ID;
138 date(tz, style, format, &status);
192 date(const UChar *tz,
202 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status);
  /packages/apps/Exchange/tests/src/com/android/exchange/utility/
CalendarUtilitiesTests.java 95 // This time zone has no DST, but earlier, buggy code retrieved a TZ WITH DST
136 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME); local
137 assertEquals("America/Dawson", tz.getID());
138 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME);
139 assertEquals("Asia/Calcutta", tz.getID());
140 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME);
141 assertEquals("Australia/ACT", tz.getID());
145 // when the tz isn't found
146 tz = CalendarUtilities.tziStringToTimeZoneImpl(LENIENT_EASTERN_TIME,
148 assertEquals("America/Atikokan", tz.getID())
615 TimeZone tz = TimeZone.getTimeZone("US\/Central"); local
859 TimeZone tz = TimeZone.getTimeZone(tzs); local
    [all...]

Completed in 5019 milliseconds

1 2 3 4 5 6 7