Home
last modified time | relevance | path

Searched refs:HijrahEra (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahEra.java65 import java.time.chrono.HijrahEra;
81 {HijrahEra.AH, "AH", 1}, in data_of_eras()
86 public void test_valueOf(HijrahEra era , String eraName, int eraValue) { in test_valueOf()
90 assertEquals(HijrahEra.of(eraValue), era); in test_valueOf()
91 assertEquals(HijrahEra.valueOf(eraName), era); in test_valueOf()
100 HijrahEra[] eras = HijrahEra.values(); in test_values()
102 for (HijrahEra era : eras) { in test_values()
112 for (HijrahEra era : HijrahEra.values()) { in test_range()
DTCKChronology.java77 import java.time.chrono.HijrahEra;
270 ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178); in test_HijrahChronology_dateYearDay()
271 ChronoLocalDate date2 = chrono.date(HijrahEra.AH, 1434, 7, 1); in test_HijrahChronology_dateYearDay()
272 assertEquals(date1, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); in test_HijrahChronology_dateYearDay()
273 assertEquals(date2, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); in test_HijrahChronology_dateYearDay()
DTCKHijrahChronology.java73 import java.time.chrono.HijrahEra;
205 Object[][] result = new Object[ResolverStyle.values().length * HijrahEra.values().length][]; in data_resolve_styleByEra()
208 for (HijrahEra era : HijrahEra.values()) { in data_resolve_styleByEra()
216 public void test_resolve_yearOfEra_eraOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraOnly_valid()
226 … public void test_resolve_yearOfEra_eraAndYearOfEraOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid()
239 public void test_resolve_yearOfEra_eraAndYearOnly_valid(ResolverStyle style, HijrahEra era) { in test_resolve_yearOfEra_eraAndYearOnly_valid()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahEra.java86 public enum HijrahEra implements Era { enum
104 public static HijrahEra of(int hijrahEra) { in of()
DHijrahChronology.java557 if (era instanceof HijrahEra == false) { in prolepticYear()
564 public HijrahEra eraOf(int eraValue) { in eraOf()
567 return HijrahEra.AH; in eraOf()
575 return Arrays.<Era>asList(HijrahEra.values()); in eras()
DHijrahDate.java309 public HijrahEra getEra() { in getEra()
310 return HijrahEra.AH; in getEra()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DHijrahChronologyTest.java21 import java.time.chrono.HijrahEra;
36 assertEquals(HijrahEra.AH, HijrahDate.of(1300, 1, 1).getEra()); in test_HijrahDate_getEra()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKEraSerialization.java72 import java.time.chrono.HijrahEra;
102 {HijrahEra.AH}, in data_of_calendars()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java79 import java.time.chrono.HijrahEra;
202 IsoChronology.INSTANCE.date((Era) HijrahEra.AH, 1, 1, 1); in test_date_withEra_withWrongEra()
/libcore/
Dopenjdk_java_files.bp794 "ojluni/src/main/java/java/time/chrono/HijrahEra.java",