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

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/base/
os_compat_nacl.cc 16 char* tz; local
17 tz = getenv("TZ");
18 setenv("TZ", "", 1);
21 if (tz)
22 setenv("TZ", tz, 1);
24 unsetenv("TZ");
  /bionic/libc/bionic/
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;
  /libcore/luni/src/test/java/libcore/java/util/
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")));
95 assertEquals("heure normale du Pacifique", tz.getDisplayName(Locale.FRANCE));
100 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
101 assertEquals("PST", tz.getDisplayName(false, 0));
102 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, 1))
108 TimeZone tz = TimeZone.getTimeZone("America\/Los_Angeles"); local
120 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local
142 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local
    [all...]
TimeZoneTest.java 60 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
61 TimeZone.setDefault(tz);
65 assertEquals(-28800000, tz.getOffset(date.getTime()));
66 assertFalse(tz.inDaylightTime(date));
71 assertEquals(-28800000, tz.getOffset(date.getTime()));
72 assertFalse(tz.inDaylightTime(date));
84 TimeZone tz = TimeZone.getTimeZone("Asia/Saigon"); local
88 assertNonDaylightOffset(25580, -2005975000L, tz);
90 assertNonDaylightOffset(25580, -2005974400L, tz); // 0
91 assertNonDaylightOffset(25580, -2005974000L, tz);
126 TimeZone tz = TimeZone.getTimeZone(id); local
221 TimeZone tz = TimeZone.getTimeZone(id); local
279 TimeZone tz = TimeZone.getTimeZone("America\/Santiago"); local
288 TimeZone tz = TimeZone.getTimeZone("Pacific\/Apia"); local
316 TimeZone tz = TimeZone.getTimeZone(id); local
    [all...]
  /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" );
  /libcore/luni/src/test/java/libcore/icu/
DateIntervalFormatTest.java 37 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local
39 Calendar c = Calendar.getInstance(tz, Locale.US);
62 assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY));
63 assertEquals("January 19", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE));
64 assertEquals("3:30 AM", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_SHOW_TIME));
65 assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_YEAR));
66 assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR));
67 assertEquals("January", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DAY));
68 assertEquals("3:30 AM", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_12HOUR | FORMAT_SHOW_TIME));
69 assertEquals("03:30", formatDateRange(en_US, tz, fixedTime, fixedTime, FORMAT_24HOUR | FORMAT_SHOW_TIME))
174 TimeZone tz = TimeZone.getTimeZone("America\/Los_Angeles"); local
    [all...]
  /bionic/libc/private/
bionic_time.h 57 extern time_t mktime_tz(struct tm* const tmp, char const* tz);
58 extern void localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz);
  /cts/tests/tests/util/src/android/util/cts/
TimeUtilsTest.java 37 TimeZone tz = TimeZone.getTimeZone(name); local
38 Calendar c = Calendar.getInstance(tz);
58 TimeZone tz = TimeZone.getTimeZone(name); local
59 Calendar c = Calendar.getInstance(tz);
74 TimeZone tz = TimeZone.getTimeZone(name); local
75 Calendar c = Calendar.getInstance(tz);
94 TimeZone tz = TimeZone.getTimeZone(name); local
95 Calendar c = Calendar.getInstance(tz);
  /external/smack/src/org/jivesoftware/smackx/packet/
Time.java 69 private String tz = null; field in class:Time
87 tz = cal.getTimeZone().getID();
153 return tz;
159 * @param tz the time zone.
161 public void setTz(String tz) {
162 this.tz = tz;
189 if (tz != null) {
190 buf.append("<tz>").append(tz).append("</tz>")
    [all...]
  /frameworks/opt/timezonepicker/src/com/android/timezonepicker/
TimeZoneData.java 141 final TimeZone tz = TimeZone.getTimeZone(tzId); local
142 if (tz == null) {
147 TimeZoneInfo tzInfo = new TimeZoneInfo(tz, null);
163 // checkForNameDups(tz, tzInfo.mCountry, false /* dls */,
165 // checkForNameDups(tz, tzInfo.mCountry, false /* dls */,
167 // if (tz.useDaylightTime()) {
168 // checkForNameDups(tz, tzInfo.mCountry, true /* dls */,
171 // checkForNameDups(tz, tzInfo.mCountry, true /* dls */,
183 for (TimeZoneInfo tz : mTimeZones) {
185 // Lookup map for id -> tz
338 final TimeZone tz = TimeZone.getTimeZone(newTzId); local
387 final TimeZone tz = TimeZone.getTimeZone(timeZoneId); local
    [all...]
TimeZonePickerUtils.java 82 private CharSequence buildGmtDisplayName(TimeZone tz, long timeMillis, boolean grayGmt) {
83 Time time = new Time(tz.getID());
88 String displayName = getDisplayName(tz, time.isDst != 0);
92 final int gmtOffset = tz.getOffset(timeMillis);
99 if (tz.useDaylightTime()) {
112 if (tz.useDaylightTime()) {
161 private String getDisplayName(TimeZone tz, boolean daylightTime) {
164 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault());
168 if (tz.getID().equals(mOverrideIds[i])) {
180 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault())
    [all...]
  /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...]
  /external/chromium_org/v8/src/
dateparser-inl.h 43 TimeZoneComposer tz; local
96 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz);
123 } else if (tz.IsExpecting(n)) {
124 tz.SetAbsoluteMinute(n);
148 tz.Set(value);
156 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
158 tz.SetSign(token.ascii_sign());
167 tz.SetAbsoluteHour(n);
168 tz.SetAbsoluteMinute(kNone);
170 tz.SetAbsoluteHour(n / 100)
    [all...]
  /external/v8/src/
dateparser-inl.h 43 TimeZoneComposer tz; local
95 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz);
122 } else if (tz.IsExpecting(n)) {
123 tz.SetAbsoluteMinute(n);
147 tz.Set(value);
152 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
154 tz.SetSign(token.ascii_sign());
163 tz.SetAbsoluteHour(n);
164 tz.SetAbsoluteMinute(kNone);
166 tz.SetAbsoluteHour(n / 100)
    [all...]
  /bionic/tests/
time_benchmark.cpp 24 extern "C" void localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz);
  /frameworks/base/core/tests/coretests/src/android/util/
TimeUtilsTest.java 39 TimeZone tz = TimeZone.getTimeZone(name); local
40 Calendar c = Calendar.getInstance(tz);
60 TimeZone tz = TimeZone.getTimeZone(name); local
61 Calendar c = Calendar.getInstance(tz);
76 TimeZone tz = TimeZone.getTimeZone(name); local
77 Calendar c = Calendar.getInstance(tz);
356 "tz", "Africa/Dar_es_Salaam",
390 TimeZone tz = TimeZone.getTimeZone(name); local
391 Calendar c = Calendar.getInstance(tz);
414 TimeZone tz = TimeZone.getTimeZone(name) local
    [all...]
  /external/chromium_org/third_party/icu/source/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/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/chromium_org/third_party/icu/source/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,
  /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 51 void findTransition(const TimeZone& tz,
57 void testUsingBinarySearch(const TimeZone& tz,
  /frameworks/av/libvideoeditor/osal/src/
M4OSA_Clock.c 59 struct timezone tz; local
76 if(gettimeofday(&tv, &tz) == 0)
  /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);

Completed in 337 milliseconds

1 2 3 4 5 6 7 8 91011>>