Searched refs:getPath (Results 1 - 25 of 71) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileWriterTest.java42 fos = new FileOutputStream(f.getPath());
48 br = new BufferedReader(new FileReader(f.getPath()));
98 fos = new FileOutputStream(f.getPath());
101 fis = new FileInputStream(f.getPath());
115 fos = new FileOutputStream(f.getPath());
118 bw = new BufferedWriter(new FileWriter(f.getPath()));
121 br = new BufferedReader(new FileReader(f.getPath()));
133 fos = new FileOutputStream(f.getPath());
136 bw = new BufferedWriter(new FileWriter(f.getPath(), true));
139 br = new BufferedReader(new FileReader(f.getPath()));
[all...]
H A DFileReaderTest.java43 bw = new BufferedWriter(new FileWriter(f.getPath()));
58 bw = new BufferedWriter(new FileWriter(f.getPath()));
61 FileInputStream fis = new FileInputStream(f.getPath());
75 bw = new BufferedWriter(new FileWriter(f.getPath()));
78 br = new FileReader(f.getPath());
H A DFileTest.java87 File f = new File(tempDirectory.getPath(), "input.tst");
88 assertEquals("Created Incorrect File ", addTrailingSlash(tempDirectory.getPath()) + "input.tst", f.getPath());
119 assertEquals("Assert 1: wrong path result ", path.getPath(), file
120 .getPath());
132 String dirName = tempDirectory.getPath();
141 dirName, f.getPath());
171 fileName = addTrailingSlash(tempDirectory.getPath());
175 assertEquals("Created incorrect File", fileName, f.getPath());
189 dirName = tempDirectory.getPath();
[all...]
H A DFileOutputStreamTest.java107 fos = new FileOutputStream(f.getPath(), false);
110 fos = new FileOutputStream(f.getPath(), true);
114 fis = new FileInputStream(f.getPath());
151 fos = new FileOutputStream(f.getPath());
179 fos = new FileOutputStream(f.getPath());
181 fis = new FileInputStream(f.getPath());
193 fos = new FileOutputStream(f.getPath());
195 fis = new FileInputStream(f.getPath());
220 fos = new FileOutputStream(f.getPath());
222 fis = new FileInputStream(f.getPath());
[all...]
H A DFileDescriptorTest.java42 fis = new FileInputStream(f.getPath());
/libcore/ojluni/src/main/java/sun/misc/
H A DFileURLMapper.java57 public String getPath () { method in class:FileURLMapper
73 String s = getPath ();
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
H A DAuthCacheValue.java87 abstract String getPath(); method in class:AuthCacheValue
H A DBasicAuthentication.java188 npath = new URI (npath).normalize().getPath();
189 opath = new URI (opath).normalize().getPath();
H A DAuthCacheImpl.java56 String skey = value.getPath();
/libcore/luni/src/test/java/libcore/java/net/
H A DURLTest.java41 assertEquals("/directory/file", url.getPath());
145 assertEquals("/path", url.getPath());
157 assertEquals("/path", url.getPath());
166 assertEquals("", url.getPath());
178 assertEquals("", url.getPath());
192 assertEquals("", url.getPath());
247 assertEquals("/path", url.getPath());
253 assertEquals("", url.getPath());
260 assertEquals("", url.getPath());
267 assertEquals("/file@foo", url.getPath());
[all...]
H A DURITest.java35 assertEquals("/directory/file", uri.getPath());
94 assertEquals("/path", uri.getPath());
100 assertEquals("/path", uri.getPath());
106 assertEquals("", uri.getPath());
121 assertEquals("", uri.getPath());
192 assertEquals("/path", uri.getPath());
198 assertEquals("", uri.getPath());
205 assertEquals("", uri.getPath());
212 assertEquals("/file@foo", uri.getPath());
219 assertEquals("/file:colon", uri.getPath());
[all...]
H A DOldAndroidURITest.java34 assertEquals(path, uri.getPath());
H A DOldJarURLConnectionTest.java54 return new URL("jar:file:" + file.getPath() + "!/" + inFile);
191 URL fUrl1 = new URL("jar:file:" + file.getPath() + "!/");
229 URL url = new URL("jar:file:" + file.getPath() + "!/HasAttributes.txt");
255 URL fileURL = new URL(u.getPath().substring(0, u.getPath().indexOf("!")));
292 String jarFileName = jarFile.getPath();
/libcore/luni/src/test/java/libcore/java/io/
H A DFileTest.java108 assertEquals("", f.getPath());
358 assertEquals("/test1", file.getPath());
363 assertEquals("/", new File("/", "/").getPath());
364 assertEquals("/", new File("/", "").getPath());
365 assertEquals("/", new File("", "/").getPath());
366 assertEquals("", new File("", "").getPath());
368 assertEquals("/foo/bar", new File("/foo/", "/bar/").getPath());
369 assertEquals("/foo/bar", new File("/foo", "/bar//").getPath());
/libcore/ojluni/src/main/java/java/io/
H A DUnixFileSystem.java129 if (isAbsolute(f)) return f.getPath();
130 return resolve(System.getProperty("user.dir"), f.getPath());
242 int rv = getBooleanAttributes0(f.getPath());
368 return f1.getPath().compareTo(f2.getPath());
372 return f.getPath().hashCode() ^ 1234321;
/libcore/ojluni/src/main/java/java/net/
H A DCookieManager.java288 if (cookie.getPath() == null) {
291 String path = uri.getPath();
394 return normalizePath(uri.getPath()).startsWith(normalizePath(cookie.getPath()));
457 final String c1Path = normalizePath(c1.getPath());
458 final String c2Path = normalizePath(c2.getPath());
/libcore/luni/src/test/java/libcore/io/
H A DClassPathURLStreamHandlerTest.java66 String fileName = jarFile.getPath();
72 String fileName = jarFile.getPath();
105 String fileName = jarFile.getPath();
117 String fileName = jarFile.getPath();
133 String fileName = jarFile.getPath();
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java298 String path = file.getPath();
362 return DexFile.loadDex(file.getPath(), optimizedPath, 0, loader, elements);
398 return result.getPath();
514 (dir != null && !dir.getPath().isEmpty() ? ", dir \"" + dir + "\"" : "");
532 urlHandler = new ClassPathURLStreamHandler(zip.getPath());
549 String path = new File(dir, name).getPath();
558 String entryName = new File(dir, name).getPath();
560 return zip.getPath() + zipSeparator + entryName;
/libcore/luni/src/test/java/tests/support/
H A DSupport_SQL.java67 sqlUrl = "jdbc:sqlite:/" + dbFile.getPath();
116 return dbFile.getPath();
/libcore/luni/src/test/java/libcore/java/sql/
H A DConnectionTest.java64 connectionURL = "jdbc:sqlite:/" + dbFile.getPath();
H A DOldSQLTest.java48 conn = DriverManager.getConnection("jdbc:sqlite:/" + dbFile.getPath());
/libcore/support/src/test/java/tests/support/
H A DSupport_ClassLoader.java69 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(),
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipFileTest.java45 scanZip(file.getPath());
46 read2(file.getPath());
/libcore/tzdata/update/src/main/libcore/tzdata/update/
H A DFileUtils.java49 if (!subFile.getPath().startsWith(parentDir.getCanonicalPath())) {
146 new File(file.getParentFile().getCanonicalFile(), baseName).getPath();
/libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/
H A DMailToURLConnection.java99 String to = ParseUtil.decode(url.getPath());

Completed in 1040 milliseconds

123