/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | AbstractCalendar.java | 60 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 …]
|
D | LocalGregorianCalendar.java | 43 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 …]
|
D | JulianCalendar.java | 41 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/ |
D | TCKThaiBuddhistEra.java | 102 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()
|
D | TCKIsoEra.java | 98 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()
|
D | TCKMinguoEra.java | 103 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()
|
D | TCKHijrahEra.java | 99 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()
|
D | TCKJapaneseEra.java | 102 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()
|
D | CopticChronology.java | 225 public List<Era> eras() { in eras() method in CopticChronology
|
D | TCKJapaneseChronology.java | 397 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()
|
D | TCKHijrahChronology.java | 171 List<Era> eras = chrono.eras(); in test_InvalidEras() local 172 for (Era era : eras) { in test_InvalidEras()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 151 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/ |
D | JapaneseImperialCalendar.java | 137 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/ |
D | ChronologyDisplayNameTest.java | 61 List<Era> eras = chronology.eras(); in testEras() local 63 for (Era era : eras) { in testEras()
|
D | ChronologyTest.java | 130 public List<Era> eras() { in eras() method in ChronologyTest.FakeChronology
|
/libcore/ojluni/src/main/resources/ |
D | calendars.properties | 34 calendar.japanese.eras: \ 45 calendar.taiwanese.eras: \ 52 calendar.thai-buddhist.eras: \
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | AbstractCalendar.java | 49 protected void setEras(sun.util.calendar.Era[] eras) { in setEras() argument 135 private sun.util.calendar.Era[] eras; field in AbstractCalendar
|
D | LocalGregorianCalendar.java | 31 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/ |
D | JapaneseChronology.java | 388 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()
|
D | AbstractChronology.java | 536 List<Era> eras = eras(); in resolveYearOfEra() local 537 if (eras.isEmpty()) { in resolveYearOfEra() 540 Era eraObj = eras.get(eras.size() - 1); in resolveYearOfEra()
|
D | Chronology.java | 596 List<Era> eras(); in eras() method
|
D | MinguoChronology.java | 308 public List<Era> eras() { in eras() method in MinguoChronology
|
D | ThaiBuddhistChronology.java | 344 public List<Era> eras() { in eras() method in ThaiBuddhistChronology
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | LocaleDataTest.java | 67 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/ |
D | LocaleData.java | 109 public String[] eras; // "BC", "AD". field in LocaleData 373 eras = dfs.getEras(); in initializeDateFormatData()
|