Home
last modified time | relevance | path

Searched refs:eras (Results 1 – 25 of 30) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java60 private Era[] eras; field in AbstractCalendar
66 if (eras != null) { in getEra()
67 for (int i = 0; i < eras.length; i++) { in getEra()
68 if (eras[i].equals(eraName)) { in getEra()
69 return eras[i]; in getEra()
78 if (eras != null) { in getEras()
79 e = new Era[eras.length]; in getEras()
80 System.arraycopy(eras, 0, e, 0, eras.length); in getEras()
86 if (eras == null) { in setEra()
89 for (int i = 0; i < eras.length; i++) { in setEra()
[all …]
DLocalGregorianCalendar.java43 private Era[] eras; field in LocalGregorianCalendar
132 List<Era> eras = new ArrayList<>(); in getLocalGregorianCalendar() local
167 eras.add(era); in getLocalGregorianCalendar()
171 if (eras.isEmpty()) { in getLocalGregorianCalendar()
175 Era[] eraArray = new Era[eras.size()]; in getLocalGregorianCalendar()
176 eras.toArray(eraArray); in getLocalGregorianCalendar()
181 private LocalGregorianCalendar(String name, Era[] eras) { in LocalGregorianCalendar() argument
183 this.eras = eras; in LocalGregorianCalendar()
184 setEras(eras); in LocalGregorianCalendar()
215 for (i = eras.length - 1; i >= 0; --i) { in adjustYear()
[all …]
DJulianCalendar.java41 private static final Era[] eras = { field in JulianCalendar
62 if (era != eras[0] || era != eras[1]) { in setEra()
74 if (getEra() == eras[BCE]) { in getNormalizedYear()
87 setKnownEra(eras[BCE]); in setNormalizedYear()
90 setKnownEra(eras[CE]); in setNormalizedYear()
114 setEras(eras); in JulianCalendar()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKThaiBuddhistEra.java102 List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras(); in test_values()
103 ThaiBuddhistEra[] eras = ThaiBuddhistEra.values(); in test_values() local
104 assertEquals(eraList.size(), eras.length); in test_values()
105 for (ThaiBuddhistEra era : eras) { in test_values()
DTCKIsoEra.java98 List<Era> eraList = IsoChronology.INSTANCE.eras(); in test_values()
99 IsoEra[] eras = IsoEra.values(); in test_values() local
100 assertEquals(eraList.size(), eras.length); in test_values()
101 for (IsoEra era : eras) { in test_values()
DTCKMinguoEra.java103 List<Era> eraList = MinguoChronology.INSTANCE.eras(); in test_values()
104 MinguoEra[] eras = MinguoEra.values() ; in test_values() local
105 assertEquals(eraList.size(), eras.length); in test_values()
106 for (MinguoEra era : eras) { in test_values()
DTCKHijrahEra.java99 List<Era> eraList = HijrahChronology.INSTANCE.eras(); in test_values()
100 HijrahEra[] eras = HijrahEra.values(); in test_values() local
101 assertEquals(eraList.size(), eras.length); in test_values()
102 for (HijrahEra era : eras) { in test_values()
DTCKJapaneseEra.java102 List<Era> eraList = JapaneseChronology.INSTANCE.eras(); in test_values()
103 JapaneseEra[] eras = JapaneseEra.values(); in test_values() local
104 assertEquals(eraList.size(), eras.length); in test_values()
105 for (JapaneseEra era : eras) { in test_values()
DCopticChronology.java225 public List<Era> eras() { in eras() method in CopticChronology
DTCKJapaneseChronology.java397 assertTrue(JapaneseChronology.INSTANCE.eras().contains(eraObj)); in test_prolepticYear()
448 List<Era> eras = chrono.eras(); in test_InvalidEras() local
449 for (Era era : eras) { in test_InvalidEras()
574 List<Era> eras = JapaneseChronology.INSTANCE.eras(); in test_Japanese_Eras() local
575 assertTrue(eras.contains(era), "Era is not present in JapaneseChronology.INSTANCE.eras()"); in test_Japanese_Eras()
617 List<Era> actualEras = JapaneseChronology.INSTANCE.eras(); in test_JapaneseChronology_eras()
DTCKHijrahChronology.java171 List<Era> eras = chrono.eras(); in test_InvalidEras() local
172 for (Era era : eras) { in test_InvalidEras()
/libcore/ojluni/src/main/java/java/text/
DDateFormatSymbols.java151 String eras[] = null; field in DateFormatSymbols
457 return Arrays.copyOf(eras, eras.length); in getEras()
465 eras = Arrays.copyOf(newEras, newEras.length); in setEras()
744 hashCode = 11 * hashCode + Arrays.hashCode(eras); in hashCode()
768 if (!(Arrays.equals(eras, that.eras) in equals()
838 eras = localeData.eras; in initializeData()
956 dst.eras = Arrays.copyOf(src.eras, src.eras.length); in copyMembers()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java137 private static final Era[] eras; field in JapaneseImperialCalendar
234 eras = new Era[length];
243 eras[index++] = BEFORE_MEIJI_ERA;
254 eras[index++] = e;
260 LEAST_MAX_VALUES[ERA] = MAX_VALUES[ERA] = eras.length - 1;
268 for (int i = 1; i < eras.length; i++) {
270 CalendarDate transitionDate = eras[i].getSinceDate();
439 } else if (era > eras.length - 1) { in add()
440 era = eras.length - 1; in add()
711 transition = eras[eraIndex].getSinceDate(); in roll()
[all …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyDisplayNameTest.java61 List<Era> eras = chronology.eras(); in testEras() local
63 for (Era era : eras) { in testEras()
DChronologyTest.java130 public List<Era> eras() { in eras() method in ChronologyTest.FakeChronology
/libcore/ojluni/src/main/resources/
Dcalendars.properties34 calendar.japanese.eras: \
45 calendar.taiwanese.eras: \
52 calendar.thai-buddhist.eras: \
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DAbstractCalendar.java49 protected void setEras(sun.util.calendar.Era[] eras) { in setEras() argument
135 private sun.util.calendar.Era[] eras; field in AbstractCalendar
DLocalGregorianCalendar.java31 private LocalGregorianCalendar(java.lang.String name, sun.util.calendar.Era[] eras) { in LocalGregorianCalendar() argument
110 private sun.util.calendar.Era[] eras; field in LocalGregorianCalendar
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java388 public List<Era> eras() { in eras() method in JapaneseChronology
394 JapaneseEra[] eras = JapaneseEra.values(); in getCurrentEra() local
395 return eras[eras.length - 1]; in getCurrentEra()
DAbstractChronology.java536 List<Era> eras = eras(); in resolveYearOfEra() local
537 if (eras.isEmpty()) { in resolveYearOfEra()
540 Era eraObj = eras.get(eras.size() - 1); in resolveYearOfEra()
DChronology.java596 List<Era> eras(); in eras() method
DMinguoChronology.java308 public List<Era> eras() { in eras() method in MinguoChronology
DThaiBuddhistChronology.java344 public List<Era> eras() { in eras() method in ThaiBuddhistChronology
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java67 assertEquals("BC", l.eras[0]); in test_en_US()
232 assertArrayEquals(baseMsg + "eras", testData.eras, localeData.eras); in assertLocaleDataEquals()
278 public String[] eras; // "BC", "AD". field in LocaleDataTest.Icu4cLocaleData
375 assertArrayEquals(localeData.eras, icuDateFormatSymbols.getEras()); in assertRootDataEqualsToTargetLocaleData()
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java109 public String[] eras; // "BC", "AD". field in LocaleData
373 eras = dfs.getEras(); in initializeDateFormatData()

12