/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | AstroTest.java | 248 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes() local 265 cal2.setTime(cal.getTime()); in TestSunriseTimes() 266 cal2.set(Calendar.SECOND, 0); in TestSunriseTimes() 267 cal2.set(Calendar.MILLISECOND, 0); in TestSunriseTimes() 269 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 270 cal2.set(Calendar.MINUTE, USNO[4*i+1]); in TestSunriseTimes() 271 Date exprise = cal2.getTime(); in TestSunriseTimes() 272 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 273 cal2.set(Calendar.MINUTE, USNO[4*i+3]); in TestSunriseTimes() 274 Date expset = cal2.getTime(); in TestSunriseTimes()
|
D | CompatibilityTest.java | 285 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); in TestGenericAPI() local 288 cal2.setTime(when); in TestGenericAPI() 290 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed"); in TestGenericAPI() 292 if (!cal.equals(cal2) || in TestGenericAPI() 293 cal.before(cal2) || in TestGenericAPI() 294 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() 296 cal2.setTime(new Date(when.getTime() + 1000)); in TestGenericAPI() 297 if (cal.equals(cal2) || in TestGenericAPI() 298 cal2.before(cal) || in TestGenericAPI() 299 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() [all …]
|
D | JapaneseTest.java | 179 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local 182 cal2.clear(); in Test3860() 191 fmt.parse(samplestr, cal2, pp); in Test3860() 196 cal2.setTime(aDate); in Test3860() 197 gotYear = cal2.get(Calendar.YEAR); in Test3860() 198 gotEra = cal2.get(Calendar.ERA); in Test3860()
|
D | CalendarRegressionTest.java | 111 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502() local 112 cal2.clear(); in Test4031502() 113 cal2.set(1900, 15, 5, 5, 8, 13); in Test4031502() 114 cal2.get(Calendar.HOUR); in Test4031502() 117 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 118 … cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 121 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 486 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); in Test4092362() local 493 logln( " Cal2 = " + cal2.getTime().getTime() ); in Test4092362() 494 logln( " Cal2 time in ms = " + cal2.get(Calendar.MILLISECOND) ); in Test4092362() [all …]
|
D | IBMCalendarTest.java | 1261 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local 1263 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1264 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1266 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1267 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1269 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1270 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1272 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs() 1273 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs() 1774 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local [all …]
|
D | DangiTest.java | 398 DangiCalendar cal2 = new DangiCalendar(d); in TestCoverage() local 403 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2); in TestCoverage()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | AstroTest.java | 251 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes() local 268 cal2.setTime(cal.getTime()); in TestSunriseTimes() 269 cal2.set(Calendar.SECOND, 0); in TestSunriseTimes() 270 cal2.set(Calendar.MILLISECOND, 0); in TestSunriseTimes() 272 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 273 cal2.set(Calendar.MINUTE, USNO[4*i+1]); in TestSunriseTimes() 274 Date exprise = cal2.getTime(); in TestSunriseTimes() 275 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 276 cal2.set(Calendar.MINUTE, USNO[4*i+3]); in TestSunriseTimes() 277 Date expset = cal2.getTime(); in TestSunriseTimes()
|
D | CompatibilityTest.java | 288 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); in TestGenericAPI() local 291 cal2.setTime(when); in TestGenericAPI() 293 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed"); in TestGenericAPI() 295 if (!cal.equals(cal2) || in TestGenericAPI() 296 cal.before(cal2) || in TestGenericAPI() 297 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() 299 cal2.setTime(new Date(when.getTime() + 1000)); in TestGenericAPI() 300 if (cal.equals(cal2) || in TestGenericAPI() 301 cal2.before(cal) || in TestGenericAPI() 302 cal.after(cal2)) errln("FAIL: equals/before/after failed"); in TestGenericAPI() [all …]
|
D | JapaneseTest.java | 182 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local 185 cal2.clear(); in Test3860() 194 fmt.parse(samplestr, cal2, pp); in Test3860() 199 cal2.setTime(aDate); in Test3860() 200 gotYear = cal2.get(Calendar.YEAR); in Test3860() 201 gotEra = cal2.get(Calendar.ERA); in Test3860()
|
D | CalendarRegressionTest.java | 114 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502() local 115 cal2.clear(); in Test4031502() 116 cal2.set(1900, 15, 5, 5, 8, 13); in Test4031502() 117 cal2.get(Calendar.HOUR); in Test4031502() 120 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 121 … cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 124 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 489 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); in Test4092362() local 496 logln( " Cal2 = " + cal2.getTime().getTime() ); in Test4092362() 497 logln( " Cal2 time in ms = " + cal2.get(Calendar.MILLISECOND) ); in Test4092362() [all …]
|
D | IBMCalendarTest.java | 1264 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local 1266 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1267 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1269 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1270 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs() 1272 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs() 1273 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs() 1275 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs() 1276 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs() 1777 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local [all …]
|
D | DangiTest.java | 401 DangiCalendar cal2 = new DangiCalendar(d); in TestCoverage() local 406 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2); in TestCoverage()
|
/external/icu/icu4c/source/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 | 272 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local 299 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes() 300 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes() 301 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes() 303 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes() 304 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes() 305 UDate exprise = cal2->getTime(status); in TestSunriseTimes() 306 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes() 307 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes() 308 UDate expset = cal2->getTime(status); in TestSunriseTimes() [all …]
|
D | caltest.cpp | 398 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local 401 cal2->setTime(when, status); in TestGenericAPI() 404 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI() 405 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI() 406 if (!cal->equals(*cal2, status) || in TestGenericAPI() 407 cal->before(*cal2, status) || in TestGenericAPI() 408 cal->after(*cal2, status) || in TestGenericAPI() 412 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI() 414 cal2->setTime(when + 1000, status); in TestGenericAPI() 415 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI() [all …]
|
D | calregts.cpp | 196 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local 199 printdate(cal2, "cal2 - cloned(): ") ; in test4028518() 203 printdate(cal2, "cal2 should be unmodified:") ; in test4028518() 205 delete cal2; in test4028518() 214 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019() local 220 cal2->set(UCAL_HOUR,2); in Test9019() 222 cal2->clear(); in Test9019() 225 cal2->set(2012,UCAL_JANUARY,06); in Test9019() 231 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019() 233 if(!cal1->equals(*cal2,status)) { in Test9019() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | CalendarTest.java | 27 Calendar cal2 = Calendar.getInstance(); in testHashCode() local 32 cal2.setTimeInMillis(t); in testHashCode() 36 testEHCS(cal1, cal2, cal3); in testHashCode() 249 Calendar cal2 = Calendar.getInstance(); in testIsEquivalentTo() local 250 cal2.set(1994, 6, 21, 8, 7); in testIsEquivalentTo() 251 assertTrue(cal.isEquivalentTo(cal2)); in testIsEquivalentTo() 253 cal2.setTimeZone(TimeZone.getTimeZone("PDT")); in testIsEquivalentTo() 254 assertFalse(cal.isEquivalentTo(cal2)); in testIsEquivalentTo()
|
/external/icu/icu4c/source/samples/dtitvfmtsample/ |
D | dtitvfmtsample.cpp | 99 Calendar *cal2 = Calendar::createInstance(status); in dtitvfmtCustomized() local 100 cal2->set(2007,10,10,10,10,10); in dtitvfmtCustomized() 104 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized() 105 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
|
/external/icu/icu4c/source/i18n/ |
D | ucal.cpp | 437 const UCalendar* cal2) in ucal_equivalentTo() argument 440 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 611 Calendar cal2 = Calendar.getInstance(); in TestRuleAPI() local 612 cal2.set(1990, Calendar.JUNE, 1); in TestRuleAPI() 614 cal2.getTimeInMillis(), marchOne); in TestRuleAPI() 616 cal2.set(1990, Calendar.DECEMBER, 31); in TestRuleAPI() 618 cal2.getTimeInMillis(), julyOne); in TestRuleAPI()
|
/external/icu/android_icu4j/src/main/tests/android/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/unicode/ |
D | ucal.h | 1089 const UCalendar* cal2);
|
/external/icu/libandroidicu/include/unicode/ |
D | ucal.h | 1089 const UCalendar* cal2);
|
/external/icu/libandroidicu/static_shim/ |
D | shim.cpp | 748 UBool ucal_equivalentTo_android(const UCalendar * cal1, const UCalendar * cal2) { in ucal_equivalentTo_android() argument 749 return ucal_equivalentTo(cal1, cal2); in ucal_equivalentTo_android()
|