Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java248 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()
DCompatibilityTest.java285 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 …]
DJapaneseTest.java184 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local
187 cal2.clear(); in Test3860()
196 fmt.parse(samplestr, cal2, pp); in Test3860()
201 cal2.setTime(aDate); in Test3860()
202 gotYear = cal2.get(Calendar.YEAR); in Test3860()
203 gotEra = cal2.get(Calendar.ERA); in Test3860()
DCalendarRegressionTest.java111 …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()
118cal2.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 …]
DIBMCalendarTest.java1262 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local
1264 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs()
1265 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs()
1267 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
1268 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
1270 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs()
1271 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs()
1273 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs()
1274 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs()
1775 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local
[all …]
DDangiTest.java398 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/
DAstroTest.java251 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()
DCompatibilityTest.java288 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 …]
DJapaneseTest.java187 Calendar cal2 = new JapaneseCalendar(loc); in Test3860() local
190 cal2.clear(); in Test3860()
199 fmt.parse(samplestr, cal2, pp); in Test3860()
204 cal2.setTime(aDate); in Test3860()
205 gotYear = cal2.get(Calendar.YEAR); in Test3860()
206 gotEra = cal2.get(Calendar.ERA); in Test3860()
DCalendarRegressionTest.java114 …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()
121cal2.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 …]
DIBMCalendarTest.java1265 Calendar cal2 = (Calendar)cal.clone(); in TestAmbiguousWallTimeAPIs() local
1267 assertTrue("Equality", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs()
1268 assertTrue("Hash code", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs()
1270 cal2.setRepeatedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
1271 cal2.setSkippedWallTimeOption(Calendar.WALLTIME_FIRST); in TestAmbiguousWallTimeAPIs()
1273 assertFalse("Equality after mod", cal2.equals(cal)); in TestAmbiguousWallTimeAPIs()
1274 assertFalse("Hash code after mod", cal.hashCode() == cal2.hashCode()); in TestAmbiguousWallTimeAPIs()
1276 …assertEquals("getRepeatedWallTimeOption after mod", cal2.getRepeatedWallTimeOption(), Calendar.WAL… in TestAmbiguousWallTimeAPIs()
1277 …assertEquals("getSkippedWallTimeOption after mod", cal2.getSkippedWallTimeOption(), Calendar.WALLT… in TestAmbiguousWallTimeAPIs()
1778 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); in TestWeekData() local
[all …]
DDangiTest.java401 DangiCalendar cal2 = new DangiCalendar(d); in TestCoverage() local
406 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2); in TestCoverage()
/external/icu/icu4c/source/test/intltest/
Dastrotst.cpp277 GregorianCalendar cal2(tz.clone(), Locale::getUS(), status); in TestSunriseTimes() local
305 cal2.setTime(cal.getTime(status), status); in TestSunriseTimes()
306 cal2.set(UCAL_SECOND, 0); in TestSunriseTimes()
307 cal2.set(UCAL_MILLISECOND, 0); in TestSunriseTimes()
309 cal2.set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes()
310 cal2.set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes()
311 UDate exprise = cal2.getTime(status); in TestSunriseTimes()
312 cal2.set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes()
313 cal2.set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes()
314 UDate expset = cal2.getTime(status); in TestSunriseTimes()
Dincaltst.cpp517 LocalPointer<Calendar> cal2(cal->clone()); in TestJapaneseFormat() local
540 fmt.parse(expected, *cal2, pp); in TestJapaneseFormat()
542 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
566 fmti.parse(expected, *cal2, pp); in TestJapaneseFormat()
569 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
637 LocalPointer<Calendar> cal2(cal->clone()); in TestJapanese3860() local
651 cal2->clear(); in TestJapanese3860()
656 fmt.parse(samplestr, *cal2, pp); in TestJapanese3860()
663 cal2->setTime(aDate, s2); in TestJapanese3860()
664 int32_t gotYear = cal2->get(UCAL_YEAR, s2); in TestJapanese3860()
[all …]
Dcaltest.cpp415 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
418 cal2->setTime(when, status); in TestGenericAPI()
421 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
422 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
423 if (!cal->equals(*cal2, status) || in TestGenericAPI()
424 cal->before(*cal2, status) || in TestGenericAPI()
425 cal->after(*cal2, status) || in TestGenericAPI()
429 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
431 cal2->setTime(when + 1000, status); in TestGenericAPI()
432 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
[all …]
Dcalregts.cpp197 GregorianCalendar *cal2 = cal1->clone() ; in test4028518() local
200 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
204 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
206 delete cal2; in test4028518()
215 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019() local
221 cal2->set(UCAL_HOUR,2); in Test9019()
223 cal2->clear(); in Test9019()
226 cal2->set(2012,UCAL_JANUARY,06); in Test9019()
232 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019()
234 if(!cal1->equals(*cal2,status)) { in Test9019()
[all …]
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp99 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/llvm-project/llvm/test/CodeGen/BPF/
Dremove_truncate_6.ll15 ; void cal2(unsigned short *a, unsigned int *b, unsigned int k)
55 define dso_local void @cal2(i16* nocapture readonly %a, i32* nocapture %b, i32 %k) local_unnamed_ad…
/external/icu/libicu/cts_headers/unicode/
Ducal.h1134 const UCalendar* cal2);
/external/icu/libandroidicu/include/unicode/
Ducal.h1134 const UCalendar* cal2);
/external/icu/icu4c/source/i18n/unicode/
Ducal.h1134 const UCalendar* cal2);
/external/icu/icu4c/source/i18n/
Ducal.cpp461 const UCalendar* cal2) in ucal_equivalentTo() argument
464 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java613 Calendar cal2 = Calendar.getInstance(); in TestRuleAPI() local
614 cal2.set(1990, Calendar.JUNE, 1); in TestRuleAPI()
616 cal2.getTimeInMillis(), marchOne); in TestRuleAPI()
618 cal2.set(1990, Calendar.DECEMBER, 31); in TestRuleAPI()
620 cal2.getTimeInMillis(), julyOne); in TestRuleAPI()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneTest.java616 Calendar cal2 = Calendar.getInstance(); in TestRuleAPI() local
617 cal2.set(1990, Calendar.JUNE, 1); in TestRuleAPI()
619 cal2.getTimeInMillis(), marchOne); in TestRuleAPI()
621 cal2.set(1990, Calendar.DECEMBER, 31); in TestRuleAPI()
623 cal2.getTimeInMillis(), julyOne); in TestRuleAPI()