Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineTestSupportTest.java79 UNIQUE_US_ZONE_SCENARIO1.getTimeZone(), true /* isOnlyMatch */); in test_uniqueUs_assumptions()
89 UNIQUE_US_ZONE_SCENARIO2.getTimeZone(), true /* isOnlyMatch */); in test_uniqueUs_assumptions()
118 assertTrue(possibleZones.contains(actualLookupResult.getTimeZone().getID())); in test_nonUniqueUs_assumptions()
125 assertEquals(UNITED_KINGDOM_SCENARIO.getTimeZone().getID(), in test_unitedKingdom_assumptions()
141 UNITED_KINGDOM_SCENARIO.getTimeZone(), true /* isOnlyMatch */); in test_unitedKingdom_assumptions()
150 assertEquals(NEW_ZEALAND_DEFAULT_SCENARIO.getTimeZone().getID(), in test_newZealand_assumptions()
169 NEW_ZEALAND_DEFAULT_SCENARIO.getTimeZone(), true /* isOnlyMatch */); in test_newZealand_assumptions()
181 NEW_ZEALAND_OTHER_SCENARIO.getTimeZone(), true /* isOnlyMatch */); in test_newZealand_assumptions()
191 assertEquals(CZECHIA_SCENARIO.getTimeZone().getID(), CZECHIA_COUNTRY_DEFAULT_ZONE_ID); in test_czechia_assumptions()
204 CZECHIA_SCENARIO.getTimeZone(), true /* isOnlyMatch */); in test_czechia_assumptions()
DTimeZoneLookupHelperTest.java382 assertEquals(zone("Pacific/Auckland"), majorityOffsetResult.getTimeZone()); in testDefaultBoostBehavior()
391 assertEquals(zone("Pacific/Chatham"), chathamOffsetResult.getTimeZone()); in testDefaultBoostBehavior()
422 assertEquals(zone("Pacific/Chuuk"), chuukOffsetResult.getTimeZone()); in testNoDefaultBoostBehavior()
462 assertTrue(knownIds.contains(offsetResult.getTimeZone().getID())); in regressionTest_Bug167653885()
471 TimeZone timeZone = lookupResult.getTimeZone(); in assertOffsetResultZoneOffsets()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DTime.java111 mCalendar = new GregorianCalendar(getTimeZone(), Locale.getDefault()); in Time()
131 return mCalendar.getTimeZone().inDaylightTime(mCalendar.getTime()); in isInDst()
151 mCalendar.setTimeZone(other.getTimeZone()); in set()
212 mCalendar.setTimeZone(TimeZone.getTimeZone(timezone)); in switchTimezone()
261 sdf.setTimeZone(getTimeZone()); in format2445()
273 private TimeZone getTimeZone() { in getTimeZone() method in Time
274 return timezone != null ? TimeZone.getTimeZone(timezone) : TimeZone.getDefault(); in getTimeZone()
285 mCalendar.setTimeZone(getTimeZone()); in clearCalendar()
352 return mCalendar.getTimeZone().getID(); in getTimezone()
357 mCalendar.setTimeZone(getTimeZone()); in setTimezone()
[all …]
/frameworks/base/core/java/android/timezone/
DCountryTimeZones.java64 public TimeZone getTimeZone() { in getTimeZone() method in CountryTimeZones.TimeZoneMapping
65 return mDelegate.getTimeZone(); in getTimeZone()
111 public TimeZone getTimeZone() { in getTimeZone() method in CountryTimeZones.OffsetResult
229 delegateOffsetResult.getTimeZone(), delegateOffsetResult.isOnlyMatch()); in lookupByOffsetWithBias()
251 delegateOffsetResult.getTimeZone(), delegateOffsetResult.isOnlyMatch()); in lookupByOffsetWithBias()
/frameworks/base/core/tests/coretests/src/android/text/format/
DDateIntervalFormatTest.java65 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_formatDateInterval()
325 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test8862241()
341 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10089890()
342 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test10089890()
366 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10318326()
395 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_when_time_not_displayed()
423 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_for_single_day_events()
438 TimeZone utc = TimeZone.getTimeZone("UTC"); in test_single_day_events_later_than_epoch()
458 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test_single_day_events_not_in_UTC()
480 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10209343_when_not_this_year()
[all …]
DTimeMigrationUtilsTest.java59 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in formatMillisWithFixedFormat_fixes2038Issue()
105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior()
DRelativeDateTimeFormatterTest.java58 TimeZone tz = TimeZone.getTimeZone("GMT"); in test_getRelativeTimeSpanStringCTS()
114 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeTimeSpanString_helper()
394 TimeZone tz = TimeZone.getTimeZone("Europe/Berlin"); in test_getRelativeTimeSpanStringGerman()
423 TimeZone tz = TimeZone.getTimeZone("Europe/Paris"); in test_getRelativeTimeSpanStringFrench()
465 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeDateTimeString()
510 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeDateTimeStringDST()
555 TimeZone tz = TimeZone.getTimeZone("Europe/Rome"); in test_getRelativeDateTimeStringItalian()
585 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test5252772()
661 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_bug19822016()
740 final TimeZone tz = TimeZone.getTimeZone("GMT"); in test_bug25883157()
/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java62 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timezoneId); in toMillis_javaUtil()
77 android.icu.util.TimeZone.getTimeZone(timezoneId); in toMillis_androidIucUtil()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DZoneGetterTest.java92 final TimeZone timeZone = TimeZone.getTimeZone(TIME_ZONE_LA_ID); in getTimeZoneOffsetAndName_withTtsSpan()
104 final TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in testTimeZoneOffsetAndNameInner()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DDateUtils.java39 TimeZone tz = TimeZone.getTimeZone("GMT"); in getKMLTimestamp()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneData.java141 final TimeZone tz = TimeZone.getTimeZone(tzId); in loadTzs()
338 final TimeZone tz = TimeZone.getTimeZone(newTzId); in loadTzsInZoneTab()
387 final TimeZone tz = TimeZone.getTimeZone(timeZoneId); in loadTzsInZoneTab()
419 TimeZone defaultTz = TimeZone.getTimeZone(mDefaultTimeZoneId); in loadTzsInZoneTab()
DTimeZonePickerUtils.java67 TimeZone timezone = TimeZone.getTimeZone(id); in getGmtDisplayName()
/frameworks/base/core/java/android/util/
DTimeUtils.java85 public static java.util.TimeZone getTimeZone( in getTimeZone() method in TimeUtils
91 return icuTimeZone != null ? java.util.TimeZone.getTimeZone(icuTimeZone.getID()) : null; in getTimeZone()
113 return offsetResult != null ? offsetResult.getTimeZone() : null; in getIcuTimeZone()
/frameworks/base/core/java/android/widget/
DTextClock.java198 ZoneId zone = mTime.getTimeZone().toZoneId();
292 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime()
479 public String getTimeZone() { in getTimeZone() method in TextClock
/frameworks/base/core/java/android/text/format/
DDateTimeFormat.java47 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone(); in format()
DDateIntervalFormat.java57 TimeZone tz = (olsonId != null) ? TimeZone.getTimeZone(olsonId) : TimeZone.getDefault(); in formatDateRange()
DDateUtilsBridge.java57 TimeZone icuTimeZone = TimeZone.getTimeZone(tz.getID()); in icuTimeZone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java191 nightTileFormat.setTimeZone(TimeZone.getTimeZone("UTC")); in getSecondaryLabel()
192 c.setTimeZone(nightTileFormat.getTimeZone()); in getSecondaryLabel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImpl.java150 suggestionBuilder.setZoneId(lookupResult.getTimeZone().getID()); in findTimeZoneForTestNetwork()
189 suggestionBuilder.setZoneId(lookupResult.getTimeZone().getID()); in findTimeZoneFromCountryAndNitz()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java108 GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); in createUtcTime()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java111 TimeZone utc = TimeZone.getTimeZone("UTC"); in parse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java122 zone = TimeZone.getTimeZone(tzname); in parse()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/
DEabControllerTest.java238 expiredDate.setTimeZone(TimeZone.getTimeZone("UTC")); in testCleanupInvalidDataInPresenceTable()
271 expiredDate.setTimeZone(TimeZone.getTimeZone("UTC")); in testCleanupInvalidDataInOptionTable()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java478 .getInstance(TimeZone.getTimeZone("UTC"));
481 sExifGPSDateStamp.setTimeZone(TimeZone.getTimeZone("UTC"));
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakeLockLogTest.java243 format.setTimeZone(TimeZone.getTimeZone("UTC")); in getDateFormat()

123