/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 57 package tck.java.time.chrono; 72 import java.time.chrono.ChronoLocalDate; 73 import java.time.chrono.ChronoPeriod; 74 import java.time.chrono.Chronology; 75 import java.time.chrono.HijrahChronology; 76 import java.time.chrono.IsoChronology; 77 import java.time.chrono.JapaneseChronology; 78 import java.time.chrono.MinguoChronology; 79 import java.time.chrono.ThaiBuddhistChronology; 105 public void test_serialization(Chronology chrono) throws Exception { in test_serialization() argument [all …]
|
D | TCKChronology.java | 60 package tck.java.time.chrono; 74 import java.time.chrono.ChronoLocalDate; 75 import java.time.chrono.Chronology; 76 import java.time.chrono.HijrahChronology; 77 import java.time.chrono.HijrahEra; 78 import java.time.chrono.IsoChronology; 79 import java.time.chrono.IsoEra; 80 import java.time.chrono.JapaneseChronology; 81 import java.time.chrono.JapaneseEra; 82 import java.time.chrono.MinguoChronology; [all …]
|
D | TCKChronoLocalDateTime.java | 57 package tck.java.time.chrono; 72 import java.time.chrono.ChronoLocalDateTime; 73 import java.time.chrono.Chronology; 74 import java.time.chrono.HijrahChronology; 75 import java.time.chrono.IsoChronology; 76 import java.time.chrono.JapaneseChronology; 77 import java.time.chrono.MinguoChronology; 78 import java.time.chrono.ThaiBuddhistChronology; 114 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() argument 116 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badWithAdjusterChrono() [all …]
|
D | TCKChronoLocalDate.java | 57 package tck.java.time.chrono; 71 import java.time.chrono.ChronoLocalDate; 72 import java.time.chrono.Chronology; 73 import java.time.chrono.HijrahChronology; 74 import java.time.chrono.IsoChronology; 75 import java.time.chrono.JapaneseChronology; 76 import java.time.chrono.MinguoChronology; 77 import java.time.chrono.ThaiBuddhistChronology; 114 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() argument 116 ChronoLocalDate date = chrono.date(refDate); in test_badWithAdjusterChrono() [all …]
|
D | TCKChronoZonedDateTime.java | 57 package tck.java.time.chrono; 73 import java.time.chrono.ChronoZonedDateTime; 74 import java.time.chrono.Chronology; 75 import java.time.chrono.HijrahChronology; 76 import java.time.chrono.IsoChronology; 77 import java.time.chrono.JapaneseChronology; 78 import java.time.chrono.MinguoChronology; 79 import java.time.chrono.ThaiBuddhistChronology; 116 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() argument 118 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badWithAdjusterChrono() [all …]
|
D | TCKTestServiceLoader.java | 59 package tck.java.time.chrono; 64 import java.time.chrono.ChronoLocalDate; 65 import java.time.chrono.Chronology; 78 Chronology chrono = Chronology.of("Coptic"); in test_TestServiceLoader() local 79 ChronoLocalDate copticDate = chrono.date(1729, 4, 27); in test_TestServiceLoader()
|
D | TCKMinguoEra.java | 57 package tck.java.time.chrono; 64 import java.time.chrono.Era; 65 import java.time.chrono.MinguoChronology; 66 import java.time.chrono.MinguoEra;
|
D | TCKHijrahEra.java | 57 package tck.java.time.chrono; 63 import java.time.chrono.Era; 64 import java.time.chrono.HijrahChronology; 65 import java.time.chrono.HijrahEra;
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronologySerialization.java | 57 package tck.java.time.chrono.serial; 62 import java.time.chrono.Chronology; 63 import java.time.chrono.HijrahChronology; 64 import java.time.chrono.IsoChronology; 65 import java.time.chrono.JapaneseChronology; 66 import java.time.chrono.MinguoChronology; 67 import java.time.chrono.ThaiBuddhistChronology; 96 public void test_chronoSerialization(Chronology chrono) throws Exception { in test_chronoSerialization() argument 97 assertSerializable(chrono); in test_chronoSerialization() 104 private void test_serializationBytes(Chronology chrono) throws Exception { in test_serializationBytes() argument [all …]
|
D | TCKChronoLocalDateTimeSerialization.java | 57 package tck.java.time.chrono.serial; 64 import java.time.chrono.ChronoLocalDateTime; 65 import java.time.chrono.Chronology; 66 import java.time.chrono.HijrahChronology; 67 import java.time.chrono.IsoChronology; 68 import java.time.chrono.JapaneseChronology; 69 import java.time.chrono.MinguoChronology; 70 import java.time.chrono.ThaiBuddhistChronology; 97 public void test_ChronoLocalDateTimeSerialization(Chronology chrono) throws Exception { in test_ChronoLocalDateTimeSerialization() argument 99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization()
|
D | TCKChronoZonedDateTimeSerialization.java | 57 package tck.java.time.chrono.serial; 62 import java.time.chrono.ChronoZonedDateTime; 63 import java.time.chrono.Chronology; 64 import java.time.chrono.HijrahChronology; 65 import java.time.chrono.IsoChronology; 66 import java.time.chrono.JapaneseChronology; 67 import java.time.chrono.MinguoChronology; 68 import java.time.chrono.ThaiBuddhistChronology; 97 public void test_ChronoZonedDateTimeSerialization(Chronology chrono) throws Exception { in test_ChronoZonedDateTimeSerialization() argument 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
|
D | TCKEraSerialization.java | 60 package tck.java.time.chrono.serial; 70 import java.time.chrono.ChronoLocalDate; 71 import java.time.chrono.Era; 72 import java.time.chrono.HijrahEra; 73 import java.time.chrono.IsoEra; 74 import java.time.chrono.JapaneseEra; 75 import java.time.chrono.MinguoEra; 76 import java.time.chrono.ThaiBuddhistEra;
|
D | TCKCopticSerialization.java | 60 package tck.java.time.chrono.serial; 63 import java.time.chrono.ChronoLocalDate; 64 import java.time.chrono.Chronology; 77 Chronology chrono = Chronology.of("Coptic"); in test_eraSerialization() local 78 ChronoLocalDate copticDate = chrono.date(1729, 4, 27); in test_eraSerialization()
|
D | TCKChronoLocalDateSerialization.java | 57 package tck.java.time.chrono.serial; 66 import java.time.chrono.ChronoLocalDate; 67 import java.time.chrono.HijrahChronology; 68 import java.time.chrono.HijrahDate; 69 import java.time.chrono.JapaneseDate; 70 import java.time.chrono.JapaneseEra; 71 import java.time.chrono.MinguoDate; 72 import java.time.chrono.ThaiBuddhistDate; 135 HijrahChronology chrono = HijrahChronology.INSTANCE; in test_hijrahSerialization_format() local
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestExampleCode.java | 58 package test.java.time.chrono; 65 import java.time.chrono.ChronoLocalDate; 66 import java.time.chrono.ChronoLocalDateTime; 67 import java.time.chrono.ChronoZonedDateTime; 68 import java.time.chrono.Chronology; 69 import java.time.chrono.HijrahChronology; 70 import java.time.chrono.HijrahDate; 71 import java.time.chrono.ThaiBuddhistDate; 99 for (Chronology chrono : chronos) { in test_chronoPackageExample() 100 ChronoLocalDate date = chrono.dateNow(); in test_chronoPackageExample() [all …]
|
D | TestChronoLocalDate.java | 57 package test.java.time.chrono; 64 import java.time.chrono.ChronoLocalDate; 65 import java.time.chrono.ChronoLocalDateTime; 66 import java.time.chrono.Chronology; 67 import java.time.chrono.ThaiBuddhistChronology; 68 import java.time.chrono.ThaiBuddhistDate; 134 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 135 ChronoLocalDate date = chrono.dateNow(); 144 ThaiBuddhistChronology chrono = ThaiBuddhistChronology.INSTANCE; 145 ThaiBuddhistDate date = chrono.dateNow(); [all …]
|
D | TestServiceLoader.java | 59 package test.java.time.chrono; 63 import java.time.chrono.Chronology; 84 for (Chronology chrono : loader) { in test_copticServiceLoader() 85 chronos.put(chrono.getId(), chrono); in test_copticServiceLoader() local
|
D | TestChronologyPerf.java | 25 package test.java.time.chrono; 28 import java.time.chrono.Chronology; 29 import java.time.chrono.HijrahChronology; 30 import java.time.chrono.HijrahDate;
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriodImpl.java | 57 package java.time.chrono; 114 private final Chronology chrono; field in ChronoPeriodImpl 131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl() argument 132 Objects.requireNonNull(chrono, "chrono"); in ChronoPeriodImpl() 133 this.chrono = chrono; in ChronoPeriodImpl() 160 return chrono; in getChronology() 179 chrono, in plus() 189 chrono, in minus() 207 if (chrono.equals(period.getChronology()) == false) { in validateAmount() 208 …throw new ClassCastException("Chronology mismatch, expected: " + chrono.getId() + ", actual: " + p… in validateAmount() [all …]
|
D | HijrahDate.java | 57 package java.time.chrono; 124 private final transient HijrahChronology chrono; field in HijrahDate 149 …static HijrahDate of(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in of() argument 150 return new HijrahDate(chrono, prolepticYear, monthOfYear, dayOfMonth); in of() 159 static HijrahDate ofEpochDay(HijrahChronology chrono, long epochDay) { in ofEpochDay() argument 160 return new HijrahDate(chrono, epochDay); in ofEpochDay() 262 … private HijrahDate(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in HijrahDate() argument 264 chrono.getEpochDay(prolepticYear, monthOfYear, dayOfMonth); in HijrahDate() 266 this.chrono = chrono; in HijrahDate() 277 private HijrahDate(HijrahChronology chrono, long epochDay) { in HijrahDate() argument [all …]
|
D | AbstractChronology.java | 62 package java.time.chrono; 176 static Chronology registerChrono(Chronology chrono) { in registerChrono() argument 177 return registerChrono(chrono, chrono.getId()); in registerChrono() 189 static Chronology registerChrono(Chronology chrono, String id) { in registerChrono() argument 190 Chronology prev = CHRONOS_BY_ID.putIfAbsent(id, chrono); in registerChrono() 192 String type = chrono.getCalendarType(); in registerChrono() 194 CHRONOS_BY_TYPE.putIfAbsent(type, chrono); in registerChrono() 228 for (AbstractChronology chrono : loader) { in initCache() 229 String id = chrono.getId(); in initCache() 230 if (id.equals("ISO") || registerChrono(chrono) != null) { in initCache() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeParseContext.java | 65 import java.time.chrono.Chronology; 66 import java.time.chrono.IsoChronology; 167 Chronology chrono = currentParsed().chrono; in getEffectiveChronology() local 168 if (chrono == null) { in getEffectiveChronology() 169 chrono = formatter.getChronology(); in getEffectiveChronology() 170 if (chrono == null) { in getEffectiveChronology() 171 chrono = IsoChronology.INSTANCE; in getEffectiveChronology() 174 return chrono; in getEffectiveChronology() 329 parsed.chrono = getEffectiveChronology(); in toResolved() 381 void setParsed(Chronology chrono) { in setParsed() argument [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNonIsoFormatter.java | 35 import java.time.chrono.ChronoLocalDate; 36 import java.time.chrono.Chronology; 37 import java.time.chrono.HijrahChronology; 38 import java.time.chrono.IsoChronology; 39 import java.time.chrono.JapaneseChronology; 40 import java.time.chrono.MinguoChronology; 41 import java.time.chrono.ThaiBuddhistChronology; 158 …public void test_formatLocalizedDate(Chronology chrono, Locale formatLocale, Locale numberingLocal… in test_formatLocalizedDate() argument 161 .withChronology(chrono).withLocale(formatLocale) in test_formatLocalizedDate() 168 …public void test_parseLocalizedText(Chronology chrono, Locale formatLocale, Locale numberingLocale, in test_parseLocalizedText() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 16 package libcore.java.time.chrono; 19 import java.time.chrono.AbstractChronology; 20 import java.time.chrono.ChronoLocalDate; 21 import java.time.chrono.Chronology; 22 import java.time.chrono.Era; 23 import java.time.chrono.IsoChronology;
|
D | HijrahChronologyTest.java | 16 package libcore.java.time.chrono; 19 import java.time.chrono.HijrahChronology; 20 import java.time.chrono.HijrahDate; 21 import java.time.chrono.HijrahEra;
|