Searched defs:file (Results 151 - 175 of 182) sorted by relevance

12345678

/libcore/luni/src/test/java/dalvik/system/
H A DInMemoryDexClassLoaderTest.java5 * you may not use this file except in compliance with the License.
61 for (File file : files) {
62 if (file.isDirectory()) {
63 cleanUpDir(file);
65 assertTrue(file.delete());
73 * target file.
89 private static ByteBuffer ReadFileToByteBufferDirect(File file) throws IOException { argument
90 try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
91 ByteBuffer buffer = ByteBuffer.allocateDirect((int)file.length());
93 while (done != file
101 ReadFileToByteBufferIndirect(File file) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLStreamHandlerTest.java2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
216 String file,
218 super.setURL(u, protocol, host, port, file, ref);
212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java5 * you may not use this file except in compliance with the License.
36 * A test for file interrupt behavior. Because forcing a real file to block on read or write is
47 * <li>FIFOs are not supported on some file systems. e.g. VFAT, so the test has to be particular
63 // This test relies on a FIFO file. The file system must support FIFOs, so we check the path.
67 // Vogar execution on device runs in /sdcard. Unfortunately the file system used does not
83 // Create the fifo. This will throw an exception if the file system does not support it.
414 // file has been closed. Android is actually doing a wrong thing by always throwing the
638 private final File file; field in class:FileIOInterruptTest.FifoWriter
641 FifoWriter(File file) argument
665 private final File file; field in class:FileIOInterruptTest.FifoReader
668 FifoReader(File file) argument
[all...]
H A DOldFileChannelTest.java2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
170 * Initializes test file.
172 * @param file
176 private void writeDataToFile(File file) throws FileNotFoundException, argument
178 FileOutputStream fos = new FileOutputStream(file);
187 * Initializes large test file.
189 * @param file the file t
194 writeLargeDataToFile(File file, int size) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DDefaultFileSystemProvider2Test.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
29 import java.nio.file.CopyOption;
30 import java.nio.file.DirectoryNotEmptyException;
31 import java.nio.file.DirectoryStream;
32 import java.nio.file.FileAlreadyExistsException;
33 import java.nio.file.FileStore;
34 import java.nio.file.Files;
35 import java.nio.file.NoSuchFileException;
36 import java.nio.file
[all...]
H A DDefaultFileSystemProviderTest.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
30 import java.nio.file.CopyOption;
31 import java.nio.file.DirectoryNotEmptyException;
32 import java.nio.file.DirectoryStream;
33 import java.nio.file.FileAlreadyExistsException;
34 import java.nio.file.Files;
35 import java.nio.file.NoSuchFileException;
36 import java.nio.file.NotDirectoryException;
37 import java.nio.file
[all...]
H A DFilesTest.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
32 import java.nio.file.CopyOption;
33 import java.nio.file.DirectoryStream;
34 import java.nio.file.FileAlreadyExistsException;
35 import java.nio.file.FileSystem;
36 import java.nio.file.Files;
37 import java.nio.file.NoSuchFileException;
38 import java.nio.file.NotDirectoryException;
39 import java.nio.file
[all...]
H A DLinuxPathTest.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
19 import com.sun.nio.file.ExtendedWatchEventModifier;
30 import java.nio.file.ClosedWatchServiceException;
31 import java.nio.file.FileSystems;
32 import java.nio.file.Files;
33 import java.nio.file.LinkOption;
34 import java.nio.file.NoSuchFileException;
35 import java.nio.file.NotDirectoryException;
36 import java.nio.file
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java5 * you may not use this file except in compliance with the License.
72 * suite zip file from the OASIS project site.</li>
77 * suite's <code>catalog.xml</code> file as an argument.
84 * "Couldn't open file" errors due to a mismatch in file name casing.
130 System.out.println(" catalog-xml: an XML file describing an OASIS test suite");
190 * <file-path>attribset</file-path>
196 * <input-file role="principal-data">attribset01.xml</input-file>
446 fileToResultNode(File file) argument
580 fileToString(File file) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DPrintStream.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
181 * specified file name. This convenience constructor creates
188 * The name of the file to use as the destination of this print
189 * stream. If the file exists, then it will be truncated to
190 * zero size; otherwise, a new file will be created. The output
191 * will be written to the file and is buffered.
194 * If the given file object does not denote an existing, writable
195 * regular file an
277 PrintStream(File file) argument
314 PrintStream(File file, String csn) argument
[all...]
H A DPrintWriter.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
158 * specified file name. This convenience constructor creates the necessary
165 * The name of the file to use as the destination of this writer.
166 * If the file exists then it will be truncated to zero size;
167 * otherwise, a new file will be created. The output will be
168 * written to the file and is buffered.
172 * regular file and a new regular file o
189 PrintWriter(Charset charset, File file) argument
262 PrintWriter(File file) argument
300 PrintWriter(File file, String csn) argument
[all...]
H A DRandomAccessFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
41 * random access file. A random access file behaves like a large
42 * array of bytes stored in the file system. There is a kind of cursor,
43 * or index into the implied array, called the <em>file pointer</em>;
44 * input operations read bytes starting at the file pointer and advance
45 * the file pointer past the bytes read. If the random access file i
215 RandomAccessFile(File file, String mode) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DSecurityManager.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
139 public void checkRead(String file) { } argument
141 public void checkRead(String file, Object context) { } argument
145 public void checkWrite(String file) { } argument
147 public void checkDelete(String file) { } argument
/libcore/ojluni/src/main/java/java/net/
H A DURL.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
38 * Wide Web. A resource can be something as simple as a file or a
59 * a file, but it could be generated on the fly. This component of
111 * inherited from the fully specified URL. The file component must be
174 * The specified file name on that host. {@code file} is
178 private String file; field in class:URL
229 * number, and {@code file}
304 URL(String protocol, String host, int port, String file) argument
328 URL(String protocol, String host, String file) argument
372 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
668 set(String protocol, String host, int port, String file, String ref) argument
1321 Parts(String file, String host) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileTime.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package java.nio.file.attribute;
35 * Represents the value of a file's time stamp attribute. For example, it may
36 * represent the time that the file was last
44 * @see java.nio.file.Files#setLastModifiedTime
45 * @see java.nio.file.Files#getLastModifiedTime
295 * Computes a hash code for this file time.
400 * file'
[all...]
/libcore/ojluni/src/main/java/java/nio/file/spi/
H A DFileSystemProvider.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package java.nio.file.spi;
28 import java.nio.file.*;
29 import java.nio.file.attribute.*;
41 * Service-provider class for file systems. The methods defined by the {@link
42 * java.nio.file.Files} class will typically delegate to an instance of this
45 * <p> A file system provider is a concrete implementation of this class that
48 * is identified by the URI scheme "file"
[all...]
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
44 * The <code>JarFile</code> class is used to read the contents of a jar file
45 * from any file that can be opened with <code>java.io.RandomAccessFile</code>.
49 * jar file and its entries.
55 * If the verify flag is on when opening a signed jar file, the content of the
56 * file is verified against its signature embedded inside the file. Please note
83 * The JAR manifest file nam
123 JarFile(File file) argument
138 JarFile(File file, boolean verify) argument
159 JarFile(File file, boolean verify, int mode) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileAttributeViews.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
29 import java.nio.file.attribute.*;
39 protected final UnixPath file; field in class:UnixFileAttributeViews.Basic
42 Basic(UnixPath file, boolean followLinks) { argument
43 this.file = file;
49 file
140 Posix(UnixPath file, boolean followLinks) argument
311 Unix(UnixPath file, boolean followLinks) argument
367 createBasicView(UnixPath file, boolean followLinks) argument
371 createPosixView(UnixPath file, boolean followLinks) argument
375 createUnixView(UnixPath file, boolean followLinks) argument
379 createOwnerView(UnixPath file, boolean followLinks) argument
[all...]
H A DUnixFileSystemProvider.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
29 import java.nio.file.attribute.*;
30 import java.nio.file.spi.FileTypeDetector;
60 * Constructs a new file system using the given default directory.
66 return "file";
115 UnixPath file = UnixPath.toUnixPath(obj);
118 return (V) UnixFileAttributeViews.createBasicView(file, followLink
130 readAttributes(Path file, Class<A> type, LinkOption... options) argument
[all...]
H A DUnixSecureDirectoryStream.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
29 import java.nio.file.attribute.*;
103 UnixPath file = getName(obj);
104 UnixPath child = ds.directory().resolve(file);
126 newdfd1 = openat(dfd, file.asByteArray(), flags , 0);
135 throw new NotDirectoryException(file.toString());
136 x.rethrowAsIOException(file);
226 deleteFile(Path file) argument
282 getFileAttributeViewImpl(UnixPath file, Class<V> type, boolean followLinks) argument
326 final UnixPath file; field in class:UnixSecureDirectoryStream.BasicFileAttributeViewImpl
329 BasicFileAttributeViewImpl(UnixPath file, boolean followLinks) argument
445 PosixFileAttributeViewImpl(UnixPath file, boolean followLinks) argument
[all...]
/libcore/ojluni/src/main/native/
H A DUnixFileSystem_md.c8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
122 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {*/
139 jobject file, jint a)
159 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
170 jobject file,
177 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
218 jobject file)
222 WITH_FIELD_PLATFORM_STRING(env, file, id
138 Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this, jobject file, jint a) argument
169 Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this, jobject file, jint access, jboolean enable, jboolean owneronly) argument
217 Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this, jobject file) argument
233 Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this, jobject file) argument
277 Java_java_io_UnixFileSystem_delete0(JNIEnv *env, jobject this, jobject file) argument
292 Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, jobject file) argument
367 Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this, jobject file) argument
399 Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this, jobject file, jlong time) argument
428 Java_java_io_UnixFileSystem_setReadOnly0(JNIEnv *env, jobject this, jobject file) argument
446 Java_java_io_UnixFileSystem_getSpace0(JNIEnv *env, jobject this, jobject file, jint t) argument
[all...]
/libcore/tzdata/update2/src/test/libcore/tzdata/update2/
H A DTimeZoneDistroInstallerTest.java5 * you may not use this file except in compliance with the License.
64 // Create a file to represent the tzdata file in the /system partition of the device.
94 /** Tests the an update on a device will fail if the /system tzdata file cannot be found. */
192 /** Tests that a distro with a missing tzdata file will not update the content. */
211 /** Tests that a distro with a missing ICU file will not update the content. */
230 /** Tests that a distro with a missing tzlookup file will not update the content. */
249 /** Tests that a distro with a bad tzlookup file will not update the content. */
285 * Tests that a distro without a distro version file will be rejected.
288 // Create a distro without a version file
632 createFile(File file, byte[] bytes) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURLTest.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
73 assertEquals("u returns a wrong file",
77 // test for no file
82 assertTrue("u1 returns a wrong file", u1.getFile().equals(""));
91 assertEquals("u2 returns a wrong file",
96 URL u2a = new URL("file://www.yahoo3.com/dir1/dir2/test.cgi#anchor1");
97 assertEquals("u2a returns a wrong protocol", "file", u2a.getProtocol());
101 assertEquals("u2a returns a wrong file", "/dir
1092 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
55 * This class is used to read entries from a zip file.
66 private final String name; // zip file name
68 private final boolean locsig; // if zip file starts with LOCSIG (usually true)
74 // that doesn't use unlink before closing the file.
81 * Mode flag to open a zip file for reading.
86 * Mode flag to open a zip file and mark it for deletion. The file wil
148 ZipFile(File file, int mode) argument
162 ZipFile(File file) argument
200 ZipFile(File file, int mode, Charset charset) argument
297 ZipFile(File file, Charset charset) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DParseUtil.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
229 public String canonizeString(String file) { argument
231 int lim = file.length();
234 while ((i = file.indexOf("/../")) >= 0) {
235 if ((lim = file.lastIndexOf('/', i - 1)) >= 0) {
236 file = file.substring(0, lim) + file
261 fileToEncodedURL(File file) argument
[all...]

Completed in 447 milliseconds

12345678