/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronoImpl.java | 143 assertEquals(jd.get(ChronoField.DAY_OF_YEAR), cal.get(Calendar.DAY_OF_YEAR), in test_dayOfYearVsCalendar() 145 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMaximum(), cal.getActualMaximum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar() 147 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMinimum(), cal.getActualMinimum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar()
|
D | TestUmmAlQuraChronology.java | 29 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 254 int doy = hd.get(DAY_OF_YEAR); in test_getDayOfYear() 263 HijrahDate hd2 = hd.with(DAY_OF_YEAR, i); in test_withDayOfYear() 264 int doy = hd2.get(DAY_OF_YEAR); in test_withDayOfYear() 272 HijrahDate hd2 = hd.with(DAY_OF_YEAR, 0); in test_withDayOfYearTooSmall() 278 HijrahDate hd2 = hd.with(DAY_OF_YEAR, hd.lengthOfYear() + 1); in test_withDayOfYearTooLarge() 304 …assertEquals(HijrahChronology.INSTANCE.date(1320, 1, 15).with(ChronoField.DAY_OF_YEAR, 24), Hijrah… in test_adjustWithDayOfYear() 305 …assertEquals(HijrahChronology.INSTANCE.date(1421, 11, 15).with(ChronoField.DAY_OF_YEAR, 135), Hijr… in test_adjustWithDayOfYear() 306 …assertEquals(HijrahChronology.INSTANCE.date(1529, 7, 18).with(ChronoField.DAY_OF_YEAR, 64), Hijrah… in test_adjustWithDayOfYear() 307 …assertEquals(HijrahChronology.INSTANCE.date(1534, 2, 10).with(ChronoField.DAY_OF_YEAR, 354), Hijra… in test_adjustWithDayOfYear() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 66 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 230 return (temporal) -> temporal.with(DAY_OF_YEAR, 1); in firstDayOfYear() 251 return (temporal) -> temporal.with(DAY_OF_YEAR, temporal.range(DAY_OF_YEAR).getMaximum()); in lastDayOfYear() 270 return (temporal) -> temporal.with(DAY_OF_YEAR, 1).plus(1, YEARS); in firstDayOfNextYear()
|
D | WeekFields.java | 70 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 820 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfYear() 834 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekBasedYear() 843 ValueRange dayRange = temporal.range(DAY_OF_YEAR); in localizedWeekBasedYear() 864 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfWeekBasedYear() 876 ValueRange dayRange = temporal.range(DAY_OF_YEAR); in localizedWeekOfWeekBasedYear() 1111 return temporal.isSupported(DAY_OF_YEAR); in isSupportedBy() 1113 return temporal.isSupported(DAY_OF_YEAR); in isSupportedBy() 1128 return rangeByWeek(temporal, DAY_OF_YEAR); in rangeRefinedBy() 1158 if (!temporal.isSupported(DAY_OF_YEAR)) { in rangeWeekOfWeekBasedYear() [all …]
|
D | IsoFields.java | 65 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 312 return temporal.isSupported(DAY_OF_YEAR) && temporal.isSupported(MONTH_OF_YEAR) && in isSupportedBy() 336 int doy = temporal.get(DAY_OF_YEAR); in getFrom() 347 … return (R) temporal.with(DAY_OF_YEAR, temporal.getLong(DAY_OF_YEAR) + (newValue - curValue)); in adjustInto()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseChronology.java | 60 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 415 case DAY_OF_YEAR: { in range() 418 int fieldIndex = Calendar.DAY_OF_YEAR; in range() 461 if (fieldValues.containsKey(DAY_OF_YEAR)) { in resolveYearOfEra() 510 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); in resolveYD() 513 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
|
D | AbstractChronology.java | 70 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 453 if (fieldValues.containsKey(DAY_OF_YEAR)) { in resolveDate() 544 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); in resolveYD() 547 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
|
D | JapaneseDate.java | 396 return jcal.getActualMaximum(Calendar.DAY_OF_YEAR); in lengthOfYear() 446 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range() 480 case DAY_OF_YEAR: in getLong() 485 return jcal.get(Calendar.DAY_OF_YEAR); in getLong()
|
D | HijrahDate.java | 349 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range() 369 case DAY_OF_YEAR: return this.getDayOfYear(); in getLong() 399 … case DAY_OF_YEAR: return plusDays(Math.min(nvalue, lengthOfYear()) - getDayOfYear()); in with()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 68 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 129 {DAY_OF_YEAR, DAYS, YEARS}, in data_fieldUnit() 161 {DAY_OF_YEAR, true, false}, in data_fieldBased() 207 {DAY_OF_YEAR, LocalDate.of(2000, 2, 29), true, 60}, in data_fieldAndAccessor() 208 {DAY_OF_YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 60}, in data_fieldAndAccessor() 229 {DAY_OF_YEAR, LocalTime.of(5, 4, 3, 200), false, -1}, in data_fieldAndAccessor()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 198 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range() 217 … case ALIGNED_DAY_OF_WEEK_IN_YEAR: return ((get(ChronoField.DAY_OF_YEAR) - 1) % 7) + 1; in getLong() 219 case DAY_OF_YEAR: return (month - 1) * 30 + day; in getLong() 222 case ALIGNED_WEEK_OF_YEAR: return ((get(ChronoField.DAY_OF_YEAR) - 1) / 7) + 1; in getLong() 244 …case DAY_OF_YEAR: return resolvePreviousValid(prolepticYear, ((nvalue - 1) / 30) + 1, ((nvalue - 1… in with() 332 … copticEpochDay = ((year - 1) * 365) + Math.floorDiv(year, 4) + (get(ChronoField.DAY_OF_YEAR) - 1); in toEpochDay()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 68 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 97 … {YEAR, 2012, DAY_OF_YEAR, 155, null, null, null, null, LocalDate.class, LocalDate.of(2012, 6, 3)}, in data_combine() 172 {DAY_OF_YEAR, 127, DAY_OF_YEAR, 127}, in data_normalized()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 97 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR), in test_ThaiBuddhistDate_range() 98 date.range(ChronoField.DAY_OF_YEAR)); in test_ThaiBuddhistDate_range() 121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_ThaiBuddhistDate_getLong()
|
D | MinguoChronologyTest.java | 97 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR), in test_MinguoDate_range() 98 date.range(ChronoField.DAY_OF_YEAR)); in test_MinguoDate_range() 121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_MinguoDate_getLong()
|
D | HijrahChronologyTest.java | 51 assertEquals(30 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_HijrahDate_getLong()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 1042 case DAY_OF_YEAR: 1430 case DAY_OF_YEAR: in roll() 1439 long jan1 = fd - internalGet(DAY_OF_YEAR) + 1; in roll() 1567 …case MONTH, DAY_OF_MONTH, DAY_OF_YEAR, WEEK_OF_YEAR, WEEK_OF_MONTH, DAY_OF_WEEK_IN_MONTH, YEAR -> { in getMaximum() 1639 …case MONTH, DAY_OF_MONTH, DAY_OF_YEAR, WEEK_OF_YEAR, WEEK_OF_MONTH, DAY_OF_WEEK_IN_MONTH, YEAR -> { in getLeastMaximum() 1771 case DAY_OF_YEAR -> { in getActualMaximum() 1821 int maxDayOfYear = getActualMaximum(DAY_OF_YEAR); in getActualMaximum() 1822 gc.set(DAY_OF_YEAR, maxDayOfYear); in getActualMaximum() 1825 gc.set(DAY_OF_YEAR, maxDayOfYear - 7); in getActualMaximum() 1959 long t = (internalGet(DAY_OF_YEAR) - 1) * 24; in getYearOffsetInMillis() [all …]
|
D | JapaneseImperialCalendar.java | 292 LEAST_MAX_VALUES[DAY_OF_YEAR] = dayOfYear; 477 case DAY_OF_YEAR: in add() 898 case DAY_OF_YEAR: in roll() 907 int value = getRolledValue(internalGet(DAY_OF_YEAR), amount, min, max); in roll() 908 long jan0 = cachedFixedDate - internalGet(DAY_OF_YEAR); in roll() 1311 case DAY_OF_YEAR -> { 1392 int max = getActualMaximum(DAY_OF_YEAR); 1393 jc.set(DAY_OF_YEAR, max); 1681 internalSet(DAY_OF_YEAR, dayOfYear); 2069 if (isFieldSet(fieldMask, DAY_OF_YEAR)) { [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 68 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 112 {DAY_OF_YEAR}, in data_fieldBased()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_SimpleDateFormat.java | 86 t_FormatWithField(11, format, date, null, Field.DAY_OF_YEAR, 113, 116); in t_format_with_FieldPosition() 115 t_FormatWithField(33, format, date, null, Field.DAY_OF_YEAR, 0, 0); in t_format_with_FieldPosition() 239 v.add(new FieldContainer(113, 116, Field.DAY_OF_YEAR)); in getDateVector4() 240 v.add(new FieldContainer(117, 120, Field.DAY_OF_YEAR)); in getDateVector4() 241 v.add(new FieldContainer(121, 124, Field.DAY_OF_YEAR)); in getDateVector4()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 134 assertEquals(352, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 135 assertEquals(352, gc.getLeastMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 155 assertEquals(366, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 156 assertEquals(365, gc.getLeastMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 187 public static final java.text.DateFormat.Field DAY_OF_YEAR; field in DateFormat.Field 188 static { DAY_OF_YEAR = null; }
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DateFormat.java | 274 public static final java.text.DateFormat.Field DAY_OF_YEAR; field in DateFormat.Field 277 DAY_OF_YEAR = null;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 125 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 139 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 258 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 266 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 276 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 284 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 326 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 364 cal.set(Calendar.DAY_OF_YEAR, 111); in test_setII()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 64 import static java.time.temporal.ChronoField.DAY_OF_YEAR; 177 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYMD() 193 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYD() 194 DateTimeFormatter f = base.withResolverFields(YEAR, DAY_OF_YEAR); in test_resolverFields_selectOneDateResolveYD() 195 Set<TemporalField> expected = new HashSet<>(Arrays.asList(YEAR, DAY_OF_YEAR)); in test_resolverFields_selectOneDateResolveYD() 211 .appendValue(YEAR).appendLiteral('-').appendValue(DAY_OF_YEAR).appendLiteral('-') in test_resolverFields_ignoreCrossCheck() 213 DateTimeFormatter f = base.withResolverFields(YEAR, DAY_OF_YEAR); in test_resolverFields_ignoreCrossCheck()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 1054 public static final Field DAY_OF_YEAR = new field in DateFormat.Field 1055 Field("day of year", Calendar.DAY_OF_YEAR);
|