Home
last modified time | relevance | path

Searched refs:u1 (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java47 URL u1; field in URLTest
78 u1 = new URL("http://www.yahoo2.com:9999"); in test_ConstructorLjava_lang_String()
79 assertEquals("u1 returns a wrong protocol", "http", u1.getProtocol()); in test_ConstructorLjava_lang_String()
80 assertEquals("u1 returns a wrong host", "www.yahoo2.com", u1.getHost()); in test_ConstructorLjava_lang_String()
81 assertEquals("u1 returns a wrong port", 9999, u1.getPort()); in test_ConstructorLjava_lang_String()
82 assertTrue("u1 returns a wrong file", u1.getFile().equals("")); in test_ConstructorLjava_lang_String()
83 assertNull("u1 returns a wrong anchor", u1.getRef()); in test_ConstructorLjava_lang_String()
240 URL u1 = null; in test_ConstructorLjava_lang_String() local
243 u1 = new URL("file:/some/path"); in test_ConstructorLjava_lang_String()
244 assertEquals("5 got wrong file length1", 10, u1.getFile().length()); in test_ConstructorLjava_lang_String()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java376 protected boolean equals(URL u1, URL u2) { in equals() argument
377 return Objects.equals(u1.getRef(), u2.getRef()) && in equals()
378 Objects.equals(u1.getQuery(), u2.getQuery()) && in equals()
381 sameFile(u1, u2); in equals()
414 protected boolean sameFile(URL u1, URL u2) { in sameFile() argument
416 if (!((u1.getProtocol() == u2.getProtocol()) || in sameFile()
417 (u1.getProtocol() != null && in sameFile()
418 u1.getProtocol().equalsIgnoreCase(u2.getProtocol())))) in sameFile()
422 if (!(u1.getFile() == u2.getFile() || in sameFile()
423 (u1.getFile() != null && u1.getFile().equals(u2.getFile())))) in sameFile()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldURLTest.java199 u1 = new URL(u, "somefile.java"); in testURLURLString()
561 URL u1; field in OldURLTest
731 u1 = new URL(u, "file.java", new MyHandler()); in testURLURLStringURLStreamHandler()
732 assertEquals("1 returns a wrong protocol", "http", u1.getProtocol()); in testURLURLStringURLStreamHandler()
733 assertEquals("1 returns a wrong host", "www.yahoo.com", u1.getHost()); in testURLURLStringURLStreamHandler()
734 assertEquals("1 returns a wrong port", -1, u1.getPort()); in testURLURLStringURLStreamHandler()
735 assertEquals("1 returns a wrong file", "/file.java", u1.getFile()); in testURLURLStringURLStreamHandler()
736 assertNull("1 returns a wrong anchor", u1.getRef()); in testURLURLStringURLStreamHandler()
738 u1 = new URL(u, "systemresource:/+/FILE0/test.java", new MyHandler()); in testURLURLStringURLStreamHandler()
739 assertEquals("2 returns a wrong protocol", "systemresource", u1 in testURLURLStringURLStreamHandler()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DHandler.java43 protected boolean equals(URL u1, URL u2) { in equals() argument
44 String userInfo1 = u1.getUserInfo(); in equals()
46 return super.equals(u1, u2) && in equals()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java61 protected boolean sameFile(URL u1, URL u2) { in sameFile() argument
62 if (!u1.getProtocol().equals("jar") || !u2.getProtocol().equals("jar")) in sameFile()
65 String file1 = u1.getFile(); in sameFile()
71 return super.sameFile(u1, u2); in sameFile()
85 return super.sameFile(u1, u2); in sameFile()
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DHandler.java122 protected boolean hostsEqual(URL u1, URL u2) { in hostsEqual() argument
128 String s1 = u1.getHost(); in hostsEqual()
134 return super.hostsEqual(u1, u2); in hostsEqual()
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java265 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { in cmp() argument
266 int result = FileTime.from(v1, u1).compareTo(FileTime.from(v2, u2)); in cmp()
277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in eq() argument
278 FileTime t1 = FileTime.from(v1, u1); in eq()
308 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in neq() argument
309 FileTime t1 = FileTime.from(v1, u1); in neq()
/libcore/ojluni/src/main/java/java/lang/
DString.java1311 char u1 = Character.toUpperCase(c1); in regionMatches() local
1313 if (u1 == u2) { in regionMatches()
1320 if (Character.toLowerCase(u1) == Character.toLowerCase(u2)) { in regionMatches()
/libcore/ojluni/src/main/native/
Dnet_util_md.c668 unsigned int u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,ua,ub,uc,ud,ue,uf;
674 "%d %x %x %x %32s",&u0,&u1,&u2,&u3,&u4,&u5,&u6,&u7,
678 staddr[1] = (unsigned char)u1;