/external/icu/icu4c/source/test/intltest/ |
D | incaltst.cpp | 494 Calendar *cal2 = cal->clone(); in TestJapaneseFormat() local 521 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat() 523 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat() 552 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat() 555 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat() 562 delete cal2; in TestJapaneseFormat() 618 Calendar *cal2 = cal->clone(); in TestJapanese3860() local 636 cal2->clear(); in TestJapanese3860() 641 fmt->parse(samplestr, *cal2, pp); in TestJapanese3860() 648 cal2->setTime(aDate, s2); in TestJapanese3860() [all …]
|
D | astrotst.cpp | 269 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local 296 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes() 297 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes() 298 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes() 300 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 301 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes() 302 UDate exprise = cal2->getTime(status); in TestSunriseTimes() 303 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 304 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes() 305 UDate expset = cal2->getTime(status); in TestSunriseTimes() [all …]
|
D | caltest.cpp | 389 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local 392 cal2->setTime(when, status); in TestGenericAPI() 395 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI() 396 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI() 397 if (!cal->equals(*cal2, status) || in TestGenericAPI() 398 cal->before(*cal2, status) || in TestGenericAPI() 399 cal->after(*cal2, status) || in TestGenericAPI() 403 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI() 405 cal2->setTime(when + 1000, status); in TestGenericAPI() 406 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI() [all …]
|
D | calregts.cpp | 188 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local 191 printdate(cal2, "cal2 - cloned(): ") ; in test4028518() 195 printdate(cal2, "cal2 should be unmodified:") ; in test4028518() 197 delete cal2; in test4028518() 206 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019() local 212 cal2->set(UCAL_HOUR,2); in Test9019() 214 cal2->clear(); in Test9019() 217 cal2->set(2012,UCAL_JANUARY,06); in Test9019() 223 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019() 225 if(!cal1->equals(*cal2,status)) { in Test9019() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | AstroTest.java | 240 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes() local 257 cal2.setTime(cal.getTime()); in TestSunriseTimes() 258 cal2.set(Calendar.SECOND, 0); in TestSunriseTimes() 259 cal2.set(Calendar.MILLISECOND, 0); in TestSunriseTimes() 261 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 262 cal2.set(Calendar.MINUTE, USNO[4*i+1]); in TestSunriseTimes() 263 Date exprise = cal2.getTime(); in TestSunriseTimes() 264 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 265 cal2.set(Calendar.MINUTE, USNO[4*i+3]); in TestSunriseTimes() 266 Date expset = cal2.getTime(); in TestSunriseTimes()
|
D | CompatibilityTest.java | 279 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); in TestGenericAPI() local 282 cal2.setTime(when); in TestGenericAPI() 284 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed"); in TestGenericAPI() 286 if (!cal.equals(cal2) || in TestGenericAPI() 287 cal.before(cal2) || in TestGenericAPI() 288 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() 290 cal2.setTime(new Date(when.getTime() + 1000)); in TestGenericAPI() 291 if (cal.equals(cal2) || in TestGenericAPI() 292 cal2.before(cal) || in TestGenericAPI() 293 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() [all …]
|
D | JapaneseTest.java | 173 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local 176 cal2.clear(); in Test3860() 185 fmt.parse(samplestr, cal2, pp); in Test3860() 190 cal2.setTime(aDate); in Test3860() 191 gotYear = cal2.get(Calendar.YEAR); in Test3860() 192 gotEra = cal2.get(Calendar.ERA); in Test3860()
|
D | CalendarRegression.java | 103 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502() local 104 cal2.clear(); in Test4031502() 105 cal2.set(1900, 15, 5, 5, 8, 13); in Test4031502() 106 cal2.get(Calendar.HOUR); in Test4031502() 109 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 110 … cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 113 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 466 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); in Test4092362() local 473 logln( " Cal2 = " + cal2.getTime().getTime() ); in Test4092362() 474 logln( " Cal2 time in ms = " + cal2.get(Calendar.MILLISECOND) ); in Test4092362() [all …]
|
D | IBMCalendarTest.java | 1220 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local 1222 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1223 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1225 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1226 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1228 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1229 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1231 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs() 1232 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs() 1728 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local [all …]
|
D | DangiTest.java | 388 DangiCalendar cal2 = new DangiCalendar(d); in TestCoverage() local 393 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2); in TestCoverage()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | AstroTest.java | 244 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes() local 261 cal2.setTime(cal.getTime()); in TestSunriseTimes() 262 cal2.set(Calendar.SECOND, 0); in TestSunriseTimes() 263 cal2.set(Calendar.MILLISECOND, 0); in TestSunriseTimes() 265 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 266 cal2.set(Calendar.MINUTE, USNO[4*i+1]); in TestSunriseTimes() 267 Date exprise = cal2.getTime(); in TestSunriseTimes() 268 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 269 cal2.set(Calendar.MINUTE, USNO[4*i+3]); in TestSunriseTimes() 270 Date expset = cal2.getTime(); in TestSunriseTimes()
|
D | CompatibilityTest.java | 283 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); in TestGenericAPI() local 286 cal2.setTime(when); in TestGenericAPI() 288 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed"); in TestGenericAPI() 290 if (!cal.equals(cal2) || in TestGenericAPI() 291 cal.before(cal2) || in TestGenericAPI() 292 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() 294 cal2.setTime(new Date(when.getTime() + 1000)); in TestGenericAPI() 295 if (cal.equals(cal2) || in TestGenericAPI() 296 cal2.before(cal) || in TestGenericAPI() 297 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() [all …]
|
D | JapaneseTest.java | 177 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local 180 cal2.clear(); in Test3860() 189 fmt.parse(samplestr, cal2, pp); in Test3860() 194 cal2.setTime(aDate); in Test3860() 195 gotYear = cal2.get(Calendar.YEAR); in Test3860() 196 gotEra = cal2.get(Calendar.ERA); in Test3860()
|
D | CalendarRegression.java | 107 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502() local 108 cal2.clear(); in Test4031502() 109 cal2.set(1900, 15, 5, 5, 8, 13); in Test4031502() 110 cal2.get(Calendar.HOUR); in Test4031502() 113 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 114 … cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 117 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 470 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); in Test4092362() local 477 logln( " Cal2 = " + cal2.getTime().getTime() ); in Test4092362() 478 logln( " Cal2 time in ms = " + cal2.get(Calendar.MILLISECOND) ); in Test4092362() [all …]
|
D | IBMCalendarTest.java | 1224 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local 1226 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1227 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1229 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1230 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1232 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1233 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1235 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs() 1236 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs() 1732 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local [all …]
|
D | DangiTest.java | 392 DangiCalendar cal2 = new DangiCalendar(d); in TestCoverage() local 397 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2); in TestCoverage()
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | CalendarTest.java | 25 Calendar cal2 = Calendar.getInstance(); in testHashCode() local 30 cal2.setTimeInMillis(t); in testHashCode() 34 testEHCS(cal1, cal2, cal3); in testHashCode() 247 Calendar cal2 = Calendar.getInstance(); in testIsEquivalentTo() local 248 cal2.set(1994, 6, 21, 8, 7); in testIsEquivalentTo() 249 assertTrue(cal.isEquivalentTo(cal2)); in testIsEquivalentTo() 251 cal2.setTimeZone(TimeZone.getTimeZone("PDT")); in testIsEquivalentTo() 252 assertFalse(cal.isEquivalentTo(cal2)); in testIsEquivalentTo()
|
/external/icu/icu4c/source/samples/dtitvfmtsample/ |
D | dtitvfmtsample.cpp | 96 Calendar *cal2 = Calendar::createInstance(status); in dtitvfmtCustomized() local 97 cal2->set(2007,10,10,10,10,10); in dtitvfmtCustomized() 101 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized() 102 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 618 Calendar cal2 = Calendar.getInstance(); in TestRuleAPI() local 619 cal2.set(1990, Calendar.JUNE, 1); in TestRuleAPI() 621 cal2.getTimeInMillis(), marchOne); in TestRuleAPI() 623 cal2.set(1990, Calendar.DECEMBER, 31); in TestRuleAPI() 625 cal2.getTimeInMillis(), julyOne); in TestRuleAPI()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 614 Calendar cal2 = Calendar.getInstance(); in TestRuleAPI() local 615 cal2.set(1990, Calendar.JUNE, 1); in TestRuleAPI() 617 cal2.getTimeInMillis(), marchOne); in TestRuleAPI() 619 cal2.set(1990, Calendar.DECEMBER, 31); in TestRuleAPI() 621 cal2.getTimeInMillis(), julyOne); in TestRuleAPI()
|
/external/icu/icu4c/source/i18n/ |
D | ucal.cpp | 434 const UCalendar* cal2) in ucal_equivalentTo() argument 437 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | ucal.h | 1072 const UCalendar* cal2);
|