Home
last modified time | relevance | path

Searched refs:WRITE (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousFileChannelTest.java60 StandardOpenOption.CREATE, StandardOpenOption.WRITE); in testOpen_create()
74 StandardOpenOption.CREATE, StandardOpenOption.WRITE); in testOpen_existing()
82 StandardOpenOption.WRITE); in testOpen_existing()
89 StandardOpenOption.WRITE); in testOpen_existing()
105 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.WRITE); in testOpen_nonexistent()
170 StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.WRITE); in testOpen_truncate()
198 StandardOpenOption.WRITE); in testRead_Future()
287 StandardOpenOption.WRITE); in testRead_CompletionListener()
378 StandardOpenOption.WRITE, StandardOpenOption.READ); in testWrite_Future()
471 StandardOpenOption.WRITE, StandardOpenOption.READ); in testWrite_CompletionListener()
[all …]
DFileIOInterruptTest.java315 testChannelWrite_exceptionWhenAlreadyClosed(ChannelWriter.Method.WRITE); in testChannelWrite_exceptionWhenAlreadyClosed()
331 if (method == ChannelWriter.Method.WRITE) { in testChannelWrite_exceptionWhenAlreadyClosed()
346 testChannelWrite_exceptionWhenAlreadyInterrupted(ChannelWriter.Method.WRITE); in testChannelWrite_exceptionWhenAlreadyInterrupted()
364 if (method == ChannelWriter.Method.WRITE) { in testChannelWrite_exceptionWhenAlreadyInterrupted()
383 testChannelWrite_exceptionOnCloseWhenBlocked(ChannelWriter.Method.WRITE); in testChannelWrite_exceptionOnCloseWhenBlocked()
425 testChannelWrite_exceptionOnInterrupt(ChannelWriter.Method.WRITE); in testChannelWrite_exceptionOnInterrupt()
579 WRITE, enumConstant
605 if (method == Method.WRITE) { in run()
DFileChannelTest.java20 import static java.nio.file.StandardOpenOption.WRITE;
312 standardOpenOptions.add(WRITE); in test_open_Path_Set_FileAttributes()
337 standardOpenOptions.add(WRITE); in test_open_Path_OpenOptions()
344 assertEquals(mockFileChannel, FileChannel.open(mockPath, READ, WRITE)); in test_open_Path_OpenOptions()
/libcore/ojluni/src/main/java/java/nio/file/
DAccessMode.java42 WRITE, enumConstant
DStandardOpenOption.java43 WRITE, enumConstant
DFiles.java631 EnumSet.<StandardOpenOption>of(StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE);
2521 return isAccessible(path, AccessMode.WRITE);
3017 StandardOpenOption.WRITE);
/libcore/luni/src/main/java/libcore/io/
DIoTracker.java61 WRITE enumConstant
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProvider2Test.java65 import static java.nio.file.StandardOpenOption.WRITE;
409 openOptions.add(WRITE); in test_newFileChannel()
452 openOptions.add(WRITE); in test_newFileChannel()
464 openOptions.add(WRITE); in test_newFileChannel()
477 openOptions.add(WRITE); in test_newFileChannel()
490 openOptions.add(WRITE); in test_newFileChannel()
517 new Object[] { EnumSet.of(WRITE) }, in parameters_test_newFileChannel_NoSuchFileException()
542 openOptions.add(WRITE); in test_newFileChannel_withFileAttributes()
555 openOptions.add(WRITE); in test_newFileChannel_withFileAttributes()
DDefaultFileSystemProviderTest.java65 import static java.nio.file.StandardOpenOption.WRITE;
100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption() argument
208 try (OutputStream os = provider.newOutputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newOutputStream_openOption_WRITE() argument
219 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), WRITE)) { in test_newOutputStream_openOption_WRITE() argument
327 set.add(WRITE); in test_newByteChannel_openOption_WRITE()
363 set.add(WRITE); in test_newByteChannel_openOption_WRITE_READ()
DFiles2Test.java77 import static java.nio.file.StandardOpenOption.WRITE;
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
1212 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE)) { in test_newByteChannel_openOption_WRITE() argument
1227 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE, in test_newByteChannel_openOption_WRITE_READ() argument
/libcore/ojluni/src/main/java/java/lang/
DProcessBuilder.java484 WRITE, enumConstant
591 public Type type() { return Type.WRITE; } in to()
701 if (source.type() == Redirect.Type.WRITE ||
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java380 opt == StandardOpenOption.WRITE) in newInputStream()
433 opts.add(StandardOpenOption.WRITE); in newOutputStream()
/libcore/ojluni/src/main/java/java/util/logging/
DFileHandler.java31 import static java.nio.file.StandardOpenOption.WRITE;
461 CREATE_NEW, WRITE); in openFiles()
473 WRITE, APPEND); in openFiles()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUnixAsynchronousSocketChannelImpl.java49 private static enum OpType { CONNECT, READ, WRITE }; enumConstant
258 if (task.getContext() == OpType.WRITE) in onCancel()
727 result = new PendingFuture<V,A>(this, OpType.WRITE); in implWrite()
/libcore/ojluni/src/main/java/java/io/
DRandomAccessFile.java545 ioTracker.trackIo(len, IoTracker.Mode.WRITE); in writeBytes()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java281 case WRITE : w = true; break; in checkAccess()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java404 assertRedirectFileAndType(file, Type.WRITE, Redirect.to(file)); in testRedirect_fileAndType()