Home
last modified time | relevance | path

Searched refs:READ (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DIoTracker.java29 private Mode mode = Mode.READ;
60 READ, enumConstant
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousFileChannelTest.java99 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.READ); in testOpen_nonexistent()
123 StandardOpenOption.READ); in testOpen_nonexistent()
182 StandardOpenOption.DELETE_ON_CLOSE, StandardOpenOption.READ); in testOpen_deleteOnClose()
208 StandardOpenOption.READ); in testRead_Future()
300 StandardOpenOption.READ); in testRead_CompletionListener()
368 StandardOpenOption.READ); in testWrite_Future()
378 StandardOpenOption.WRITE, StandardOpenOption.READ); in testWrite_Future()
458 StandardOpenOption.READ); in testWrite_CompletionListener()
471 StandardOpenOption.WRITE, StandardOpenOption.READ); in testWrite_CompletionListener()
628 afc = AsynchronousFileChannel.open(temp.toPath(), StandardOpenOption.READ); in testTruncate()
[all …]
DFileIOInterruptTest.java182 testChannelRead_exceptionWhenAlreadyClosed(ChannelReader.Method.READ); in testChannelRead_exceptionWhenAlreadyClosed()
199 if (method == ChannelReader.Method.READ) { in testChannelRead_exceptionWhenAlreadyClosed()
214 testChannelRead_exceptionWhenAlreadyInterrupted(ChannelReader.Method.READ); in testChannelRead_exceptionWhenAlreadyInterrupted()
232 if (method == ChannelReader.Method.READ) { in testChannelRead_exceptionWhenAlreadyInterrupted()
251 testChannelRead_exceptionOnCloseWhenBlocked(ChannelReader.Method.READ); in testChannelRead_exceptionOnCloseWhenBlocked()
284 testChannelRead_exceptionOnInterrupt(ChannelReader.Method.READ); in testChannelRead_exceptionOnInterrupt()
534 READ, enumConstant
554 if (method == Method.READ) { in run()
DFileChannelTest.java19 import static java.nio.file.StandardOpenOption.READ;
311 standardOpenOptions.add(READ); in test_open_Path_Set_FileAttributes()
336 standardOpenOptions.add(READ); in test_open_Path_OpenOptions()
344 assertEquals(mockFileChannel, FileChannel.open(mockPath, READ, WRITE)); in test_open_Path_OpenOptions()
/libcore/ojluni/src/main/java/java/lang/
DProcessBuilder.java478 READ, enumConstant
564 public Type type() { return Type.READ; } in from()
732 if (destination.type() == Redirect.Type.READ)
766 if (destination.type() == Redirect.Type.READ)
/libcore/ojluni/src/main/java/java/nio/file/
DAccessMode.java38 READ, enumConstant
DStandardOpenOption.java38 READ, enumConstant
DFiles.java2490 return isAccessible(path, AccessMode.READ);
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java50 import static java.nio.file.StandardOpenOption.READ;
88 when(mockFileSystemProvider.newInputStream(mockPath, READ)).thenReturn(is); in test_newInputStream()
90 assertSame(is, Files.newInputStream(mockPath, READ)); in test_newInputStream()
92 verify(mockFileSystemProvider).newInputStream(mockPath, READ); in test_newInputStream()
112 openOptions.add(READ); in test_newByteChannel()
116 assertSame(sfc, Files.newByteChannel(mockPath, READ)); in test_newByteChannel()
DDefaultFileSystemProvider2Test.java63 import static java.nio.file.StandardOpenOption.READ;
442 openOptions.add(READ); in test_newFileChannel()
516 new Object[] { EnumSet.of(READ) }, in parameters_test_newFileChannel_NoSuchFileException()
520 new Object[] { EnumSet.of(CREATE, READ) }, in parameters_test_newFileChannel_NoSuchFileException()
522 new Object[] { EnumSet.of(CREATE, READ) }, in parameters_test_newFileChannel_NoSuchFileException()
DDefaultFileSystemProviderTest.java61 import static java.nio.file.StandardOpenOption.READ;
92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream() argument
125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice() argument
127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream_twice()
159 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), READ)) { in test_newOutputStream_openOption_READ() argument
364 set.add(READ); in test_newByteChannel_openOption_WRITE_READ()
DFiles2Test.java74 import static java.nio.file.StandardOpenOption.READ;
1228 READ, SYNC/* Sync makes sure the that InputStream is able to read content written by in test_newByteChannel_openOption_WRITE_READ() argument
1575 Files.write(filesSetup.getDataFilePath(), TEST_FILE_DATA_2.getBytes(), READ); in test_write$Path$byte$OpenOption_OpenOption() local
/libcore/ojluni/src/main/java/sun/nio/ch/
DUnixAsynchronousSocketChannelImpl.java49 private static enum OpType { CONNECT, READ, WRITE }; enumConstant
256 if (task.getContext() == OpType.READ) in onCancel()
544 result = new PendingFuture<V,A>(this, OpType.READ); in implRead()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java428 if (opt == StandardOpenOption.READ) in newOutputStream()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixChannelFactory.java73 case READ : flags.read = true; break; in toFlags()
DUnixFileSystemProvider.java280 case READ : r = true; break; in checkAccess()
/libcore/ojluni/src/main/java/java/io/
DRandomAccessFile.java386 ioTracker.trackIo(len, IoTracker.Mode.READ); in readBytes()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java403 assertRedirectFileAndType(file, Type.READ, Redirect.from(file)); in testRedirect_fileAndType()
/libcore/api/
Dcurrent.txt3508 enum_constant public static final java.lang.ProcessBuilder.Redirect.Type READ;
6584 enum_constant public static final java.nio.file.AccessMode READ;
6890 enum_constant public static final java.nio.file.StandardOpenOption READ;