Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegressionTest.java185 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314() local
203 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
207 testCal.setTime(new Date(t)); in Test4109314()
208 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
216 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314() argument
226 int millis = testCal.get(Calendar.MILLISECOND) + in checkCalendar314()
227 1000 * (testCal.get(Calendar.SECOND) + in checkCalendar314()
228 60 * (testCal.get(Calendar.MINUTE) + in checkCalendar314()
229 60 * (testCal.get(Calendar.HOUR_OF_DAY)))) - in checkCalendar314()
230 testCal.get(Calendar.DST_OFFSET); in checkCalendar314()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegressionTest.java184 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314() local
202 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
206 testCal.setTime(new Date(t)); in Test4109314()
207 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
215 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314() argument
225 int millis = testCal.get(Calendar.MILLISECOND) + in checkCalendar314()
226 1000 * (testCal.get(Calendar.SECOND) + in checkCalendar314()
227 60 * (testCal.get(Calendar.MINUTE) + in checkCalendar314()
228 60 * (testCal.get(Calendar.HOUR_OF_DAY)))) - in checkCalendar314()
229 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.cpp988 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in test4103271() local
991 delete testCal; in test4103271()
994 testCal->clear(); in test4103271()
995 sdf.adoptCalendar(testCal); in test4103271()
1000 testCal->setMinimalDaysInFirstWeek((uint8_t)minDays); in test4103271()
1001 testCal->setFirstDayOfWeek((UCalendarDaysOfWeek)firstDay); in test4103271()
1008 testCal->set(j,11,25); in test4103271()
1010 testCal->add(UCAL_DATE,1,status); in test4103271()
1012 int32_t actWOY = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1014 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.java597 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4103271() local
598 testCal.clear(); in Test4103271()
599 sdf.setCalendar(testCal); in Test4103271()
604 testCal.setMinimalDaysInFirstWeek(minDays); in Test4103271()
605 testCal.setFirstDayOfWeek(firstDay); in Test4103271()
612 testCal.set(j,11,25); in Test4103271()
614 testCal.add(Calendar.DATE,1); in Test4103271()
616 int actWOY = testCal.get(Calendar.WEEK_OF_YEAR); in Test4103271()
618 Date d = testCal.getTime(); in Test4103271()
638 testCal.setFirstDayOfWeek(Calendar.SUNDAY); in Test4103271()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java596 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4103271() local
597 testCal.clear(); in Test4103271()
598 sdf.setCalendar(testCal); in Test4103271()
603 testCal.setMinimalDaysInFirstWeek(minDays); in Test4103271()
604 testCal.setFirstDayOfWeek(firstDay); in Test4103271()
611 testCal.set(j,11,25); in Test4103271()
613 testCal.add(Calendar.DATE,1); in Test4103271()
615 int actWOY = testCal.get(Calendar.WEEK_OF_YEAR); in Test4103271()
617 Date d = testCal.getTime(); in Test4103271()
637 testCal.setFirstDayOfWeek(Calendar.SUNDAY); in Test4103271()
[all …]