/libcore/ojluni/src/main/java/java/net/ |
H A D | FileNameMap.java | 39 * @param fileName the specified file name 43 public String getContentTypeFor(String fileName); argument
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileReader.java | 51 * @param fileName the name of the file to read from 57 public FileReader(String fileName) throws FileNotFoundException { argument 58 super(new FileInputStream(fileName));
|
H A D | FileWriter.java | 57 * @param fileName String The system-dependent filename. 62 public FileWriter(String fileName) throws IOException { argument 63 super(new FileOutputStream(fileName)); 70 * @param fileName String The system-dependent filename. 77 public FileWriter(String fileName, boolean append) throws IOException { argument 78 super(new FileOutputStream(fileName, append));
|
H A D | PrintStream.java | 195 * @param fileName 209 * SecurityManager#checkWrite checkWrite(fileName)} denies write 214 public PrintStream(String fileName) throws FileNotFoundException { argument 215 this(false, new FileOutputStream(fileName)); 225 * @param fileName 243 * SecurityManager#checkWrite checkWrite(fileName)} denies write 251 public PrintStream(String fileName, String csn) argument 255 this(false, toCharset(csn), new FileOutputStream(fileName));
|
H A D | PrintWriter.java | 164 * @param fileName 178 * SecurityManager#checkWrite checkWrite(fileName)} denies write 183 public PrintWriter(String fileName) throws FileNotFoundException { argument 184 this(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName))), 203 * @param fileName 221 * SecurityManager#checkWrite checkWrite(fileName)} denies write 229 public PrintWriter(String fileName, String csn) argument 232 this(toCharset(csn), new File(fileName));
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | TimeZoneDataFiles.java | 38 public static String[] getTimeZoneFilePaths(String fileName) { argument 40 getDataTimeZoneFile(fileName), 41 getSystemTimeZoneFile(fileName) 45 private static String getDataTimeZoneFile(String fileName) { argument 46 return System.getenv(ANDROID_DATA_ENV) + "/misc/zoneinfo/current/" + fileName; 50 public static String getSystemTimeZoneFile(String fileName) { argument 51 return System.getenv(ANDROID_ROOT_ENV) + "/usr/share/zoneinfo/" + fileName;
|
H A D | TimeZoneFinder.java | 752 static ReaderSupplier forFile(String fileName, Charset charSet) throws IOException { argument 753 Path file = Paths.get(fileName); 755 throw new FileNotFoundException(fileName + " does not exist"); 758 throw new IOException(fileName + " must be a regular readable file.");
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipFileTest.java | 100 static void scanZip(String fileName) throws IOException { argument 101 ZipFile zipFile = new ZipFile(fileName); 123 static void read2(String fileName) throws IOException { argument 131 zipFile = new ZipFile(fileName);
|
/libcore/support/src/test/java/tests/util/ |
H A D | SerializationTester.java | 87 * @param fileName the serialization output file generated by reference 91 public static boolean assertCompabilitySame(Object obj, String fileName) argument 93 return obj == readObject(obj, fileName); 101 * @param fileName the serialization output file generated by reference 105 public static boolean assertCompabilityEquals(Object obj, String fileName) argument 107 return obj.equals(readObject(obj, fileName)); 114 * @param fileName the serialization file 118 public static Object readObject(Object obj, String fileName) argument 122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); 125 writeObject(obj, new File(fileName) 158 writeObject(Object obj, String fileName) argument [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectInputStreamGetFieldTest.java | 244 private void initOis(String fileName) throws Exception { argument 249 getClass().getResourceAsStream(fileName));
|
H A D | OldFilterInputStreamTest.java | 35 private String fileName; field in class:OldFilterInputStreamTest 116 new java.io.FileInputStream(fileName), 100)); 137 new java.io.FileInputStream(fileName), 100)); 250 new java.io.FileInputStream(fileName), 100)); 295 fileName = f.getAbsolutePath(); 296 java.io.OutputStream fos = new java.io.FileOutputStream(fileName); 299 is = new MyFilterInputStream(new java.io.FileInputStream(fileName));
|
H A D | OldRandomAccessFileTest.java | 33 public String fileName; field in class:OldRandomAccessFileTest 54 File tmpFile = new File(fileName); 108 File tmpFile = new File(fileName); 111 raf = new java.io.RandomAccessFile(fileName, "r"); 122 raf = new java.io.RandomAccessFile(fileName, "rwd"); 128 raf = new java.io.RandomAccessFile(fileName, "rws"); 134 raf = new java.io.RandomAccessFile(fileName, "rw"); 142 raf = new java.io.RandomAccessFile(fileName, "i"); 149 raf = new java.io.RandomAccessFile(fileName, "r"); 171 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StackTraceElement.java | 46 private String fileName; field in class:StackTraceElement 57 * @param fileName the name of the file containing the execution point 70 String fileName, int lineNumber) { 73 this.fileName = fileName; 90 return fileName; 173 // to the dex_pc and the fileName field is set to null. 178 } else if (fileName != null) { 180 result.append("(").append(fileName).append(":").append(lineNumber).append(")"); 182 result.append("(").append(fileName) 69 StackTraceElement(String declaringClass, String methodName, String fileName, int lineNumber) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FilterInputStreamTest.java | 37 private String fileName; field in class:FilterInputStreamTest 100 fileName = temp.getAbsolutePath(); 104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); 118 new File(fileName).delete();
|
H A D | FileInputStreamTest.java | 36 private String fileName; field in class:FileInputStreamTest 106 fileName = f.getAbsolutePath(); 113 java.io.File f = new File(fileName); 122 FileOutputStream fos = new FileOutputStream(fileName); 132 is = new FileInputStream(fileName); 167 is = new FileInputStream(fileName); 178 is = new FileInputStream(fileName); 189 FileInputStream fis1 = new FileInputStream(fileName); 208 FileInputStream fis = new FileInputStream(fileName); 218 InputStreamReader isr = new InputStreamReader(new FileInputStream(fileName)); [all...] |
H A D | PrintStreamTest.java | 54 public MockPrintStream(String fileName) throws FileNotFoundException { argument 55 super(fileName); 58 public MockPrintStream(String fileName, String csn) throws FileNotFoundException, UnsupportedEncodingException { argument 59 super(fileName, csn);
|
H A D | RandomAccessFileTest.java | 38 public String fileName; field in class:RandomAccessFileTest 98 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); 102 raf = new java.io.RandomAccessFile(fileName, "rwd"); 106 raf = new java.io.RandomAccessFile(fileName, "rws"); 160 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); 175 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); 187 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); 199 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); 211 FileOutputStream fos = new java.io.FileOutputStream(fileName); 215 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, " [all...] |
/libcore/luni/src/test/java/tests/support/ |
H A D | Support_SQL.java | 99 private static void loadProperties(InputStream fileName) throws IOException { argument 101 properties.load(fileName);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | StandardCharsetsEncoderTest.java | 80 String fileName = createFileName(charset); 83 try (BufferedReader reader = createAsciiReader(openResource(fileName))) { 103 private static InputStream openResource(String fileName) { argument 104 InputStream is = StandardCharsetsEncoderTest.class.getResourceAsStream(fileName); 106 fail("No resource found: " + fileName); 140 private static void dumpEncodings(CharsetEncoder encoder, String fileName) argument 145 try (BufferedWriter writer = createAsciiWriter(new FileOutputStream(fileName))) {
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | JarIndex.java | 171 * @param fileName the key of the mapping 173 public LinkedList<String> get(String fileName) { argument 175 if ((jarFiles = indexMap.get(fileName)) == null) { 178 if((pos = fileName.lastIndexOf("/")) != -1) { 179 jarFiles = indexMap.get(fileName.substring(0, pos)); 194 * @param fileName the file name 198 public void add(String fileName, String jarName) { argument 201 if((pos = fileName.lastIndexOf("/")) != -1) { 202 packageName = fileName.substring(0, pos); 204 packageName = fileName; [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
H A D | ManifestTest.java | 59 private Manifest getManifest(String fileName) { argument 61 Support_Resources.copyFile(resources, null, fileName); 62 JarFile jarFile = new JarFile(new File(resources, fileName));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | FtpURLConnectionTest.java | 280 private InputStream openFileSystemContents(String fileName) throws IOException { argument 281 String fullFileName = VALID_USER_HOME_DIR + "/" + fileName;
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexFile.java | 86 public DexFile(String fileName) throws IOException { argument 87 this(fileName, null, null); 93 * @param fileName 100 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { argument 101 mCookie = openDexFile(fileName, null, 0, loader, elements); 103 mFileName = fileName; 104 //System.out.println("DEX FILE cookie is " + mCookie + " fileName=" + fileName); 409 * @param fileName the absolute path to the apk/jar file to examine. 411 * @throws java.io.FileNotFoundException if fileName i 417 isDexOptNeeded(String fileName) argument 476 getDexOptNeeded(String fileName, String instructionSet, String compilerFilter, boolean newProfile, boolean downgrade) argument 511 getDexOptNeeded(String fileName, String instructionSet, String compilerFilter, String classLoaderContext, boolean newProfile, boolean downgrade) argument 524 getDexFileStatus(String fileName, String instructionSet) argument 561 getDexFileOptimizationInfo( String fileName, String instructionSet) argument 579 getDexFileOptimizationStatus( String fileName, String instructionSet) argument 587 getDexFileOutputPaths(String fileName, String instructionSet) argument [all...] |
H A D | VMDebug.java | 339 * @param fileName Name of output file. If fd is non-null, the 342 * If this is null, the fileName is used instead. 344 public static void dumpHprofData(String fileName, FileDescriptor fd) argument 346 dumpHprofData(fileName, fd != null ? fd.getInt$() : -1); 349 private static native void dumpHprofData(String fileName, int fd) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
H A D | SAXParserTestSupport.java | 92 public HashMap<String, String> readFile(String fileName) { argument 96 InputStream is = new FileInputStream(fileName); 128 + fileName);
|