Lines Matching refs:testCal

986     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()
1034 testCal->setFirstDayOfWeek(UCAL_SUNDAY); in test4103271()
1038 testCal->setMinimalDaysInFirstWeek((uint8_t)DATA[j]); in test4103271()
1039 testCal->set(1997, UCAL_DECEMBER, 21); in test4103271()
1041 int32_t woy = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1043 log(UnicodeString("") + sdf.format(testCal->getTime(status), str) + in test4103271()
1053 UDate save = testCal->getTime(status); in test4103271()
1054 testCal->clear(); in test4103271()
1055 testCal->set(UCAL_YEAR_WOY, DATA[j+1+i] < 25 ? 1998 : 1997); in test4103271()
1056 testCal->set(UCAL_WEEK_OF_YEAR, DATA[j+1+i]); in test4103271()
1057 testCal->set(UCAL_DAY_OF_WEEK, (i%7) + UCAL_SUNDAY); in test4103271()
1058 if (testCal->getTime(status) != save) { in test4103271()
1061 sdf.format(testCal->getTime(status), str)); in test4103271()
1065 testCal->setTime(save,status); in test4103271()
1066 testCal->add(UCAL_DATE, 1,status); in test4103271()
1086 testCal->setMinimalDaysInFirstWeek(3); in test4103271()
1087 testCal->setFirstDayOfWeek(UCAL_SUNDAY); in test4103271()
1118 testCal->clear(); in test4103271()
1119 testCal->set(UCAL_YEAR, y); in test4103271()
1120 testCal->set(UCAL_WEEK_OF_YEAR, woy); in test4103271()
1121 testCal->set(UCAL_DAY_OF_WEEK, dow); in test4103271()
1122 UDate got = testCal->getTime(status); in test4103271()
1130 logln(CalendarTest::calToStr(*testCal)); in test4103271()
1131 testCal->setTime(exp, status); in test4103271()
1132 logln(CalendarTest::calToStr(*testCal) + UnicodeString( " <<< expected ")); in test4103271()
1137 testCal->clear(); in test4103271()
1138 testCal->set(UCAL_YEAR_WOY, ywoy); in test4103271()
1139 testCal->set(UCAL_WEEK_OF_YEAR, woy); in test4103271()
1140 testCal->set(UCAL_DAY_OF_WEEK, dow); in test4103271()
1141 got = testCal->getTime(status); in test4103271()
1176 testCal->setMinimalDaysInFirstWeek(3); in test4103271()
1177 testCal->setFirstDayOfWeek(UCAL_SUNDAY); in test4103271()
1183 testCal->setTime(before,status); in test4103271()
1185 testCal->add(UCAL_WEEK_OF_YEAR, amount,status); in test4103271()
1187 testCal->roll(UCAL_WEEK_OF_YEAR, amount,status); in test4103271()
1188 UDate got = testCal->getTime(status); in test4103271()
1206 testCal->setTime(after,status); in test4103271()
1208 testCal->add(UCAL_WEEK_OF_YEAR, -amount,status); in test4103271()
1210 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status); in test4103271()
1211 got = testCal->getTime(status); in test4103271()