Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 21 of 21) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java40 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/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneInfo.java87 public Builder(TimeZone timeZone) { in Builder() argument
88 if (timeZone == null) { in Builder()
91 mTimeZone = timeZone; in Builder()
143 TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in format() local
144 return format(timeZone); in format()
151 public TimeZoneInfo format(TimeZone timeZone) { in format() argument
152 final String id = timeZone.getID(); in format()
157 return new TimeZoneInfo.Builder(timeZone) in format()
DTimeZoneInfoPreferenceController.java91 final TimeZone timeZone = item.getTimeZone(); in formatInfo() local
92 if (!timeZone.observesDaylightTime()) { in formatInfo()
96 final TimeZoneTransition nextDstTransition = findNextDstTransition(timeZone); in formatInfo()
110 final Calendar transitionTime = Calendar.getInstance(timeZone); in formatInfo()
117 private TimeZoneTransition findNextDstTransition(TimeZone timeZone) { in findNextDstTransition() argument
118 if (!(timeZone instanceof BasicTimeZone)) { in findNextDstTransition()
121 final BasicTimeZone basicTimeZone = (BasicTimeZone) timeZone; in findNextDstTransition()
DRegionZonePicker.java124 final TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in getRegionTimeZoneInfo() local
126 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in getRegionTimeZoneInfo()
129 timeZoneInfos.add(formatter.format(timeZone)); in getRegionTimeZoneInfo()
DBaseTimeZoneInfoPicker.java92 for (TimeZoneInfo timeZone : timeZones) { in createTimeZoneInfoItems()
93 results.add(new TimeZoneInfoItem(i++, timeZone, resources, currentTimeFormat)); in createTimeZoneInfoItems()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DTimeZoneInfo.java87 public Builder(TimeZone timeZone) { in Builder() argument
88 if (timeZone == null) { in Builder()
91 mTimeZone = timeZone; in Builder()
143 TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in format() local
144 return format(timeZone); in format()
151 public TimeZoneInfo format(TimeZone timeZone) { in format() argument
152 final String id = timeZone.getID(); in format()
157 return new TimeZoneInfo.Builder(timeZone) in format()
DTimeZoneInfoPreferenceController.java91 final TimeZone timeZone = item.getTimeZone(); in formatInfo() local
92 if (!timeZone.observesDaylightTime()) { in formatInfo()
96 final TimeZoneTransition nextDstTransition = findNextDstTransition(timeZone); in formatInfo()
110 final Calendar transitionTime = Calendar.getInstance(timeZone); in formatInfo()
117 private TimeZoneTransition findNextDstTransition(TimeZone timeZone) { in findNextDstTransition() argument
118 if (!(timeZone instanceof BasicTimeZone)) { in findNextDstTransition()
121 final BasicTimeZone basicTimeZone = (BasicTimeZone) timeZone; in findNextDstTransition()
DRegionZonePicker.java124 final TimeZone timeZone = TimeZone.getFrozenTimeZone(timeZoneId); in getRegionTimeZoneInfo() local
126 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in getRegionTimeZoneInfo()
129 timeZoneInfos.add(formatter.format(timeZone)); in getRegionTimeZoneInfo()
DBaseTimeZoneInfoPicker.java92 for (TimeZoneInfo timeZone : timeZones) { in createTimeZoneInfoItems()
93 results.add(new TimeZoneInfoItem(i++, timeZone, resources, currentTimeFormat)); in createTimeZoneInfoItems()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceController.java87 private Preference createTimeZonePreference(Map<String, Object> timeZone) { in createTimeZonePreference() argument
89 preference.setKey(timeZone.get(ZoneGetter.KEY_ID).toString()); in createTimeZonePreference()
90 preference.setTitle(timeZone.get(ZoneGetter.KEY_DISPLAY_LABEL).toString()); in createTimeZonePreference()
91 preference.setSummary(timeZone.get(ZoneGetter.KEY_OFFSET_LABEL).toString()); in createTimeZonePreference()
93 mAlarmManager.setTimeZone(timeZone.get(ZoneGetter.KEY_ID).toString()); in createTimeZonePreference()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeviceOwnerInitializeProvisioningTask.java46 setTimeAndTimezone(mProvisioningParams.timeZone, mProvisioningParams.localTime); in run()
52 private void setTimeAndTimezone(String timeZone, long localTime) { in setTimeAndTimezone() argument
55 if (timeZone != null) { in setTimeAndTimezone()
56 alarmManager.setTimeZone(timeZone); in setTimeAndTimezone()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java199 public void setTimeZone(Context context, String timeZone) { in setTimeZone() argument
200 if (TextUtils.isEmpty(timeZone)) { in setTimeZone()
208 if (CalendarCache.TIMEZONE_TYPE_AUTO.equals(timeZone)) { in setTimeZone()
214 if (!mUseHomeTZ || !TextUtils.equals(mHomeTZ, timeZone)) { in setTimeZone()
218 mHomeTZ = timeZone; in setTimeZone()
DUtils.java263 public static void setTimeZone(Context context, String timeZone) { in setTimeZone() argument
264 mTZUtils.setTimeZone(context, timeZone); in setTimeZone()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java251 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()
DCalendarAppWidgetService.java412 Context context, Cursor cursor, String timeZone) {
413 CalendarAppWidgetModel model = new CalendarAppWidgetModel(context, timeZone);
414 model.buildFromCursor(cursor, timeZone);
421 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) {
423 long minUpdateTime = getNextMidnightTimeMillis(timeZone);
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java347 final TimeZone timeZone = city.getTimeZone(); in getView() local
366 holder.time.setText(getTimeCharSequence(timeZone)); in getView()
378 holder.index.setText(Utils.getGMTHourOffset(timeZone, false)); in getView()
558 private CharSequence getTimeCharSequence(TimeZone timeZone) { in getTimeCharSequence() argument
559 mCalendar.setTimeZone(timeZone); in getTimeCharSequence()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java146 public final String timeZone; field in ProvisioningParams
288 timeZone = builder.mTimeZone; in ProvisioningParams()
340 bundle.putString(EXTRA_PROVISIONING_TIME_ZONE, timeZone); in toPersistableBundle()
548 public Builder setTimeZone(String timeZone) { in setTimeZone() argument
549 mTimeZone = timeZone; in setTimeZone()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java152 private Map<String, Object> createTimeZoneMap(String key, String timeZone, String offset, in createTimeZoneMap() argument
156 map.put(ZoneGetter.KEY_DISPLAY_LABEL, timeZone); in createTimeZoneMap()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCityModel.java129 final TimeZone timeZone = mSettingsModel.getHomeTimeZone(); in getHomeCity() local
130 mHomeCity = new City(null, -1, null, name, name, timeZone); in getHomeCity()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java471 TimeZone timeZone = Calendar.getInstance().getTimeZone(); in isInGivenDay() local
472 long offset = timeZone.getRawOffset(); in isInGivenDay()
473 if (timeZone.inDaylightTime(new Date(dayToMatchInMillis))) { in isInGivenDay()
474 offset += timeZone.getDSTSavings(); in isInGivenDay()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java131 private static long parseTimeStringToMillis(String timeStr, String timeZone) { in parseTimeStringToMillis() argument
132 Time time = new Time(timeZone); in parseTimeStringToMillis()