Home
last modified time | relevance | path

Searched refs:chronology (Results 1 – 25 of 47) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyDisplayNameTest.java46 private final Chronology chronology; field in ChronologyDisplayNameTest
48 public ChronologyDisplayNameTest(Chronology chronology) { in ChronologyDisplayNameTest() argument
49 this.chronology = chronology; in ChronologyDisplayNameTest()
54 String displayName = chronology.getDisplayName(TextStyle.FULL, Locale.ENGLISH); in testDisplayName()
61 List<Era> eras = chronology.eras(); in testEras()
/libcore/luni/src/test/java/libcore/highmemorytest/java/time/format/
DDateTimeFormatterTest.java86 for (Chronology chronology : Chronology.getAvailableChronologies()) { in test_format_allLocales_allChronologies()
91 .withChronology(chronology) in test_format_allLocales_allChronologies()
97 .withChronology(chronology) in test_format_allLocales_allChronologies()
103 .withChronology(chronology) in test_format_allLocales_allChronologies()
107 throw new RuntimeException("Chronology:" + chronology + in test_format_allLocales_allChronologies()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKChronoPrinterParser.java126 assertEquals(parsed.query(TemporalQueries.chronology()), expected); in test_parseValid_caseSensitive()
144 assertEquals(parsed.query(TemporalQueries.chronology()), expected); in test_parseValid_caseInsensitive()
DTCKDateTimeParseResolver.java903 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); in test_withChronology_noOverride()
913 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); in test_withChronology_override()
922 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); in test_withChronology_parsedChronology_noOverride()
932 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); in test_withChronology_parsedChronology_override()
993 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); in test_fieldResolvesToChronoLocalDate_noOverrideChrono_matches()
1004 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); in test_fieldResolvesToChronoLocalDate_overrideChrono_matches()
1030 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_matches()
1041 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); in test_fieldResolvesToChronoLocalDateTime_overrideChrono_matches()
1067 assertEquals(accessor.query(TemporalQueries.chronology()), IsoChronology.INSTANCE); in test_fieldResolvesToChronoZonedDateTime_noOverrideChrono_matches()
1080 assertEquals(accessor.query(TemporalQueries.chronology()), MinguoChronology.INSTANCE); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_matches()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNumberParser.java181 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_fresh()
201 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_textField()
316 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseSignsStrict()
426 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseSignsLenient()
517 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseDigitsLenient()
555 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseDigitsAdjacentLenient()
DTestCharLiteralParser.java114 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_success()
DTestStringLiteralParser.java117 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_success()
DTestNonIsoFormatter.java192 Chronology cal = ta.query(TemporalQueries.chronology()); in test_chronoNames()
DTestReducedParser.java467 parsed.query(TemporalQueries.chronology()), input)); in test_reducedWithLateChronoChange()
490 parsed.query(TemporalQueries.chronology()), input)); in test_reducedWithLateChronoChangeTwice()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahDate.java443 public HijrahDate withVariant(HijrahChronology chronology) { in withVariant() argument
444 if (chrono == chronology) { in withVariant()
448 int monthDays = chronology.getDayOfYear(prolepticYear, monthOfYear); in withVariant()
449 …return HijrahDate.of(chronology, prolepticYear, monthOfYear,(dayOfMonth > monthDays) ? monthDays :… in withVariant()
DChronology.java179 Chronology obj = temporal.query(TemporalQueries.chronology()); in from()
646 if (query == TemporalQueries.chronology()) { in getDisplayName()
DChronoLocalDate.java289 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
512 } else if (query == TemporalQueries.chronology()) { in query()
DChronoLocalDateTime.java169 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
341 } else if (query == TemporalQueries.chronology()) { in query()
DChronoZonedDateTime.java170 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
490 } else if (query == TemporalQueries.chronology()) { in query()
DChronoPeriodImpl.java312 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); in validateChrono()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAccessor.java310 || query == TemporalQueries.chronology() in query()
DTemporalQueries.java206 public static TemporalQuery<Chronology> chronology() { in chronology() method in TemporalQueries
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); in adjust()
210 if (query == TemporalQueries.chronology()) { in adjust()
/libcore/ojluni/src/main/java/java/time/
DMonth.java564 if (query == TemporalQueries.chronology()) { in query()
DMonthDay.java587 if (query == TemporalQueries.chronology()) { in query()
DYear.java817 if (query == TemporalQueries.chronology()) { in query()
/libcore/ojluni/src/main/resources/
Dhijrah-config-umalqura.properties59 # Java chronology ID
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java145 Chronology chrono = ((TemporalAccessor)o).query(TemporalQueries.chronology()); in getClassName()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java112 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_chronology()
135 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_noChronology()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDayOfWeek.java219 {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, in data_query()

12