Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java94 String tmpDir = System.getProperty("java.io.tmpdir"); in test_ConstructorLjava_lang_StringLjava_lang_String() local
95 if (!tmpDir.endsWith(File.separator)) { in test_ConstructorLjava_lang_StringLjava_lang_String()
96 tmpDir += File.separator; in test_ConstructorLjava_lang_StringLjava_lang_String()
99 String dirName = tmpDir; in test_ConstructorLjava_lang_StringLjava_lang_String()
101 File f = new File(tmpDir, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
102 tmpDir += "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String()
103 assertEquals(tmpDir, f.getAbsolutePath()); in test_ConstructorLjava_lang_StringLjava_lang_String()
116 assertEquals(tmpDir, f.getPath()); in test_ConstructorLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/sql/
DConnectionTest.java52 File tmpDir = new File(tmp); in getConnectionURL() local
53 if (tmpDir.isDirectory()) { in getConnectionURL()
55 dbFile = File.createTempFile("OldJDBCDriverTest", ".db", tmpDir); in getConnectionURL()
DOldSQLTest.java39 File tmpDir = new File(tmp); in getSQLiteConnection() local
40 if (tmpDir.isDirectory()) { in getSQLiteConnection()
41 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir); in getSQLiteConnection()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java57 File tmpDir = new File(tmp); in loadDriver() local
58 if (tmpDir.isDirectory()) { in loadDriver()
59 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir); in loadDriver()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldFilePreferencesImplTest.java34 File tmpDir = TestIoUtils.createTemporaryDirectory("OldFilePreferencesImplTest"); in setUp() local
36 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldPreferenceChangeEventTest.java37 File tmpDir = TestIoUtils.createTemporaryDirectory("OldPreferenceChangeEventTest"); in setUp() local
39 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldNodeChangeEventTest.java38 File tmpDir = TestIoUtils.createTemporaryDirectory("OldNodeChangeEventTest"); in setUp() local
40 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldPreferencesTest.java60 final File tmpDir = TestIoUtils.createTemporaryDirectory("OldPreferenceTest"); in setUp() local
62 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldAbstractPreferencesTest.java56 File tmpDir = TestIoUtils.createTemporaryDirectory("OldAbstractPreferencesTest"); in setUp() local
58 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1230 File tmpDir = new File(cts);
1231 Support_Resources.copyFile(tmpDir, null, "Harmony.GIF");
1232 URL fUrl1 = new URL("file://" + tmpDir.getPath()
1242 File tmpDir = new File(cts);
1243 Support_Resources.copyFile(tmpDir, null, "hyts_att.jar");
1244 URL fUrl1 = new URL("jar:file:" + tmpDir.getPath()
1252 File tmpDir = new File(cts);
1253 Support_Resources.copyFile(tmpDir, null, "hyts_htmltest.html");
1254 URL fUrl1 = new URL("file://" + tmpDir.getPath()
1263 File tmpDir = new File(System.getProperty("java.io.tmpdir"));
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DFilePreferencesImplTest.java35 File tmpDir = TestIoUtils.createTemporaryDirectory("FilePreferencesImplTest"); in setUp() local
37 = new AbstractPreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath()); in setUp()
DAbstractPreferencesTest.java91 File tmpDir = TestIoUtils.createTemporaryDirectory("OldAbstractPreferencesTest"); in setUp() local
93 new TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
/libcore/ojluni/src/main/java/java/util/logging/
DFileHandler.java591 String tmpDir = System.getProperty("java.io.tmpdir"); in generate() local
592 if (tmpDir == null) { in generate()
593 tmpDir = System.getProperty("user.home"); in generate()
595 file = new File(tmpDir); in generate()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java65 File tmpDir; in setUp() local
73 tmpDir = VOGAR_DEVICE_TEMP_DIR; in setUp()
75 tmpDir = new File(tmpDirName); in setUp()
77 fifoFile = new File(tmpDir, "fifo_file.tmp"); in setUp()
/libcore/luni/src/test/java/libcore/java/net/
DOldURLClassLoaderTest.java83 File tmpDir = new File(tmp); in test_findResourcesLjava_lang_String() local
101 urls[0] = new URL("file://" + tmpDir.getAbsolutePath() + "/"); in test_findResourcesLjava_lang_String()
DOldJarURLConnectionTest.java290 File tmpDir = new File(cts); in test_getInputStream_DeleteJarFileUsingURLConnection() local
291 File jarFile = File.createTempFile("file", ".jar", tmpDir); in test_getInputStream_DeleteJarFileUsingURLConnection()
DOldURLTest.java527 File tmpDir = new File(System.getProperty("java.io.tmpdir")); in createTempHelloWorldFile() local
530 if (tmpDir.isDirectory()) { in createTempHelloWorldFile()
532 tmpDir); in createTempHelloWorldFile()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java1666 String tmpDir = "tmpDir"; in test_createTempDirectory$Path$String$FileAttributes() local
1667 Path tmpDirPath = Files.createTempDirectory(filesSetup.getTestDirPath(), tmpDir, attr); in test_createTempDirectory$Path$String$FileAttributes()
1668 assertTrue(tmpDirPath.getFileName().toString().startsWith(tmpDir)); in test_createTempDirectory$Path$String$FileAttributes()
1681 Files.createTempDirectory(null, tmpDir, attr); in test_createTempDirectory$Path$String$FileAttributes()
1686 Files.createTempDirectory(filesSetup.getTestDirPath(), tmpDir, (FileAttribute<?>) null); in test_createTempDirectory$Path$String$FileAttributes() local
1698 String tmpDir = "tmpDir"; in test_createTempDirectory$String$FileAttributes() local
1699 Path tmpDirPath = Files.createTempDirectory(tmpDir, attr); in test_createTempDirectory$String$FileAttributes()
1700 assertTrue(tmpDirPath.getFileName().toString().startsWith(tmpDir)); in test_createTempDirectory$String$FileAttributes()
1713 Files.createTempDirectory(tmpDir, (FileAttribute<?>) null); in test_createTempDirectory$String$FileAttributes()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1018 File tmpDir = new File(System.getProperty("java.io.tmpdir")); in test_realpath() local
1022 String canonicalTmpDir = Os.realpath(tmpDir.getAbsolutePath()); in test_realpath()
1026 Os.realpath(canonicalTmpDir + "/./../" + tmpDir.getName())); in test_realpath()
1029 File target = new File(tmpDir, "target"); in test_realpath()
1030 File link = new File(tmpDir, "link"); in test_realpath()