Home
last modified time | relevance | path

Searched refs:file2 (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java59 File file2 = File.createTempFile("FileWriterTest2", "txt"); in getParameters() local
62 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters()
63 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters()
64 {ConstructorType.STRING_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters()
65 {ConstructorType.FILE_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters()
66 {ConstructorType.STRING, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
67 {ConstructorType.FILE, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
68 {ConstructorType.STRING_APPEND, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
69 {ConstructorType.FILE_APPEND, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
85 void test(ConstructorType type, File file1, File file2, Charset charset) in test() argument
[all …]
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java58 File file2 = new File(USER_DIR, "FileReaderTest2.txt"); in getParameters() local
61 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters()
62 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters()
63 {ConstructorType.STRING, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
64 {ConstructorType.FILE, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
80 void test(ConstructorType type, File file1, File file2, Charset charset) in test() argument
83 prepareFile(file2, TEST_STRING, charset); in test()
86 FileInputStream is = new FileInputStream(file2); in test()
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java65 File file2 = Files.createTempFile( "ScannerCharsetTest2.txt", null).toFile(); in getParameters() local
68 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
69 {ConstructorType.PATH, file1, file2, csn, charset}, in getParameters()
70 {ConstructorType.INPUTSTREAM, file1, file2, csn, charset}, in getParameters()
71 {ConstructorType.READABLEBYTECHANNEL, file1, file2, csn, charset},}; in getParameters()
86 void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
89 prepareFile(file2, TEST_STRING); in test()
92 Scanner s2 = getScanner(type, file2.getPath(), null, charset);) { in test()
/libcore/ojluni/src/test/java/io/PrintStream/
DEncodingTest.java62 File file2 = File.createTempFile("PSCharsetTest2", "txt"); in getParameters() local
65 {ConstructorType.STRING, file1, file2, csn, charset}, in getParameters()
66 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
67 {ConstructorType.OUTPUTSTREAM, file1, file2, csn, charset} in getParameters()
82 public void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
85 createFile(getPrintStream(type, file2.getPath(), null, charset)); in test()
88 Files.readAllLines(Paths.get(file2.getPath()), charset)); in test()
/libcore/ojluni/src/test/java/io/PrintWriter/
DEncodingTest.java63 File file2 = File.createTempFile("PSCharsetTest2", "txt"); in getParameters() local
66 {ConstructorType.STRING, file1, file2, csn, charset}, in getParameters()
67 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
68 {ConstructorType.OUTPUTSTREAM, file1, file2, csn, charset} in getParameters()
84 public void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
87 createFile(getWriter(type, file2.getPath(), null, charset)); in test()
90 Files.readAllLines(Paths.get(file2.getPath()), charset)); in test()
/libcore/support/src/test/java/tests/support/
DSupport_DeleteOnExitTest.java13 File file2 = new File(args[1]); in main() local
16 file2.deleteOnExit(); in main()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java66 String file2 = u2.getFile(); in sameFile() local
68 int sep2 = file2.indexOf(separator); in sameFile()
75 String entry2 = file2.substring(sep2 + 2); in sameFile()
83 enclosedURL2 = new URL(file2.substring(0, sep2)); in sameFile()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java327 UnixPath file2 = (UnixPath)obj2; in isSameFile()
331 file2.checkRead(); in isSameFile()
342 attrs2 = UnixFileAttributes.get(file2, true); in isSameFile()
344 x.rethrowAsIOException(file2); in isSameFile()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java600 Path file2 = filesSetup.getPathInTestDir("root/file2"); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow() local
604 Files.createSymbolicLink(file2, dir2.toAbsolutePath()); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
605 assertTrue(Files.isSymbolicLink(file2)); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
611 Files.walkFileTree(file2, option, 50, new TestFileVisitor(dirMap, option)); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
614 expectedDirMap.put(file2.getFileName(), VisitOption.POST_VISIT_DIRECTORY); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
686 Path file2 = filesSetup.getPathInTestDir("root/dir2/file2"); in test_walkFileTree_depthFirst() local
691 Files.createFile(file2); in test_walkFileTree_depthFirst()
701 assertEquals(file2.getFileName(), keyList.get(4)); in test_walkFileTree_depthFirst()
703 assertEquals(file2.getFileName(), keyList.get(2)); in test_walkFileTree_depthFirst()
1006 Path file2 = Paths.get(filesSetup.getTestDir(), "root/dir1/file2"); in test_list() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java220 File file2 = new File("/", "//dir1/file1"); in test_Constructor_String_String_112270() local
221 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); in test_Constructor_String_String_112270()
244 File file2 = new File(root, "//dir1/file1"); in test_Constructor_File_String_112270() local
245 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); in test_Constructor_File_String_112270()