Home
last modified time | relevance | path

Searched refs:startsInDST (Results 1 – 8 of 8) sorted by relevance

/third_party/icu/icu4c/source/test/intltest/
Dtzbdtest.cpp108 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedB… in findDaylightBoundaryUsingTimeZone() argument
111 findDaylightBoundaryUsingTimeZone(d, startsInDST, expectedBoundary, zone); in findDaylightBoundaryUsingTimeZone()
118 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedB… in findDaylightBoundaryUsingTimeZone() argument
124 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone()
125 …" + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDST ? "true" : "fal… in findDaylightBoundaryUsingTimeZone()
126 startsInDST = !startsInDST; in findDaylightBoundaryUsingTimeZone()
129 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone()
130 …+ tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsInDST ? "false" : "tr… in findDaylightBoundaryUsingTimeZone()
138 if (isIn == startsInDST) { in findDaylightBoundaryUsingTimeZone()
389 UBool startsInDST = tz->inDaylightTime(d, status); in testUsingBinarySearch() local
[all …]
Dtzbdtest.h43 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary);
44 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary,…
Dtzregts.cpp91 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionBinary() local
93 if (tz.inDaylightTime(max, status) == startsInDST) { in findTransitionBinary()
94 logln((UnicodeString)"Error: inDaylightTime() != " + ((!startsInDST)?"TRUE":"FALSE")); in findTransitionBinary()
100 if (tz.inDaylightTime(mid, status) == startsInDST) { in findTransitionBinary()
112 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionStepwise() local
115 if (tz.inDaylightTime(min, status) != startsInDST) { in findTransitionStepwise()
Dtztest.cpp245 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition() local
247 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition()
248 … " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"TRUE":"FALSE")… in findTransition()
249 ", inDaylightTime(" + dateToString(max) + ") = " + (startsInDST?"TRUE":"FALSE")); in findTransition()
255 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition()
276 UBool startsInDST = tz.inDaylightTime(min, status); in testUsingBinarySearch() local
278 if (tz.inDaylightTime(max, status) == startsInDST) { in testUsingBinarySearch()
279 … logln("Error: inDaylightTime(" + dateToString(max) + ") != " + ((!startsInDST)?"TRUE":"FALSE")); in testUsingBinarySearch()
285 if (tz.inDaylightTime(mid, status) == startsInDST) { in testUsingBinarySearch()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneBoundaryTest.java138 void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary) in findDaylightBoundaryUsingTimeZone() argument
140 findDaylightBoundaryUsingTimeZone(d, startsInDST, expectedBoundary, in findDaylightBoundaryUsingTimeZone()
144 void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, in findDaylightBoundaryUsingTimeZone() argument
155 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
158 d + ") != " + startsInDST); in findDaylightBoundaryUsingTimeZone()
159 startsInDST = !startsInDST; // Flip over; find the apparent value in findDaylightBoundaryUsingTimeZone()
162 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
165 (new Date(max)) + ") != " + (!startsInDST)); in findDaylightBoundaryUsingTimeZone()
173 if (isIn == startsInDST) in findDaylightBoundaryUsingTimeZone()
662 boolean startsInDST = tz.inDaylightTime(d); in _testUsingBinarySearch()
[all …]
DTimeZoneTest.java641 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
643 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
644 logln("Error: inDaylightTime(" + new Date(max) + ") != " + (!startsInDST)); in _testUsingBinarySearch()
650 if (tz.inDaylightTime(new Date(mid)) == startsInDST) { in _testUsingBinarySearch()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneBoundaryTest.java141 void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary) in findDaylightBoundaryUsingTimeZone() argument
143 findDaylightBoundaryUsingTimeZone(d, startsInDST, expectedBoundary, in findDaylightBoundaryUsingTimeZone()
147 void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, in findDaylightBoundaryUsingTimeZone() argument
158 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
161 d + ") != " + startsInDST); in findDaylightBoundaryUsingTimeZone()
162 startsInDST = !startsInDST; // Flip over; find the apparent value in findDaylightBoundaryUsingTimeZone()
165 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
168 (new Date(max)) + ") != " + (!startsInDST)); in findDaylightBoundaryUsingTimeZone()
176 if (isIn == startsInDST) in findDaylightBoundaryUsingTimeZone()
665 boolean startsInDST = tz.inDaylightTime(d); in _testUsingBinarySearch()
[all …]
DTimeZoneTest.java645 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
647 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
648 logln("Error: inDaylightTime(" + new Date(max) + ") != " + (!startsInDST)); in _testUsingBinarySearch()
654 if (tz.inDaylightTime(new Date(mid)) == startsInDST) { in _testUsingBinarySearch()