Searched defs:timezone (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/core/jni/
H A DTimeUtils.h44 const char *timezone; member in class:android::Time
61 void switchTimezone(const char *timezone);
H A DTime.cpp46 if (0 == strcmp(a.timezone, b.timezone)) {
81 Time::switchTimezone(const char* timezone) argument
83 time_t seconds = mktime_tz(&(this->t), this->timezone);
84 localtime_tz(&seconds, &(this->t), timezone);
146 bool inUtc = strcmp("UTC", timezone) == 0;
165 t.tm_sec, timezone, t.tm_wday, t.tm_yday, tm_gmtoff, t.tm_isdst,
176 localtime_tz(&seconds, &(this->t), this->timezone);
185 int64_t r = mktime_tz(&(this->t), this->timezone);
195 localtime_tz(&seconds, &(this->t), this->timezone);
[all...]
H A Dandroid_text_format_Time.cpp100 t.timezone = env->GetStringUTFChars(timezoneString_##This, NULL);
103 env->ReleaseStringUTFChars(timezoneString_##This, t.timezone);
130 const char* timezone = env->GetStringUTFChars(timezoneObject, NULL); local
132 t.switchTimezone(timezone);
135 env->ReleaseStringUTFChars(timezoneObject, timezone);
169 bool inUtc = strcmp("UTC", t.timezone) == 0;
618 // The timezone is set to UTC in the calling Java code.
671 g_timezoneField = env->GetFieldID(timeClass, "timezone", "Ljava/lang/String;");
/frameworks/base/core/java/android/text/format/
H A DTime.java114 * The timezone for this Time. Should not be null.
116 public String timezone; field in class:Time
160 * Construct a Time object in the timezone named by the string
161 * argument "timezone". The time is initialized to Jan 1, 1970.
162 * @param timezone string containing the timezone to use.
165 public Time(String timezone) { argument
166 if (timezone == null) {
167 throw new NullPointerException("timezone is null!");
169 this.timezone
218 switchTimezone(String timezone) argument
270 clear(String timezone) argument
[all...]

Completed in 1312 milliseconds