/libcore/luni/src/test/java/tests/api/javax/xml/parsers/ |
H A D | SAXParserTest.java | 5 * you may not use this file except in compliance with the License. 414 for (File file : list_nwf) { 417 InputSource is = new InputSource(new FileInputStream(file)); 455 for (File file : list_nwf) { 458 InputSource is = new InputSource(new FileInputStream(file)); 662 for (File file : list_nwf) { 665 InputStream is = new FileInputStream(file); 703 for (File file : list_nwf) { 706 InputStream is = new FileInputStream(file);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | DiskLruCache.java | 5 * you may not use this file except in compliance with the License. 101 * This cache uses a journal file named "journal". A typical journal file 121 * Each of the subsequent lines in the file is a record of the state of a 134 * The journal file is appended to as cache operations occur. The journal may 135 * occasionally be compacted by dropping redundant lines. A temporary file named 136 * "journal.tmp" will be used during compaction; that file should be deleted if 345 private static void deleteIfExists(File file) throws IOException { argument 347 Libcore.os.remove(file.getPath()); 383 // a file mus [all...] |
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | BinaryHprofReader.java | 5 * you may not use this file except in compliance with the License. 356 String file = readString(); 364 System.out.println("\tfile=" + file); 367 StackTraceElement stackFrame = new StackTraceElement(className, methodName, file, line);
|
/libcore/luni/src/main/java/java/io/ |
H A D | File.java | 3 * 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 35 * An "abstract" representation of a file system entity identified by a 37 * of the file system) or relative to the current directory in which the program 40 * <p>The actual file referenced by a {@code File} may or may not exist. It may 42 * file. 44 * <p>This class provides limited functionality for getting/setting file 45 * permissions, file type, and last modified time. 69 * <p>This field is initialized from the system property "file [all...] |
H A D | RandomAccessFile.java | 3 * 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 35 * Allows reading from and writing to a file in a random-access manner. This is 37 * {@link FileInputStream} or {@link FileOutputStream} provides. If the file is 50 // The unique file channel associated with this FileInputStream (lazily 61 * Constructs a new {@code RandomAccessFile} based on {@code file} and opens 68 * <td>The file is opened in read-only mode. An {@code IOException} is 73 * <td>The file is opened for reading and writing. If the file doe 101 RandomAccessFile(File file, String mode) argument [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldRuntimeTest.java | 3 * 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 301 void checkExec(int testCase, String [] envp, File file) { argument 320 proc = Runtime.getRuntime().exec(command, envp, file); 329 proc = Runtime.getRuntime().exec(commandArguments, envp, file); 473 if (!"file open failed".equals(ex.getMessage())) {
|
/libcore/luni/src/main/java/java/util/logging/ |
H A D | FileHandler.java | 3 * 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 32 * A {@code FileHandler} writes logging records into a specified file or a 36 * one file, then this file is closed and another file is opened. The name of 64 * bytes to write to any one file, defaults to zero, which means no limit.</li> 81 * Normally, the generation numbers are not larger than the given file count and 82 * follow the sequence 0, 1, 2.... If the file coun [all...] |
/libcore/luni/src/test/java/dalvik/system/ |
H A D | DexClassLoaderTest.java | 5 * you may not use this file except in compliance with the License. 46 /** just one classpath element, a raw dex file */ 49 /** just one classpath element, a jar file */ 76 for (File file : files) { 77 file.delete(); 83 * target file, but only if the target file doesn't exist. 127 * Helper to construct an instance to test, using the jar file as 145 * file or a dex file a [all...] |
/libcore/luni/src/test/java/libcore/io/ |
H A D | DiskLruCacheTest.java | 5 * you may not use this file except in compliance with the License. 52 for (File file : cacheDir.listFiles()) { 53 file.delete(); 180 * Each read sees a snapshot of the file at the time read was called. 360 creator.commit(); // silently abort if file does not exist due to I/O issue 729 private String readFile(File file) throws Exception { argument 730 Reader reader = new FileReader(file); 741 public void writeFile(File file, String content) throws Exception { argument 742 FileWriter writer = new FileWriter(file);
|
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
H A D | JarFileTest.java | 3 * 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 62 private final String jarName = "hyts_patch.jar"; // a 'normal' jar file 111 JarFile jarFile = new JarFile(new File("Wrong.file")); 130 JarFile jarFile = new JarFile("Wrong.file"); 150 JarFile jarFile = new JarFile("Wrong.file", false); 170 JarFile jarFile = new JarFile(new File("Wrong.file"), true); 189 JarFile jarFile = new JarFile(new File("Wrong.file"), true, 236 * Note only (and all of) the following should be contained in the file [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
H A D | OldPreparedStatementTest.java | 5 * you may not use this file except in compliance with the License. 2215 InputStream file = Class.forName(this.getClass().getName()) 2217 ps.setUnicodeStream(0, file, 100); 2230 InputStream file = OldPreparedStatementTest.class.getResourceAsStream("/blob.c"); 2231 assertNotNull("Error in test setup: file not found",file); 2232 Reader reader = new InputStreamReader(file); 2241 InputStream file = OldPreparedStatementTest.class.getResourceAsStream("/blob.c"); 2242 ps.setAsciiStream(0, file, 100); 2256 InputStream file [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Formatter.java | 2 * 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 659 * Constructs a {@code Formatter} whose output is written to the specified file. 667 * the filename of the file that is used as the output 668 * destination for the {@code Formatter}. The file will be truncated to 669 * zero size if the file exists, or else a new file will be 672 * if the filename does not denote a normal and writable file, 673 * or if a new file canno 751 Formatter(File file) argument 776 Formatter(File file, String csn) argument 802 Formatter(File file, String csn, Locale l) argument [all...] |
/libcore/ |
H A D | JavaLibrary.mk | 5 # you may not use this file except in compliance with the License. 107 # allow us to submit such a file. So we create it here
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | OldFileChannelTest.java | 2 * 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/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 3 * 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 627 File file = new File("test.ser"); 628 file.deleteOnExit(); 631 file)); 635 ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | DomTest.java | 5 * you may not use this file except in compliance with the License. 1079 File file = File.createTempFile("DomTest.java", "xml"); 1080 File parentFile = file.getParentFile(); 1081 FileWriter writer = new FileWriter(file); 1093 document = builder.parse(file); 1095 assertFileUriEquals("", file.getPath(), document.getBaseURI()); 1096 assertFileUriEquals("", file.getPath(), document.getDocumentURI()); 1098 assertFileUriEquals("", file.getPath(), a.getBaseURI()); 1116 * Regrettably both "file:/tmp/foo.txt" and "file [all...] |
/libcore/luni/src/main/native/ |
H A D | org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp | 5 * you may not use this file except in compliance with the License. 260 const char* file; local 264 unsigned long error = ERR_get_error_line_data(&file, &line, &data, &flags); 273 location, error, library, reason, file, line, message, 387 const char* file; local 391 unsigned long err = ERR_get_error_line_data(&file, &line, &data, &flags); 401 file, 2005 ScopedUtfChars file(env, filename); 2006 if (file.c_str() == NULL) { 2009 int result = RAND_load_file(file [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | KeyStoreTest.java | 5 * you may not use this file except in compliance with the License. 2396 File file = File.createTempFile("keystore", keyStore.getProvider().getName()); 2399 os = new FileOutputStream(file); 2413 file, 2418 assertEqualsKeyStores(file, PASSWORD_STORE, keyStore); 2426 file.delete();
|
/libcore/luni/src/test/java/libcore/sqlite/ |
H A D | OldDatabaseTest.java | 5 * you may not use this file except in compliance with the License. 120 // open non db file 122 URL file = OldDatabaseTest.class.getResource("/blob.c"); 123 db2.open(file.getPath(), 0); 124 fail("Should not be able to open non db file"); 147 fail("Error handling temporary file "+e.getMessage());
|