Home
last modified time | relevance | path

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

123456

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt43 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("UTC"))) in getInstant_returnsCorrectInstant()
50 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("UTC"))) in longToInstant_returnsCorrectInstant()
59 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("America/Los_Angeles"))) in instantToLocalDate_returnsCorrectLocalDate()
70 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Asia/Tokyo"))) in instantToLocalTime_returnsCorrectLocalTime()
81 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Asia/Tokyo"))) in instantIsOnSameDay_whenOtherInstantOnSameLocalDate_returnsTrue()
91 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Asia/Tokyo"))) in instantIsOnSameDay_whenOtherInstantNotOnSameLocalDate_returnsFalse()
101 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Africa/Cairo"))) in instantIsOnDayBefore_whenOtherInstantIsOnDayAfter_returnsTrue()
111 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Africa/Cairo"))) in instantIsOnDayBefore_whenOtherInstantIsOnSameDay_returnsFalse()
121 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Asia/Kolkata"))) in instantIsOnDayAfter_whenOtherInstantIsOnDayBefore_returnsTrue()
131 TimeZone.setDefault(TimeZone.getTimeZone(ZoneId.of("Asia/Kolkata"))) in instantIsOnDayAfter_whenOtherInstantIsOnDayAfter_returnsFalse()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDatetimeTest.java118 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParseFromValidStringWithUtc()
197 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreateFromDateTime()
209 TimeZone utc = TimeZone.getTimeZone("UTC"); in testEquals_withSameInstance()
219 TimeZone utc = TimeZone.getTimeZone("UTC"); in testEquals_withDifferentClass()
230 TimeZone utc = TimeZone.getTimeZone("UTC"); in testEquals_withSameInfo()
DBipAttachmentFormatTest.java112 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParseAttachment()
257 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreateAttachment()
286 TimeZone utc = TimeZone.getTimeZone("UTC"); in testParsedAttachmentToString()
363 TimeZone utc = TimeZone.getTimeZone("UTC"); in testCreatedAttachmentToString()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java150 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
151 tzi2.getTimeZone().getOffset(mNow.getTime())); in compare()
153 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
154 tzi2.getTimeZone().getRawOffset()); in compare()
DTimeZoneInfoPreferenceController.java69 if (item.getTimeZone().inDaylightTime(mDate)) { in formatOffsetAndName()
86 final TimeZone timeZone = item.getTimeZone(); in formatInfo()
130 TimeZone timeZone = timeZoneInfo.getTimeZone(); in findNextDstTransition()
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()
DTimeZoneInfo.java57 public TimeZone getTimeZone() { in getTimeZone() method in TimeZoneInfo
188 return java.util.TimeZone.getTimeZone(canonicalZoneId); in toJavaTimeZone()
/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/Settings/src/com/android/settings/display/
DNightDisplayTimeFormatter.java35 mTimeFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); in NightDisplayTimeFormatter()
40 c.setTimeZone(mTimeFormatter.getTimeZone()); in getFormattedTimeString()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/system/
DCobaltClockTest.java49 TimeZone.setDefault(TimeZone.getTimeZone("America/New_York")); in dayIndexLocal_succeeds()
83 TimeZone.setDefault(TimeZone.getTimeZone("Europe/Lisbon")); in dayIndex_metricLocal_succeeds()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.kt173 getTimeZone(context, null) in formatDateRange()
265 fun getTimeZone(context: Context, callback: Runnable?): String { in getTimeZone() method
312 getTimeZone(context, callback) in forceDBRequery()
DCalendarController.kt70 mTime?.switchTimezone(Utils.getTimeZone(mContext, this)) in run()
306 info.startTime = Time(Utils.getTimeZone(mContext, mUpdateTimezone)) in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
309 info.selectedTime = Time(Utils.getTimeZone(mContext, mUpdateTimezone)) in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
314 info.endTime = Time(Utils.getTimeZone(mContext, mUpdateTimezone)) in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
DGeneralPreferences.kt94 mTimeZoneId = Utils.getTimeZone(activity, null) in onCreate()
132 b.putString(TimeZonePickerDialog.BUNDLE_TIME_ZONE, Utils.getTimeZone(activity, null)) in showTimezoneDialog()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDateTime.java78 TimeZone tz = TimeZone.getTimeZone("UTC"); in BipDateTime()
134 TimeZone utc = TimeZone.getTimeZone("UTC"); in toString()
/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/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/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollectorTest.java90 TimeZone pstTime = TimeZone.getTimeZone("GMT-08:00"); in setup()
165 TimeZone tzGmt4 = TimeZone.getTimeZone("GMT+04:00"); in testRealTimeUpdate()
/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/widget/
DCalendarAppWidgetService.kt349 val tz: String? = Utils.getTimeZone(mContext, null) in getViewAt()
497 val tz: String? = Utils.getTimeZone(mContext, mTimezoneChanged) in onLoadComplete()
530 val time = Time(Utils.getTimeZone(mContext, null)) in onLoadComplete()
533 val time2 = Time(Utils.getTimeZone(mContext, null)) in onLoadComplete()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DTimestampUtilsTest.java33 TimeZone.setDefault(TimeZone.getTimeZone("GMT+8")); in setUp()
DAnomalyEventWrapperTest.java42 TimeZone.setDefault(TimeZone.getTimeZone("GMT+8")); in setUp()
/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)

123456