/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TestIsoChronology.java | 100 Chronology c = IsoChronology.INSTANCE; in test_chrono_byName() 113 assertNotNull(IsoChronology.INSTANCE); in instanceNotNull() 121 assertEquals(IsoChronology.INSTANCE.eraOf(0), BCE); in test_eraOf() 122 assertEquals(IsoChronology.INSTANCE.eraOf(1), CE); in test_eraOf() 131 {IsoChronology.INSTANCE.date(1, 7, 8), LocalDate.of(1, 7, 8)}, in data_samples() 132 {IsoChronology.INSTANCE.date(1, 7, 20), LocalDate.of(1, 7, 20)}, in data_samples() 133 {IsoChronology.INSTANCE.date(1, 7, 21), LocalDate.of(1, 7, 21)}, in data_samples() 135 {IsoChronology.INSTANCE.date(2, 7, 8), LocalDate.of(2, 7, 8)}, in data_samples() 136 {IsoChronology.INSTANCE.date(3, 6, 27), LocalDate.of(3, 6, 27)}, in data_samples() 137 {IsoChronology.INSTANCE.date(3, 5, 23), LocalDate.of(3, 5, 23)}, in data_samples() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistChronology.java | 116 Chronology c = ThaiBuddhistChronology.INSTANCE; in test_chrono_byName() 131 Assert.assertEquals(test, ThaiBuddhistChronology.INSTANCE); in test_chrono_byLocale_fullTag_thaiCalendarFromThai() 138 Assert.assertEquals(test, ThaiBuddhistChronology.INSTANCE); in test_chrono_byLocale_fullTag_thaiCalendarFromElsewhere() 145 Assert.assertEquals(test, IsoChronology.INSTANCE); in test_chrono_byLocale_oldTH_noVariant() 152 Assert.assertEquals(test, IsoChronology.INSTANCE); in test_chrono_byLocale_oldTH_variant() 168 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 1), LocalDate.of(1, 1, 1)}, in data_samples() 169 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 2), LocalDate.of(1, 1, 2)}, in data_samples() 170 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 3), LocalDate.of(1, 1, 3)}, in data_samples() 172 {ThaiBuddhistChronology.INSTANCE.date(2 + YDIFF, 1, 1), LocalDate.of(2, 1, 1)}, in data_samples() 173 {ThaiBuddhistChronology.INSTANCE.date(3 + YDIFF, 1, 1), LocalDate.of(3, 1, 1)}, in data_samples() [all …]
|
D | TCKMinguoChronology.java | 117 Chronology c = MinguoChronology.INSTANCE; in test_chrono_byName() 131 {MinguoChronology.INSTANCE.date(1, 1, 1), LocalDate.of(1 + YDIFF, 1, 1)}, in data_samples() 132 {MinguoChronology.INSTANCE.date(1, 1, 2), LocalDate.of(1 + YDIFF, 1, 2)}, in data_samples() 133 {MinguoChronology.INSTANCE.date(1, 1, 3), LocalDate.of(1 + YDIFF, 1, 3)}, in data_samples() 135 {MinguoChronology.INSTANCE.date(2, 1, 1), LocalDate.of(2 + YDIFF, 1, 1)}, in data_samples() 136 {MinguoChronology.INSTANCE.date(3, 1, 1), LocalDate.of(3 + YDIFF, 1, 1)}, in data_samples() 137 {MinguoChronology.INSTANCE.date(3, 12, 6), LocalDate.of(3 + YDIFF, 12, 6)}, in data_samples() 138 {MinguoChronology.INSTANCE.date(4, 1, 1), LocalDate.of(4 + YDIFF, 1, 1)}, in data_samples() 139 {MinguoChronology.INSTANCE.date(4, 7, 3), LocalDate.of(4 + YDIFF, 7, 3)}, in data_samples() 140 {MinguoChronology.INSTANCE.date(4, 7, 4), LocalDate.of(4 + YDIFF, 7, 4)}, in data_samples() [all …]
|
D | TCKJapaneseChronology.java | 127 Chronology c = JapaneseChronology.INSTANCE; in test_chrono_byName() 142 Assert.assertEquals(test, JapaneseChronology.INSTANCE); in test_chrono_byLocale_fullTag_japaneseCalendarFromJapan() 149 Assert.assertEquals(test, JapaneseChronology.INSTANCE); in test_chrono_byLocale_fullTag_japaneseCalendarFromElsewhere() 156 Assert.assertEquals(test, IsoChronology.INSTANCE); in test_chrono_byLocale_oldJP_noVariant() 163 Assert.assertEquals(test, JapaneseChronology.INSTANCE); in test_chrono_byLocale_oldJP_variant() 199 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.date(era, yoe, moy, dom); in test_createEymd() 207 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.dateYearDay(era, yoe, doy); in test_createEyd() 223 assertEquals(IsoChronology.INSTANCE.date(test), iso); in test_createByEra_chronologyTemporalFactory() 224 assertEquals(JapaneseChronology.INSTANCE.date(iso), test); in test_createByEra_chronologyTemporalFactory() 267 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.date(y, moy, dom); in test_createYmd() [all …]
|
D | TCKChronology.java | 195 {HijrahChronology.INSTANCE, "islamic-umalqura"}, in data_CalendarType() 196 {IsoChronology.INSTANCE, "iso8601"}, in data_CalendarType() 197 {JapaneseChronology.INSTANCE, "japanese"}, in data_CalendarType() 198 {MinguoChronology.INSTANCE, "roc"}, in data_CalendarType() 199 {ThaiBuddhistChronology.INSTANCE, "buddhist"}, in data_CalendarType() 226 assertEquals(chrono.dateNow(), MinguoChronology.INSTANCE.dateNow()); in test_MinguoChronology_dateNow() 227 assertEquals(chrono.dateNow(zoneId_paris), MinguoChronology.INSTANCE.dateNow(zoneId_paris)); in test_MinguoChronology_dateNow() 228 assertEquals(chrono.dateNow(clock), MinguoChronology.INSTANCE.dateNow(clock)); in test_MinguoChronology_dateNow() 237 assertEquals(chrono.dateNow(), IsoChronology.INSTANCE.dateNow()); in test_IsoChronology_dateNow() 238 assertEquals(chrono.dateNow(zoneId_paris), IsoChronology.INSTANCE.dateNow(zoneId_paris)); in test_IsoChronology_dateNow() [all …]
|
D | TCKHijrahChronology.java | 97 Chronology c = HijrahChronology.INSTANCE; in test_chrono_byName() 108 assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now()) ; in test_dateNow() 109 assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now(ZoneId.systemDefault())) ; in test_dateNow() 110 … assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now(Clock.systemDefaultZone())) ; in test_dateNow() 111 …assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahDate.now(Clock.systemDefaultZone().getZone… in test_dateNow() 113 …assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahChronology.INSTANCE.dateNow(ZoneId.systemD… in test_dateNow() 114 …assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahChronology.INSTANCE.dateNow(Clock.systemDe… in test_dateNow() 115 …assertEquals(HijrahChronology.INSTANCE.dateNow(), HijrahChronology.INSTANCE.dateNow(Clock.systemDe… in test_dateNow() 118 …assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.sy… in test_dateNow() 119 …assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.sy… in test_dateNow() [all …]
|
D | TCKIsoChronology.java | 93 assertEquals(Chronology.from(LocalDate.of(2012, 6, 30)), IsoChronology.INSTANCE); in factory_from_TemporalAccessor_dateWithChronlogy() 113 return (R) IsoChronology.INSTANCE; in factory_from_TemporalAccessor_chronology() 117 }), IsoChronology.INSTANCE); in factory_from_TemporalAccessor_chronology() 140 }), IsoChronology.INSTANCE); in factory_from_TemporalAccessor_noChronology() 151 assertEquals(IsoChronology.INSTANCE.date(new TemporalAccessor() { in test_date_TemporalAccessor() 181 IsoChronology.INSTANCE.date(null); in test_date_TemporalAccessor_null() 187 assertEquals(IsoChronology.INSTANCE.localDateTime(new TemporalAccessor() { in test_localDateTime_TemporalAccessor() 223 IsoChronology.INSTANCE.localDateTime(null); in test_localDateTime_TemporalAccessor_null() 229 assertEquals(IsoChronology.INSTANCE.zonedDateTime(new TemporalAccessor() { in test_zonedDateTime_TemporalAccessor() 275 IsoChronology.INSTANCE.zonedDateTime(null); in test_zonedDateTime_TemporalAccessor_null() [all …]
|
D | TCKChronoPeriod.java | 94 {HijrahChronology.INSTANCE}, in data_of_calendars() 95 {IsoChronology.INSTANCE}, in data_of_calendars() 96 {JapaneseChronology.INSTANCE}, in data_of_calendars() 97 {MinguoChronology.INSTANCE}, in data_of_calendars() 98 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars() 175 ChronoPeriod thaiPeriod = ThaiBuddhistChronology.INSTANCE.period(2, 3, 4); in test_plus_wrongChrono() 193 ChronoPeriod thaiPeriod = ThaiBuddhistChronology.INSTANCE.period(2, 3, 4); in test_minus_wrongChrono() 212 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_addTo_wrongChrono() 230 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_subtractFrom_wrongChrono()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 87 assertEquals(hc, HijrahChronology.INSTANCE, "Alias for Hijrah-umalqura"); in test_aliases() 89 assertEquals(hc, HijrahChronology.INSTANCE, "Alias for Hijrah-umalqura"); in test_aliases() 123 HijrahChronology chrono = HijrahChronology.INSTANCE; in Test_UmmAlQuraChronoRange() 199 HijrahChronology chrono = HijrahChronology.INSTANCE; in test_hijrahDateLimits() 231 … {HijrahChronology.INSTANCE.dateYearDay(1434, 42), HijrahChronology.INSTANCE.date(1434, 02, 13)}, in data_dateYearDay() 232 … {HijrahChronology.INSTANCE.dateYearDay(1330, 354), HijrahChronology.INSTANCE.date(1330, 12, 29)}, in data_dateYearDay() 233 … {HijrahChronology.INSTANCE.dateYearDay(1600, 1), HijrahChronology.INSTANCE.date(1600, 1, 1)}, in data_dateYearDay() 234 … {HijrahChronology.INSTANCE.dateYearDay(1400, 175), HijrahChronology.INSTANCE.date(1400, 6, 28)}, in data_dateYearDay() 235 … {HijrahChronology.INSTANCE.dateYearDay(1520, 190), HijrahChronology.INSTANCE.date(1520, 7, 13)}, in data_dateYearDay() 236 … {HijrahChronology.INSTANCE.dateYearDay(1521, 112), HijrahChronology.INSTANCE.date(1521, 4, 25)}, in data_dateYearDay() [all …]
|
D | TestChronoLocalDate.java | 134 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 144 ThaiBuddhistChronology chrono = ThaiBuddhistChronology.INSTANCE; 155 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 168 return (D) ThaiBuddhistChronology.INSTANCE.dateNow(); 187 Chronology chrono = ThaiBuddhistChronology.INSTANCE; 194 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 908 …{FormatStyle.FULL, FormatStyle.FULL, IsoChronology.INSTANCE, Locale.US, "EEEE, MMMM d, y 'at' h:mm… in localizedDateTimePatterns() 909 …{FormatStyle.LONG, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.US, "MMMM d, y 'at' h:mm:ss a … in localizedDateTimePatterns() 910 …{FormatStyle.MEDIUM, FormatStyle.MEDIUM, IsoChronology.INSTANCE, Locale.US, "MMM d, y, h:mm:ss a"}, in localizedDateTimePatterns() 911 … {FormatStyle.SHORT, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.US, "M/d/yy, h:mm a"}, in localizedDateTimePatterns() 912 {FormatStyle.FULL, null, IsoChronology.INSTANCE, Locale.US, "EEEE, MMMM d, y"}, in localizedDateTimePatterns() 913 {FormatStyle.LONG, null, IsoChronology.INSTANCE, Locale.US, "MMMM d, y"}, in localizedDateTimePatterns() 914 {FormatStyle.MEDIUM, null, IsoChronology.INSTANCE, Locale.US, "MMM d, y"}, in localizedDateTimePatterns() 915 {FormatStyle.SHORT, null, IsoChronology.INSTANCE, Locale.US, "M/d/yy"}, in localizedDateTimePatterns() 916 {null, FormatStyle.FULL, IsoChronology.INSTANCE, Locale.US, "h:mm:ss a zzzz"}, in localizedDateTimePatterns() 917 {null, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.US, "h:mm:ss a z"}, in localizedDateTimePatterns() [all …]
|
D | TestReducedParser.java | 393 {IsoChronology.INSTANCE.date(baseYear)}, in provider_reducedWithChrono() 394 {IsoChronology.INSTANCE.date(baseYear).plus(1, YEARS)}, in provider_reducedWithChrono() 395 {IsoChronology.INSTANCE.date(baseYear).plus(99, YEARS)}, in provider_reducedWithChrono() 396 {HijrahChronology.INSTANCE.date(baseYear)}, in provider_reducedWithChrono() 397 {HijrahChronology.INSTANCE.date(baseYear).plus(1, YEARS)}, in provider_reducedWithChrono() 398 {HijrahChronology.INSTANCE.date(baseYear).plus(99, YEARS)}, in provider_reducedWithChrono() 399 {JapaneseChronology.INSTANCE.date(baseYear)}, in provider_reducedWithChrono() 400 {JapaneseChronology.INSTANCE.date(baseYear).plus(1, YEARS)}, in provider_reducedWithChrono() 401 {JapaneseChronology.INSTANCE.date(baseYear).plus(99, YEARS)}, in provider_reducedWithChrono() 402 {MinguoChronology.INSTANCE.date(baseYear)}, in provider_reducedWithChrono() [all …]
|
D | TestNonIsoFormatter.java | 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;
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 54 HeapTaskDaemon.INSTANCE, 55 ReferenceQueueDaemon.INSTANCE, 56 FinalizerDaemon.INSTANCE, 57 FinalizerWatchdogDaemon.INSTANCE, 205 private static final ReferenceQueueDaemon INSTANCE = new ReferenceQueueDaemon(); field in Daemons.ReferenceQueueDaemon 234 private static final FinalizerDaemon INSTANCE = new FinalizerDaemon(); field in Daemons.FinalizerDaemon 272 FinalizerWatchdogDaemon.INSTANCE.goToSleep(); in runInternal() 276 FinalizerWatchdogDaemon.INSTANCE.wakeUp(); in runInternal() 309 private static final FinalizerWatchdogDaemon INSTANCE = new FinalizerWatchdogDaemon(); field in Daemons.FinalizerWatchdogDaemon 417 long startCount = FinalizerDaemon.INSTANCE.progressCounter.get(); in waitForFinalization() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateTimeSerialization.java | 86 {HijrahChronology.INSTANCE}, in data_of_calendars() 87 {IsoChronology.INSTANCE}, in data_of_calendars() 88 {JapaneseChronology.INSTANCE}, in data_of_calendars() 89 {MinguoChronology.INSTANCE}, in data_of_calendars() 90 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
|
D | TCKChronoZonedDateTimeSerialization.java | 85 {HijrahChronology.INSTANCE}, in data_of_calendars() 86 {IsoChronology.INSTANCE}, in data_of_calendars() 87 {JapaneseChronology.INSTANCE}, in data_of_calendars() 88 {MinguoChronology.INSTANCE}, in data_of_calendars() 89 {ThaiBuddhistChronology.INSTANCE}, in data_of_calendars()
|
D | TCKChronologySerialization.java | 85 {HijrahChronology.INSTANCE}, in data_of_calendars() 86 {IsoChronology.INSTANCE}, in data_of_calendars() 87 {JapaneseChronology.INSTANCE}, in data_of_calendars() 88 {MinguoChronology.INSTANCE}, in data_of_calendars() 89 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 56 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear() 82 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear_invalidValues() 94 assertEquals(field.range(), IsoChronology.INSTANCE.range(field)); in test_range() 105 ZonedDateTime result = IsoChronology.INSTANCE in test_zonedDateTime() 114 IsoChronology.INSTANCE.zonedDateTime(null, ZoneOffset.UTC); in test_zonedDateTime_nullInstant() 119 IsoChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
|
D | JapaneseChronologyTest.java | 49 ChronoZonedDateTime<JapaneseDate> result = JapaneseChronology.INSTANCE in test_zonedDateTime() 58 JapaneseChronology.INSTANCE.zonedDateTime(null, ZoneOffset.UTC); in test_zonedDateTime_nullInstant() 63 JapaneseChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone() 68 assertSame(JapaneseChronology.INSTANCE, JapaneseDate.now().getChronology()); in test_JapaneseDate_getChronology() 121 .withChronology(JapaneseChronology.INSTANCE); in test_JapaneseEras_dateTimeFormatter() 140 JapaneseDate heiseiDate = JapaneseChronology.INSTANCE.date(heisei); in test_JapaneseEras_calendarsDotProperties() 141 JapaneseDate reiwaDate = JapaneseChronology.INSTANCE.date(reiwa); in test_JapaneseEras_calendarsDotProperties()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKChronoPrinterParser.java | 110 {"ISO", IsoChronology.INSTANCE}, in data_parseValid() 111 {"ThaiBuddhist", ThaiBuddhistChronology.INSTANCE}, in data_parseValid() 112 {"Japanese", JapaneseChronology.INSTANCE}, in data_parseValid() 114 {"ISO2012", IsoChronology.INSTANCE}, in data_parseValid() 115 {"ThaiBuddhistXXX", ThaiBuddhistChronology.INSTANCE}, in data_parseValid() 116 {"JapaneseXXX", JapaneseChronology.INSTANCE}, in data_parseValid()
|
D | TCKDateTimeFormatter.java | 153 test = test.withChronology(IsoChronology.INSTANCE); in test_withChronology() 154 assertEquals(test.getChronology(), IsoChronology.INSTANCE); in test_withChronology() 285 …ChronoZonedDateTime<ThaiBuddhistDate> thaiZdt = ThaiBuddhistChronology.INSTANCE.zonedDateTime(zdt); in data_format_withZone_withChronology() 298 {IsoChronology.INSTANCE, null, DayOfWeek.MONDAY, "::::ISO"}, in data_format_withZone_withChronology() 299 {IsoChronology.INSTANCE, null, ym, "2008::::ISO"}, in data_format_withZone_withChronology() 300 {IsoChronology.INSTANCE, null, ld, "2008::::ISO"}, in data_format_withZone_withChronology() 301 {IsoChronology.INSTANCE, null, lt, ":11:::ISO"}, in data_format_withZone_withChronology() 302 {IsoChronology.INSTANCE, null, ldt, "2008:11:::ISO"}, in data_format_withZone_withChronology() 303 {IsoChronology.INSTANCE, null, ot, ":11:+01:00::ISO"}, in data_format_withZone_withChronology() 304 {IsoChronology.INSTANCE, null, odt, "2008:11:+01:00::ISO"}, in data_format_withZone_withChronology() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 589 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDate() 617 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedTime() 645 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 675 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 710 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 738 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 771 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 899 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 927 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 962 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | AVAComparator.java | 37 private static final java.util.Comparator<sun.security.x509.AVA> INSTANCE; field in AVAComparator 40 INSTANCE = null;
|
/libcore/test-rules/src/main/java/libcore/junit/util/ |
D | SwitchTargetSdkVersionRule.java | 60 private static final TestRule INSTANCE; field in SwitchTargetSdkVersionRule 75 INSTANCE = rule; 79 return INSTANCE; in getInstance()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | UNIXProcess.java | 159 ProcessBuilder.NullOutputStream.INSTANCE : 163 ProcessBuilder.NullInputStream.INSTANCE : 167 ProcessBuilder.NullInputStream.INSTANCE : 296 ProcessBuilder.NullInputStream.INSTANCE : 327 this.out = ProcessBuilder.NullOutputStream.INSTANCE;
|