Searched refs:filename (Results 1 - 25 of 31) sorted by relevance

12

/dalvik/libcore/luni/src/main/java/java/io/
H A DFilenameFilter.java30 * Indicates if a specific filename matches this filter.
33 * the directory in which the {@code filename} was found.
34 * @param filename
36 * @return {@code true} if the filename matches the filter
40 public abstract boolean accept(File dir, String filename); argument
H A DFileWriter.java72 * Creates a FileWriter using the platform dependent {@code filename}.
74 * @param filename
79 public FileWriter(String filename) throws IOException { argument
80 super(new FileOutputStream(new File(filename)));
84 * Creates a FileWriter using the platform dependent {@code filename}. The
88 * @param filename
95 public FileWriter(String filename, boolean append) throws IOException { argument
96 super(new FileOutputStream(filename, append));
H A DFileReader.java58 * Construct a new FileReader on the given file named {@code filename}.
60 * @param filename
63 * if there is no file named {@code filename}.
65 public FileReader(String filename) throws FileNotFoundException { argument
66 super(new FileInputStream(filename));
H A DFileOutputStream.java134 * Constructs a new FileOutputStream on the file named {@code filename}. If
135 * the file exists, it is overwritten. The {@code filename} may be absolute
138 * @param filename
146 public FileOutputStream(String filename) throws FileNotFoundException { argument
147 this(filename, false);
151 * Constructs a new FileOutputStream on the file named {@code filename}.
153 * and appended to or just opened and overwritten. The {@code filename} may
156 * @param filename
166 public FileOutputStream(String filename, boolean append) argument
168 this(new File(filename), appen
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/
H A DMimeTable.java115 * Determines the MIME type for the given filename.
117 * @param filename
123 public String getContentTypeFor(String filename) { argument
124 if (filename.endsWith("/")) { //$NON-NLS-1$
128 int lastCharInExtension = filename.lastIndexOf('#');
130 lastCharInExtension = filename.length();
132 int firstCharInExtension = filename.lastIndexOf('.') + 1;
134 if (firstCharInExtension > filename.lastIndexOf('/')) {
135 ext = filename.substring(firstCharInExtension, lastCharInExtension);
/dalvik/libcore/security/src/test/java/tests/security/permissions/
H A DJavaIoFileTest.java71 String filename;
75 filename = null;
81 this.filename = file;
90 String filename = "SecurityPermissionsTest_"+id;
91 File f = File.createTempFile(filename, null);
93 filename = f.getCanonicalPath();
101 assertEquals("Argument of checkDelete is not correct", filename, s.filename);
106 assertEquals("Argument of checkDelete is not correct", filename, s.filename);
[all...]
H A DJavaIoFileOutputStreamTest.java114 String filename = "SecurityPermissionsTest_"+id;
115 File f = File.createTempFile(filename, null);
117 filename = f.getCanonicalPath();
131 assertEquals("Argument of checkWrite is not correct", filename, s.file);
136 assertEquals("Argument of checkWrite is not correct", filename, s.file);
139 new FileOutputStream(filename);
141 assertEquals("Argument of checkWrite is not correct", filename, s.file);
144 new FileOutputStream(filename, true);
146 assertEquals("Argument of checkWrite is not correct", filename, s.file);
H A DJavaIoRandomAccessFileTest.java87 String filename = "SecurityPermissionsTest_"+id;
88 File f = File.createTempFile(filename, null);
90 filename = f.getCanonicalPath();
96 new RandomAccessFile(filename, "r");
98 assertEquals("Argument of checkRead is not correct", filename, s.file);
103 assertEquals("Argument of checkRead is not correct", filename, s.file);
145 String filename = "SecurityPermissionsTest_"+id;
146 File f = File.createTempFile(filename, null);
148 filename = f.getCanonicalPath();
154 new RandomAccessFile(filename, "r
[all...]
H A DJavaIoFileInputStreamTest.java102 String filename = "SecurityPermissionsTest_"+id;
103 File f = File.createTempFile(filename, null);
105 filename = f.getCanonicalPath();
117 new FileInputStream(filename);
119 assertEquals("Argument of checkRead is not correct", filename, s.file);
124 assertEquals("Argument of checkRead is not correct", filename, s.file);
H A DJavaUtilZipZipFile.java79 String filename = file.getAbsolutePath();
86 new ZipFile(filename);
91 assertEquals("Argument of checkPermission is not correct", filename, s.getName());
H A DJavaIoObjectInputStreamTest.java104 String filename = "SecurityPermissionsTest_"+id;
105 File f = File.createTempFile(filename, null);
185 String filename = "SecurityPermissionsTest_"+id;
186 File f = File.createTempFile(filename, null);
H A DJavaIoObjectOutputStreamTest.java90 String filename = "SecurityPermissionsTest_"+id;
91 File f = File.createTempFile(filename, null);
162 String filename = "SecurityPermissionsTest_"+id;
163 File f = File.createTempFile(filename, null);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DDeleteOnExit.java57 * @param filename The file to delete.
59 public void addFile(String filename) { argument
61 if (!files.contains(filename)) {
62 files.add(filename);
/dalvik/libcore/archive/src/main/native/
H A Dzipsup.c79 HyZipEntry * zipEntry, const char *filename,
106 const char *filename, BOOLEAN findDirectory));
113 PROTOTYPE ((HyPortLibrary * portLib, char *filename, HyZipFile * zipFile,
591 U_8 *filename = NULL; local
634 filename = hymem_allocate_memory (filenameSize);
635 if (!filename)
715 /* Increase filename buffer size if necessary. */
718 hymem_free_memory (filename);
720 filename = hymem_allocate_memory (filenameSize);
721 if (!filename)
851 readZipEntry(HyPortLibrary * portLib, HyZipFile * zipFile, HyZipEntry * zipEntry, const char *filename, IDATA * enumerationPointer, IDATA * entryStart, BOOLEAN findDirectory) argument
1492 zip_getZipEntry(HyPortLibrary * portLib, HyZipFile * zipFile, HyZipEntry * entry, const char *filename, BOOLEAN findDirectory) argument
2031 zip_openZipFile(HyPortLibrary * portLib, char *filename, HyZipFile * zipFile, HyZipCachePool * cachePool) argument
[all...]
H A Dzipsup.h115 U_8 *filename; member in struct:HyZipEntry
141 U_8 *filename; member in struct:HyZipFile
179 HyZipEntry * entry, const char *filename,
187 PROTOTYPE ((HyPortLibrary * portLib, char *filename, HyZipFile * zipFile,
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DRuntime.java404 void load(String filename, ClassLoader loader) { argument
405 if (filename == null) {
408 if (!nativeLoad(filename, loader)) {
410 "Library " + filename + " not found");
443 String filename;
447 filename = loader.findLibrary(libname);
448 if (filename != null && nativeLoad(filename, loader))
452 filename = System.mapLibraryName(libname);
455 System.out.println("Trying " + mLibPaths[i] + filename);
466 nativeLoad(String filename, ClassLoader loader) argument
[all...]
/dalvik/dx/src/com/android/dx/dex/cf/
H A DOptimizerOptions.java93 * @param filename filename to process
96 private static HashSet<String> loadStringsFromFile(String filename) { argument
100 FileReader fr = new FileReader(filename);
113 filename, ex);
/dalvik/libcore/dalvik/src/main/java/dalvik/system/
H A DTouchDex.java38 * actually opened, because the dalvik-cache filename is based upon
39 * this filename. (The absolute path to the JAR/ZIP/APK should work.)
93 // A filename filter accepting *.jar and *.apk
114 for (String filename: filenames) {
117 outPath.append(filename);
/dalvik/libcore/luni/src/main/native/
H A Djava_io_File.cpp188 // Returns the next filename, or NULL.
213 DirEntry(const char* filename) : name(strlen(filename)) { argument
214 strcpy(&name[0], filename);
275 const char* filename; local
276 while ((filename = dir.next()) != NULL) {
277 if (strcmp(filename, ".") != 0 && strcmp(filename, "..") != 0) {
278 if (!entries.push_front(filename)) {
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DPublicClassLoader.java34 private byte[] getBytes( String filename ) throws IOException {
36 File file = new File( filename );
/dalvik/libcore/sql/src/main/java/SQLite/
H A DDatabase.java24 * @param filename the name of the database file
28 public void open(String filename, int mode) throws SQLite.Exception { argument
30 _open(filename, mode);
34 private native void _open(String filename, int mode) argument
41 * @param filename the name of the auxiliary file or null
44 public void open_aux_file(String filename) throws SQLite.Exception { argument
46 _open_aux_file(filename);
50 private native void _open_aux_file(String filename) argument
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java210 * filename.
212 * @param filename
217 public JarFile(String filename) throws IOException { argument
218 this(filename, true);
223 * {@code filename}.
225 * @param filename
232 public JarFile(String filename, boolean verify) throws IOException { argument
233 super(filename);
235 verifier = new JarVerifier(filename);
/dalvik/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTest.java111 String filename = getClass().getPackage().getName();
112 filename =
114 + filename.substring(14).replace('.', '/')
117 resolvedURI = new java.io.File(filename).toURL();
/dalvik/libcore/xml/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java83 String filename = getClass().getPackage().getName();
84 filename = "tests/"
85 + filename.substring(14).replace('.', '/')
87 resolvedURI = new java.io.File(filename).toURL();
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DFileHandlerTest.java476 private void assertFileContent(String homepath, String filename, argument
478 assertFileContent(homepath, filename, new LogRecord[] { r }, formatter);
481 private void assertFileContent(String homepath, String filename, argument
510 + filename));
523 reset(homepath, filename);
531 * @param filename
533 private void reset(String homepath, String filename) { argument
536 file = new File(homepath + SEP + filename);
550 file = new File(homepath + SEP + filename + ".lck");

Completed in 471 milliseconds

12