Home
last modified time | relevance | path

Searched refs:tmpDir (Results 1 – 18 of 18) 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 = IoUtils.createTemporaryDirectory("OldFilePreferencesImplTest"); in setUp() local
36 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldPreferenceChangeEventTest.java37 File tmpDir = IoUtils.createTemporaryDirectory("OldPreferenceChangeEventTest"); in setUp() local
39 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldNodeChangeEventTest.java38 File tmpDir = IoUtils.createTemporaryDirectory("OldNodeChangeEventTest"); in setUp() local
40 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldAbstractPreferencesTest.java55 File tmpDir = IoUtils.createTemporaryDirectory("OldAbstractPreferencesTest"); in setUp() local
57 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
DOldPreferencesTest.java59 final File tmpDir = IoUtils.createTemporaryDirectory("OldPreferenceTest"); in setUp() local
61 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1203 File tmpDir = new File(cts);
1204 Support_Resources.copyFile(tmpDir, null, "Harmony.GIF");
1205 URL fUrl1 = new URL("file://" + tmpDir.getPath()
1214 File tmpDir = new File(cts);
1215 Support_Resources.copyFile(tmpDir, null, "hyts_att.jar");
1216 URL fUrl1 = new URL("jar:file:" + tmpDir.getPath()
1224 File tmpDir = new File(cts);
1225 Support_Resources.copyFile(tmpDir, null, "hyts_htmltest.html");
1226 URL fUrl1 = new URL("file:/" + tmpDir.getPath()
1234 File tmpDir = new File(System.getProperty("java.io.tmpdir"));
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DFileHandler.java487 String tmpDir = System.getProperty("java.io.tmpdir"); in generate() local
488 if (tmpDir == null) { in generate()
489 tmpDir = System.getProperty("user.home"); in generate()
491 file = new File(tmpDir); in generate()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DFilePreferencesImplTest.java34 File tmpDir = IoUtils.createTemporaryDirectory("FilePreferencesImplTest"); in setUp() local
36 = new AbstractPreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath()); in setUp()
DAbstractPreferencesTest.java91 File tmpDir = IoUtils.createTemporaryDirectory("OldAbstractPreferencesTest"); in setUp() local
93 new TestPreferencesFactory(tmpDir.getAbsolutePath())); in setUp()
/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.java81 File tmpDir = new File(tmp); in test_findResourcesLjava_lang_String() local
99 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/io/
DOsTest.java545 File tmpDir = new File(System.getProperty("java.io.tmpdir")); in test_realpath() local
549 String canonicalTmpDir = Libcore.os.realpath(tmpDir.getAbsolutePath()); in test_realpath()
553 Libcore.os.realpath(canonicalTmpDir + "/./../" + tmpDir.getName())); in test_realpath()
556 File target = new File(tmpDir, "target"); in test_realpath()
557 File link = new File(tmpDir, "link"); in test_realpath()