/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupportTest.java | 79 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()
|
D | TimeZoneLookupHelperTest.java | 382 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/ |
D | Time.java | 111 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/ |
D | CountryTimeZones.java | 64 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/ |
D | DateIntervalFormatTest.java | 65 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 …]
|
D | TimeMigrationUtilsTest.java | 59 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in formatMillisWithFixedFormat_fixes2038Issue() 105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior()
|
D | RelativeDateTimeFormatterTest.java | 58 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/ |
D | AndroidTimeVsOthersBenchmark.java | 62 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/ |
D | ZoneGetterTest.java | 92 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/ |
D | DateUtils.java | 39 TimeZone tz = TimeZone.getTimeZone("GMT"); in getKMLTimestamp()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneData.java | 141 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()
|
D | TimeZonePickerUtils.java | 67 TimeZone timezone = TimeZone.getTimeZone(id); in getGmtDisplayName()
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 85 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/ |
D | TextClock.java | 198 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/ |
D | DateTimeFormat.java | 47 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone(); in format()
|
D | DateIntervalFormat.java | 57 TimeZone tz = (olsonId != null) ? TimeZone.getTimeZone(olsonId) : TimeZone.getDefault(); in formatDateRange()
|
D | DateUtilsBridge.java | 57 TimeZone icuTimeZone = TimeZone.getTimeZone(tz.getID()); in icuTimeZone()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NightDisplayTile.java | 191 nightTileFormat.setTimeZone(TimeZone.getTimeZone("UTC")); in getSecondaryLabel() 192 c.setTimeZone(nightTileFormat.getTimeZone()); in getSecondaryLabel()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | TimeZoneSuggesterImpl.java | 150 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/ |
D | NitzDataTest.java | 108 GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); in createUtcTime()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 111 TimeZone utc = TimeZone.getTimeZone("UTC"); in parse()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzData.java | 122 zone = TimeZone.getTimeZone(tzname); in parse()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/ |
D | EabControllerTest.java | 238 expiredDate.setTimeZone(TimeZone.getTimeZone("UTC")); in testCleanupInvalidDataInPresenceTable() 271 expiredDate.setTimeZone(TimeZone.getTimeZone("UTC")); in testCleanupInvalidDataInOptionTable()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | DngCreator.java | 478 .getInstance(TimeZone.getTimeZone("UTC")); 481 sExifGPSDateStamp.setTimeZone(TimeZone.getTimeZone("UTC"));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | WakeLockLogTest.java | 243 format.setTimeZone(TimeZone.getTimeZone("UTC")); in getDateFormat()
|