Home
last modified time | relevance | path

Searched refs:zoneInfo (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java59 ZoneInfo zoneInfo = createZoneInfo(transitions, types); in testMakeTimeZone_OneType_NoTransitions() local
67 assertOffsetAt(zoneInfo, offsetFromSeconds(4800), times); in testMakeTimeZone_OneType_NoTransitions()
70 assertFalse("Doesn't use DST", zoneInfo.useDaylightTime()); in testMakeTimeZone_OneType_NoTransitions()
71 assertDSTSavings(zoneInfo, offsetFromSeconds(0)); in testMakeTimeZone_OneType_NoTransitions()
74 assertRawOffset(zoneInfo, offsetFromSeconds(4800)); in testMakeTimeZone_OneType_NoTransitions()
87 ZoneInfo zoneInfo = createZoneInfo(transitions, types); in testReadTimeZone_OneNonDstTransition() local
91 assertOffsetAt(zoneInfo, offsetFromSeconds(3600), times); in testReadTimeZone_OneNonDstTransition()
94 assertFalse("Doesn't use DST", zoneInfo.useDaylightTime()); in testReadTimeZone_OneNonDstTransition()
95 assertDSTSavings(zoneInfo, offsetFromSeconds(0)); in testReadTimeZone_OneNonDstTransition()
98 assertRawOffset(zoneInfo, offsetFromSeconds(3600)); in testReadTimeZone_OneNonDstTransition()
[all …]
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java765 public void localtime(int timeSeconds, ZoneInfo zoneInfo) { in localtime() argument
767 int offsetSeconds = zoneInfo.mRawOffset / 1000; in localtime()
771 if (zoneInfo.mTransitions.length == 0) { in localtime()
775 int offsetIndex = zoneInfo.findOffsetIndexForTimeInSeconds(timeSeconds); in localtime()
780 offsetSeconds = zoneInfo.mEarliestRawOffset / 1000; in localtime()
783 offsetSeconds += zoneInfo.mOffsets[offsetIndex]; in localtime()
784 isDst = zoneInfo.mIsDsts[offsetIndex]; in localtime()
826 public int mktime(ZoneInfo zoneInfo) { in mktime() argument
841 final int rawOffsetSeconds = zoneInfo.mRawOffset / 1000; in mktime()
844 if (zoneInfo.mTransitions.length == 0) { in mktime()
[all …]
/libcore/luni/src/main/java/libcore/timezone/
DZoneInfoDB.java304 ZoneInfo zoneInfo = makeTimeZoneUncached(id); in validate() local
305 if (zoneInfo == null) { in validate()
367 ZoneInfo zoneInfo = cache.get(id); in makeTimeZone() local
369 return zoneInfo == null ? null : (ZoneInfo) zoneInfo.clone(); in makeTimeZone()
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java194 TimeZone zoneInfo = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst() local
195 long zoneInfoTime = getDstLosAngeles2014(zoneInfo); in test_computeTime_enteringDst()
198 assertTrue(zoneInfo.inDaylightTime(new Date(zoneInfoTime))); in test_computeTime_enteringDst()
199 assertFalse(zoneInfo.inDaylightTime(new Date(zoneInfoTime - 1))); in test_computeTime_enteringDst()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java2352 ZoneInfo zoneInfo = (ZoneInfo) tz; in computeFields() local
2353 zoneOffset = zoneInfo.getOffsetsByUtcTime(time, zoneOffsets); in computeFields()
2913 ZoneInfo zoneInfo = (ZoneInfo) zone; in adjustForZoneAndDaylightSavingsTime() local
2914 zoneInfo.getOffsetsByUtcTime(standardTimeInZone, zoneOffsets); in adjustForZoneAndDaylightSavingsTime()