Home
last modified time | relevance | path

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

/external/chromium_org/third_party/icu/source/test/intltest/
Dincaltst.cpp497 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 …]
Dastrotst.cpp271 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 …]
Dcaltest.cpp291 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
294 cal2->setTime(when, status); in TestGenericAPI()
297 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
298 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
299 if (!cal->equals(*cal2, status) || in TestGenericAPI()
300 cal->before(*cal2, status) || in TestGenericAPI()
301 cal->after(*cal2, status) || in TestGenericAPI()
305 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
307 cal2->setTime(when + 1000, status); in TestGenericAPI()
308 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
[all …]
Dcalregts.cpp183 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local
186 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
190 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
192 delete cal2; in test4028518()
771 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362() local
779 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) ); in test4092362()
780 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) ); in test4092362()
781 if( *cal1 != *cal2 ) in test4092362()
785 delete cal2; in test4092362()
837 Calendar *cal2 = new GregorianCalendar(*GMT,status); in test4096231() local
[all …]
/external/icu4c/test/intltest/
Dincaltst.cpp497 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 …]
Dastrotst.cpp271 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 …]
Dcaltest.cpp341 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 …]
Dcalregts.cpp188 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/
DDateFormatTest.java67 Calendar cal2 = format.getCalendar(); in test_getCalendar() local
68 assertTrue("Calendars not identical", cal1 == cal2); in test_getCalendar()
/external/chromium_org/third_party/icu/source/i18n/
Ducal.cpp385 const UCalendar* cal2) in ucal_equivalentTo() argument
388 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Ducal.h951 const UCalendar* cal2);
/external/icu4c/i18n/
Ducal.cpp434 const UCalendar* cal2) in ucal_equivalentTo() argument
437 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
/external/icu4c/i18n/unicode/
Ducal.h1074 const UCalendar* cal2);