/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | FileTest.java | 19 import java.io.File; 29 @TestTargetClass(File.class) 39 args = {java.io.File.class, java.lang.String.class} 43 File path = new File("/dir/file"); in test_ConstructorLjava_io_FileLjava_lang_String() 44 File root = new File("/"); in test_ConstructorLjava_io_FileLjava_lang_String() 45 File file = new File(root, "/dir/file"); in test_ConstructorLjava_io_FileLjava_lang_String() 48 assertTrue("Assert 1.1: path not absolute ", new File("\\\\\\a\b").isAbsolute()); in test_ConstructorLjava_io_FileLjava_lang_String() 59 File d = new File(dirName); in test_ConstructorLjava_io_FileLjava_lang_String() 60 File f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String() 62 .regionMatches((dirName.length() - 1), File.separator, 0, 1)) { in test_ConstructorLjava_io_FileLjava_lang_String() [all …]
|
D | RandomAccessFileTest.java | 19 import java.io.File; 37 args = {java.io.File.class, java.lang.String.class} 41 File f = File.createTempFile("xxx", "yyy"); in test_ConstructorLjava_io_FileLjava_lang_String() 46 f = File.createTempFile("xxx", "yyy"); in test_ConstructorLjava_io_FileLjava_lang_String()
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
D | FileTest.java | 20 import java.io.File; 42 @TestTargetClass(File.class) 46 private File tempDirectory; 49 private File tempFile; 52 private String slash = File.separator; 61 File tempDir = new File(System.getProperty("java.io.tmpdir")); 64 File f = new File(tempDir, files[i]); 70 new File(tempDir, files[i]).delete(); 74 private void deleteTempFolder(File dir) { in deleteTempFolder() 77 File f = new File(dir, files[i]); in deleteTempFolder() [all …]
|
D | FilePermissionTest.java | 20 import java.io.File; 150 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission() 152 File.separatorChar), "write"); in test_impliesLjava_security_Permission() 156 File.separatorChar), "write"); in test_impliesLjava_security_Permission() 161 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission() 163 File.separatorChar), "write"); in test_impliesLjava_security_Permission() 169 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission() 171 File.separatorChar), "write"); in test_impliesLjava_security_Permission() 175 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission() 177 File.separatorChar), "write"); in test_impliesLjava_security_Permission() [all …]
|
D | SerializationStressTest5.java | 24 import java.io.File; 74 File javaDir = findJavaDir(); in _test_writeObject_Throwables() 86 File[] classFilesArray = new File[classFilesVector.size()]; in _test_writeObject_Throwables() 101 private File[] makeClassPathArray() { in makeClassPathArray() 109 int nextInstance = classPath.indexOf(File.pathSeparatorChar, in makeClassPathArray() 113 elms.add(new File(classPath.substring(instanceOfSep + 1, in makeClassPathArray() 116 nextInstance = classPath.indexOf(File.pathSeparatorChar, in makeClassPathArray() 119 elms.add(new File(classPath.substring(instanceOfSep + 1))); in makeClassPathArray() 120 File[] result = new File[elms.size()]; in makeClassPathArray() 125 private File findJavaDir() { in findJavaDir() [all …]
|
D | FileOutputStreamTest.java | 20 import java.io.File; 52 File f; 56 File tmpDir = new File(tmpDirName); 68 args = {java.io.File.class} 78 f = new File(fileName = System.getProperty("java.io.tmpdir"), "fos.tst"); in test_ConstructorLjava_io_File() 89 args = {java.io.File.class, boolean.class} 99 f = new File(tmpDirName, "fos.tst"); in test_ConstructorLjava_io_FileZ() 134 f = new File(tmpDirName, "fos.tst"); in test_ConstructorLjava_io_FileDescriptor() 161 f = new File(tmpDirName, "fos.tst"); in test_ConstructorLjava_lang_String() 183 f = new File(tmpDirName, "fos.tst"); in test_ConstructorLjava_lang_StringZ() [all …]
|
/dalvik/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 22 import java.io.File; 46 File resources = createTempFolder(); in getURL() 67 public static File createTempFolder() { in createTempFolder() 69 File folder = null; in createTempFolder() 71 folder = File.createTempFile("hyts_resources", "", null); in createTempFolder() 82 public static File copyFile(File root, String folder, String file) { in copyFile() 83 File f; in copyFile() 85 f = new File(root.toString() + "/" + folder); in copyFile() 94 File dest = new File(f.toString() + "/" + file); in copyFile() 111 public static File createTempFile(String suffix) throws IOException { in createTempFile() [all …]
|
/dalvik/libcore/support/src/test/java/tests/support/ |
D | Support_DeleteOnExitTest.java | 3 import java.io.File; 12 File file1 = new File(args[0]); in main() 13 File file2 = new File(args[1]); in main()
|
D | Support_GetLocal.java | 22 import java.io.File; 35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); 37 public static File getLocalFile(String url) throws IOException, in getLocalFile() 40 File temp = cache.get(url); in getLocalFile() 43 temp = File.createTempFile("hyts_local", ".tmp", null); in getLocalFile() 58 public static File getExternalLocalFile(String url) throws IOException, in getExternalLocalFile() 60 File temp = cache.get(url); in getExternalLocalFile() 63 temp = File.createTempFile("hyts_local", ".tmp", null); in getExternalLocalFile() 90 public static File createTempFile(String suffix) throws IOException { in createTempFile() 91 return File.createTempFile("hyts_", suffix, null); in createTempFile() [all …]
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
D | ZipExecTest.java | 27 import java.io.File; 59 File outputZip = File.createTempFile("hyts_", ".zip"); in test_1562() 63 File resources = Support_Resources.createTempFolder(); in test_1562() 99 File fooZip = File.createTempFile("hyts_", ".zip"); in test_zip_class_path() 100 File barZip = File.createTempFile("hyts_", ".zip"); in test_zip_class_path() 111 File resources = Support_Resources.createTempFolder(); in test_zip_class_path() 152 att.put(Attributes.Name.CLASS_PATH, ".." + File.separator in test_zip_class_path() 153 + barZip.getParentFile().getName() + File.separator in test_zip_class_path() 176 File fooJar = File.createTempFile("hyts_", ".jar"); in test_zip_jar_mix() 177 File barZip = File.createTempFile("hyts_", ".zip"); in test_zip_jar_mix() [all …]
|
D | JarExecTest.java | 27 import java.io.File; 62 File outputJar = File.createTempFile("hyts_", ".jar"); in test_1562() 66 File resources = Support_Resources.createTempFolder(); in test_1562() 100 File fooJar = File.createTempFile("hyts_", ".jar"); in test_jar_class_path() 101 File barJar = File.createTempFile("hyts_", ".jar"); in test_jar_class_path() 112 File resources = Support_Resources.createTempFolder(); in test_jar_class_path() 149 att.put(Attributes.Name.CLASS_PATH, ".." + File.separator in test_jar_class_path() 150 + barJar.getParentFile().getName() + File.separator in test_jar_class_path() 176 File fooJar = File.createTempFile("hyts_", ".jar"); in test_main_class_in_another_jar() 177 File barJar = File.createTempFile("hyts_", ".jar"); in test_main_class_in_another_jar() [all …]
|
D | Pack200UnpackerTest.java | 30 import java.io.File; 61 args = {java.io.File.class, java.util.jar.JarOutputStream.class} 65 File resources = Support_Resources.createTempFolder(); in testUnpackInputStreamJarOutputStream() 69 File jarFile = new File(resources, "junit4-4.3.1.jar"); in testUnpackInputStreamJarOutputStream() 73 File packFile1 = Support_Resources.createTempFile("pack200_1"); in testUnpackInputStreamJarOutputStream() 74 File packFile2 = Support_Resources.createTempFile("pack200_2"); in testUnpackInputStreamJarOutputStream() 75 File packFile3 = Support_Resources.createTempFile("pack200_3"); in testUnpackInputStreamJarOutputStream() 95 File jarFile1 = Support_Resources.createTempFile("jar_1"); in testUnpackInputStreamJarOutputStream() 96 File jarFile2 = Support_Resources.createTempFile("jar_2"); in testUnpackInputStreamJarOutputStream() 97 File jarFile3 = Support_Resources.createTempFile("jar_3"); in testUnpackInputStreamJarOutputStream() [all …]
|
D | JarFileTest.java | 28 import java.io.File; 83 private File resources; 108 args = {java.io.File.class} 112 JarFile jarFile = new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File() 120 JarFile jarFile = new JarFile(new File("tmp.jar")); in test_ConstructorLjava_io_File() 132 JarFile jarFile = new JarFile(new File(resources, jarName)); in test_ConstructorLjava_io_File() 169 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_String() 207 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_StringZ() 221 args = {java.io.File.class, boolean.class} 225 JarFile jarFile = new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ() [all …]
|
D | JarOutputStreamTest.java | 25 import java.io.File; 76 File outputJar = null; in test_putNextEntryLjava_util_zip_ZipEntry() 81 outputJar = File.createTempFile("hyts_", ".jar"); in test_putNextEntryLjava_util_zip_ZipEntry() 88 File resources = Support_Resources.createTempFolder(); in test_putNextEntryLjava_util_zip_ZipEntry() 92 URL jarURL = new URL((new File(resources, testClass)).toURL() in test_putNextEntryLjava_util_zip_ZipEntry() 130 outputJar = File.createTempFile("hyts_", ".jar"); in test_putNextEntryLjava_util_zip_ZipEntry() 150 File fooJar = File.createTempFile("hyts_", ".jar"); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest() 151 File barZip = File.createTempFile("hyts_", ".zip"); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest() 177 File fooJar = File.createTempFile("hyts_", ".jar"); in test_JarOutputStreamLjava_io_OutputStream()
|
D | Pack200PackerTest.java | 30 import java.io.File; 64 File resources = Support_Resources.createTempFolder(); in testPackJarFileOutputStream() 68 File jarFile = new File(resources, "junit4-4.3.1.jar"); in testPackJarFileOutputStream() 71 File packFile1 = Support_Resources.createTempFile("pack200_1"); in testPackJarFileOutputStream() 72 File packFile2 = Support_Resources.createTempFile("pack200_2"); in testPackJarFileOutputStream() 73 File packFile3 = Support_Resources.createTempFile("pack200_3"); in testPackJarFileOutputStream() 104 File resources = Support_Resources.createTempFolder(); in testPackJarInputStreamOutputStream() 108 File jarFile = new File(resources, "junit4-4.3.1.jar"); in testPackJarInputStreamOutputStream() 111 File packFile1 = Support_Resources.createTempFile("pack200_1"); in testPackJarInputStreamOutputStream() 112 File packFile2 = Support_Resources.createTempFile("pack200_2"); in testPackJarInputStreamOutputStream() [all …]
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
D | FileClientSessionCache.java | 29 import java.io.File; 64 final File directory; 69 Map<String, File> accessOrder = newAccessOrder(); 83 Impl(File directory) throws IOException { in Impl() 115 private static Map<String, File> newAccessOrder() { in newAccessOrder() 116 return new LinkedHashMap<String, File>( in newAccessOrder() 138 File file = accessOrder.get(name); in getSessionData() 154 file = new File(directory, name); in getSessionData() 194 File file = new File(directory, name); in putSessionData() 255 Iterator<File> i = accessOrder.values().iterator(); in makeRoom() [all …]
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | GZIPOutputStreamTest.java | 25 import java.io.File; 61 File.createTempFile("GZIPOutCon", ".txt")); in test_ConstructorLjava_io_OutputStream() 86 File.createTempFile("GZIPOutCon", ".txt")); in test_ConstructorLjava_io_OutputStreamI() 115 File.createTempFile("GZIPOutCon", ".txt")); in test_finish() 159 File.createTempFile("GZIPOutCon", ".txt")); in test_close() 191 File.createTempFile("GZIPOutCon", ".txt")); in test_write$BII() 230 File dFile = new File("GZIPOutCon.txt"); in tearDown() 232 File dFile2 = new File("GZIPOutFinish.txt"); in tearDown() 234 File dFile3 = new File("GZIPOutWrite.txt"); in tearDown() 236 File dFile4 = new File("GZIPOutClose2.txt"); in tearDown()
|
D | ZipInputStreamTest.java | 31 import java.io.File; 154 File resources = Support_Resources.createTempFolder(); in test_closeEntry() 156 FileInputStream fis = new FileInputStream(new File(resources, in test_closeEntry() 180 File resources = Support_Resources.createTempFolder(); in test_closeAfterException() 182 FileInputStream fis = new FileInputStream(new File(resources, in test_closeAfterException() 216 File resources = Support_Resources.createTempFolder(); in test_getNextEntry() 218 FileInputStream fis = new FileInputStream(new File(resources, in test_getNextEntry() 256 File resources = Support_Resources.createTempFolder(); in test_read$BII() 258 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII() 319 File resources = Support_Resources.createTempFolder(); in test_skipJ() [all …]
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | ClassPathOpener.java | 21 import java.io.File; 81 void onProcessArchiveStart(File file); in onProcessArchiveStart() 106 File file = new File(pathname); in process() 119 private boolean processOne(File file, boolean topLevel) { in processOne() 172 private boolean processDirectory(File dir, boolean topLevel) { in processDirectory() 174 dir = new File(dir, "."); in processDirectory() 177 File[] files = dir.listFiles(); in processDirectory() 182 Arrays.sort(files, new Comparator<File>() { in processDirectory() 183 public int compare(File a, File b) { in processDirectory() 204 private boolean processArchive(File file) throws IOException { in processArchive()
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | File.java | 54 public class File implements Serializable, Comparable<File> { class 127 public File(File dir, String name) { in File() method in File 145 public File(String path) { in File() method in File 162 public File(String dirPath, String name) { in File() method in File 188 public File(URI uri) { in File() method in File 266 public static File[] listRoots() { in listRoots() 269 return new File[0]; in listRoots() 271 File result[] = new File[rootsList.length]; in listRoots() 273 result[i] = new File(Util.toString(rootsList[i])); in listRoots() 386 public int compareTo(File another) { in compareTo() [all …]
|
/dalvik/libcore/dalvik/src/main/java/dalvik/system/ |
D | TemporaryDirectory.java | 19 import java.io.File; 48 setUpDirectory(new File(baseDir)); in setUpDirectory() 69 public static synchronized void setUpDirectory(File baseDir) { in setUpDirectory() 76 File dir = new File(baseDir, PATH_NAME); in setUpDirectory()
|
/dalvik/libcore/sql/src/test/java/tests/SQLite/ |
D | JDBCDriverFunctionalTest.java | 23 import java.io.File; 40 private File dbFile = null; 79 File tmpDir = new File(tmp); in getConnectionURL() 82 dbFile = File.createTempFile("JDBCDriverFunctionalTest", in getConnectionURL()
|
D | SQLiteTest.java | 21 import java.io.File; 30 public static File dbFile = null; 34 File tmpDir = new File(tmp); in setUp() 37 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir); in setUp()
|
/dalvik/libcore/prefs/src/main/java/java/util/prefs/ |
D | FilePreferencesImpl.java | 19 import java.io.File; 84 private File prefsFile; 87 private File dir; 117 path = ((FilePreferencesImpl) parent).path + File.separator + name; in FilePreferencesImpl() 122 dir = new File(path); in initPrefs() 128 prefsFile = new File(path + File.separator + PREFS_FILE_NAME); in initPrefs() 138 public boolean accept(File parent, String name) { in childrenNamesSpi() 139 return new File(path + File.separator + name).isDirectory(); in childrenNamesSpi()
|
/dalvik/libcore/security/src/test/java/tests/security/permissions/ |
D | JavaIoFileTest.java | 19 import java.io.File; 36 @TestTargetClass(java.io.File.class) 90 File f = File.createTempFile(filename, null); in test_File1() 203 File f = File.createTempFile(filename, null); in test_File2() 294 args = {java.lang.String.class, java.lang.String.class, java.io.File.class} 312 args = {java.io.File.class} 353 File f = File.createTempFile(filename, null); in test_File3() 357 File f2 = File.createTempFile(filename2, null); in test_File3() 375 File tmp = new File(tmpPath + "dir"+id); in test_File3() 381 tmp = new File(tmpPath + "a"+id+"/b/c"); in test_File3() [all …]
|