Searched refs:cal2 (Results 1 – 7 of 7) sorted by relevance
/external/icu4c/test/intltest/ |
D | incaltst.cpp | 497 Calendar *cal2 = cal->clone(); in TestJapaneseFormat() local 524 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat() 526 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat() 555 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat() 558 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat() 565 delete cal2; in TestJapaneseFormat() 621 Calendar *cal2 = cal->clone(); in TestJapanese3860() local 639 cal2->clear(); in TestJapanese3860() 644 fmt->parse(samplestr, *cal2, pp); in TestJapanese3860() 651 cal2->setTime(aDate, s2); in TestJapanese3860() [all …]
|
D | astrotst.cpp | 271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local 298 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes() 299 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes() 300 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes() 302 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 303 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes() 304 UDate exprise = cal2->getTime(status); in TestSunriseTimes() 305 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 306 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes() 307 UDate expset = cal2->getTime(status); in TestSunriseTimes() [all …]
|
D | caltest.cpp | 341 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local 344 cal2->setTime(when, status); in TestGenericAPI() 347 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI() 348 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI() 349 if (!cal->equals(*cal2, status) || in TestGenericAPI() 350 cal->before(*cal2, status) || in TestGenericAPI() 351 cal->after(*cal2, status) || in TestGenericAPI() 355 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI() 357 cal2->setTime(when + 1000, status); in TestGenericAPI() 358 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)); in Test9019() local 208 cal2->set(UCAL_HOUR,2); in Test9019() 210 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/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | DateFormatTest.java | 67 Calendar cal2 = format.getCalendar(); in test_getCalendar() local 68 assertTrue("Calendars not identical", cal1 == cal2); in test_getCalendar()
|
/external/icu4c/i18n/ |
D | ucal.cpp | 419 const UCalendar* cal2) in ucal_equivalentTo() argument 422 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
|
/external/icu4c/i18n/unicode/ |
D | ucal.h | 1062 const UCalendar* cal2);
|