Lines Matching refs:max
1140 int max = getMaximum(field);
1158 int unit = max + 1; // 12 or 24 hours
1238 max = getActualMaximum(WEEK_OF_YEAR);
1243 // If the new value is in between min and max
1245 if (value > min && value < max) {
1256 // Make sure the same thing for the max week
1257 fd += 7 * (max - internalGet(WEEK_OF_YEAR));
1259 max--;
1280 // Make sure the same thing for the max week
1281 fd += 7 * (max - woy);
1284 max--;
1288 value = getRolledValue(woy, amount, min, max) - 1;
1323 max = getActualMaximum(field);
1326 int value = getRolledValue(internalGet(field), amount, 1, max) - 1;
1354 max = calsys.getMonthLength(cdate);
1373 max = getActualMaximum(field);
1381 int value = getRolledValue((int)(fd - jan1) + 1, amount, min, max);
1396 max = SATURDAY;
1430 max = monthLength / 7;
1433 max++;
1444 max = monthLength / 7;
1447 max++;
1449 int value = getRolledValue(internalGet(field), amount, min, max) - 1;
1459 set(field, getRolledValue(internalGet(field), amount, min, max));
1527 return Math.max(MAX_VALUES[field], Math.max(v1, v2));
1557 return Math.max(MIN_VALUES[field], d.getDayOfMonth());
1884 // of the year of this calendar and adjust the max
1885 // year value if we are beyond the limit in the max
2205 // Use the 2nd week for calculating the max of WEEK_OF_YEAR
3145 private static final int getRolledValue(int value, int amount, int min, int max) {
3146 assert value >= min && value <= max;
3147 int range = max - min + 1;
3150 if (n > max) {
3155 assert n >= min && n <= max;