/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
D | CalendarUtilitiesTests.java | 143 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME); in testParseTimeZoneEndToEnd() local 144 assertEquals("America/Dawson", tz.getID()); in testParseTimeZoneEndToEnd() 145 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME); in testParseTimeZoneEndToEnd() 146 assertEquals("Asia/Calcutta", tz.getID()); in testParseTimeZoneEndToEnd() 147 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME); in testParseTimeZoneEndToEnd() 148 assertEquals("Australia/ACT", tz.getID()); in testParseTimeZoneEndToEnd() 150 tz = CalendarUtilities.tziStringToTimeZone(EUROPE_LONDON_TIME_BY_NAME); in testParseTimeZoneEndToEnd() 151 assertEquals("Europe/London", tz.getID()); in testParseTimeZoneEndToEnd() 156 tz = CalendarUtilities.tziStringToTimeZoneImpl(LENIENT_EASTERN_TIME, in testParseTimeZoneEndToEnd() 158 assertEquals("America/Atikokan", tz.getID()); in testParseTimeZoneEndToEnd() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 348 static GregorianCalendar findTransitionDate(TimeZone tz, long startTime, in findTransitionDate() argument 357 boolean inDaylightTime = tz.inDaylightTime(date); in findTransitionDate() 371 GregorianCalendar calendar = new GregorianCalendar(tz); in findTransitionDate() 382 static public String timeZoneToTziString(TimeZone tz) { in timeZoneToTziString() argument 383 String tziString = sTziStringCache.get(tz); in timeZoneToTziString() 386 ExchangeService.log(TAG, "TZI string for " + tz.getDisplayName() + in timeZoneToTziString() 391 tziString = timeZoneToTziStringImpl(tz); in timeZoneToTziString() 392 sTziStringCache.put(tz, tziString); in timeZoneToTziString() 547 static boolean getDSTCalendars(TimeZone tz, GregorianCalendar[] toDaylightCalendars, in getDSTCalendars() argument 556 GregorianCalendar cal = new GregorianCalendar(tz); in getDSTCalendars() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | DateTimeSettingsSetupWizard.java | 120 final TimeZone tz = TimeZone.getDefault(); in initUiForXl() local 121 mSelectedTimeZone = tz; in initUiForXl() 123 mTimeZoneButton.setText(tz.getDisplayName()); in initUiForXl() 240 final TimeZone tz = ZonePicker.obtainTimeZoneFromItem(parent.getItemAtPosition(position)); in onItemClick() local 242 mSelectedTimeZone = tz; in onItemClick() 243 final Calendar now = Calendar.getInstance(tz); in onItemClick() 245 mTimeZoneButton.setText(tz.getDisplayName()); in onItemClick() 255 alarm.setTimeZone(tz.getID()); in onItemClick()
|
D | ZonePicker.java | 57 public void onZoneSelected(TimeZone tz); in onZoneSelected() argument 122 public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { in getTimeZoneIndex() argument 123 final String defaultId = tz.getID(); in getTimeZoneIndex() 260 final TimeZone tz = TimeZone.getTimeZone(id); in addItem() local 261 final int offset = tz.getOffset(date); in addItem() 300 final TimeZone tz = TimeZone.getTimeZone(tzId); in onListItemClick() local 302 mListener.onZoneSelected(tz); in onListItemClick()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertAdapter.java | 115 String tz = Utils.getTimeZone(context, null); in updateView() local 119 tz = Time.TIMEZONE_UTC; in updateView() 127 Time time = new Time(tz); in updateView() 132 if (!allDay && tz != Time.getCurrentTimezone()) { in updateView() 133 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName( in updateView()
|
D | AlertUtils.java | 156 String tz = Utils.getTimeZone(context, null); 157 Time time = new Time(tz); 180 if (!allDay && tz != Time.getCurrentTimezone()) { 184 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
|
D | AlertService.java | 760 String tz = null; in processQuery() local 762 tz = TimeZone.getDefault().getID(); in processQuery() 764 tz); in processQuery() 773 oldInfo.startMillis, tz); in processQuery() 819 } else if (allDay && tz != null && DateUtils.isToday(beginTimeAdjustedForAllDay)) { in processQuery()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 314 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);
|
D | CalendarAppWidgetModel.java | 278 String tz = Utils.getTimeZone(mContext, null); in buildFromCursor() local 298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz); in buildFromCursor() 299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz); in buildFromCursor()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 737 public static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) { in convertAlldayUtcToLocal() argument 743 recycle.timezone = tz; in convertAlldayUtcToLocal() 747 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) { in convertAlldayLocalToUTC() argument 751 recycle.timezone = tz; in convertAlldayLocalToUTC() 764 public static long getNextMidnight(Time recycle, long theTime, String tz) { in getNextMidnight() argument 768 recycle.timezone = tz; in getNextMidnight() 1483 TimeZone tz = TimeZone.getTimeZone(localTimezone); in getDisplayedTimezone() local 1484 if (tz == null || tz.getID().equals("GMT")) { in getDisplayedTimezone() 1489 tzDisplay = tz.getDisplayName(startTime.isDst != 0, TimeZone.SHORT); in getDisplayedTimezone()
|
D | CalendarUtils.java | 173 String tz; in formatDateRange() local 175 tz = Time.TIMEZONE_UTC; in formatDateRange() 177 tz = getTimeZone(context, null); in formatDateRange() 182 tz).toString(); in formatDateRange()
|
D | GeneralPreferences.java | 305 String tz; in onPreferenceChange() local 309 tz = mTimeZoneId; in onPreferenceChange() 311 tz = CalendarCache.TIMEZONE_TYPE_AUTO; in onPreferenceChange() 313 Utils.setTimeZone(activity, tz); in onPreferenceChange()
|
D | DayFragment.java | 65 String tz = Utils.getTimeZone(getActivity(), mTZUpdater); 66 mSelectedDay.timezone = tz;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventView.java | 1304 String tz = mTimezone; in setWhenString() local 1307 tz = Time.TIMEZONE_UTC; in setWhenString() 1318 .formatDateRange(mActivity, mF, startMillis, endMillis, flags, tz).toString(); in setWhenString() 1786 String tz = Utils.getTimeZone(mActivity, null); in updateHomeTime() local 1787 if (!mAllDayCheckBox.isChecked() && !TextUtils.equals(tz, mTimezone) in updateHomeTime() 1801 String tzDisplay = TimeZone.getTimeZone(tz).getDisplayName( in updateHomeTime() 1807 .formatDateRange(mActivity, mF, millisStart, millisStart, flags, tz)) in updateHomeTime() 1816 mActivity, mF, millisStart, millisStart, flags, tz).toString()); in updateHomeTime() 1820 tzDisplay = TimeZone.getTimeZone(tz).getDisplayName( in updateHomeTime() 1832 mActivity, mF, millisEnd, millisEnd, flags, tz)).append(" ").append(tzDisplay); in updateHomeTime() [all …]
|
D | EditEventFragment.java | 857 String tz = Utils.getTimeZone(mActivity, null); in run() local 860 t.timezone = tz; in run() 865 t.timezone = tz; in run()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleDayPickerFragment.java | 165 String tz = Time.getCurrentTimezone(); in onAttach() local 170 mSelectedDay.switchTimezone(tz); in onAttach() 172 mFirstDayOfMonth.timezone = tz; in onAttach() 174 mFirstVisibleDay.timezone = tz; in onAttach() 176 mTempTime.timezone = tz; in onAttach()
|
D | MonthByWeekFragment.java | 119 String tz = Utils.getTimeZone(mContext, mTZUpdater); 120 mSelectedDay.timezone = tz; 122 mTempTime.timezone = tz; 123 mFirstDayOfMonth.timezone = tz; 125 mFirstVisibleDay.timezone = tz;
|
D | SimpleWeekView.java | 212 public void setWeekParams(HashMap<String, Integer> params, String tz) { in setWeekParams() argument 217 mTimeZone = tz; in setWeekParams() 247 Time time = new Time(tz); in setWeekParams() 277 Time today = new Time(tz); in setWeekParams()
|
D | MonthWeekEventsView.java | 490 public void setWeekParams(HashMap<String, Integer> params, String tz) { in setWeekParams() argument 491 super.setWeekParams(params, tz); in setWeekParams() 497 updateToday(tz); in setWeekParams() 521 public boolean updateToday(String tz) { in updateToday() argument 522 mToday.timezone = tz; in updateToday()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaAdapter.java | 217 TimeZone tz = TimeZone.getTimeZone(tzString); in bindView() local 218 if (tz == null || tz.getID().equals("GMT")) { in bindView() 221 displayName = tz.getDisplayName(date.isDst != 0, TimeZone.SHORT); in bindView()
|
D | AgendaByDayAdapter.java | 214 String tz = Utils.getTimeZone(mContext, mTZUpdater); in getView() local 215 if (!TextUtils.equals(tz, mTmpTime.timezone)) { in getView() 216 mTimeZone = tz; in getView() 217 mTmpTime = new Time(tz); in getView()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
D | fall.rs | 195 float tz = 0.0f; 197 tz = -a; 234 rsMatrixTranslate(&matrix, x - g_xOffset * 2, y, tz); 236 rsMatrixTranslate(&matrix, x, y, tz);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | EyePosition.java | 129 float tz = t * z; in onAccelerometerChanged() local 131 float length = FloatMath.sqrt(tx * tx + ty * ty + tz * tz); in onAccelerometerChanged()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | SettingsActivity.java | 237 TimeZone tz = TimeZone.getTimeZone(id); in TimeZoneRow() local 238 boolean useDaylightTime = tz.useDaylightTime(); in TimeZoneRow() 239 mOffset = tz.getOffset(mTime); in TimeZoneRow()
|
D | AnalogClock.java | 258 String tz = intent.getStringExtra("time-zone"); 259 mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
|