Home
last modified time | relevance | path

Searched refs:testCal (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegressionTest.java187 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314() local
205 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
209 testCal.setTime(new Date(t)); in Test4109314()
210 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
218 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314() argument
228 int millis = testCal.get(Calendar.MILLISECOND) + in checkCalendar314()
229 1000 * (testCal.get(Calendar.SECOND) + in checkCalendar314()
230 60 * (testCal.get(Calendar.MINUTE) + in checkCalendar314()
231 60 * (testCal.get(Calendar.HOUR_OF_DAY)))) - in checkCalendar314()
232 testCal.get(Calendar.DST_OFFSET); in checkCalendar314()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegressionTest.java190 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314() local
208 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
212 testCal.setTime(new Date(t)); in Test4109314()
213 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
221 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314() argument
231 int millis = testCal.get(Calendar.MILLISECOND) + in checkCalendar314()
232 1000 * (testCal.get(Calendar.SECOND) + in checkCalendar314()
233 60 * (testCal.get(Calendar.MINUTE) + in checkCalendar314()
234 60 * (testCal.get(Calendar.HOUR_OF_DAY)))) - in checkCalendar314()
235 testCal.get(Calendar.DST_OFFSET); in checkCalendar314()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtzregts.cpp313 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in Test4109314() local
316 delete testCal; in Test4109314()
334 testCal->setTimeZone(*PST); in Test4109314()
337 while(testCal->getTime(status) < end) { in Test4109314()
338 testCal->setTime(t, status); in Test4109314()
339 if ( ! checkCalendar314(testCal, PST)) in Test4109314()
347 delete testCal; in Test4109314()
352 TimeZoneRegressionTest::checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ) in checkCalendar314() argument
362 UDate millis = testCal->get(UCAL_MILLISECOND, status) + in checkCalendar314()
363 1000.0 * (testCal->get(UCAL_SECOND, status) + in checkCalendar314()
[all …]
Dcalregts.cpp995 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in test4103271() local
998 delete testCal; in test4103271()
1001 testCal->clear(); in test4103271()
1002 sdf.adoptCalendar(testCal); in test4103271()
1007 testCal->setMinimalDaysInFirstWeek((uint8_t)minDays); in test4103271()
1008 testCal->setFirstDayOfWeek((UCalendarDaysOfWeek)firstDay); in test4103271()
1015 testCal->set(j,11,25); in test4103271()
1017 testCal->add(UCAL_DATE,1,status); in test4103271()
1019 int32_t actWOY = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1021 UDate d = testCal->getTime(status); in test4103271()
[all …]
Dtzregts.h51 UBool checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegressionTest.java606 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4103271() local
607 testCal.clear(); in Test4103271()
608 sdf.setCalendar(testCal); in Test4103271()
613 testCal.setMinimalDaysInFirstWeek(minDays); in Test4103271()
614 testCal.setFirstDayOfWeek(firstDay); in Test4103271()
621 testCal.set(j,11,25); in Test4103271()
623 testCal.add(Calendar.DATE,1); in Test4103271()
625 int actWOY = testCal.get(Calendar.WEEK_OF_YEAR); in Test4103271()
627 Date d = testCal.getTime(); in Test4103271()
647 testCal.setFirstDayOfWeek(Calendar.SUNDAY); in Test4103271()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java603 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4103271() local
604 testCal.clear(); in Test4103271()
605 sdf.setCalendar(testCal); in Test4103271()
610 testCal.setMinimalDaysInFirstWeek(minDays); in Test4103271()
611 testCal.setFirstDayOfWeek(firstDay); in Test4103271()
618 testCal.set(j,11,25); in Test4103271()
620 testCal.add(Calendar.DATE,1); in Test4103271()
622 int actWOY = testCal.get(Calendar.WEEK_OF_YEAR); in Test4103271()
624 Date d = testCal.getTime(); in Test4103271()
644 testCal.setFirstDayOfWeek(Calendar.SUNDAY); in Test4103271()
[all …]