Home
last modified time | relevance | path

Searched refs:OFFSET (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_Offset.java83 private static final Duration OFFSET = Duration.ofSeconds(2); field in TCKClock_Offset
87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET); in test_offset_ClockDuration()
90 assertEquals(test.instant(), INSTANT.plus(OFFSET)); in test_offset_ClockDuration()
112 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone()
119 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone_equal()
126 Clock.offset(Clock.system(PARIS), OFFSET).withZone(null); in test_withZone_null()
131 Clock a = Clock.offset(Clock.system(PARIS), OFFSET); in test_equals()
132 Clock b = Clock.offset(Clock.system(PARIS), OFFSET); in test_equals()
138 Clock c = Clock.offset(Clock.system(MOSCOW), OFFSET); in test_equals()
141 Clock d = Clock.offset(Clock.system(PARIS), OFFSET.minusNanos(1)); in test_equals()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DTestClock_Offset.java78 private static final Duration OFFSET = Duration.ofSeconds(2); field in TestClock_Offset
82 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone_same()
89 Clock test = Clock.offset(Clock.systemUTC(), OFFSET); in test_toString()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalQueries.java291 return TemporalQueries.OFFSET; in offset()
363 static final TemporalQuery<ZoneOffset> OFFSET = (temporal) -> { field in TemporalQueries
375 return (zone != null ? zone : temporal.query(OFFSET));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java2681 final int OFFSET = 2; in test_transferFromLReadableByteChannelJJ_Pipe() local
2683 long result = writeOnlyFileChannel.transferFrom(pipe.source(), OFFSET, in test_transferFromLReadableByteChannelJJ_Pipe()
2690 byte[] resultBytes = new byte[OFFSET + LENGTH]; in test_transferFromLReadableByteChannelJJ_Pipe()
2694 byte[] expectedBytes = new byte[OFFSET + LENGTH]; in test_transferFromLReadableByteChannelJJ_Pipe()
2695 System.arraycopy(CONTENT_AS_BYTES, 0, expectedBytes, 0, OFFSET); in test_transferFromLReadableByteChannelJJ_Pipe()
2696 System.arraycopy(CONTENT_AS_BYTES, 0, expectedBytes, OFFSET, LENGTH); in test_transferFromLReadableByteChannelJJ_Pipe()
2958 final int OFFSET = 2; in test_transferToJJLWritableByteChannel_SocketChannel() local
2959 long result = readOnlyFileChannel.transferTo(OFFSET, in test_transferToJJLWritableByteChannel_SocketChannel()
2961 final int LENGTH = CONTENT_AS_BYTES_LENGTH - OFFSET; in test_transferToJJLWritableByteChannel_SocketChannel()
2983 for (int i = OFFSET; i < CONTENT_AS_BYTES_LENGTH; i++) { in test_transferToJJLWritableByteChannel_SocketChannel()
[all …]