Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java179 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314() local
197 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
201 testCal.setTime(new Date(t)); in Test4109314()
202 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
210 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314() argument
220 int millis = testCal.get(Calendar.MILLISECOND) + in checkCalendar314()
221 1000 * (testCal.get(Calendar.SECOND) + in checkCalendar314()
222 60 * (testCal.get(Calendar.MINUTE) + in checkCalendar314()
223 60 * (testCal.get(Calendar.HOUR_OF_DAY)))) - in checkCalendar314()
224 testCal.get(Calendar.DST_OFFSET); in checkCalendar314()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtzregts.cpp311 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in Test4109314() local
314 delete testCal; in Test4109314()
332 testCal->setTimeZone(*PST); in Test4109314()
335 while(testCal->getTime(status) < end) { in Test4109314()
336 testCal->setTime(t, status); in Test4109314()
337 if ( ! checkCalendar314(testCal, PST)) in Test4109314()
345 delete testCal; in Test4109314()
350 TimeZoneRegressionTest::checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ) in checkCalendar314() argument
360 UDate millis = testCal->get(UCAL_MILLISECOND, status) + in checkCalendar314()
361 1000.0 * (testCal->get(UCAL_SECOND, status) + in checkCalendar314()
[all …]
Dcalregts.cpp986 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in test4103271() local
989 delete testCal; in test4103271()
992 testCal->clear(); in test4103271()
993 sdf.adoptCalendar(testCal); in test4103271()
998 testCal->setMinimalDaysInFirstWeek((uint8_t)minDays); in test4103271()
999 testCal->setFirstDayOfWeek((UCalendarDaysOfWeek)firstDay); in test4103271()
1006 testCal->set(j,11,25); in test4103271()
1008 testCal->add(UCAL_DATE,1,status); in test4103271()
1010 int32_t actWOY = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1012 UDate d = testCal->getTime(status); in test4103271()
[all …]
Dtzregts.h49 UBool checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegression.java578 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4103271() local
579 testCal.clear(); in Test4103271()
580 sdf.setCalendar(testCal); in Test4103271()
585 testCal.setMinimalDaysInFirstWeek(minDays); in Test4103271()
586 testCal.setFirstDayOfWeek(firstDay); in Test4103271()
593 testCal.set(j,11,25); in Test4103271()
595 testCal.add(Calendar.DATE,1); in Test4103271()
597 int actWOY = testCal.get(Calendar.WEEK_OF_YEAR); in Test4103271()
599 Date d = testCal.getTime(); in Test4103271()
619 testCal.setFirstDayOfWeek(Calendar.SUNDAY); in Test4103271()
[all …]