Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
148 tzi2.getTimeZone().getOffset(mNow.getTime())); in compare()
150 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
151 tzi2.getTimeZone().getRawOffset()); in compare()
DBaseTimeZoneInfoPicker.java122 if (name == null && timeZoneInfo.getTimeZone().inDaylightTime(new Date())) { in createTitle()
143 if (mTimeZoneInfo.getTimeZone().inDaylightTime(new Date())) { in getSummary()
167 return mTimeFormat.format(Calendar.getInstance(mTimeZoneInfo.getTimeZone())); in getCurrentTime()
DTimeZoneInfoPreferenceController.java67 if (item.getTimeZone().inDaylightTime(mDate)) { in formatOffsetAndName()
84 final TimeZone timeZone = item.getTimeZone(); in formatInfo()
DTimeZoneInfo.java55 public TimeZone getTimeZone() { in getTimeZone() method in TimeZoneInfo
154 final java.util.TimeZone javaTimeZone = java.util.TimeZone.getTimeZone(canonicalZoneId); in format()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormatTest.java101 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParseAttachment()
157 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreateAttachment()
186 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParsedAttachmentToString()
245 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreatedAttachmentToString()
DBipDatetimeTest.java95 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParseFromValidStringWithUtc()
170 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreateFromDateTime()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DTimeFormatter.java33 mFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); in TimeFormatter()
38 c.setTimeZone(mFormatter.getTimeZone()); in of()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java177 tz = getTimeZone(context, null); in formatDateRange()
270 public String getTimeZone(Context context, Runnable callback) { in getTimeZone() method in CalendarUtils.TimeZoneUtils
317 getTimeZone(context, callback); in forceDBRequery()
DCalendarController.java88 mTime.switchTimezone(Utils.getTimeZone(mContext, this));
349 info.startTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
352 info.selectedTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
357 info.endTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
DAllInOneActivity.java219 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater);
230 mTimeZone = Utils.getTimeZone(AllInOneActivity.this, mHomeTimeUpdater);
315 mTimeZone = Utils.getTimeZone(this, mHomeTimeUpdater); in onCreate()
876 mTimeZone = Utils.getTimeZone(this, mHomeTimeUpdater); in updateSecondaryTitleFields()
917 TimeZone.getTimeZone(mTimeZone).getDisplayName( in updateSecondaryTitleFields()
DUtils.java282 public static String getTimeZone(Context context, Runnable callback) { in getTimeZone() method in Utils
283 return mTZUtils.getTimeZone(context, callback); in getTimeZone()
1238 Time weekTime = new Time(getTimeZone(context, null)); in getWeekNumberFromTime()
1269 getTimeZone(context, null); in getDayOfWeekString()
1393 TimeZone tz = TimeZone.getTimeZone(localTimezone); in getDisplayedTimezone()
DGeneralPreferences.java177 mTimeZoneId = Utils.getTimeZone(activity, null); in onCreate()
223 b.putString(TimeZonePickerDialog.BUNDLE_TIME_ZONE, Utils.getTimeZone(activity, null)); in showTimezoneDialog()
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayTimeFormatter.java35 mTimeFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); in NightDisplayTimeFormatter()
40 c.setTimeZone(mTimeFormatter.getTimeZone()); in getFormattedTimeString()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionMonitor.java279 df.setTimeZone(TimeZone.getTimeZone("UTC")); in setState()
351 df.setTimeZone(TimeZone.getTimeZone("UTC")); in setCompleteState()
412 df.setTimeZone(TimeZone.getTimeZone("UTC")); in setExecutedState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDateTime.java81 TimeZone tz = TimeZone.getTimeZone("UTC"); in BipDateTime()
137 TimeZone utc = TimeZone.getTimeZone("UTC"); in toString()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java312 String tz = Utils.getTimeZone(mContext, null);
491 String tz = Utils.getTimeZone(mContext, mTimezoneChanged);
528 Time time = new Time(Utils.getTimeZone(mContext, null));
532 Time time2 = new Time(Utils.getTimeZone(mContext, null));
DCalendarAppWidgetModel.java273 mHomeTZName = TimeZone.getTimeZone(timeZone).getDisplayName(recycle.isDst != 0, in buildFromCursor()
278 String tz = Utils.getTimeZone(mContext, null); in buildFromCursor()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DExifUtils.java61 sFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
63 sFormatterTz.setTimeZone(TimeZone.getTimeZone("UTC"));
/packages/apps/DeskClock/src/com/android/deskclock/
DAnalogClock.kt47 mTime = Calendar.getInstance(TimeZone.getTimeZone(tz)) in onReceive()
141 mTimeZone = TimeZone.getTimeZone(id) in setTimeZone()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java331 .setTimeZone(TimeZone.getTimeZone(expectedZoneId)); in testUtcToLocalTime_returnExpectedResult()
353 .setTimeZone(TimeZone.getTimeZone(expectedZoneId)); in testUtcToLocalTimeHour_12HourFormat_returnExpectedResult()
375 .setTimeZone(TimeZone.getTimeZone(expectedZoneId)); in testUtcToLocalTimeHour_24HourFormat_returnExpectedResult()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java158 mDummyDate.setTimeZone(now.getTimeZone()); in updateTimeAndDateDisplay()
170 now.getTimeZone(), now.getTime()))); in updateTimeAndDateDisplay()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.kt109 return TimeZone.getTimeZone(timeZoneId) in getHomeTimeZone()
363 val tz = TimeZone.getTimeZone(mTimeZoneId)
/packages/apps/Settings/src/com/android/settings/datetime/
DDateTimePreferenceController.java41 now.getTimeZone(), now.getTime()); in getSummary()
DTimeZonePreferenceController.java69 now.getTimeZone(), now.getTime()); in getTimeZoneOffsetAndName()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java105 mHomeTimeZone = Utils.getTimeZone(mContext, null); in init()
257 mHomeTimeZone = Utils.getTimeZone(mContext, null); in refresh()

123