Home
last modified time | relevance | path

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

12

/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 String canonicalZoneId = getCanonicalZoneId(timeZone); in format()
157 return new TimeZoneInfo.Builder(timeZone) in format()
169 private static String getCanonicalZoneId(TimeZone timeZone) { in getCanonicalZoneId() argument
170 final String id = timeZone.getID(); in getCanonicalZoneId()
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 canonicalZoneId = getCanonicalZoneId(timeZone); in format()
157 return new TimeZoneInfo.Builder(timeZone) in format()
169 private static String getCanonicalZoneId(TimeZone timeZone) { in getCanonicalZoneId() argument
170 final String id = timeZone.getID(); in getCanonicalZoneId()
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.java89 private Preference createTimeZonePreference(Map<String, Object> timeZone) { in createTimeZonePreference() argument
91 preference.setKey(timeZone.get(ZoneGetter.KEY_ID).toString()); in createTimeZonePreference()
92 preference.setTitle(timeZone.get(ZoneGetter.KEY_DISPLAY_LABEL).toString()); in createTimeZonePreference()
93 preference.setSummary(timeZone.get(ZoneGetter.KEY_OFFSET_LABEL).toString()); in createTimeZonePreference()
95 String tzId = 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/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt302 val timeZone: TimeZone = city.timeZone in getView() constant
321 holder.time.text = getTimeCharSequence(timeZone) in getView()
332 holder.index.text = Utils.getGMTHourOffset(timeZone, false) in getView()
398 val timezone: TimeZone = city.timeZone in getSections()
500 private fun getTimeCharSequence(timeZone: TimeZone): CharSequence { in getTimeCharSequence()
501 mCalendar.timeZone = timeZone in getTimeCharSequence()
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/DeskClock/src/com/android/deskclock/data/
DCity.kt39 val timeZone: TimeZone constant in com.android.deskclock.data.City
87 id, index, indexString, name, phoneticName, timeZone.id) in toString()
123 val utcOffset1 = c1.timeZone.getOffset(now) in compare()
124 val utcOffset2 = c2.timeZone.getOffset(now) in compare()
DCityModel.kt120 val timeZone = settingsModel.homeTimeZone constant in com.android.deskclock.data.CityModel
121 mHomeCity = City(null, -1, null, name, name, timeZone)
DCityModel.java129 final TimeZone timeZone = mSettingsModel.getHomeTimeZone(); in getHomeCity() local
130 mHomeCity = new City(null, -1, null, name, name, timeZone); in getHomeCity()
/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()
/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/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/TV/src/com/android/tv/util/
DUtils.java473 TimeZone timeZone = Calendar.getInstance().getTimeZone(); in isInGivenDay() local
474 long offset = timeZone.getRawOffset(); in isInGivenDay()
475 if (timeZone.inDaylightTime(new Date(dayToMatchInMillis))) { in isInGivenDay()
476 offset += timeZone.getDSTSavings(); in isInGivenDay()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java155 private Map<String, Object> createTimeZoneMap(String key, String timeZone, String offset, in createTimeZoneMap() argument
159 map.put(ZoneGetter.KEY_DISPLAY_LABEL, timeZone); in createTimeZoneMap()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetCityViewsFactory.kt167 rv.setString(clockId, "setTimeZone", city.timeZone.id) in update()
172 val cityCal = Calendar.getInstance(city.timeZone) in update()
/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DUtilsTest.java473 TimeZone timeZone = TimeZone.getDefault(); in testIfTimeZoneApplied() local
487 TimeZone.setDefault(timeZone); in testIfTimeZoneApplied()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporter.java179 TimeZone timeZone = TimeZone.getDefault(); in insertEvent() local
180 values.put(CalendarContract.Events.EVENT_TIMEZONE, timeZone.getID()); in insertEvent()
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporterTest.java253 int startTimeSecs, int endTimeSecs, String timeZone, Color color) {
261 .setTimeZone(TimeZone.newBuilder().setName(timeZone));

12