Searched refs:timeZone (Results 1 - 10 of 10) sorted by relevance

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/
H A DDateTime.java40 private final int timeZone; field in class:DateTime
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) { argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
50 this.timeZone = timeZone;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) { argument
74 if (timeZone != Integer.MIN_VALUE) {
75 int minutes = ((timeZone / 100) * 60) + timeZone % 100;
111 return timeZone;
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarUtils.java195 * @param timeZone The time zone to set Calendar to, or
198 public void setTimeZone(Context context, String timeZone) { argument
199 if (TextUtils.isEmpty(timeZone)) {
207 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) {
213 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) {
217 mHomeTZ = timeZone;
H A DUtils.java162 * @param timeZone The time zone to set Calendar to, or **tbd**
164 public static void setTimeZone(Context context, String timeZone) { argument
165 mTZUtils.setTimeZone(context, timeZone);
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DCalendarUtilities.java310 * @param timeZone the time zone we're checking
314 static long getMillisAtTimeZoneDateTransition(TimeZone timeZone, TimeZoneDate tzd) { argument
315 GregorianCalendar testCalendar = new GregorianCalendar(timeZone);
746 TimeZone timeZone = sTimeZoneCache.get(timeZoneString);
747 if (timeZone != null) {
749 ExchangeService.log(TAG, " Using cached TimeZone " + timeZone.getID());
752 timeZone = tziStringToTimeZoneImpl(timeZoneString, precision);
753 if (timeZone == null) {
757 timeZone = TimeZone.getDefault();
759 sTimeZoneCache.put(timeZoneString, timeZone);
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java251 public CalendarAppWidgetModel(Context context, String timeZone) { argument
253 Time time = new Time(timeZone);
263 public void buildFromCursor(Cursor cursor, String timeZone) { argument
264 final Time recycle = new Time(timeZone);
271 mShowTZ = !TextUtils.equals(timeZone, Time.getCurrentTimezone());
273 mHomeTZName = TimeZone.getTimeZone(timeZone).getDisplayName(recycle.isDst != 0,
H A DCalendarAppWidgetService.java401 Context context, Cursor cursor, String timeZone) {
402 CalendarAppWidgetModel model = new CalendarAppWidgetModel(context, timeZone);
403 model.buildFromCursor(cursor, timeZone);
410 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) { argument
412 long minUpdateTime = getNextMidnightTimeMillis(timeZone);
400 buildAppWidgetModel( Context context, Cursor cursor, String timeZone) argument
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java501 TimeZone timeZone = TimeZone.getDefault();
504 // It should be a VTIMEZONE for timeZone
506 assertEquals(timeZone.getID(), vtimezone.get("TZID"));
519 assertNotNull(vevent.get("DTSTART;TZID=" + timeZone.getID()));
520 assertNotNull(vevent.get("DTEND;TZID=" + timeZone.getID()));
579 TimeZone timeZone = TimeZone.getDefault();
585 // It should be a VTIMEZONE for timeZone
587 assertEquals(timeZone.getID(), vtimezone.get("TZID"));
601 assertEquals(CalendarUtilities.millisToEasDateTime(originalTime, timeZone,
602 true /*withTime*/), vevent.get("RECURRENCE-ID" + ";TZID=" + timeZone
[all...]
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
H A DGrassRS.java340 final String timeZone = Time.getCurrentTimezone();
341 final SunCalculator calculator = new SunCalculator(location, timeZone);
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DCalendarSyncAdapter.java419 TimeZone timeZone = null;
477 if (allDayEvent != 0 && timeZone != null) {
482 userLog("All-day event arrived in: " + timeZone.getID());
505 timeZone = CalendarUtilities.tziStringToTimeZone(getValue());
506 if (timeZone == null) {
507 timeZone = mLocalTimeZone;
509 cv.put(Events.EVENT_TIMEZONE, timeZone.getID());
1560 String timeZone = CalendarUtilities.timeZoneToTziString(eventTimeZone);
1561 s.data(Tags.CALENDAR_TIME_ZONE, timeZone);
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java310 final String timeZone = intent.getStringExtra("time-zone");
311 mCalendar = new Time(TimeZone.getTimeZone(timeZone).getID());

Completed in 102 milliseconds