Home
last modified time | relevance | path

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

1234

/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.java112 fos = new FileOutputStream(f.getPath(), false); in test_ConstructorLjava_lang_StringZ()
115 fos = new FileOutputStream(f.getPath(), true); in test_ConstructorLjava_lang_StringZ()
119 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ()
156 fos = new FileOutputStream(f.getPath()); in test_close()
184 fos = new FileOutputStream(f.getPath()); in test_write$B()
186 fis = new FileInputStream(f.getPath()); in test_write$B()
198 fos = new FileOutputStream(f.getPath()); in test_write$BII()
200 fis = new FileInputStream(f.getPath()); in test_write$BII()
225 fos = new FileOutputStream(f.getPath()); in test_writeI()
227 fis = new FileInputStream(f.getPath()); in test_writeI()
[all …]
/libcore/ojluni/src/main/java/java/io/
DUnixFileSystem.java135 if (isAbsolute(f)) return f.getPath(); in resolve()
136 return resolve(System.getProperty("user.dir"), f.getPath()); in resolve()
251 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getBooleanAttributes()
254 int rv = getBooleanAttributes0(f.getPath()); in getBooleanAttributes()
281 return Libcore.os.access(f.getPath(), mode); in checkAccess()
290 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getLastModifiedTime()
298 return Libcore.os.stat(f.getPath()).st_size; in getLength()
307 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in setPermission()
331 Libcore.os.remove(f.getPath()); in delete()
345 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in list()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
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 …]
DURLTest.java53 assertEquals("/directory/file", url.getPath()); in testUrlParts()
300 assertEquals("/path", url.getPath()); in testOmittedHost()
312 assertEquals("/path", url.getPath()); in testNoHost()
321 assertEquals("", url.getPath()); in testNoPath()
333 assertEquals("", url.getPath()); in testEmptyHostAndNoPath()
347 assertEquals("", url.getPath()); in testNoHostAndNoPath()
402 assertEquals("/path", url.getPath()); in testPathOnly()
408 assertEquals("", url.getPath()); in testQueryOnly()
415 assertEquals("", url.getPath()); in testFragmentOnly()
422 assertEquals("/file@foo", url.getPath()); in testAtSignInPath()
[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()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPath.java43 return startsWith(getFileSystem().getPath(other)); in startsWith()
48 return endsWith(getFileSystem().getPath(other)); in endsWith()
53 return resolve(getFileSystem().getPath(other)); in resolve()
66 return resolveSibling(getFileSystem().getPath(other)); in resolveSibling()
/libcore/ojluni/src/main/java/java/nio/file/
DPaths.java84 return FileSystems.getDefault().getPath(first, more); in get()
138 return FileSystems.getDefault().provider().getPath(uri); in get()
143 return provider.getPath(uri); in get()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java58 MemoryMappedFile.mmapRO(file.getPath()); in testMmapRo_emptyFile()
70 try (MemoryMappedFile memoryMappedFile = MemoryMappedFile.mmapRO(file.getPath())) { in testMmapRo()
80 MemoryMappedFile memoryMappedFile = MemoryMappedFile.mmapRO(file.getPath()); in testMmapRo_close()
102 MemoryMappedFile memoryMappedFile = MemoryMappedFile.mmapRO(file.getPath()); in testReadAfterCloseFails()
123 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in checkReadByte()
151 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in checkSeek()
195 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in checkSkip()
237 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in testReadShort_bigEndian()
259 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in testReadShort_littleEndian()
299 MemoryMappedFile mappedFile = MemoryMappedFile.mmapRO(file.getPath()); in testReadInt_bigEndian()
[all …]
DClassPathURLStreamHandlerTest.java69 String fileName = jarFile.getPath(); in testConstructor()
75 String fileName = jarFile.getPath(); in testGetEntryOrNull()
108 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull()
120 String fileName = jarFile.getPath(); in testIsEntryStored()
136 String fileName = jarFile.getPath(); in testOpenConnection()
/libcore/ojluni/src/main/java/java/net/
DCookieManager.java305 if (cookie.getPath() == null) { in put()
308 String path = uri.getPath(); in put()
416 return normalizePath(uri.getPath()).startsWith(normalizePath(cookie.getPath())); in pathMatches()
479 final String c1Path = normalizePath(c1.getPath()); in compare()
480 final String c2Path = normalizePath(c2.getPath()); in compare()
DHttpCookie.java471 public String getPath() { in getPath() method in HttpCookie
758 Objects.equals(getPath(), other.getPath()); in equals()
955 if (cookie.getPath() == null)
1075 if (getPath() != null) in toRFC2965HeaderString()
1076 sb.append(";$Path=\"").append(getPath()).append('"'); in toRFC2965HeaderString()
/libcore/ojluni/src/main/java/sun/misc/
DFileURLMapper.java57 public String getPath () { in getPath() method in FileURLMapper
73 String s = getPath (); in exists()
/libcore/luni/src/test/java/libcore/libcore/timezone/
DZoneInfoDBTest.java39 String emptyFilePath = makeEmptyFile().getPath(); in testLoadTzDataWithFallback_emptyOverrideFile()
50 String corruptFilePath = makeCorruptFile().getPath(); in testLoadTzDataWithFallback_corruptOverrideFile()
61 String emptyFilePath = makeEmptyFile().getPath(); in testLoadTzDataWithFallback_noGoodFile()
85 ZoneInfoDB.TzData.loadTzDataWithFallback(goodFile.getPath(), SYSTEM_TZDATA_FILE); in testLoadTzDataWithFallback_goodOverrideFile()
110 assertNotNull(ZoneInfoDB.TzData.loadTzData(testFile.getPath())); in testLoadTzData_validTestData()
211 assertNull(ZoneInfoDB.TzData.loadTzData(testFile.getPath())); in checkInvalidDataDetected()
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java116 assertEquals("", f.getPath()); in test_emptyFilename()
371 assertEquals("/test1", file.getPath()); in testBug27731686()
376 assertEquals("/", new File("/", "/").getPath()); in testFileNameNormalization()
377 assertEquals("/", new File("/", "").getPath()); in testFileNameNormalization()
378 assertEquals("/", new File("", "/").getPath()); in testFileNameNormalization()
379 assertEquals("", new File("", "").getPath()); in testFileNameNormalization()
381 assertEquals("/foo/bar", new File("/foo/", "/bar/").getPath()); in testFileNameNormalization()
382 assertEquals("/foo/bar", new File("/foo", "/bar//").getPath()); in testFileNameNormalization()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java113 BaseDexClassLoader cl1 = new PathClassLoader(jar.getPath(), in testReporting()
121 assertEquals(jar.getPath(), reporter.loadedDexPaths.get(0)); in testReporting()
133 BaseDexClassLoader cl1 = new PathClassLoader(jar.getPath(), unknownLoader); in testReportingUnknownLoader()
138 assertEquals(jar.getPath(), reporter.loadedDexPaths.get(0)); in testReportingUnknownLoader()
149 BaseDexClassLoader cl1 = new PathClassLoader(jar.getPath(), in testNoReportingAfterResetting()
160 BaseDexClassLoader cl2 = new PathClassLoader(jar.getPath(), pcl); in testNoReportingAfterResetting()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystem.java50 public Path getPath() { in getPath() method in MockFileSystem
99 public Path getPath(String first, String... more) { in getPath() method in MockFileSystem
/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/tests/support/
DSupport_SQL.java67 sqlUrl = "jdbc:sqlite:/" + dbFile.getPath(); in loadDriver()
116 return dbFile.getPath(); in getFilename()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java447 return DexFile.loadDex(file.getPath(), optimizedPath, 0, loader, elements); in loadDexFile()
483 return result.getPath(); in optimizedPathFor()
506 String path = file.getPath(); in makePathElements()
756 urlHandler = new ClassPathURLStreamHandler(path.getPath()); in maybeInit()
864 urlHandler = new ClassPathURLStreamHandler(path.getPath()); in maybeInit()
888 String entryPath = new File(path, name).getPath(); in findNativeLibrary()
898 return path.getPath() + zipSeparator + entryName; in findNativeLibrary()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java252 assertNull(cookie.getPath()); in test_Get_SetPath()
255 assertEquals("{}() test,; 43!@", cookie.getPath()); in test_Get_SetPath()
258 assertEquals(" test", cookie.getPath()); in test_Get_SetPath()
262 assertEquals("\u63DF\u64DE", cookie.getPath()); in test_Get_SetPath()
659 assertNull(cookie.getPath()); in test_Parse()
676 assertEquals("/temp", cookie.getPath()); in test_Parse()
727 assertEquals("pa$th", cookie.getPath()); in test_Parse()
847 assertEquals("hello", cookie.getPath()); in test_Parse()
870 assertEquals("/", cookie.getPath());
876 assertEquals("/", cookie.getPath());
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoaderDalvik.java41 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java45 scanZip(file.getPath()); in testZipFile()
46 read2(file.getPath()); in testZipFile()

1234