Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_Fixed.java85 Clock test = Clock.fixed(INSTANT, PARIS); in test_fixed_InstantZoneId()
93 Clock.fixed(null, PARIS); in test_fixed_InstantZoneId_nullInstant()
98 Clock.fixed(INSTANT, null); in test_fixed_InstantZoneId_nullZoneId()
103 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone()
110 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_equal()
117 Clock.fixed(INSTANT, PARIS).withZone(null); in test_withZone_null()
122 Clock a = Clock.fixed(INSTANT, ZoneOffset.UTC); in test_equals()
123 Clock b = Clock.fixed(INSTANT, ZoneOffset.UTC); in test_equals()
129 Clock c = Clock.fixed(INSTANT, PARIS); in test_equals()
132 Clock d = Clock.fixed(INSTANT.minusNanos(1), ZoneOffset.UTC); in test_equals()
[all …]
DTCKClock_Tick.java88 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMil… in test_tick_ClockDuration_250millis()
96 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(2… in test_tick_ClockDuration_250micros()
104 … Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20)); in test_tick_ClockDuration_20nanos()
DTCKClock_Offset.java87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET); in test_offset_ClockDuration()
DTCKClock_System.java179 assertEquals(a.equals(Clock.fixed(Instant.now(), ZoneOffset.UTC)), false); in test_equals()
DTCKLocalDate.java281 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock_allSecsInDay_utc()
293 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
305 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
316 Clock clock = Clock.fixed(MAX_INSTANT, ZoneOffset.UTC);
323 Clock clock = Clock.fixed(MAX_INSTANT.plusSeconds(24 * 60 * 60), ZoneOffset.UTC);
329 Clock clock = Clock.fixed(MIN_INSTANT, ZoneOffset.UTC);
336 Clock clock = Clock.fixed(MIN_INSTANT.minusNanos(1), ZoneOffset.UTC);
DTCKLocalDateTime.java304 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
320 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
337 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
350 Clock clock = Clock.fixed(MAX_INSTANT, ZoneOffset.UTC);
357 Clock clock = Clock.fixed(MAX_INSTANT.plusSeconds(24 * 60 * 60), ZoneOffset.UTC);
363 Clock clock = Clock.fixed(MIN_INSTANT, ZoneOffset.UTC);
370 Clock clock = Clock.fixed(MIN_INSTANT.minusNanos(1), ZoneOffset.UTC);
DTCKOffsetDateTime.java258 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
275 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
293 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
309 Clock clock = Clock.fixed(base.toInstant(), offset);
DTCKOffsetTime.java229 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
243 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
258 Clock clock = Clock.fixed(base, offset);
DTCKLocalTime.java263 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock_allSecsInDay()
276 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock_beforeEpoch()
288 Clock clock = Clock.fixed(Instant.MAX, ZoneOffset.UTC); in now_Clock_max()
298 Clock clock = Clock.fixed(Instant.MIN, ZoneOffset.UTC); in now_Clock_min()
DTCKZonedDateTime.java272 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
292 Clock clock = Clock.fixed(expected.toInstant(), zone);
303 Clock clock = Clock.fixed(instant, ZoneOffset.UTC);
320 Clock clock = Clock.fixed(base.toInstant(), offset);
DTCKMonthDay.java195 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock()
DTCKInstant.java209 Clock clock = Clock.fixed(expected, ZoneOffset.UTC);
219 Clock clock = Clock.fixed(expected, ZoneOffset.UTC);
DTCKYear.java202 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock()
DTCKYearMonth.java214 Clock clock = Clock.fixed(instant, ZoneOffset.UTC); in now_Clock()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstantSource.java66 var test = InstantSource.tick(InstantSource.fixed(instant), duration);
67 …assertEquals(test.withZone(ZoneOffset.UTC), Clock.tick(Clock.fixed(instant, ZoneOffset.UTC), durat…
68 assertEquals(test.withZone(PARIS), Clock.tick(Clock.fixed(instant, PARIS), duration));
71 assertEquals(test, InstantSource.tick(InstantSource.fixed(instant), duration));
72 …assertEquals(test.hashCode(), InstantSource.tick(InstantSource.fixed(instant), duration).hashCode(…
78 var test = InstantSource.fixed(instant);
79 assertEquals(test.withZone(ZoneOffset.UTC), Clock.fixed(instant, ZoneOffset.UTC));
80 assertEquals(test.withZone(PARIS), Clock.fixed(instant, PARIS));
83 assertEquals(test, InstantSource.fixed(instant));
84 assertEquals(test.hashCode(), InstantSource.fixed(instant).hashCode());
[all …]
DTestClock_Fixed.java84 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_same()
91 Clock test = Clock.fixed(INSTANT, PARIS); in test_toString()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKClockSerialization.java105 assertSerializable(Clock.tick(Clock.fixed(INSTANT, PARIS), AMOUNT)); in test_tickClockSerializable()
110 assertSerializable(Clock.fixed(INSTANT, ZoneOffset.UTC)); in test_fixedClockSerializable()
111 assertSerializable(Clock.fixed(INSTANT, PARIS)); in test_fixedClockSerializable()
/libcore/ojluni/src/main/java/java/time/
DInstantSource.java169 static InstantSource fixed(Instant fixedInstant) { in fixed() method
170 return Clock.fixed(fixedInstant, ZoneOffset.UTC); in fixed()
DClock.java347 public static Clock fixed(Instant fixedInstant, ZoneId zone) { in fixed() method in Clock
/libcore/expectations/
DskippedCtsTest.txt27 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
34 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
49 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
75 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
109 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
142 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
DskippedCtsTest_manual_base.txt12 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
17 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
42 …e test asserts buggy or non-breaking behaviors, but the behavior has been fixed in a new mainline …
Dknownfailures.txt161 …ption: "Not supported feature, Ticket 98. Broken because NUMERIC_FUNCTIONS not complete. When fixed
1650 …description: "this test needs to be fixed. We supply optional qnames, but this test doesn't expect…
/libcore/
DNativeCode.bp121 // issues have been fixed. Most of these are small changes except for
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template198 * <p> The byte order of a view buffer is fixed to be that of its byte buffer
/libcore/api/
Dcurrent.txt11379 method public static java.time.Clock fixed(java.time.Instant, java.time.ZoneId);
11520 method public static java.time.InstantSource fixed(java.time.Instant);