/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronology.java | 75 import java.time.chrono.Chronology; 116 Chronology chrono = Chronology.of(chronoId); in test_getters() 124 Chronology chrono = Chronology.of(chronoId); in test_required_calendars() 126 chrono = Chronology.of(calendarSystemType); in test_required_calendars() 128 Set<Chronology> cals = Chronology.getAvailableChronologies(); in test_required_calendars() 134 Set<Chronology> chronos = Chronology.getAvailableChronologies(); in test_calendar_list() 136 for (Chronology chrono : chronos) { in test_calendar_list() 137 Chronology lookup = Chronology.of(chrono.getId()); in test_calendar_list() 162 Chronology chrono = Chronology.of(chronoId); in test_getDisplayName() 171 … Chronology chrono = Chronology.of(name); // a chronology. In practice this is rarely hardcoded in test_epoch() [all …]
|
D | TCKChronoPeriod.java | 74 import java.time.chrono.Chronology; 92 Chronology[][] data_of_calendars() { in data_of_calendars() 93 return new Chronology[][]{ in data_of_calendars() 105 public void test_serialization(Chronology chrono) throws Exception { in test_serialization() 119 public void test_get(Chronology chrono) { in test_get() 127 public void test_get_unsupported(Chronology chrono) { in test_get_unsupported() 133 public void test_getUnits(Chronology chrono) { in test_getUnits() 142 public void test_getChronology(Chronology chrono) { in test_getChronology() 148 public void test_isZero_isNegative(Chronology chrono) { in test_isZero_isNegative() 164 public void test_plus(Chronology chrono) { in test_plus() [all …]
|
D | TCKChronoLocalDate.java | 72 import java.time.chrono.Chronology; 104 Chronology[][] data_of_calendars() { in data_of_calendars() 105 return new Chronology[][]{ in data_of_calendars() 114 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() 117 for (Chronology[] clist : data_of_calendars()) { in test_badWithAdjusterChrono() 118 Chronology chrono2 = clist[0]; in test_badWithAdjusterChrono() 137 public void test_badPlusAdjusterChrono(Chronology chrono) { in test_badPlusAdjusterChrono() 140 for (Chronology[] clist : data_of_calendars()) { in test_badPlusAdjusterChrono() 141 Chronology chrono2 = clist[0]; in test_badPlusAdjusterChrono() 160 public void test_badMinusAdjusterChrono(Chronology chrono) { in test_badMinusAdjusterChrono() [all …]
|
D | TCKChronoLocalDateTime.java | 73 import java.time.chrono.Chronology; 104 Chronology[][] data_of_calendars() { in data_of_calendars() 105 return new Chronology[][]{ in data_of_calendars() 114 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() 117 for (Chronology[] clist : data_of_calendars()) { in test_badWithAdjusterChrono() 118 Chronology chrono2 = clist[0]; in test_badWithAdjusterChrono() 138 public void test_badPlusAdjusterChrono(Chronology chrono) { in test_badPlusAdjusterChrono() 141 for (Chronology[] clist : data_of_calendars()) { in test_badPlusAdjusterChrono() 142 Chronology chrono2 = clist[0]; in test_badPlusAdjusterChrono() 162 public void test_badMinusAdjusterChrono(Chronology chrono) { in test_badMinusAdjusterChrono() [all …]
|
D | TCKChronoZonedDateTime.java | 74 import java.time.chrono.Chronology; 105 Chronology[][] data_of_calendars() { in data_of_calendars() 106 return new Chronology[][]{ in data_of_calendars() 116 public void test_badWithAdjusterChrono(Chronology chrono) { in test_badWithAdjusterChrono() 119 for (Chronology[] clist : data_of_calendars()) { in test_badWithAdjusterChrono() 120 Chronology chrono2 = clist[0]; in test_badWithAdjusterChrono() 139 public void test_badPlusAdjusterChrono(Chronology chrono) { in test_badPlusAdjusterChrono() 142 for (Chronology[] clist : data_of_calendars()) { in test_badPlusAdjusterChrono() 143 Chronology chrono2 = clist[0]; in test_badPlusAdjusterChrono() 163 public void test_badMinusAdjusterChrono(Chronology chrono) { in test_badMinusAdjusterChrono() [all …]
|
D | TCKTestServiceLoader.java | 65 import java.time.chrono.Chronology; 78 Chronology chrono = Chronology.of("Coptic"); in test_TestServiceLoader()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestServiceLoader.java | 63 import java.time.chrono.Chronology; 79 Map<String, Chronology> chronos = new HashMap<>(); in test_copticServiceLoader() 82 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class, in test_copticServiceLoader() 84 for (Chronology chrono : loader) { in test_copticServiceLoader()
|
D | TestExampleCode.java | 68 import java.time.chrono.Chronology; 89 ChronoLocalDate now1 = Chronology.of("ThaiBuddhist").dateNow(); in test_chronoPackageExample() 98 Set<Chronology> chronos = Chronology.getAvailableChronologies(); in test_chronoPackageExample() 99 for (Chronology chrono : chronos) { in test_chronoPackageExample() 131 Chronology chrono = Chronology.ofLocale(locale); in test_HijrahTypeViaLocale() 134 Chronology expected = Chronology.of(calendarId); in test_HijrahTypeViaLocale() 142 Set<Chronology> chronos = Chronology.getAvailableChronologies(); in test_calendarPackageExample() 143 for (Chronology chrono : chronos) { in test_calendarPackageExample()
|
D | TestChronologyPerf.java | 28 import java.time.chrono.Chronology; 44 Set<Chronology> chronos = Chronology.getAvailableChronologies(); in test_chronologyGetAvailablePerf() 50 chronos = Chronology.getAvailableChronologies(); in test_chronologyGetAvailablePerf()
|
D | TestChronoLocalDate.java | 66 import java.time.chrono.Chronology; 134 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 155 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 187 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 194 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeParseContext.java | 65 import java.time.chrono.Chronology; 113 private ArrayList<Consumer<Chronology>> chronoListeners = null; 166 Chronology getEffectiveChronology() { in getEffectiveChronology() 167 Chronology chrono = currentParsed().chrono; in getEffectiveChronology() 381 void setParsed(Chronology chrono) { in setParsed() 386 Consumer<Chronology>[] tmp = new Consumer[1]; in setParsed() 387 Consumer<Chronology>[] listeners = chronoListeners.toArray(tmp); in setParsed() 389 for (Consumer<Chronology> l : listeners) { in setParsed() 400 void addChronoChangedListener(Consumer<Chronology> listener) { in addChronoChangedListener() 402 chronoListeners = new ArrayList<Consumer<Chronology>>(); in addChronoChangedListener()
|
D | DateTimePrintContext.java | 73 import java.time.chrono.Chronology; 125 Chronology overrideChrono = formatter.getChronology(); in adjust() 132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); in adjust() 145 … final Chronology effectiveChrono = (overrideChrono != null ? overrideChrono : temporalChrono); in adjust() 149 … Chronology chrono = (effectiveChrono != null ? effectiveChrono : IsoChronology.INSTANCE); in adjust()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 21 import java.time.chrono.Chronology; 42 Set<Chronology> chronologies = new LinkedHashSet<>(Chronology.getAvailableChronologies()); in test_compareTo() 47 for (Chronology c1 : chronologies) { in test_compareTo() 48 for (Chronology c2 : chronologies) { in test_compareTo() 54 private static void assertComparesAccordingToId(Chronology c1, Chronology c2) { in assertComparesAccordingToId()
|
D | ChronologyDisplayNameTest.java | 21 import java.time.chrono.Chronology; 42 public static List<Chronology> getChronologies() { in getChronologies() 43 return new ArrayList<>(Chronology.getAvailableChronologies()); in getChronologies() 46 private final Chronology chronology; 48 public ChronologyDisplayNameTest(Chronology chronology) { in ChronologyDisplayNameTest()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNonIsoFormatter.java | 36 import java.time.chrono.Chronology; 65 private static final Chronology ISO8601 = IsoChronology.INSTANCE; 66 private static final Chronology JAPANESE = JapaneseChronology.INSTANCE; 67 private static final Chronology HIJRAH = HijrahChronology.INSTANCE; 68 private static final Chronology MINGUO = MinguoChronology.INSTANCE; 69 private static final Chronology BUDDHIST = ThaiBuddhistChronology.INSTANCE; 158 …public void test_formatLocalizedDate(Chronology chrono, Locale formatLocale, Locale numberingLocal… in test_formatLocalizedDate() 168 …public void test_parseLocalizedText(Chronology chrono, Locale formatLocale, Locale numberingLocale, in test_parseLocalizedText() 186 public void test_chronoNames(Chronology chrono, Locale locale, String expected) { in test_chronoNames() 192 Chronology cal = ta.query(TemporalQueries.chronology()); in test_chronoNames() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 127 public abstract class AbstractChronology implements Chronology { 162 …private static final ConcurrentHashMap<String, Chronology> CHRONOS_BY_ID = new ConcurrentHashMap<>… 166 …private static final ConcurrentHashMap<String, Chronology> CHRONOS_BY_TYPE = new ConcurrentHashMap… 176 static Chronology registerChrono(Chronology chrono) { in registerChrono() 189 static Chronology registerChrono(Chronology chrono, String id) { in registerChrono() 190 Chronology prev = CHRONOS_BY_ID.putIfAbsent(id, chrono); in registerChrono() 254 static Chronology ofLocale(Locale locale) { in ofLocale() 262 Chronology chrono = CHRONOS_BY_TYPE.get(type); in ofLocale() 272 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in ofLocale() 273 for (Chronology chrono : loader) { in ofLocale() [all …]
|
D | Chronology.java | 158 public interface Chronology extends Comparable<Chronology> { interface 177 static Chronology from(TemporalAccessor temporal) { in from() 179 Chronology obj = temporal.query(TemporalQueries.chronology()); in from() 224 static Chronology ofLocale(Locale locale) { in ofLocale() 249 static Chronology of(String id) { in of() 263 static Set<Chronology> getAvailableChronologies() { in getAvailableChronologies() 647 return (R) Chronology.this; in getDisplayName() 720 int compareTo(Chronology other); in compareTo()
|
D | ChronoPeriodImpl.java | 114 private final Chronology chrono; 131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl() 159 public Chronology getChronology() { in getChronology() 312 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); in validateChrono() 394 Chronology chrono = Chronology.of(in.readUTF()); in readExternal()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronologySerialization.java | 62 import java.time.chrono.Chronology; 83 Chronology[][] data_of_calendars() { in data_of_calendars() 84 return new Chronology[][]{ in data_of_calendars() 96 public void test_chronoSerialization(Chronology chrono) throws Exception { in test_chronoSerialization() 104 private void test_serializationBytes(Chronology chrono) throws Exception { in test_serializationBytes()
|
D | TCKChronoLocalDateTimeSerialization.java | 65 import java.time.chrono.Chronology; 84 Chronology[][] data_of_calendars() { in data_of_calendars() 85 return new Chronology[][]{ in data_of_calendars() 97 public void test_ChronoLocalDateTimeSerialization(Chronology chrono) throws Exception { in test_ChronoLocalDateTimeSerialization()
|
D | TCKChronoZonedDateTimeSerialization.java | 63 import java.time.chrono.Chronology; 83 Chronology[][] data_of_calendars() { in data_of_calendars() 84 return new Chronology[][]{ in data_of_calendars() 97 public void test_ChronoZonedDateTimeSerialization(Chronology chrono) throws Exception { in test_ChronoZonedDateTimeSerialization()
|
D | TCKCopticSerialization.java | 64 import java.time.chrono.Chronology; 77 Chronology chrono = Chronology.of("Coptic"); in test_eraSerialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKChronoPrinterParser.java | 65 import java.time.chrono.Chronology; 121 public void test_parseValid_caseSensitive(String text, Chronology expected) { in test_parseValid_caseSensitive() 130 public void test_parseValid_caseSensitive_lowercaseRejected(String text, Chronology expected) { in test_parseValid_caseSensitive_lowercaseRejected() 139 public void test_parseValid_caseInsensitive(String text, Chronology expected) { in test_parseValid_caseInsensitive()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 72 import java.time.chrono.Chronology; 206 public static TemporalQuery<Chronology> chronology() { in chronology() 350 static final TemporalQuery<Chronology> CHRONO = (temporal) ->
|
D | JulianFields.java | 70 import java.time.chrono.Chronology; 294 Chronology chrono = Chronology.from(partialTemporal); in resolve()
|