/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/ |
D | DateTime.java | 40 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/ |
D | CalendarUtilities.java | 315 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/ |
D | CalendarUtils.java | 198 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()
|
D | Utils.java | 179 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/ |
D | CalendarAppWidgetModel.java | 251 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()
|
D | CalendarAppWidgetService.java | 408 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/ |
D | CalendarUtilitiesTests.java | 501 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/ |
D | CalendarUtilitiesTests.java | 501 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/ |
D | CalendarSyncAdapter.java | 437 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/ |
D | GrassRS.java | 340 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/ |
D | PolarClockWallpaper.java | 310 final String timeZone = intent.getStringExtra("time-zone"); 311 mCalendar = new Time(TimeZone.getTimeZone(timeZone).getID());
|