Home
last modified time | relevance | path

Searched refs:getDSTSavings (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/util/
DZoneInfoTest.java64 assertEquals(0, zoneInfo.getDSTSavings()); in testMakeTimeZone_OneType_NoTransitions()
89 assertEquals(0, zoneInfo.getDSTSavings()); in testReadTimeZone_OneNonDstTransition()
142 assertEquals(0, zoneInfo.getDSTSavings()); in testReadTimeZone_NegativeTransition()
176 assertEquals(0, zoneInfo.getDSTSavings()); in testReadTimeZone_PositiveTransition()
203 assertEquals(expectedDSTSavings, zoneInfo.getDSTSavings()); in testReadTimeZone_HasFutureDST_NoPastDST_NegativeTransitions()
210 assertEquals(expectedDSTSavings, zoneInfo.getDSTSavings()); in testReadTimeZone_HasFutureDST_NoPastDST_NegativeTransitions()
237 assertEquals(expectedDSTSavings, zoneInfo.getDSTSavings()); in testReadTimeZone_HasFutureDST_NoPastDST_PositiveTransitions()
244 assertEquals(expectedDSTSavings, zoneInfo.getDSTSavings()); in testReadTimeZone_HasFutureDST_NoPastDST_PositiveTransitions()
267 assertEquals(0, zoneInfo.getDSTSavings()); in testReadTimeZone_HasPastDST_NoFutureDST_NegativeTransitions()
274 assertEquals(0, zoneInfo.getDSTSavings()); in testReadTimeZone_HasPastDST_NoFutureDST_NegativeTransitions()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java117 millisToOffset((initial.getRawOffset() + initial.getDSTSavings())); in generateZoneRules()
146 int fromTotalOffset = from.getRawOffset() + from.getDSTSavings(); in generateZoneRules()
147 int toTotalOffset = to.getRawOffset() + to.getDSTSavings(); in generateZoneRules()
160 preLastDstSavings = from.getDSTSavings(); in generateZoneRules()
190 lastRules.add(toZoneOffsetTransitionRule(last2, last1.getDSTSavings())); in generateZoneRules()
285 rule.getRawOffset() + rule.getDSTSavings()); in toZoneOffsetTransitionRule()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java161 return transition.getFrom().getRawOffset() + transition.getFrom().getDSTSavings() in isIcuOnlyTransition()
162 == transition.getTo().getRawOffset() + transition.getTo().getDSTSavings(); in isIcuOnlyTransition()
180 (from.getDSTSavings() + from.getRawOffset()) / 1000, in assertEquivalent()
183 (to.getDSTSavings() + to.getRawOffset()) / 1000, in assertEquivalent()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java53 ONE_HOUR, st1.getDSTSavings()); in test_getDSTSavings()
58 1800000, st1.getDSTSavings()); in test_getDSTSavings()
63 ONE_HOUR, tz1.getDSTSavings()); in test_getDSTSavings()
68 0, tz1.getDSTSavings()); in test_getDSTSavings()
DSimpleTimeZoneTest.java123 st.getDSTSavings() == 1000 * 60 * 60); in test_ConstructorILjava_lang_StringIIIIIIIII()
278 0, st1.getDSTSavings()); in test_getDSTSavings()
283 3600000, st1.getDSTSavings()); in test_getDSTSavings()
288 .getDSTSavings()); in test_getDSTSavings()
445 assertEquals(1, st.getDSTSavings()); in test_setDSTSavingsI()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java217 return getRawOffset() + getDSTSavings(); in getOffset()
242 dstoffset = getDSTSavings(); in getOffsets()
415 offsetMillis += getDSTSavings(); in getDisplayName()
491 public int getDSTSavings() { in getDSTSavings() method in TimeZone
DSimpleTimeZone.java827 public int getDSTSavings() { in getDSTSavings() method in SimpleTimeZone
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java195 assertEquals(0, TimeZone.getTimeZone("UTC").getDSTSavings()); in test_getDSTSavings()
196 assertEquals(3600000, TimeZone.getTimeZone("America/Los_Angeles").getDSTSavings()); in test_getDSTSavings()
197 assertEquals(1800000, TimeZone.getTimeZone("Australia/Lord_Howe").getDSTSavings()); in test_getDSTSavings()
332 offset += tz.getDSTSavings(); in formatGmtString()
DGregorianCalendarTest.java409 checkDstFields(cal, description, timeZone.getRawOffset(), timeZone.getDSTSavings()); in checkInsideDst()
468 public int getDSTSavings() { in getDSTSavings() method in GregorianCalendarTest.DelegatingTimeZone
469 return timeZone.getDSTSavings(); in getDSTSavings()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java95 offsetMillis += tz.getDSTSavings(); in addOffsetStrings()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java609 @Override public int getDSTSavings() { in getDSTSavings() method in ZoneInfo
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1854 int dstAmount = isDst ? newTimeZone.getDSTSavings() : 0; in subParseZoneStringFromICU()
1923 int dstAmount = (nameIndex >= 3) ? tz.getDSTSavings() : 0; in subParseZoneStringFromSymbols()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java3697 tz.getRawOffset() + tz.getDSTSavings()); in getDisplayName()