Searched defs:timezone (Results 1 - 6 of 6) sorted by relevance
/frameworks/base/core/jni/ |
H A D | TimeUtils.h | 44 const char *timezone; member in class:android::Time 61 void switchTimezone(const char *timezone);
|
H A D | Time.cpp | 46 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 D | android_text_format_Time.cpp | 100 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/tools/layoutlib/bridge/src/android/text/format/ |
H A D | Time_Delegate.java | 50 /*package*/ static void switchTimezone(Time thisTime, String timezone) { argument 52 c.setTimeZone(TimeZone.getTimeZone(timezone)); 136 time.timezone = c.getTimeZone().getID(); 147 * Return a calendar instance with the correct timezone. 149 * @param time Time to obtain the timezone from. 152 // TODO: Check platform code to make sure the behavior is same for null/invalid timezone. 153 if (time == null || time.timezone == null) { 154 // Default to local timezone. 157 // If timezone is invalid, use GMT. 158 return Calendar.getInstance(TimeZone.getTimeZone(time.timezone)); [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 114 * 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...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1961 * @param timezone a TimeZone object. 1964 public boolean addDateTimeStampTag(int tagId, long timestamp, TimeZone timezone) { argument 1967 mDateTimeStampFormat.setTimeZone(timezone);
|
Completed in 1044 milliseconds