Searched refs:tz (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java138 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME);
139 assertEquals("America/Dawson", tz.getID());
140 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME);
141 assertEquals("Asia/Calcutta", tz.getID());
142 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME);
143 assertEquals("Australia/ACT", tz.getID());
145 tz = CalendarUtilities.tziStringToTimeZone(EUROPE_LONDON_TIME_BY_NAME);
146 assertEquals("Europe/London", tz.getID());
150 // when the tz isn't found
151 tz
[all...]
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DCalendarInteractionUtils.java105 * @param tz The time zone to convert this time to.
107 private static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) { argument
113 recycle.timezone = tz;
117 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) { argument
121 recycle.timezone = tz;
179 String tz;
181 tz = Time.TIMEZONE_UTC;
183 tz = Time.getCurrentTimezone();
189 tz).toString();
/packages/apps/Settings/src/com/android/settings/
H A DDateTimeSettingsSetupWizard.java114 final TimeZone tz = TimeZone.getDefault();
115 mSelectedTimeZone = tz;
117 mTimeZoneButton.setText(tz.getDisplayName());
234 final TimeZone tz = ZonePicker.obtainTimeZoneFromItem(parent.getItemAtPosition(position));
236 mSelectedTimeZone = tz;
237 final Calendar now = Calendar.getInstance(tz);
239 mTimeZoneButton.setText(tz.getDisplayName());
249 alarm.setTimeZone(tz.getID());
H A DZonePicker.java54 void onZoneSelected(TimeZone tz); argument
107 * @param tz TimeZone to be searched.
111 public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { argument
112 final String defaultId = tz.getID();
220 final TimeZone tz = TimeZone.getTimeZone(tzId);
222 mListener.onZoneSelected(tz);
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DCalendarUtilities.java343 * @param tz a TimeZone the time zone in which we're looking for transitions
349 static GregorianCalendar findTransitionDate(TimeZone tz, long startTime, argument
358 boolean inDaylightTime = tz.inDaylightTime(date);
372 GregorianCalendar calendar = new GregorianCalendar(tz);
380 * @param tz the TimeZone
383 static public String timeZoneToTziString(TimeZone tz) { argument
384 String tziString = sTziStringCache.get(tz);
387 LogUtils.d(TAG, "TZI string for " + tz.getDisplayName() +
392 tziString = timeZoneToTziStringImpl(tz);
393 sTziStringCache.put(tz, tziStrin
548 getDSTCalendars(TimeZone tz, GregorianCalendar[] toDaylightCalendars, GregorianCalendar[] toStandardCalendars) argument
593 writeNoDST(SimpleIcsWriter writer, TimeZone tz, String offsetString) argument
609 timeZoneToVTimezone(TimeZone tz, SimpleIcsWriter writer) argument
700 timeZoneToTziStringImpl(TimeZone tz) argument
966 millisToEasDateTime(long millis, TimeZone tz, boolean withTime) argument
1026 transitionMillisToVCalendarTime(long millis, TimeZone tz, boolean dst) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertAdapter.java115 String tz = Utils.getTimeZone(context, null);
119 tz = Time.TIMEZONE_UTC;
127 Time time = new Time(tz);
132 if (!allDay && tz != Time.getCurrentTimezone()) {
133 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
H A DAlertUtils.java156 String tz = Utils.getTimeZone(context, null);
157 Time time = new Time(tz);
180 if (!allDay && tz != Time.getCurrentTimezone()) {
181 // Assumes time was set to the current tz
184 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
H A DAlertService.java760 String tz = null;
762 tz = TimeZone.getDefault().getID();
764 tz);
773 oldInfo.startMillis, tz);
819 } else if (allDay && tz != null && DateUtils.isToday(beginTimeAdjustedForAllDay)) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DDateTimeActivity.java93 TimeZone tz = now.getTimeZone();
97 formatOffset(tz.getOffset(date.getTime())),
98 tz.getDisplayName(tz.inDaylightTime(date), TimeZone.LONG));
175 for (final Map<String, Object> tz : mTimeZones) {
176 if (currentTz.getID().equals(tz.get(ZoneGetter.KEY_ID))) {
179 tzBuilder.add((String) tz.get(ZoneGetter.KEY_DISPLAYNAME),
180 formatOffset((Integer) tz.get(ZoneGetter.KEY_OFFSET)), i);
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarUtils.java173 String tz;
175 tz = Time.TIMEZONE_UTC;
177 tz = getTimeZone(context, null);
182 tz).toString();
193 * to the device's time zone. null or empty tz will be ignored.
240 // Write the use home tz setting
246 // If using a home tz write it to the db
H A DGeneralPreferences.java195 // in the shared_pref if home time zone is disabled. So if home tz is
305 String tz;
309 tz = mTimeZoneId;
311 tz = CalendarCache.TIMEZONE_TYPE_AUTO;
313 Utils.setTimeZone(activity, tz);
H A DDayFragment.java65 String tz = Utils.getTimeZone(getActivity(), mTZUpdater);
66 mSelectedDay.timezone = tz;
H A DUtils.java267 * tz will be ignored.
735 * @param tz The time zone to convert this time to.
737 public static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) { argument
743 recycle.timezone = tz;
747 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) { argument
751 recycle.timezone = tz;
762 * @param tz The time zone to convert this time to.
764 public static long getNextMidnight(Time recycle, long theTime, String tz) { argument
768 recycle.timezone = tz;
1483 TimeZone tz
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaAdapter.java217 TimeZone tz = TimeZone.getTimeZone(tzString);
218 if (tz == null || tz.getID().equals("GMT")) {
221 displayName = tz.getDisplayName(date.isDst != 0, TimeZone.SHORT);
H A DAgendaByDayAdapter.java213 // home tz changes so check it here and update if needed.
214 String tz = Utils.getTimeZone(mContext, mTZUpdater);
215 if (!TextUtils.equals(tz, mTmpTime.timezone)) {
216 mTimeZone = tz;
217 mTmpTime = new Time(tz);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DEyePosition.java128 float tz = t * z;
130 float length = (float) Math.sqrt(tx * tx + ty * ty + tz * tz);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleDayPickerFragment.java165 String tz = Time.getCurrentTimezone();
170 mSelectedDay.switchTimezone(tz);
172 mFirstDayOfMonth.timezone = tz;
174 mFirstVisibleDay.timezone = tz;
176 mTempTime.timezone = tz;
H A DSimpleWeekView.java210 * @param tz The time zone this view should reference times in
212 public void setWeekParams(HashMap<String, Integer> params, String tz) { argument
217 mTimeZone = tz;
247 Time time = new Time(tz);
277 Time today = new Time(tz);
H A DMonthByWeekFragment.java119 String tz = Utils.getTimeZone(mContext, mTZUpdater);
120 mSelectedDay.timezone = tz;
122 mTempTime.timezone = tz;
123 mFirstDayOfMonth.timezone = tz;
125 mFirstVisibleDay.timezone = tz;
H A DMonthWeekEventsView.java490 public void setWeekParams(HashMap<String, Integer> params, String tz) { argument
491 super.setWeekParams(params, tz);
497 updateToday(tz);
519 * @param tz
521 public boolean updateToday(String tz) { argument
522 mToday.timezone = tz;
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetService.java314 String tz = Utils.getTimeZone(mContext, null);
316 start = Utils.convertAlldayLocalToUTC(recycle, start, tz);
317 end = Utils.convertAlldayLocalToUTC(recycle, end, tz);
493 String tz = Utils.getTimeZone(mContext, mTimezoneChanged);
498 mModel = buildAppWidgetModel(mContext, matrixCursor, tz);
513 long triggerTime = calculateUpdateTime(mModel, now, tz);
H A DCalendarAppWidgetModel.java278 String tz = Utils.getTimeZone(mContext, null);
298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz);
299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DSettingsActivity.java178 * @return double array of tz ids and tz names
271 TimeZone tz = TimeZone.getTimeZone(id);
272 boolean useDaylightTime = tz.useDaylightTime();
273 mOffset = tz.getOffset(mTime);
H A DAnalogClock.java258 String tz = intent.getStringExtra("time-zone");
259 mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventView.java264 // Update tz in case the start time switched from/to DLS
369 // Update tz in case the start time switched from/to DLS
1304 String tz = mTimezone;
1307 tz = Time.TIMEZONE_UTC;
1318 .formatDateRange(mActivity, mF, startMillis, endMillis, flags, tz).toString();
1786 String tz = Utils.getTimeZone(mActivity, null);
1787 if (!mAllDayCheckBox.isChecked() && !TextUtils.equals(tz, mTimezone)
1801 String tzDisplay = TimeZone.getTimeZone(tz).getDisplayName(
1807 .formatDateRange(mActivity, mF, millisStart, millisStart, flags, tz))
1816 mActivity, mF, millisStart, millisStart, flags, tz)
[all...]

Completed in 1790 milliseconds

12