Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/stream/
DNode.java122 default Node<T> truncate(long from, long to, IntFunction<T[]> generator) { in truncate() method
254 T_NODE truncate(long from, long to, IntFunction<T[]> generator); in truncate() method
357 default Node.OfInt truncate(long from, long to, IntFunction<Integer[]> generator) { in truncate() method
430 default Node.OfLong truncate(long from, long to, IntFunction<Long[]> generator) { in truncate() method
505 default Node.OfDouble truncate(long from, long to, IntFunction<Double[]> generator) { in truncate() method
DNodes.java817 public Node<T> truncate(long from, long to, IntFunction<T[]> generator) { in truncate() method in Nodes.ConcNode
822 return right.truncate(from - leftCount, to - leftCount, generator); in truncate()
824 return left.truncate(from, to, generator); in truncate()
826 return Nodes.conc(getShape(), left.truncate(from, leftCount, generator), in truncate()
827 right.truncate(0, to - leftCount, generator)); in truncate()
/libcore/ojluni/src/main/java/java/nio/channels/
DSeekableByteChannel.java167 SeekableByteChannel truncate(long size) throws IOException; in truncate() method
DAsynchronousFileChannel.java341 public abstract AsynchronousFileChannel truncate(long size) throws IOException; in truncate() method in AsynchronousFileChannel
DFileChannel.java504 public abstract FileChannel truncate(long size) throws IOException; in truncate() method in FileChannel
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousFileChannelTest.java593 afc.truncate(16); in testSize()
605 afc.truncate(128); in testTruncate()
609 afc.truncate(0); in testTruncate()
614 afc.truncate(128); in testTruncate()
619 afc.truncate(-1); in testTruncate()
630 afc.truncate(128); in testTruncate()
636 afc.truncate(384); in testTruncate()
DFileChannelTest.java170 fc.truncate(truncateArg); // Should not affect the file size, but should move the position. in test_truncate_greaterThanSizeWithPositionChange()
192 fc.truncate(truncateArg); in test_truncate_greaterThanSizeWithoutPositionChange()
212 fc.truncate(truncateArg); in test_truncate_lessThanSizeWithPositionChange()
232 fc.truncate(truncateArg); in test_truncate_lessThanSizeWithoutPositionChange()
/libcore/ojluni/src/main/java/java/sql/
DBlob.java266 void truncate(long len) throws SQLException; in truncate() method
DClob.java309 void truncate(long len) throws SQLException; in truncate() method
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcher.java41 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate() method in FileDispatcher
DSimpleAsynchronousFileChannelImpl.java125 public AsynchronousFileChannel truncate(long size) throws IOException { in truncate() method in SimpleAsynchronousFileChannelImpl
142 n = nd.truncate(fdObj, size); in truncate()
DFileDispatcherImpl.java98 int truncate(FileDescriptor fd, long size) throws IOException { in truncate() method in FileDispatcherImpl
DFileChannelImpl.java370 public FileChannel truncate(long newSize) throws IOException { in truncate() method in FileChannelImpl
406 rv = nd.truncate(fd, newSize); in truncate()
957 rv = nd.truncate(fd, position + size); in map()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DBitArray.java93 public sun.security.util.BitArray truncate() { in truncate() method in BitArray
/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java124 final void truncate() { in truncate() method in Buffer
/libcore/ojluni/src/main/java/java/nio/
DBuffer.java573 final void truncate() { // package-private in truncate() method in Buffer
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java509 readOnlyFileChannel.truncate(0); in test_truncateJ_Closed()
517 writeOnlyFileChannel.truncate(0); in test_truncateJ_Closed()
525 readWriteFileChannel.truncate(-1); in test_truncateJ_Closed()
538 readOnlyFileChannel.truncate(-1); in test_truncateJ_IllegalArgument()
545 writeOnlyFileChannel.truncate(-1); in test_truncateJ_IllegalArgument()
552 readWriteFileChannel.truncate(-1); in test_truncateJ_IllegalArgument()
565 readOnlyFileChannel.truncate(readOnlyFileChannel.size()); in test_truncateJ_ReadOnly()
572 readOnlyFileChannel.truncate(0); in test_truncateJ_ReadOnly()
586 assertEquals(readWriteFileChannel, readWriteFileChannel.truncate(truncateLength)); in test_truncateJ()
591 .truncate(truncateLength)); in test_truncateJ()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DBitArray.java266 public BitArray truncate() { in truncate() method in BitArray
DDerValue.java281 buffer.truncate(length); in DerValue()
290 buffer.truncate(length); in DerValue()
DDerOutputStream.java266 putUnalignedBitString(ba.truncate()); in putTruncatedUnalignedBitString()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeTest.java148 Node<Integer> slice = n.truncate(start, end, Integer[]::new); in testTruncate()
DLongNodeTest.java172 Node.OfLong slice = n.truncate(start, end, Long[]::new); in testTruncate()
DIntNodeTest.java171 Node.OfInt slice = n.truncate(start, end, Integer[]::new); in testTruncate()
DDoubleNodeTest.java173 Node.OfDouble slice = n.truncate(start, end, Double[]::new); in testTruncate()
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DFileChannelImpl.java104 public java.nio.channels.FileChannel truncate(long newSize) throws java.io.IOException { in truncate() method in FileChannelImpl

12