Searched refs:sbc (Results 1 – 8 of 8) sorted by relevance
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ChannelInputStream.java | 114 SeekableByteChannel sbc = (SeekableByteChannel)ch; in available() local 115 long rem = Math.max(0, sbc.size() - sbc.position()); in available() 124 SeekableByteChannel sbc = (SeekableByteChannel)ch; in skip() local 125 long pos = sbc.position(); in skip() 129 long size = sbc.size(); in skip() 136 sbc.position(newPos); in skip()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProviderTest.java | 294 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) { in test_newByteChannel() argument 303 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel() argument 304 sbc.write(ByteBuffer.allocate(10)); in test_newByteChannel() 310 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel() argument 312 int bytesReadCount = sbc.read(readBuffer); in test_newByteChannel() 330 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) { in test_newByteChannel_openOption_WRITE() argument 338 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel_openOption_WRITE() argument 339 sbc.read(ByteBuffer.allocate(10)); in test_newByteChannel_openOption_WRITE() 345 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel_openOption_WRITE() argument 346 sbc.write(ByteBuffer.wrap(TEST_FILE_DATA_2.getBytes())); in test_newByteChannel_openOption_WRITE() [all …]
|
D | DefaultSecureDirectoryStreamTest.java | 209 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getTestPath(), in test_newByteChannel() argument 218 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel() argument 220 sbc.write(ByteBuffer.allocate(10)); in test_newByteChannel() 227 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel() argument 230 int bytesReadCount = sbc.read(readBuffer); in test_newByteChannel() 239 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel() argument 251 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(null, set)) { in test_newByteChannel_NPE() argument 256 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getDataFilePath(), in test_newByteChannel_NPE() argument
|
D | Files2Test.java | 1170 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getTestPath())) { in test_newByteChannel() argument 1178 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath())) { in test_newByteChannel() argument 1179 sbc.write(ByteBuffer.allocate(10)); in test_newByteChannel() 1185 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath())) { in test_newByteChannel() argument 1187 int bytesReadCount = sbc.read(readBuffer); in test_newByteChannel() 1198 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getTestPath(), WRITE)) { in test_newByteChannel_openOption_WRITE() argument 1205 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE)) { in test_newByteChannel_openOption_WRITE() argument 1206 sbc.read(ByteBuffer.allocate(10)); in test_newByteChannel_openOption_WRITE() 1212 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE)) { in test_newByteChannel_openOption_WRITE() argument 1213 sbc.write(ByteBuffer.wrap(TEST_FILE_DATA_2.getBytes())); in test_newByteChannel_openOption_WRITE() [all …]
|
/libcore/ojluni/src/test/java/lang/StringBuffer/ |
D | Supplementary.java | 210 int sbc = sb.codePointAt(j); in test4() local 211 check(sbc != c, "appendCodePoint(j) != c", sbc, c); in test4()
|
/libcore/ojluni/src/test/java/lang/StringBuilder/ |
D | Supplementary.java | 212 int sbc = sb.codePointAt(j); in test4() local 213 check(sbc != c, "appendCodePoint("+j+") != c", sbc, c); in test4()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 3152 try (SeekableByteChannel sbc = Files.newByteChannel(path); 3153 InputStream in = Channels.newInputStream(sbc)) { 3154 long size = sbc.size();
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 1113 T_CONS sbc = (T_CONS) sb; in forEachRemaining() local 1115 do { } while (s.tryAdvance(sbc) && ++permitsRequested < chunkSize); in forEachRemaining()
|