Home
last modified time | relevance | path

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

/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.java84 final TimeZone timeZone = item.getTimeZone(); in formatInfo() local
85 if (!timeZone.observesDaylightTime()) { in formatInfo()
89 final TimeZoneTransition nextDstTransition = findNextDstTransition(timeZone); in formatInfo()
103 final Calendar transitionTime = Calendar.getInstance(timeZone); in formatInfo()
110 private TimeZoneTransition findNextDstTransition(TimeZone timeZone) { in findNextDstTransition() argument
111 if (!(timeZone instanceof BasicTimeZone)) { in findNextDstTransition()
114 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/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeviceOwnerInitializeProvisioningTask.java40 setTimeAndTimezone(mProvisioningParams.timeZone, mProvisioningParams.localTime); in run()
46 private void setTimeAndTimezone(String timeZone, long localTime) { in setTimeAndTimezone() argument
49 if (timeZone != null) { in setTimeAndTimezone()
50 alarmManager.setTimeZone(timeZone); in setTimeAndTimezone()
DProvisionFullyManagedDeviceTask.java119 .setTimeZone(mProvisioningParams.timeZone) in buildManagedDeviceProvisioningParams()
/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/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt301 val timeZone: TimeZone = city.timeZone in getView() constant
320 holder.time.text = getTimeCharSequence(timeZone) in getView()
331 holder.index.text = Utils.getGMTHourOffset(timeZone, false) in getView()
397 val timezone: TimeZone = city.timeZone in getSections()
499 private fun getTimeCharSequence(timeZone: TimeZone): CharSequence { in getTimeCharSequence()
500 mCalendar.timeZone = 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)
/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/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java168 public final String timeZone; field in ProvisioningParams
350 timeZone = builder.mTimeZone; in ProvisioningParams()
404 bundle.putString(EXTRA_PROVISIONING_TIME_ZONE, timeZone); in toPersistableBundle()
636 public Builder setTimeZone(String timeZone) { in setTimeZone() argument
637 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/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()
DDigitalAppWidgetProvider.kt180 zones.add(dm.homeCity.timeZone) in <lambda>()
183 zones.add(city.timeZone) in <lambda>()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java181 private Map<String, Object> createTimeZoneMap(String key, String timeZone, String offset, in createTimeZoneMap() argument
185 map.put(ZoneGetter.KEY_DISPLAY_LABEL, timeZone); in createTimeZoneMap()
/packages/apps/DeskClock/src/com/android/deskclock/
DClockFragment.kt380 val cityTimeZoneId: String = city.timeZone.id in bind()
391 mDigitalClock.timeZone = cityTimeZoneId in bind()
410 val cityCal: Calendar = Calendar.getInstance(city.timeZone) in bind()
DAnalogClock.kt142 mTime.timeZone = mTimeZone!! in setTimeZone()
/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/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt176 val previousInstanceTime = Calendar.getInstance(currentTime.timeZone) in getPreviousAlarmTime()
195 val nextInstanceTime = Calendar.getInstance(currentTime.timeZone) in getNextAlarmTime()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextTime.kt132 calendar.timeZone = UTC in updateTime()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java132 private static long parseTimeStringToMillis(String timeStr, String timeZone) { in parseTimeStringToMillis() argument
133 Time time = new Time(timeZone); in parseTimeStringToMillis()