Home
last modified time | relevance | path

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

123

/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.java107 fos = new FileOutputStream(f.getPath(), false); in test_ConstructorLjava_lang_StringZ()
110 fos = new FileOutputStream(f.getPath(), true); in test_ConstructorLjava_lang_StringZ()
114 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ()
151 fos = new FileOutputStream(f.getPath()); in test_close()
179 fos = new FileOutputStream(f.getPath()); in test_write$B()
181 fis = new FileInputStream(f.getPath()); in test_write$B()
193 fos = new FileOutputStream(f.getPath()); in test_write$BII()
195 fis = new FileInputStream(f.getPath()); in test_write$BII()
220 fos = new FileOutputStream(f.getPath()); in test_writeI()
222 fis = new FileInputStream(f.getPath()); in test_writeI()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java41 assertEquals("/directory/file", url.getPath()); in testUrlParts()
145 assertEquals("/path", url.getPath()); in testOmittedHost()
157 assertEquals("/path", url.getPath()); in testNoHost()
166 assertEquals("", url.getPath()); in testNoPath()
178 assertEquals("", url.getPath()); in testEmptyHostAndNoPath()
192 assertEquals("", url.getPath()); in testNoHostAndNoPath()
247 assertEquals("/path", url.getPath()); in testPathOnly()
253 assertEquals("", url.getPath()); in testQueryOnly()
260 assertEquals("", url.getPath()); in testFragmentOnly()
267 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()
121 assertEquals("", uri.getPath()); in testSingleLetterHost()
192 assertEquals("/path", uri.getPath()); in testPathOnly()
198 assertEquals("", uri.getPath()); in testQueryOnly()
205 assertEquals("", uri.getPath()); in testFragmentOnly()
212 assertEquals("/file@foo", uri.getPath()); in testAtSignInPath()
219 assertEquals("/file:colon", uri.getPath()); in testColonInPath()
[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()
/libcore/ojluni/src/main/java/sun/misc/
DFileURLMapper.java57 public String getPath () { in getPath() method in FileURLMapper
73 String s = getPath (); in exists()
/libcore/ojluni/src/main/java/java/net/
DCookieManager.java288 if (cookie.getPath() == null) { in put()
291 String path = uri.getPath(); in put()
394 return normalizePath(uri.getPath()).startsWith(normalizePath(cookie.getPath())); in pathMatches()
457 final String c1Path = normalizePath(c1.getPath()); in compare()
458 final String c2Path = normalizePath(c2.getPath()); in compare()
DHttpCookie.java561 public String getPath() { in getPath() method in HttpCookie
884 Objects.equals(getPath(), other.getPath()); in equals()
1069 if (cookie.getPath() == null) cookie.setPath(attrValue);
1148 if (getPath() != null) in toRFC2965HeaderString()
1149 sb.append(";$Path=\"").append(getPath()).append('"'); in toRFC2965HeaderString()
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java108 assertEquals("", f.getPath()); in test_emptyFilename()
358 assertEquals("/test1", file.getPath()); in testBug27731686()
363 assertEquals("/", new File("/", "/").getPath()); in testFileNameNormalization()
364 assertEquals("/", new File("/", "").getPath()); in testFileNameNormalization()
365 assertEquals("/", new File("", "/").getPath()); in testFileNameNormalization()
366 assertEquals("", new File("", "").getPath()); in testFileNameNormalization()
368 assertEquals("/foo/bar", new File("/foo/", "/bar/").getPath()); in testFileNameNormalization()
369 assertEquals("/foo/bar", new File("/foo", "/bar//").getPath()); in testFileNameNormalization()
/libcore/ojluni/src/main/java/java/io/
DUnixFileSystem.java129 if (isAbsolute(f)) return f.getPath(); in resolve()
130 return resolve(System.getProperty("user.dir"), f.getPath()); in resolve()
242 int rv = getBooleanAttributes0(f.getPath()); in getBooleanAttributes()
368 return f1.getPath().compareTo(f2.getPath()); in compare()
372 return f.getPath().hashCode() ^ 1234321; in hashCode()
/libcore/luni/src/test/java/libcore/io/
DClassPathURLStreamHandlerTest.java66 String fileName = jarFile.getPath(); in testConstructor()
72 String fileName = jarFile.getPath(); in testGetEntryOrNull()
105 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull()
117 String fileName = jarFile.getPath(); in testIsEntryStored()
133 String fileName = jarFile.getPath(); in testOpenConnection()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java298 String path = file.getPath(); in makeElements()
362 return DexFile.loadDex(file.getPath(), optimizedPath, 0, loader, elements); in loadDexFile()
398 return result.getPath(); in optimizedPathFor()
514 (dir != null && !dir.getPath().isEmpty() ? ", dir \"" + dir + "\"" : ""); in toString()
532 urlHandler = new ClassPathURLStreamHandler(zip.getPath()); in maybeInit()
549 String path = new File(dir, name).getPath(); in findNativeLibrary()
558 String entryName = new File(dir, name).getPath(); in findNativeLibrary()
560 return zip.getPath() + zipSeparator + entryName; in findNativeLibrary()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java67 sqlUrl = "jdbc:sqlite:/" + dbFile.getPath(); in loadDriver()
116 return dbFile.getPath(); in getFilename()
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
DAuthCacheValue.java87 abstract String getPath(); in getPath() method in AuthCacheValue
DBasicAuthentication.java188 npath = new URI (npath).normalize().getPath(); in getRootPath()
189 opath = new URI (opath).normalize().getPath(); in getRootPath()
DAuthenticationInfo.java100 public String getPath() { in getPath() method in AuthenticationInfo
226 String urlPath = url.getPath(); in AuthenticationInfo()
301 return (AuthenticationInfo)cache.get (key, url.getPath()); in getAuth()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java248 assertNull(cookie.getPath()); in test_Get_SetPath()
251 assertEquals("{}() test,; 43!@", cookie.getPath()); in test_Get_SetPath()
254 assertEquals(" test", cookie.getPath()); in test_Get_SetPath()
258 assertEquals("\u63DF\u64DE", cookie.getPath()); in test_Get_SetPath()
655 assertNull(cookie.getPath()); in test_Parse()
672 assertEquals("/temp", cookie.getPath()); in test_Parse()
723 assertEquals("pa$th", cookie.getPath()); in test_Parse()
848 assertEquals("hello", cookie.getPath()); in test_Parse()
871 assertEquals("/", cookie.getPath()); in test_Parse_httpOnly()
877 assertEquals("/", cookie.getPath()); in test_Parse_httpOnly()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java313 new SAXParserTestSupport().readFile(list_out_dh[i].getPath()); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler()
348 list_out_hb[i].getPath()); in testParseFileHandlerBase()
403 list_out_dh[i].getPath()); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
444 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputSourceHandlerBase()
496 list_out_dh[i].getPath()); in test_parseLjava_io_InputStreamLorg_xml_sax_helpers_DefaultHandler()
535 list_out_hb[i].getPath()); in test_parseLjava_io_InputStreamLorg_xml_sax_helpers_DefaultHandlerLjava_lang_String()
642 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputStreamHandlerBase()
683 HashMap<String, String> hm = sp.readFile(list_out_hb[i].getPath()); in testParseInputStreamHandlerBaseString()
726 list_out_dh[i].getPath()); in test_parseLjava_lang_StringLorg_xml_sax_helpers_DefaultHandler()
761 list_out_hb[i].getPath()); in testParseStringHandlerBase()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java45 scanZip(file.getPath()); in testZipFile()
46 read2(file.getPath()); in testZipFile()
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java69 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader()
/libcore/tzdata/update/src/main/libcore/tzdata/update/
DFileUtils.java49 if (!subFile.getPath().startsWith(parentDir.getCanonicalPath())) { in createSubFile()
146 new File(file.getParentFile().getCanonicalFile(), baseName).getPath(); in isSymlink()
/libcore/tzdata/update/src/test/libcore/tzdata/update/
DTzDataBundleInstallerTest.java132 .addChecksum(fileToChecksum.getPath(), badChecksum) in testChecksumBundleEntry_incorrectChecksum()
161 .addChecksum(fileToChecksum.getPath(), checksum) in createValidTzDataBundleBuilder()

123