Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 43) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileInputStreamTest.java36 private String fileName; field in FileInputStreamTest
106 fileName = f.getAbsolutePath(); in setUp()
113 java.io.File f = new File(fileName); in test_ConstructorLjava_io_File()
122 FileOutputStream fos = new FileOutputStream(fileName); in test_ConstructorLjava_io_FileDescriptor()
132 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String()
167 is = new FileInputStream(fileName); in test_available()
178 is = new FileInputStream(fileName); in test_close()
189 FileInputStream fis1 = new FileInputStream(fileName); in test_close_shared_fd()
208 FileInputStream fis = new FileInputStream(fileName); in test_getFD()
218 InputStreamReader isr = new InputStreamReader(new FileInputStream(fileName)); in test_read()
[all …]
DRandomAccessFileTest.java38 public String fileName; field in RandomAccessFileTest
98 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_ConstructorLjava_lang_StringLjava_lang_String()
102 raf = new java.io.RandomAccessFile(fileName, "rwd"); in test_ConstructorLjava_lang_StringLjava_lang_String()
106 raf = new java.io.RandomAccessFile(fileName, "rws"); in test_ConstructorLjava_lang_StringLjava_lang_String()
160 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_close()
175 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_getFD()
187 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_getFilePointer()
199 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_length()
211 FileOutputStream fos = new java.io.FileOutputStream(fileName); in test_read()
215 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); in test_read()
[all …]
DOpenRandomFileTest.java44 String fileName = file.getCanonicalPath(); in testOpenNonEmptyFile() local
45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenNonEmptyFile()
54 String fileName = file.getCanonicalPath(); in testOpenEmptyFile() local
55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenEmptyFile()
DFilterInputStreamTest.java37 private String fileName; field in FilterInputStreamTest
100 fileName = temp.getAbsolutePath(); in setUp()
104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp()
118 new File(fileName).delete(); in tearDown()
DFileTest.java133 String fileName = "input.tst"; in test_ConstructorLjava_io_FileLjava_lang_String5() local
137 File f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String5()
139 dirName += fileName; in test_ConstructorLjava_io_FileLjava_lang_String5()
163 String fileName = null; in test_ConstructorLjava_lang_String() local
165 new File(fileName); in test_ConstructorLjava_lang_String()
171 fileName = addTrailingSlash(tempDirectory.getPath()); in test_ConstructorLjava_lang_String()
172 fileName += "input.tst"; in test_ConstructorLjava_lang_String()
174 File f = new File(fileName); in test_ConstructorLjava_lang_String()
175 assertEquals("Created incorrect File", fileName, f.getPath()); in test_ConstructorLjava_lang_String()
183 String fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String() local
[all …]
DFileOutputStreamTest.java82 String fileName = f.getAbsolutePath(); in test_ConstructorLjava_io_FileDescriptor() local
83 fos = new FileOutputStream(fileName); in test_ConstructorLjava_io_FileDescriptor()
86 fis = new FileInputStream(fileName); in test_ConstructorLjava_io_FileDescriptor()
97 String fileName = f.getAbsolutePath(); in test_ConstructorLjava_lang_String() local
98 fos = new FileOutputStream(fileName); in test_ConstructorLjava_lang_String()
172 String fileName = f.getAbsolutePath(); in test_getFD() local
/libcore/ojluni/src/main/java/java/lang/
DStackTraceElement.java46 private String fileName; field in StackTraceElement
70 String fileName, int lineNumber) { in StackTraceElement() argument
73 this.fileName = fileName; in StackTraceElement()
90 return fileName; in getFileName()
192 } else if (fileName != null) { in toString()
194 result.append("(").append(fileName).append(":").append(lineNumber).append(")"); in toString()
196 result.append("(").append(fileName).append(")"); in toString()
238 Objects.equals(fileName, e.fileName); in equals()
246 result = 31*result + Objects.hashCode(fileName); in hashCode()
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java173 public LinkedList<String> get(String fileName) { in get() argument
175 if ((jarFiles = indexMap.get(fileName)) == null) { in get()
178 if((pos = fileName.lastIndexOf("/")) != -1) { in get()
179 jarFiles = indexMap.get(fileName.substring(0, pos)); in get()
198 public void add(String fileName, String jarName) { in add() argument
201 if((pos = fileName.lastIndexOf("/")) != -1) { in add()
202 packageName = fileName.substring(0, pos); in add()
204 packageName = fileName; in add()
242 String fileName = entry.getName(); in parseJars() local
246 if (fileName.equals("META-INF/") || in parseJars()
[all …]
/libcore/support/src/test/java/tests/util/
DSerializationTester.java91 public static boolean assertCompabilitySame(Object obj, String fileName) in assertCompabilitySame() argument
93 return obj == readObject(obj, fileName); in assertCompabilitySame()
105 public static boolean assertCompabilityEquals(Object obj, String fileName) in assertCompabilityEquals() argument
107 return obj.equals(readObject(obj, fileName)); in assertCompabilityEquals()
118 public static Object readObject(Object obj, String fileName) in readObject() argument
122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); in readObject()
125 writeObject(obj, new File(fileName).getName()); in readObject()
158 public static void writeObject(Object obj, String fileName) in writeObject() argument
172 output = new FileOutputStream(fileName); in writeObject()
/libcore/luni/src/test/java/libcore/java/io/
DOldRandomAccessFileTest.java33 public String fileName; field in OldRandomAccessFileTest
54 File tmpFile = new File(fileName); in test_ConstructorLjava_io_FileLjava_lang_String()
108 File tmpFile = new File(fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
111 raf = new java.io.RandomAccessFile(fileName, "r"); in test_ConstructorLjava_lang_StringLjava_lang_String()
122 raf = new java.io.RandomAccessFile(fileName, "rwd"); in test_ConstructorLjava_lang_StringLjava_lang_String()
128 raf = new java.io.RandomAccessFile(fileName, "rws"); in test_ConstructorLjava_lang_StringLjava_lang_String()
134 raf = new java.io.RandomAccessFile(fileName, "rw"); in test_ConstructorLjava_lang_StringLjava_lang_String()
142 raf = new java.io.RandomAccessFile(fileName, "i"); in test_ConstructorLjava_lang_StringLjava_lang_String()
149 raf = new java.io.RandomAccessFile(fileName, "r"); in test_ConstructorLjava_lang_StringLjava_lang_String()
171 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_close()
[all …]
DOldFileTest.java76 String fileName = null; in test_ConstructorLjava_io_FileLjava_lang_String() local
78 f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String()
100 String fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String() local
101 File f = new File(tmpDir, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
106 fileName = null; in test_ConstructorLjava_lang_StringLjava_lang_String()
108 f = new File(dirName, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
114 fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String()
115 f = new File(dirName, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
DOldFilterInputStreamTest.java35 private String fileName; field in OldFilterInputStreamTest
116 new java.io.FileInputStream(fileName), 100)); in test_markI()
137 new java.io.FileInputStream(fileName), 100)); in test_markSupported()
250 new java.io.FileInputStream(fileName), 100)); in test_reset()
295 fileName = f.getAbsolutePath(); in setUp()
296 java.io.OutputStream fos = new java.io.FileOutputStream(fileName); in setUp()
299 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp()
/libcore/ojluni/src/main/java/java/io/
DFileWriter.java62 public FileWriter(String fileName) throws IOException { in FileWriter() argument
63 super(new FileOutputStream(fileName)); in FileWriter()
77 public FileWriter(String fileName, boolean append) throws IOException { in FileWriter() argument
78 super(new FileOutputStream(fileName, append)); in FileWriter()
DFileReader.java57 public FileReader(String fileName) throws FileNotFoundException { in FileReader() argument
58 super(new FileInputStream(fileName)); in FileReader()
DPrintWriter.java183 public PrintWriter(String fileName) throws FileNotFoundException { in PrintWriter() argument
184 this(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName))), in PrintWriter()
229 public PrintWriter(String fileName, String csn) in PrintWriter() argument
232 this(toCharset(csn), new File(fileName)); in PrintWriter()
DPrintStream.java214 public PrintStream(String fileName) throws FileNotFoundException { in PrintStream() argument
215 this(false, new FileOutputStream(fileName)); in PrintStream()
251 public PrintStream(String fileName, String csn) in PrintStream() argument
255 this(false, toCharset(csn), new FileOutputStream(fileName)); in PrintStream()
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java92 public DexFile(String fileName) throws IOException { in DexFile() argument
93 this(fileName, null, null); in DexFile()
106 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
108 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile()
110 mFileName = fileName; in DexFile()
456 public static native boolean isDexOptNeeded(String fileName) in isDexOptNeeded() argument
507 public static int getDexOptNeeded(String fileName, in getDexOptNeeded() argument
511 fileName, instructionSet, compilerFilter, null, newProfile, downgrade); in getDexOptNeeded()
543 public static native int getDexOptNeeded(String fileName, in getDexOptNeeded() argument
556 public static native String getDexFileStatus(String fileName, String instructionSet) in getDexFileStatus() argument
[all …]
DDexPathList.java464 String fileName = path.getName(); in optimizedPathFor() local
465 if (!fileName.endsWith(DEX_SUFFIX)) { in optimizedPathFor()
466 int lastDot = fileName.lastIndexOf("."); in optimizedPathFor()
468 fileName += DEX_SUFFIX; in optimizedPathFor()
471 sb.append(fileName, 0, lastDot); in optimizedPathFor()
473 fileName = sb.toString(); in optimizedPathFor()
477 File result = new File(optimizedDirectory, fileName); in optimizedPathFor()
592 String fileName = System.mapLibraryName(libraryName); in findLibrary() local
595 String path = element.findNativeLibrary(fileName); in findLibrary()
/libcore/luni/src/test/java/libcore/libcore/io/
DClassPathURLStreamHandlerTest.java69 String fileName = jarFile.getPath(); in testConstructor() local
70 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testConstructor()
75 String fileName = jarFile.getPath(); in testGetEntryOrNull() local
76 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testGetEntryOrNull()
108 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull() local
111 assertEquals("jar:file:" + fileName + "!/" + expectedJarRelativeURI, in checkGetEntryUrlOrNull()
120 String fileName = jarFile.getPath(); in testIsEntryStored() local
121 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testIsEntryStored()
136 String fileName = jarFile.getPath(); in testOpenConnection() local
137 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testOpenConnection()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DStandardCharsetsEncoderTest.java80 String fileName = createFileName(charset); in testCharset() local
83 try (BufferedReader reader = createAsciiReader(openResource(fileName))) { in testCharset()
103 private static InputStream openResource(String fileName) { in openResource() argument
104 InputStream is = StandardCharsetsEncoderTest.class.getResourceAsStream(fileName); in openResource()
106 fail("No resource found: " + fileName); in openResource()
140 private static void dumpEncodings(CharsetEncoder encoder, String fileName) in dumpEncodings() argument
145 try (BufferedWriter writer = createAsciiWriter(new FileOutputStream(fileName))) { in dumpEncodings()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java100 static void scanZip(String fileName) throws IOException { in scanZip() argument
101 ZipFile zipFile = new ZipFile(fileName); in scanZip()
123 static void read2(String fileName) throws IOException { in read2() argument
131 zipFile = new ZipFile(fileName); in read2()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java59 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_String() local
60 new JarFile(fileName); in test_ConstructorLjava_lang_String()
71 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_StringZ() local
72 new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DStackTraceElement.java36 java.lang.String fileName, in StackTraceElement() argument
77 private java.lang.String fileName; field in StackTraceElement
/libcore/ojluni/src/main/java/java/net/
DFileNameMap.java43 public String getContentTypeFor(String fileName); in getContentTypeFor() argument
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java99 private static void loadProperties(InputStream fileName) throws IOException { in loadProperties() argument
101 properties.load(fileName); in loadProperties()

12