/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | CalendarUtilitiesTests.java | 136 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME); 137 assertEquals("America/Dawson", tz.getID()); 138 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME); 139 assertEquals("Asia/Calcutta", tz.getID()); 140 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME); 141 assertEquals("Australia/ACT", tz.getID()); 145 // when the tz isn't found 146 tz = CalendarUtilities.tziStringToTimeZoneImpl(LENIENT_EASTERN_TIME, 148 assertEquals("America/Atikokan", tz.getID()); 149 tz [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | GeneralPreferences.java | 158 String tz = mHomeTZ.getValue(); 164 mTimezones = (new TimezoneAdapter(activity, tz)).getAllTimezones(); 236 String tz; 239 tz = mHomeTZ.getValue(); 241 tz = CalendarCache.TIMEZONE_TYPE_AUTO; 243 Utils.setTimeZone(getActivity(), tz); 253 tz = (String) newValue; 255 mHomeTZ.setValue(tz); 257 Utils.setTimeZone(getActivity(), tz);
|
H A D | CalendarUtils.java | 172 String tz; 174 tz = Time.TIMEZONE_UTC; 176 tz = getTimeZone(context, null); 181 tz).toString(); 192 * to the device's time zone. null or empty tz will be ignored. 239 // Write the use home tz setting 245 // If using a home tz write it to the db
|
H A D | DayFragment.java | 65 String tz = Utils.getTimeZone(getActivity(), mTZUpdater); 66 mSelectedDay.timezone = tz;
|
H A D | TimezoneAdapter.java | 74 TimeZone tz = TimeZone.getTimeZone(id); 76 int offset = tz.getOffset(System.currentTimeMillis()); 335 * @return double array of tz ids and tz names
|
H A D | Utils.java | 159 * tz will be ignored. 505 * @param tz The time zone to convert this time to. 507 public static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) { argument 513 recycle.timezone = tz; 517 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) { argument 521 recycle.timezone = tz; 532 * @param tz The time zone to convert this time to. 534 public static long getNextMidnight(Time recycle, long theTime, String tz) { argument 538 recycle.timezone = tz;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | DateTimeSettingsSetupWizard.java | 120 final TimeZone tz = TimeZone.getDefault(); 121 mSelectedTimeZone = tz; 123 mTimeZoneButton.setText(tz.getDisplayName()); 124 // mTimeZoneButton.setText(DateTimeSettings.getTimeZoneText(tz)); 240 final TimeZone tz = ZonePicker.obtainTimeZoneFromItem(parent.getItemAtPosition(position)); 242 mSelectedTimeZone = tz; 243 final Calendar now = Calendar.getInstance(tz); 245 mTimeZoneButton.setText(tz.getDisplayName()); 247 // mTimeZoneButton.setText(DateTimeSettings.getTimeZoneText(tz)); 256 alarm.setTimeZone(tz [all...] |
H A D | ZonePicker.java | 55 public void onZoneSelected(TimeZone tz); argument 116 * @param tz TimeZone to be searched. 120 public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { argument 121 final String defaultId = tz.getID(); 249 final TimeZone tz = TimeZone.getTimeZone(id); 250 final int offset = tz.getOffset(date); 287 final TimeZone tz = TimeZone.getTimeZone(tzId); 289 mListener.onZoneSelected(tz);
|
H A D | DateTimeSettings.java | 366 /* package */ static String getTimeZoneText(TimeZone tz) { argument 367 boolean daylight = tz.inDaylightTime(new Date()); 370 sb.append(formatOffset(tz.getRawOffset() + 371 (daylight ? tz.getDSTSavings() : 0))). 373 append(tz.getDisplayName(daylight, TimeZone.LONG));
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
H A D | CalendarUtilities.java | 329 * @param tz a TimeZone the time zone in which we're looking for transitions 335 static GregorianCalendar findTransitionDate(TimeZone tz, long startTime, argument 344 boolean inDaylightTime = tz.inDaylightTime(date); 358 GregorianCalendar calendar = new GregorianCalendar(tz); 366 * @param tz the TimeZone 369 static public String timeZoneToTziString(TimeZone tz) { argument 370 String tziString = sTziStringCache.get(tz); 373 ExchangeService.log(TAG, "TZI string for " + tz.getDisplayName() + 378 tziString = timeZoneToTziStringImpl(tz); 379 sTziStringCache.put(tz, tziStrin 534 getDSTCalendars(TimeZone tz, GregorianCalendar[] toDaylightCalendars, GregorianCalendar[] toStandardCalendars) argument 579 writeNoDST(SimpleIcsWriter writer, TimeZone tz, String offsetString) argument 595 timeZoneToVTimezone(TimeZone tz, SimpleIcsWriter writer) argument 686 timeZoneToTziStringImpl(TimeZone tz) argument 912 millisToEasDateTime(long millis, TimeZone tz, boolean withTime) argument 972 transitionMillisToVCalendarTime(long millis, TimeZone tz, boolean dst) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertAdapter.java | 113 String tz = Utils.getTimeZone(context, null); 117 tz = Time.TIMEZONE_UTC; 125 Time time = new Time(tz); 130 if (!allDay && tz != Time.getCurrentTimezone()) { 131 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
|
H A D | AlertReceiver.java | 173 String tz = Utils.getTimeZone(context, null); 174 Time time = new Time(tz); 197 if (!allDay && tz != Time.getCurrentTimezone()) { 198 // Assumes time was set to the current tz 201 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLMock.java | 134 float tz = - (zFar + zNear) / (zFar - zNear); 139 tx, ty, tz, 1
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
H A D | AgendaAdapter.java | 213 TimeZone tz = TimeZone.getTimeZone(tzString); 214 if (tz == null || tz.getID().equals("GMT")) { 217 displayName = tz.getDisplayName(date.isDst != 0, TimeZone.SHORT);
|
H A D | AgendaByDayAdapter.java | 202 // home tz changes so check it here and update if needed. 203 String tz = Utils.getTimeZone(mContext, mTZUpdater); 204 if (!TextUtils.equals(tz, mTmpTime.timezone)) { 205 mTimeZone = tz; 206 mTmpTime = new Time(tz);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | EyePosition.java | 127 float tz = t * z; 129 float length = (float) Math.sqrt(tx * tx + ty * ty + tz * tz);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthByWeekFragment.java | 98 String tz = Utils.getTimeZone(mContext, mTZUpdater); 99 mSelectedDay.timezone = tz; 101 mTempTime.timezone = tz; 102 mFirstDayOfMonth.timezone = tz; 104 mFirstVisibleDay.timezone = tz;
|
H A D | SimpleDayPickerFragment.java | 166 String tz = Time.getCurrentTimezone(); 171 mSelectedDay.switchTimezone(tz); 173 mFirstDayOfMonth.timezone = tz; 175 mFirstVisibleDay.timezone = tz; 177 mTempTime.timezone = tz;
|
H A D | SimpleWeekView.java | 208 * @param tz The time zone this view should reference times in 210 public void setWeekParams(HashMap<String, Integer> params, String tz) { argument 215 mTimeZone = tz; 244 Time time = new Time(tz); 274 Time today = new Time(tz);
|
H A D | MonthWeekEventsView.java | 455 public void setWeekParams(HashMap<String, Integer> params, String tz) { argument 456 super.setWeekParams(params, tz); 462 updateToday(tz); 484 * @param tz 486 public boolean updateToday(String tz) { argument 487 mToday.timezone = tz;
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetService.java | 303 String tz = Utils.getTimeZone(mContext, null); 305 start = Utils.convertAlldayLocalToUTC(recycle, start, tz); 306 end = Utils.convertAlldayLocalToUTC(recycle, end, tz); 483 String tz = Utils.getTimeZone(mContext, mTimezoneChanged); 484 mModel = buildAppWidgetModel(mContext, mCursor, tz); 490 long triggerTime = calculateUpdateTime(mModel, now, tz);
|
H A D | CalendarAppWidgetModel.java | 278 String tz = Utils.getTimeZone(mContext, null); 298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz); 299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz);
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EditEventView.java | 1233 String tz = mTimezone; 1236 tz = Time.TIMEZONE_UTC; 1247 .formatDateRange(mActivity, mF, startMillis, endMillis, flags, tz).toString(); 1657 String tz = Utils.getTimeZone(mActivity, null); 1658 if (!mAllDayCheckBox.isChecked() && !TextUtils.equals(tz, mTimezone) 1672 String tzDisplay = TimeZone.getTimeZone(tz).getDisplayName( 1678 .formatDateRange(mActivity, mF, millisStart, millisStart, flags, tz)) 1687 mActivity, mF, millisStart, millisStart, flags, tz).toString()); 1691 tzDisplay = TimeZone.getTimeZone(tz).getDisplayName( 1703 mActivity, mF, millisEnd, millisEnd, flags, tz)) [all...] |
H A D | EditEventFragment.java | 713 // user's current tz 714 String tz = Utils.getTimeZone(mContext, null); 717 t.timezone = tz; 722 t.timezone = tz;
|
H A D | EditEventHelper.java | 1026 String tz = cursor.getString(EVENT_INDEX_TIMEZONE); 1027 if (!TextUtils.isEmpty(tz)) { 1028 model.mTimezone = tz;
|