Home
last modified time | relevance | path

Searched defs:era (Results 1 – 25 of 37) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahEra.java86 public void test_valueOf(HijrahEra era , String eraName, int eraValue) { in test_valueOf()
89 assertEquals(HijrahChronology.INSTANCE.eraOf(eraValue), era); in test_valueOf() local
90 assertEquals(HijrahEra.of(eraValue), era); in test_valueOf() local
91 assertEquals(HijrahEra.valueOf(eraName), era); in test_valueOf() local
DTCKIsoEra.java87 public void test_valueOf(IsoEra era , String eraName, int eraValue) { in test_valueOf()
89 assertEquals(IsoEra.of(eraValue), era); in test_valueOf() local
90 assertEquals(IsoEra.valueOf(eraName), era); in test_valueOf() local
DTCKThaiBuddhistEra.java91 public void test_valueOf(ThaiBuddhistEra era , String eraName, int eraValue) { in test_valueOf()
93 assertEquals(ThaiBuddhistEra.of(eraValue), era); in test_valueOf() local
94 assertEquals(ThaiBuddhistEra.valueOf(eraName), era); in test_valueOf() local
DTCKMinguoEra.java91 public void test_valueOf(MinguoEra era , String eraName, int eraValue) { in test_valueOf()
93 assertEquals(MinguoEra.of(eraValue), era); in test_valueOf() local
94 assertEquals(MinguoEra.valueOf(eraName), era); in test_valueOf() local
DTCKJapaneseEra.java89 public void test_valueOf(JapaneseEra era , String eraName, int eraValue) { in test_valueOf()
91 assertEquals(JapaneseEra.of(eraValue), era); in test_valueOf() local
92 assertEquals(JapaneseEra.valueOf(eraName), era); in test_valueOf() local
DCopticEra.java98 public static CopticEra of(int era) { in of()
DTCKJapaneseChronology.java196 … public void test_createEymd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEymd()
204 public void test_createEyd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEyd()
212 …public void test_createByEra_isEqual(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDat… in test_createByEra_isEqual()
219 …public void test_createByEra_chronologyTemporalFactory(JapaneseEra era, int yoe, int moy, int dom,… in test_createByEra_chronologyTemporalFactory()
226 …public void test_createByEra_dateFrom(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDa… in test_createByEra_dateFrom()
233 …public void test_createByEra_query(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate … in test_createByEra_query()
239 …public void test_createByEra_epochDay(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDa… in test_createByEra_epochDay()
390 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear()
398 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear()
429 public void test_prolepticYearError(Era era, int yearOfEra) { in test_prolepticYearError()
[all …]
DCopticChronology.java212 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
DTCKHijrahChronology.java216 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/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java180 …public void test_transitions(JapaneseEra era, int yearOfEra, int month, int dayOfMonth, int gregor… in test_transitions()
198 …public void test_firstDayOfEra(JapaneseEra era, int yearOfEra, int dayOfYear, int month, int dayOf… in test_firstDayOfEra()
205 public void test_invalidDate(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in test_invalidDate()
211 public void test_invalidEraYear(JapaneseEra era, int yearOfEra) { in test_invalidEraYear()
217 public void test_invalidDayYear(JapaneseEra era, int yearOfEra, int dayOfYear) { in test_invalidDayYear()
223 public void test_eraName(String eraName, JapaneseEra era, Class expectedEx) { in test_eraName()
225 assertEquals(JapaneseEra.valueOf(eraName), era); in test_eraName() local
/libcore/ojluni/src/main/java/sun/util/calendar/
DLocalGregorianCalendar.java58 public Date setEra(Era era) { in setEra()
92 void setLocalEra(Era era) { in setLocalEra()
105 Era era = getEra(); in toString() local
166 Era era = new Era(eraName, abbr, since, localTime); in getLocalGregorianCalendar() local
216 Era era = eras[i]; in adjustYear() local
249 Era era = ldate.getEra(); in validate() local
270 private boolean validateEra(Era era) { in validateEra()
296 Era era = null; in normalize() local
364 Era era = ldate.getEra(); in normalizeYear() local
381 public boolean isLeapYear(Era era, int year) { in isLeapYear()
DJulianCalendar.java58 public Date setEra(Era era) { in setEra()
69 protected void setKnownEra(Era era) { in setKnownEra()
98 Era era = getEra(); in toString() local
DCalendarDate.java67 private Era era; field in CalendarDate
113 public CalendarDate setEra(Era era) { in setEra()
418 int era = 0; in hashCode() local
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java211 public JapaneseDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
259 public JapaneseDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
351 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
441 JapaneseEra era = null; in resolveYearOfEra() local
468 private int prolepticYearLenient(JapaneseEra era, int yearOfEra) { in prolepticYearLenient()
472 …private ChronoLocalDate resolveYMD(JapaneseEra era, int yoe, Map<TemporalField,Long> fieldValues, … in resolveYMD()
505 …private ChronoLocalDate resolveYD(JapaneseEra era, int yoe, Map <TemporalField,Long> fieldValues, … in resolveYD()
DIsoChronology.java187 public LocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
218 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
387 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
514 Long era = fieldValues.remove(ERA); in resolveYearOfEra() local
DMinguoChronology.java176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
295 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
DJapaneseDate.java136 private transient JapaneseEra era; field in JapaneseDate
220 public static JapaneseDate of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in of()
277 static JapaneseDate ofYearDay(JapaneseEra era, int yearOfEra, int dayOfYear) { in ofYearDay()
341 JapaneseDate(JapaneseEra era, int year, LocalDate isoDate) { in JapaneseDate()
587 private JapaneseDate withYear(JapaneseEra era, int yearOfEra) { in withYear()
DChronology.java311 default ChronoLocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
564 int prolepticYear(Era era, int yearOfEra); in prolepticYear()
DJapaneseEra.java314 JapaneseEra era = KNOWN_ERAS[i]; in from() local
333 JapaneseEra era = KNOWN_ERAS[i]; in privateEraFrom() local
DThaiBuddhistChronology.java212 public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
331 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DLocalGregorianCalendar.java81 private boolean validateEra(sun.util.calendar.Era era) { in validateEra()
102 public boolean isLeapYear(sun.util.calendar.Era era, int year) { in isLeapYear()
126 public sun.util.calendar.LocalGregorianCalendar.Date setEra(sun.util.calendar.Era era) { in setEra()
149 void setLocalEra(sun.util.calendar.Era era) { in setLocalEra()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKEraSerialization.java113 public void test_eraSerialization(Era era) throws IOException, ClassNotFoundException { in test_eraSerialization()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java435 int era = internalGet(ERA) + amount; in add() local
1004 Era era = eras[fieldValue]; in getDisplayName() local
1033 Era era = eras[i]; in getDisplayNames() local
1643 int era = getEraIndex(jdate); in computeFields() local
1873 int era; in computeTime() local
1994 private long getFixedDate(int era, int year, int fieldMask) { in getFixedDate()
2140 Era era = date.getEra(); in getFixedDateJan1() local
2269 Era era = date.getEra(); in getEraIndex() local
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java120 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear()
/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java29 … public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { in getOffset()

12