/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/ |
D | TimeExtensionsTest.kt | 43 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/ |
D | BipDatetimeTest.java | 118 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()
|
D | BipAttachmentFormatTest.java | 112 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/ |
D | RegionZonePicker.java | 150 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()
|
D | TimeZoneInfoPreferenceController.java | 69 if (item.getTimeZone().inDaylightTime(mDate)) { in formatOffsetAndName() 86 final TimeZone timeZone = item.getTimeZone(); in formatInfo() 130 TimeZone timeZone = timeZoneInfo.getTimeZone(); in findNextDstTransition()
|
D | BaseTimeZoneInfoPicker.java | 122 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()
|
D | TimeZoneInfo.java | 57 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/ |
D | TimeFormatter.java | 33 mFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); in TimeFormatter() 38 c.setTimeZone(mFormatter.getTimeZone()); in of()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | NightDisplayTimeFormatter.java | 35 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/ |
D | CobaltClockTest.java | 49 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/ |
D | CalendarUtils.kt | 173 getTimeZone(context, null) in formatDateRange() 265 fun getTimeZone(context: Context, callback: Runnable?): String { in getTimeZone() method in com.android.calendar.CalendarUtils 312 getTimeZone(context, callback) in forceDBRequery()
|
D | CalendarController.kt | 70 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()
|
D | GeneralPreferences.kt | 94 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/ |
D | BipDateTime.java | 78 TimeZone tz = TimeZone.getTimeZone("UTC"); in BipDateTime() 134 TimeZone utc = TimeZone.getTimeZone("UTC"); in toString()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionMonitor.java | 279 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/ |
D | ExifUtils.java | 61 sFormatter.setTimeZone(TimeZone.getTimeZone("UTC")); 63 sFormatterTz.setTimeZone(TimeZone.getTimeZone("UTC"));
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AnalogClock.kt | 47 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/ |
D | UserDataCollectorTest.java | 90 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/ |
D | DateTimePreferenceController.java | 41 now.getTimeZone(), now.getTime()); in getSummary()
|
D | TimeZonePreferenceController.java | 69 now.getTimeZone(), now.getTime()); in getTimeZoneOffsetAndName()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.kt | 349 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/ |
D | TimestampUtilsTest.java | 33 TimeZone.setDefault(TimeZone.getTimeZone("GMT+8")); in setUp()
|
D | AnomalyEventWrapperTest.java | 42 TimeZone.setDefault(TimeZone.getTimeZone("GMT+8")); in setUp()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DateTimeFragment.java | 158 mDummyDate.setTimeZone(now.getTimeZone()); in updateTimeAndDateDisplay() 170 now.getTimeZone(), now.getTime()))); in updateTimeAndDateDisplay()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.kt | 109 return TimeZone.getTimeZone(timeZoneId) in getHomeTimeZone() 363 val tz = TimeZone.getTimeZone(mTimeZoneId)
|