Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/main/java/java/net/
DDefaultFileNameMap.java26 public String getContentTypeFor(String filename) { in getContentTypeFor() argument
27 if (filename.endsWith("/")) { in getContentTypeFor()
31 int lastCharInExtension = filename.lastIndexOf('#'); in getContentTypeFor()
33 lastCharInExtension = filename.length(); in getContentTypeFor()
35 int firstCharInExtension = filename.lastIndexOf('.') + 1; in getContentTypeFor()
37 if (firstCharInExtension > filename.lastIndexOf('/')) { in getContentTypeFor()
38 ext = filename.substring(firstCharInExtension, lastCharInExtension); in getContentTypeFor()
DFileNameMap.java34 public String getContentTypeFor(String filename); in getContentTypeFor() argument
DURLClassLoader.java476 String filename = prefix + name; in findClass() local
478 filename = URLDecoder.decode(filename, "UTF-8"); in findClass()
485 File file = new File(filename); in findClass()
499 String filename; in findResource() local
512 filename = URLDecoder.decode(prefix, "UTF-8") + name; in findResource()
514 if (new File(filename).exists()) { in findResource()
/libcore/luni/src/main/java/java/io/
DFileWriter.java79 public FileWriter(String filename) throws IOException { in FileWriter() argument
80 super(new FileOutputStream(new File(filename))); in FileWriter()
95 public FileWriter(String filename, boolean append) throws IOException { in FileWriter() argument
96 super(new FileOutputStream(filename, append)); in FileWriter()
DFileReader.java65 public FileReader(String filename) throws FileNotFoundException { in FileReader() argument
66 super(new FileInputStream(filename)); in FileReader()
DFilenameFilter.java40 public abstract boolean accept(File dir, String filename); in accept() argument
DFile.java765 for (String filename : filenames) { in list()
766 if (filter.accept(this, filename)) { in list()
767 result.add(filename); in list()
/libcore/luni/src/main/java/libcore/io/
DDeleteOnExit.java62 public void addFile(String filename) { in addFile() argument
64 if (!files.contains(filename)) { in addFile()
65 files.add(filename); in addFile()
DForwardingOs.java66 …public void execv(String filename, String[] argv) throws ErrnoException { os.execv(filename, argv)… in execv() argument
67 …public void execve(String filename, String[] argv, String[] envp) throws ErrnoException { os.execv… in execve() argument
DOs.java57 public void execv(String filename, String[] argv) throws ErrnoException; in execv() argument
58 public void execve(String filename, String[] argv, String[] envp) throws ErrnoException; in execve() argument
DPosix.java60 public native void execv(String filename, String[] argv) throws ErrnoException; in execv() argument
61 public native void execve(String filename, String[] argv, String[] envp) throws ErrnoException; in execve() argument
/libcore/luni/src/main/java/libcore/net/url/
DFileURLConnection.java61 private String filename; field in FileURLConnection
92 filename = url.getFile(); in FileURLConnection()
93 if (filename == null) { in FileURLConnection()
94 filename = ""; in FileURLConnection()
96 filename = UriCodec.decode(filename); in FileURLConnection()
113 File f = new File(filename); in connect()
326 String path = filename; in getPermission()
/libcore/luni/src/main/native/
Djava_io_File.cpp130 const char* filename; in readDirectory() local
131 while ((filename = dir.next()) != NULL) { in readDirectory()
132 if (strcmp(filename, ".") != 0 && strcmp(filename, "..") != 0) { in readDirectory()
134 entries.push_back(filename); in readDirectory()
/libcore/benchmarks/src/benchmarks/regression/
DJarFileBenchmark.java30 private String filename; field in JarFileBenchmark
33 File f = new File(filename); in time()
/libcore/luni/src/main/java/java/lang/
DRuntime.java361 String filename = loader.findLibrary(libraryName); in loadLibrary() local
362 if (filename == null) { in loadLibrary()
370 String error = doLoad(filename, loader); in loadLibrary()
377 String filename = System.mapLibraryName(libraryName); in loadLibrary() local
381 String candidate = directory + filename; in loadLibrary()
440 private static native String nativeLoad(String filename, ClassLoader loader, in nativeLoad() argument
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java61 for (String filename : filenames) { in test_utf8FileNames()
62 out.putNextEntry(new ZipEntry(filename)); in test_utf8FileNames()
69 for (String filename : filenames) { in test_utf8FileNames()
70 assertNotNull(filename, zipFile.getEntry(filename)); in test_utf8FileNames()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTest.java111 String filename = getClass().getPackage().getName(); in resolveURI() local
112 filename = in resolveURI()
114 + filename.substring(14).replace('.', '/') in resolveURI()
117 resolvedURI = new java.io.File(filename).toURL(); in resolveURI()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java80 String filename = getClass().getPackage().getName(); in resolveURI() local
81 filename = "tests/" in resolveURI()
82 + filename.substring(14).replace('.', '/') in resolveURI()
84 resolvedURI = new java.io.File(filename).toURL(); in resolveURI()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldFileHandlerTest.java335 private void assertFileContent(String homepath, String filename, in assertFileContent() argument
337 assertFileContent(homepath, filename, new LogRecord[] { r }, formatter); in assertFileContent()
340 private void assertFileContent(String homepath, String filename, in assertFileContent() argument
369 + filename)); in assertFileContent()
382 reset(homepath, filename); in assertFileContent()
389 private void reset(String homepath, String filename) { in reset() argument
392 file = new File(homepath + SEP + filename); in reset()
406 file = new File(homepath + SEP + filename + ".lck"); in reset()
/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java298 public static void dumpHprofData(String filename) throws IOException { in dumpHprofData() argument
299 if (filename == null) { in dumpHprofData()
302 dumpHprofData(filename, null); in dumpHprofData()
/libcore/luni/src/main/java/java/util/jar/
DJarFile.java234 public JarFile(String filename) throws IOException { in JarFile() argument
235 this(filename, true); in JarFile()
249 public JarFile(String filename, boolean verify) throws IOException { in JarFile() argument
250 this(new File(filename), verify, ZipFile.OPEN_READ); in JarFile()
/libcore/luni/src/main/files/
DREADME.cacerts4 openssl x509 -subject_hash_old -in filename
/libcore/luni/src/main/java/java/util/zip/
DZipFile.java98 private final String filename; field in ZipFile
158 filename = file.getPath(); in ZipFile()
170 raf = new RandomAccessFile(filename, "r"); in ZipFile()
354 return filename;
/libcore/luni/src/main/java/android/system/
DOs.java99 …public static void execv(String filename, String[] argv) throws ErrnoException { Libcore.os.execv( in execv() argument
104 …blic static void execve(String filename, String[] argv, String[] envp) throws ErrnoException { Lib… in execve() argument