Home
last modified time | relevance | path

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

12

/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()
178 } else if (fileName != null) { in toString()
180 result.append("(").append(fileName).append(":").append(lineNumber).append(")"); in toString()
182 result.append("(").append(fileName).append(")"); in toString()
223 Objects.equals(fileName, e.fileName); in equals()
231 result = 31*result + Objects.hashCode(fileName); in hashCode()
/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/luni/src/main/java/libcore/util/
DTimeZoneDataFiles.java38 public static String[] getTimeZoneFilePaths(String fileName) { in getTimeZoneFilePaths() argument
40 getDataTimeZoneFile(fileName), in getTimeZoneFilePaths()
41 getSystemTimeZoneFile(fileName) in getTimeZoneFilePaths()
45 private static String getDataTimeZoneFile(String fileName) { in getDataTimeZoneFile() argument
46 return System.getenv(ANDROID_DATA_ENV) + "/misc/zoneinfo/current/" + fileName; in getDataTimeZoneFile()
50 public static String getSystemTimeZoneFile(String fileName) { in getSystemTimeZoneFile() argument
51 return System.getenv(ANDROID_ROOT_ENV) + "/usr/share/zoneinfo/" + fileName; in getSystemTimeZoneFile()
/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/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/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()
DOldObjectInputStreamGetFieldTest.java244 private void initOis(String fileName) throws Exception { in initOis() argument
249 getClass().getResourceAsStream(fileName)); in initOis()
/libcore/luni/src/test/java/libcore/io/
DClassPathURLStreamHandlerTest.java66 String fileName = jarFile.getPath(); in testConstructor() local
67 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testConstructor()
72 String fileName = jarFile.getPath(); in testGetEntryOrNull() local
73 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testGetEntryOrNull()
105 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull() local
108 assertEquals("jar:file:" + fileName + "!/" + expectedJarRelativeURI, in checkGetEntryUrlOrNull()
117 String fileName = jarFile.getPath(); in testIsEntryStored() local
118 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testIsEntryStored()
133 String fileName = jarFile.getPath(); in testOpenConnection() local
134 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testOpenConnection()
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java85 public DexFile(String fileName) throws IOException { in DexFile() argument
86 this(fileName, null, null); in DexFile()
99 … DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in DexFile() argument
100 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile()
102 mFileName = fileName; in DexFile()
408 public static native boolean isDexOptNeeded(String fileName) in isDexOptNeeded() argument
485 public static native int getDexOptNeeded(String fileName, in getDexOptNeeded() argument
497 public static native String getDexFileStatus(String fileName, String instructionSet) in getDexFileStatus() argument
505 public static native String[] getDexFileOutputPaths(String fileName, String instructionSet) in getDexFileOutputPaths() argument
DDexPathList.java399 String fileName = path.getName(); in optimizedPathFor() local
400 if (!fileName.endsWith(DEX_SUFFIX)) { in optimizedPathFor()
401 int lastDot = fileName.lastIndexOf("."); in optimizedPathFor()
403 fileName += DEX_SUFFIX; in optimizedPathFor()
406 sb.append(fileName, 0, lastDot); in optimizedPathFor()
408 fileName = sb.toString(); in optimizedPathFor()
412 File result = new File(optimizedDirectory, fileName); in optimizedPathFor()
525 String fileName = System.mapLibraryName(libraryName); in findLibrary() local
528 String path = element.findNativeLibrary(fileName); in findLibrary()
/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/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