Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 50) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileWriterTest.java42 fos = new FileOutputStream(f.getPath()); in test_ConstructorLjava_io_File()
48 br = new BufferedReader(new FileReader(f.getPath())); in test_ConstructorLjava_io_File()
98 fos = new FileOutputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor()
101 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor()
115 fos = new FileOutputStream(f.getPath()); in test_ConstructorLjava_lang_String()
118 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
121 br = new BufferedReader(new FileReader(f.getPath())); in test_ConstructorLjava_lang_String()
133 fos = new FileOutputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ()
136 bw = new BufferedWriter(new FileWriter(f.getPath(), true)); in test_ConstructorLjava_lang_StringZ()
139 br = new BufferedReader(new FileReader(f.getPath())); in test_ConstructorLjava_lang_StringZ()
[all …]
DFileReaderTest.java43 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_File()
58 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_FileDescriptor()
61 FileInputStream fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor()
75 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
78 br = new FileReader(f.getPath()); in test_ConstructorLjava_lang_String()
DFileTest.java87 File f = new File(tempDirectory.getPath(), "input.tst"); in test_ConstructorLjava_io_FileLjava_lang_String0()
88 …s("Created Incorrect File ", addTrailingSlash(tempDirectory.getPath()) + "input.tst", f.getPath()); in test_ConstructorLjava_io_FileLjava_lang_String0()
119 assertEquals("Assert 1: wrong path result ", path.getPath(), file in test_ConstructorLjava_io_FileLjava_lang_String4()
120 .getPath()); in test_ConstructorLjava_io_FileLjava_lang_String4()
132 String dirName = tempDirectory.getPath(); in test_ConstructorLjava_io_FileLjava_lang_String5()
141 dirName, f.getPath()); in test_ConstructorLjava_io_FileLjava_lang_String5()
171 fileName = addTrailingSlash(tempDirectory.getPath()); in test_ConstructorLjava_lang_String()
175 assertEquals("Created incorrect File", fileName, f.getPath()); in test_ConstructorLjava_lang_String()
189 dirName = tempDirectory.getPath(); in test_ConstructorLjava_lang_StringLjava_lang_String()
201 addTrailingSlash(tempDirectory.getPath()) + "input.tst", in test_ConstructorLjava_lang_StringLjava_lang_String()
[all …]
DFileOutputStreamTest.java105 fos = new FileOutputStream(f.getPath(), false); in test_ConstructorLjava_lang_StringZ()
108 fos = new FileOutputStream(f.getPath(), true); in test_ConstructorLjava_lang_StringZ()
112 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ()
149 fos = new FileOutputStream(f.getPath()); in test_close()
177 fos = new FileOutputStream(f.getPath()); in test_write$B()
179 fis = new FileInputStream(f.getPath()); in test_write$B()
191 fos = new FileOutputStream(f.getPath()); in test_write$BII()
193 fis = new FileInputStream(f.getPath()); in test_write$BII()
218 fos = new FileOutputStream(f.getPath()); in test_writeI()
220 fis = new FileInputStream(f.getPath()); in test_writeI()
[all …]
DFileDescriptorTest.java42 fis = new FileInputStream(f.getPath()); in test_sync()
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java39 assertEquals("/directory/file", url.getPath()); in testUrlParts()
143 assertEquals("/path", url.getPath()); in testOmittedHost()
155 assertEquals("/path", url.getPath()); in testNoHost()
164 assertEquals("", url.getPath()); in testNoPath()
176 assertEquals("", url.getPath()); in testEmptyHostAndNoPath()
190 assertEquals("", url.getPath()); in testNoHostAndNoPath()
245 assertEquals("/path", url.getPath()); in testPathOnly()
251 assertEquals("", url.getPath()); in testQueryOnly()
258 assertEquals("", url.getPath()); in testFragmentOnly()
265 assertEquals("/file@foo", url.getPath()); in testAtSignInPath()
[all …]
DURITest.java35 assertEquals("/directory/file", uri.getPath()); in testUriParts()
94 assertEquals("/path", uri.getPath()); in testEmptyHost()
100 assertEquals("/path", uri.getPath()); in testNoHost()
106 assertEquals("", uri.getPath()); in testNoPath()
176 assertEquals("/path", uri.getPath()); in testPathOnly()
182 assertEquals("", uri.getPath()); in testQueryOnly()
189 assertEquals("", uri.getPath()); in testFragmentOnly()
196 assertEquals("/file@foo", uri.getPath()); in testAtSignInPath()
203 assertEquals("/file:colon", uri.getPath()); in testColonInPath()
208 assertEquals("/file", uri.getPath()); in testSlashInQuery()
[all …]
DOldJarURLConnectionTest.java54 return new URL("jar:file:" + file.getPath() + "!/" + inFile); in createContent()
191 URL fUrl1 = new URL("jar:file:" + file.getPath() + "!/"); in test_getJarFile()
229 URL url = new URL("jar:file:" + file.getPath() + "!/HasAttributes.txt"); in test_setUseCaches()
255 URL fileURL = new URL(u.getPath().substring(0, u.getPath().indexOf("!"))); in test_getJarFileURL()
292 String jarFileName = jarFile.getPath(); in test_getInputStream_DeleteJarFileUsingURLConnection()
DOldAndroidURITest.java34 assertEquals(path, uri.getPath()); in construct()
DCookiesTest.java70 assertEquals("/path", cookie.getPath()); in testNetscapeResponse()
100 assertEquals("/path", cookie.getPath()); in testRfc2109Response()
133 assertEquals("/path", cookie.getPath()); in testRfc2965Response()
167 assertEquals("/path", cookie.getPath()); in testQuotedAttributeValues()
214 assertEquals("/foo/", cookieStore.getCookie("a").getPath()); in testPathDefaulting()
216 assertEquals("/", cookieStore.getCookie("b").getPath()); in testPathDefaulting()
218 assertEquals("/foo/", cookieStore.getCookie("c").getPath()); in testPathDefaulting()
235 assertEquals("/foo", cookieStore.getCookie("a").getPath()); in testMatchingPathsAccepted()
/libcore/luni/src/main/java/java/io/
DFile.java124 this(dir == null ? null : dir.getPath(), name); in File()
178 this.path = fixSlashes(uri.getPath()); in File()
300 return this.getPath().compareTo(another.getPath()); in compareTo()
353 return path.equals(((File) obj).getPath()); in equals()
486 public String getPath() { in getPath() method in File
499 return getPath().hashCode() ^ 1234321; in hashCode()
1098 String name = f.getPath(); in getAbsoluteName()
DFileOutputStream.java87 this.fd = IoBridge.open(file.getPath(), mode); in FileOutputStream()
DFileInputStream.java76 this.fd = IoBridge.open(file.getPath(), O_RDONLY); in FileInputStream()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java67 sqlUrl = "jdbc:sqlite:/" + dbFile.getPath(); in loadDriver()
116 return dbFile.getPath(); in getFilename()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java308 new SAXParserTestSupport().readFile(list_out_dh[i].getPath()); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
343 list_out_hb[i].getPath()); in testParseFileHandlerBase()
398 list_out_dh[i].getPath()); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
439 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputSourceHandlerBase()
491 list_out_dh[i].getPath()); in test_parseLjava_io_InputStreamLorg_xml_sax_helpers_DefaultHandler()
530 list_out_hb[i].getPath()); in test_parseLjava_io_InputStreamLorg_xml_sax_helpers_DefaultHandlerLjava_lang_String()
637 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputStreamHandlerBase()
678 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputStreamHandlerBaseString()
721 list_out_dh[i].getPath()); in test_parseLjava_lang_StringLorg_xml_sax_helpers_DefaultHandler()
756 list_out_hb[i].getPath()); in testParseStringHandlerBase()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java243 assertNull(cookie.getPath()); in test_Get_SetPath()
246 assertEquals("{}() test,; 43!@", cookie.getPath()); in test_Get_SetPath()
249 assertEquals(" test", cookie.getPath()); in test_Get_SetPath()
253 assertEquals("\u63DF\u64DE", cookie.getPath()); in test_Get_SetPath()
608 assertNull(cookie.getPath()); in test_Parse()
625 assertEquals("/temp", cookie.getPath()); in test_Parse()
676 assertEquals("pa$th", cookie.getPath()); in test_Parse()
796 assertEquals("hello", cookie.getPath()); in test_Parse()
819 assertEquals("/", cookie.getPath());
825 assertEquals("/", cookie.getPath());
DJarURLConnectionTest.java49 return new URL("jar:file:" + file.getPath() + "!/" + inFile); in copyAndOpenResourceStream()
121 URL fUrl1 = new URL("jar:file:" + file.getPath() + "!/"); in test_getJarFile()
161 URL url = new URL("jar:file:" + file.getPath() + "!/HasAttributes.txt"); in test_setUseCaches()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java45 scanZip(file.getPath()); in testZipFile()
46 read2(file.getPath()); in testZipFile()
/libcore/luni/src/main/java/java/net/
DCookieManager.java173 if (cookie.getPath() == null) { in put()
174 cookie.setPath(pathToCookiePath(uri.getPath())); in put()
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java69 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java265 return DexFile.loadDex(file.getPath(), optimizedPath, 0); in loadDexFile()
301 return result.getPath(); in optimizedPathFor()
382 String path = new File(directory, fileName).getPath(); in findLibrary()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java74 assertEquals(tmpDirName, f.getPath()); in test_ConstructorLjava_io_FileLjava_lang_String()
116 assertEquals(tmpDir, f.getPath()); in test_ConstructorLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/sql/
DConnectionTest.java64 connectionURL = "jdbc:sqlite:/" + dbFile.getPath(); in getConnectionURL()
DOldSQLTest.java48 conn = DriverManager.getConnection("jdbc:sqlite:/" + dbFile.getPath()); in getSQLiteConnection()
/libcore/luni/src/main/java/libcore/net/url/
DFileURLConnection.java281 out.print(f.getPath().replace('\\', '/') + "/\"><h1>" + f.getPath() in getDirectoryListing()

12