Searched refs:relativize (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultSecureDirectoryStreamTest.java | 147 relativize(path_dir1))) { in test_newDirectoryStream() 163 relativize(symlinkPath), LinkOption.NOFOLLOW_LINKS)) { in test_newDirectoryStream_symbolicLink() 176 relativize(path_f1))) { in test_newDirectoryStream_Exception() 188 relativize(path_f1), (LinkOption) null)) { in test_newDirectoryStream_Exception() 195 relativize(path_dir1))) { in test_newDirectoryStream_Exception() 219 path_root.relativize(path_f1), set)) { in test_newByteChannel() 228 path_root.relativize(path_f1), set)) { in test_newByteChannel() 240 path_root.relativize(path_f1), set)) { in test_newByteChannel() 268 ds_path_root.deleteFile(path_root.relativize(path_f1)); in test_deleteFile() 274 ds_path_root.deleteFile(path_root.relativize(path_dir1)); in test_deleteFile() [all …]
|
D | LinuxPathTest.java | 281 assertEquals(Paths.get(".."), p1.relativize(p2)); in test_relativize() 282 assertEquals(Paths.get(".."), p1.toAbsolutePath().relativize(p2.toAbsolutePath())); in test_relativize() 283 assertEquals(Paths.get("t3"), p2.relativize(p1)); in test_relativize() 287 p1.relativize(p2.toAbsolutePath()); in test_relativize() 292 p1.toAbsolutePath().relativize(p2); in test_relativize() 299 fakePath.relativize(null); in test_relativize_NPE()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URITest.java | 1580 new URI("dir/file?query"), a.relativize(b)); in test_relativizeLjava_net_URI() 1586 "file://tools/~/first"), a.relativize(b)); in test_relativizeLjava_net_URI() 1588 "file:///~/first"), b.relativize(a)); in test_relativizeLjava_net_URI() 1592 assertEquals("Assert 3: URI relativized incorrectly,", new URI("second"), a.relativize(b)); in test_relativizeLjava_net_URI() 1593 assertEquals("Assert 4: URI relativized incorrectly,", new URI("first"), b.relativize(a)); in test_relativizeLjava_net_URI() 1598 assertEquals(expected, new URI(base).relativize(new URI(target)).toString()); in testRelativize() 1607 URI relative = base.relativize(uri); in test_relativize3() 1618 assertEquals("relativized incorrectly,", new URI("dir/file?query"), a.relativize(b)); in test_relativize2() 1624 "file://tools/~/dictionary"), a.relativize(b)); in test_relativize2() 1626 new URI("file:///~/dictionary"), b.relativize(a)); in test_relativize2() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURITest.java | 112 b.relativize(null); in test_relativizeLjava_net_URI()
|
D | URITest.java | 545 assertEquals("b/c", a.relativize(b).toString()); // RI assumes a directory in testRelativize() 675 assertEquals(relative, absolute.relativize(new URI("http://android.com/robots.txt"))); in testRelativizeRelativeAndAbsolute() 676 assertEquals(new URI(""), absolute.relativize(absolute)); in testRelativizeRelativeAndAbsolute() 677 assertEquals(relative, absolute.relativize(relative)); in testRelativizeRelativeAndAbsolute() 678 assertEquals(absolute, relative.relativize(absolute)); in testRelativizeRelativeAndAbsolute() 679 assertEquals(new URI(""), relative.relativize(relative)); in testRelativizeRelativeAndAbsolute()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Path.java | 458 Path relativize(Path other); in relativize() method
|
D | Files.java | 765 for (Path name: parent.relativize(dir)) {
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | URI.java | 98 public java.net.URI relativize(java.net.URI uri) { in relativize() method in URI 304 private static java.net.URI relativize(java.net.URI base, java.net.URI child) { in relativize() method in URI
|
/libcore/ojluni/src/main/java/java/net/ |
D | URI.java | 1061 public URI relativize(URI uri) { in relativize() method in URI 1062 return relativize(this, uri); in relativize() 2143 private static URI relativize(URI base, URI child) { in relativize() method
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 409 public UnixPath relativize(Path obj) { in relativize() method in UnixPath
|