/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() + YEARS_AHEAD * 12L); in test_range() 55 ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD); in test_range() 60 ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD); in test_range() 107 assertEquals(ValueRange.of(1, ChronoField.YEAR.range().getMaximum() + YEARS_AHEAD), in test_ThaiBuddhistDate_range_yeaOfEra()
|
D | MinguoChronologyTest.java | 48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() - YEARS_BEHIND * 12L); in test_range() 53 … expected = ValueRange.of(1, ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND, in test_range() 59 ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND); in test_range() 105 assertEquals(ValueRange.of(1, ChronoField.YEAR.range().getMaximum() - YEARS_BEHIND), in test_MinguoDate_range_yeaOfEra()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ValueRange.java | 252 public long getMaximum() { in getMaximum() method in ValueRange 270 return getMinimum() >= Integer.MIN_VALUE && getMaximum() <= Integer.MAX_VALUE; in isIntValue() 282 return (value >= getMinimum() && value <= getMaximum()); in isValidValue()
|
D | TemporalAdjusters.java | 189 return (temporal) -> temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in lastDayOfMonth() 251 return (temporal) -> temporal.with(DAY_OF_YEAR, temporal.range(DAY_OF_YEAR).getMaximum()); in lastDayOfYear() 359 … Temporal temp = temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in dayOfWeekInMonth()
|
D | WeekFields.java | 819 int yearLen = (int)dayRange.getMaximum(); in localizedWeekBasedYear() 852 int yearLen = (int)dayRange.getMaximum(); in localizedWeekOfWeekBasedYear() 1117 computeWeek(offset, (int) fieldRange.getMaximum())); in rangeByWeek() 1142 int yearLen = (int)dayRange.getMaximum(); in rangeWeekOfWeekBasedYear()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKJapaneseEra.java | 117 assertEquals(era.range(ERA).getSmallestMaximum(), era.range(ERA).getMaximum()); in test_range() 118 assertEquals(era.range(ERA).getMaximum() >= 2, true); in test_range()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeValueRange.java | 98 assertEquals(test.getMaximum(), 12); in test_of_longlong() 108 assertEquals(test.getMaximum(), 123456789012345L); in test_of_longlong_big() 126 assertEquals(test.getMaximum(), 31); in test_of_longlonglong() 165 assertEquals(test.getMaximum(), lMax); in test_of_longlonglonglong()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | MinguoChronology.java | 318 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE * 12L, range.getMaximum() - YEARS_DIFFE… in range() 322 …return ValueRange.of(1, range.getMaximum() - YEARS_DIFFERENCE, -range.getMinimum() + 1 + YEARS_DIF… in range() 326 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE, range.getMaximum() - YEARS_DIFFERENCE); in range()
|
D | ThaiBuddhistChronology.java | 354 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE * 12L, range.getMaximum() + YEARS_DIFFE… in range() 358 …n ValueRange.of(1, -(range.getMinimum() + YEARS_DIFFERENCE) + 1, range.getMaximum() + YEARS_DIFFER… in range() 362 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE, range.getMaximum() + YEARS_DIFFERENCE); in range()
|
D | ChronoLocalDateImpl.java | 402 if (range.getMaximum() != 12) { in monthsUntil()
|
D | ThaiBuddhistDate.java | 264 …pticYear() <= 0 ? -(range.getMinimum() + YEARS_DIFFERENCE) + 1 : range.getMaximum() + YEARS_DIFFER… in range()
|
D | MinguoDate.java | 264 …lepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFFER… in range()
|
D | ChronoPeriodImpl.java | 251 return startRange.getMaximum() - startRange.getMinimum() + 1; in monthRange()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 127 assertEquals(year.getMaximum(), 1600, "Largest year"); in Test_UmmAlQuraChronoRange() 133 assertEquals(month.getMaximum(), 12, "Largest month"); in Test_UmmAlQuraChronoRange() 139 assertEquals(day.getMaximum(), 30, "Largest day"); in Test_UmmAlQuraChronoRange() 168 assertEquals(yearRange.getMaximum(), maxYear, "Maximum year for Hijrah chronology"); in Test_UmmAlQuraRanges() 173 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for Hijrah chronology"); in Test_UmmAlQuraRanges() 177 assertEquals(daysRange.getMaximum(), maxChronoDay, "Maximum day for Hijrah chronology"); in Test_UmmAlQuraRanges() 183 assertEquals(yearRange.getMaximum(), maxYear, "Maximum year for Hijrah date"); in Test_UmmAlQuraRanges() 188 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for HijrahDate"); in Test_UmmAlQuraRanges() 192 assertEquals(daysRange.getMaximum(), maxDay, "Maximum day for HijrahDate"); in Test_UmmAlQuraRanges() 216 (int)monthRange.getMaximum(), 1); in test_hijrahDateLimits() [all …]
|
D | TestJapaneseChronoImpl.java | 142 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMaximum(), cal.getActualMaximum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar()
|
D | TestIsoChronoImpl.java | 158 … int weeksInWeekBasedYear = (int)isoDate.range(weekDef.weekOfWeekBasedYear()).getMaximum(); in test_DayOfWeek_IsoChronology_vsCalendar()
|
D | TestJapaneseChronology.java | 194 assertEquals(range.getMaximum(), maxLargest); in test_range()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 455 .getMaximum(Calendar.DAY_OF_MONTH)); in test_getMaximumI() 457 .getMaximum(Calendar.MONTH) == Calendar.DECEMBER); in test_getMaximumI() 459 .getMaximum(Calendar.HOUR_OF_DAY)); in test_getMaximumI() 461 11, gc.getMaximum(Calendar.HOUR)); in test_getMaximumI() 468 if (gc.getMaximum(i) != max[i]) { in test_getMaximumI() 470 values.add(new Integer(gc.getMaximum(i))); in test_getMaximumI()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 999 {NANO_OF_SECOND, time(0, 0, 0, 0), NANO_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1002 {NANO_OF_DAY, time(0, 0, 0, 0), NANO_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1005 {MICRO_OF_SECOND, time(0, 0, 0, 0), MICRO_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1008 {MICRO_OF_DAY, time(0, 0, 0, 0), MICRO_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1011 {MILLI_OF_SECOND, time(0, 0, 0, 0), MILLI_OF_SECOND.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1014 {MILLI_OF_DAY, time(0, 0, 0, 0), MILLI_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1017 {SECOND_OF_MINUTE, time(0, 0, 0, 0), SECOND_OF_MINUTE.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1020 {SECOND_OF_DAY, time(0, 0, 0, 0), SECOND_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1023 {MINUTE_OF_HOUR, time(0, 0, 0, 0), MINUTE_OF_HOUR.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() 1026 {MINUTE_OF_DAY, time(0, 0, 0, 0), MINUTE_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange() [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | GeneralSubtree.java | 122 public int getMaximum() { in getMaximum() method in GeneralSubtree
|
D | NameConstraintsExtension.java | 97 if (subtree.getMaximum() != -1) in calcMinMax() 107 if (subtree.getMaximum() != -1) in calcMinMax()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 285 assertEquals(rangeWOM.getMaximum(), lastWOM, in test_fieldRanges() 297 assertEquals(rangeWOY.getMaximum(), lastWOY, in test_fieldRanges() 341 assertEquals(range.getMaximum(), expectedWeeks, "Range incorrect"); in test_rangeWeekOfWeekBasedYear() 359 weekExpected = ((weekExpected - 1) % (int)range.getMaximum()) + 1; in test_withWeekOfWeekBasedYear() 371 weekExpected = Math.min(day.get(wowbyField), (int)range.getMaximum()); in test_withWeekOfWeekBasedYear()
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 571 int max = getMaximum(field); in roll() 642 if (year == getMaximum(YEAR)) { in roll() 758 if (year == getMaximum(YEAR)) { in roll() 1088 public int getMaximum(int field) { in getMaximum() method in JapaneseImperialCalendar 1145 return Math.min(LEAST_MAX_VALUES[YEAR], getMaximum(YEAR)); in getLeastMaximum() 1282 return getMaximum(field); in getActualMaximum() 1860 if (value < getMinimum(field) || value > getMaximum(field)) { in computeTime()
|
/libcore/ojluni/src/main/java/java/time/ |
D | MonthDay.java | 626 … return temporal.with(DAY_OF_MONTH, Math.min(temporal.range(DAY_OF_MONTH).getMaximum(), day)); in adjustInto()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 146 public abstract int getMaximum(int field); in getMaximum() method in Calendar
|