Home | History | Annotate | Download | only in intltest

Lines Matching refs:ROLL

1189             testCal->roll(UCAL_WEEK_OF_YEAR, amount,status);
1197 opTypeStr = UnicodeString("roll(WOY,", "");
1212 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status);
1329 const int32_t ROLL = 2;
1335 onset - ONE_HOUR, ROLL, 1, ONE_HOUR,
1336 onset, ROLL, -1, -ONE_HOUR,
1339 cease - ONE_HOUR, ROLL, 1, ONE_HOUR,
1340 cease, ROLL, -1, -ONE_HOUR,
1356 case ROLL:
1357 log(UnicodeString(" roll(HOUR,") + (amt<0?"":"+")+amt + ")= ");
1358 cal->roll(UCAL_HOUR, amt,status);
1372 if (fail) errln("Fail: roll/add misbehaves around DST onset/cease");
1534 * Bug states that ArrayIndexOutOfBoundsException is thrown by GregorianCalendar::roll()
1547 calendar->roll((UCalendarDateFields)-1, TRUE, status);
2030 enum Action { ADD=1, ROLL=2 };
2038 int8_t actionMask; // ADD or ROLL or both
2169 #define ADD_ROLL ADD|ROLL
2175 { UCAL_WEEK_OF_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2176 { UCAL_DATE, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2177 { UCAL_DATE, ROLL, PLUS, -6, -ONE_DAY, +14*ONE_DAY },
2178 { UCAL_DATE, ROLL, PLUS, -7, 0, +14*ONE_DAY },
2179 { UCAL_DATE, ROLL, PLUS, -7, +ONE_DAY, +15*ONE_DAY },
2180 { UCAL_DATE, ROLL, PLUS, +18, -ONE_DAY, -4*ONE_DAY },
2181 { UCAL_DAY_OF_YEAR, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2182 { UCAL_DAY_OF_WEEK, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY },
2183 { UCAL_DAY_OF_WEEK_IN_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY },
2191 // Uncomment these lines when add/roll supported on these fields.
2192 // { Calendar::YEAR_WOY, ADD|ROLL, 1, -ONE_DAY, +6*ONE_DAY },
2193 // { Calendar::DOW_LOCAL, ADD|ROLL, 2, -ONE_DAY, +1*ONE_DAY }
2199 for (Action action=ADD; action<=ROLL; action=(Action)(action+1)) {
2221 cal.roll(DATA[i].field, amount, status);
2225 (action==ADD?"add ":"roll ") + FIELD_NAME[DATA[i].field] +
2238 (action==ADD?") add ":") roll ") +
2246 (action==ADD?") add ":") roll ") +
2737 dataerrln("Couldn't create calendars for roll of HOUR: %s", u_errorName(status));
2745 c1->roll(Calendar::HOUR,(int32_t)3,status);
2746 c2->roll(UCAL_HOUR,(int32_t)3,status);
2749 errln("Error code when trying to roll");
2751 errln("roll(EDateField, int32_t) had different effect than roll(UCalendarField, int32_t)");
2755 c1->roll(Calendar::HOUR,(UBool)FALSE,status);
2756 c2->roll(UCAL_HOUR,(UBool)FALSE,status);
2759 errln("Error code when trying to roll(UBool)");
2761 errln("roll(EDateField, UBool) had different effect than roll(UCalendarField, UBool)");