Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/
DDateTime.java40 private final int timeZone; field in DateTime
42 …c DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) { in DateTime() argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime()
50 this.timeZone = timeZone; in DateTime()
69 … Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) { in convertToDate() argument
74 if (timeZone != Integer.MIN_VALUE) { in convertToDate()
75 int minutes = ((timeZone / 100) * 60) + timeZone % 100; in convertToDate()
111 return timeZone; in getTimeZone()
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DCalendarUtilities.java315 static long getMillisAtTimeZoneDateTransition(TimeZone timeZone, TimeZoneDate tzd) { in getMillisAtTimeZoneDateTransition() argument
316 GregorianCalendar testCalendar = new GregorianCalendar(timeZone); in getMillisAtTimeZoneDateTransition()
747 TimeZone timeZone = sTimeZoneCache.get(timeZoneString); in tziStringToTimeZone() local
748 if (timeZone != null) { in tziStringToTimeZone()
750 ExchangeService.log(TAG, " Using cached TimeZone " + timeZone.getID()); in tziStringToTimeZone()
753 timeZone = tziStringToTimeZoneImpl(timeZoneString, precision); in tziStringToTimeZone()
754 if (timeZone == null) { in tziStringToTimeZone()
758 timeZone = TimeZone.getDefault(); in tziStringToTimeZone()
760 sTimeZoneCache.put(timeZoneString, timeZone); in tziStringToTimeZone()
762 return timeZone; in tziStringToTimeZone()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java198 public void setTimeZone(Context context, String timeZone) { in setTimeZone() argument
199 if (TextUtils.isEmpty(timeZone)) { in setTimeZone()
207 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { in setTimeZone()
213 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) { in setTimeZone()
217 mHomeTZ = timeZone; in setTimeZone()
DUtils.java179 public static void setTimeZone(Context context, String timeZone) { in setTimeZone() argument
180 mTZUtils.setTimeZone(context, timeZone); in setTimeZone()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java251 public CalendarAppWidgetModel(Context context, String timeZone) { in CalendarAppWidgetModel() argument
253 Time time = new Time(timeZone); in CalendarAppWidgetModel()
263 public void buildFromCursor(Cursor cursor, String timeZone) { in buildFromCursor() argument
264 final Time recycle = new Time(timeZone); in buildFromCursor()
271 mShowTZ = !TextUtils.equals(timeZone, Time.getCurrentTimezone()); in buildFromCursor()
273 mHomeTZName = TimeZone.getTimeZone(timeZone).getDisplayName(recycle.isDst != 0, in buildFromCursor()
DCalendarAppWidgetService.java408 Context context, Cursor cursor, String timeZone) {
409 CalendarAppWidgetModel model = new CalendarAppWidgetModel(context, timeZone);
410 model.buildFromCursor(cursor, timeZone);
417 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) {
419 long minUpdateTime = getNextMidnightTimeMillis(timeZone);
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java501 TimeZone timeZone = TimeZone.getDefault(); in testCreateMessageForEntity_Recurring() local
506 assertEquals(timeZone.getID(), vtimezone.get("TZID")); in testCreateMessageForEntity_Recurring()
519 assertNotNull(vevent.get("DTSTART;TZID=" + timeZone.getID())); in testCreateMessageForEntity_Recurring()
520 assertNotNull(vevent.get("DTEND;TZID=" + timeZone.getID())); in testCreateMessageForEntity_Recurring()
579 TimeZone timeZone = TimeZone.getDefault(); in testCreateMessageForEntity_Exception_Cancel() local
587 assertEquals(timeZone.getID(), vtimezone.get("TZID")); in testCreateMessageForEntity_Exception_Cancel()
601 assertEquals(CalendarUtilities.millisToEasDateTime(originalTime, timeZone, in testCreateMessageForEntity_Exception_Cancel()
602 true /*withTime*/), vevent.get("RECURRENCE-ID" + ";TZID=" + timeZone.getID())); in testCreateMessageForEntity_Exception_Cancel()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java501 TimeZone timeZone = TimeZone.getDefault(); in testCreateMessageForEntity_Recurring() local
506 assertEquals(timeZone.getID(), vtimezone.get("TZID")); in testCreateMessageForEntity_Recurring()
519 assertNotNull(vevent.get("DTSTART;TZID=" + timeZone.getID())); in testCreateMessageForEntity_Recurring()
520 assertNotNull(vevent.get("DTEND;TZID=" + timeZone.getID())); in testCreateMessageForEntity_Recurring()
579 TimeZone timeZone = TimeZone.getDefault(); in testCreateMessageForEntity_Exception_Cancel() local
587 assertEquals(timeZone.getID(), vtimezone.get("TZID")); in testCreateMessageForEntity_Exception_Cancel()
601 assertEquals(CalendarUtilities.millisToEasDateTime(originalTime, timeZone, in testCreateMessageForEntity_Exception_Cancel()
602 true /*withTime*/), vevent.get("RECURRENCE-ID" + ";TZID=" + timeZone.getID())); in testCreateMessageForEntity_Exception_Cancel()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DCalendarSyncAdapter.java437 TimeZone timeZone = null; in addEvent() local
492 if (allDayEvent != 0 && timeZone != null) { in addEvent()
497 userLog("All-day event arrived in: " + timeZone.getID()); in addEvent()
520 timeZone = CalendarUtilities.tziStringToTimeZone(getValue()); in addEvent()
521 if (timeZone == null) { in addEvent()
522 timeZone = mLocalTimeZone; in addEvent()
524 cv.put(Events.EVENT_TIMEZONE, timeZone.getID()); in addEvent()
1552 String timeZone = CalendarUtilities.timeZoneToTziString(eventTimeZone); in sendEvent() local
1553 s.data(Tags.CALENDAR_TIME_ZONE, timeZone); in sendEvent()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DGrassRS.java340 final String timeZone = Time.getCurrentTimezone(); in updateLocation() local
341 final SunCalculator calculator = new SunCalculator(location, timeZone); in updateLocation()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java310 final String timeZone = intent.getStringExtra("time-zone");
311 mCalendar = new Time(TimeZone.getTimeZone(timeZone).getID());