Home
last modified time | relevance | path

Searched refs:u2 (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java393 protected boolean equals(URL u1, URL u2) { in equals() argument
395 return Objects.equals(u1.getRef(), u2.getRef()) && in equals()
396 Objects.equals(u1.getQuery(), u2.getQuery()) && in equals()
399 sameFile(u1, u2); in equals()
433 protected boolean sameFile(URL u1, URL u2) { in sameFile() argument
435 if (!((u1.getProtocol() == u2.getProtocol()) || in sameFile()
437 u1.getProtocol().equalsIgnoreCase(u2.getProtocol())))) in sameFile()
441 if (!(u1.getFile() == u2.getFile() || in sameFile()
442 (u1.getFile() != null && u1.getFile().equals(u2.getFile())))) in sameFile()
448 port2 = (u2.getPort() != -1) ? u2.getPort() : u2.handler.getDefaultPort(); in sameFile()
[all …]
DURL.java895 URL u2 = (URL)obj; in equals()
897 return handler.equals(this, u2); in equals()
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DHandler.java43 protected boolean equals(URL u1, URL u2) { in equals() argument
45 String userInfo2 = u2.getUserInfo(); in equals()
46 return super.equals(u1, u2) && in equals()
/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()
271 static void cmp(Instant ins, long v2, TimeUnit u2, int expected) { in cmp() argument
272 int result = FileTime.from(ins).compareTo(FileTime.from(v2, u2)); in cmp()
277 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in eq() argument
279 FileTime t2 = FileTime.from(v2, u2); in eq()
286 static void eq(Instant ins, long v2, TimeUnit u2) { in eq() argument
288 FileTime t2 = FileTime.from(v2, u2); in eq()
308 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) { in neq() argument
310 FileTime t2 = FileTime.from(v2, u2); in neq()
[all …]
/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()
66 String file2 = u2.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
129 String s2 = u2.getHost(); in hostsEqual()
134 return super.hostsEqual(u1, u2); in hostsEqual()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java49 URL u2; field in URLTest
86 u2 = new URL( in test_ConstructorLjava_lang_String()
88 assertEquals("u2 returns a wrong protocol", "http", u2.getProtocol()); in test_ConstructorLjava_lang_String()
89 assertEquals("u2 returns a wrong host", "www.yahoo3.com", u2.getHost()); in test_ConstructorLjava_lang_String()
90 assertEquals("u2 returns a wrong port", -1, u2.getPort()); in test_ConstructorLjava_lang_String()
92 "/dir1/dir2/test.cgi?point1.html", u2.getFile()); in test_ConstructorLjava_lang_String()
93 assertEquals("u2 returns a wrong anchor", "anchor1", u2.getRef()); in test_ConstructorLjava_lang_String()
/libcore/ojluni/src/main/native/
Dnet_util_md.c674 unsigned int u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,ua,ub,uc,ud,ue,uf;
680 "%d %x %x %x %32s",&u0,&u1,&u2,&u3,&u4,&u5,&u6,&u7,
685 staddr[2] = (unsigned char)u2;
/libcore/ojluni/src/main/java/java/lang/
DString.java1367 char u2 = Character.toUpperCase(c2); in regionMatches() local
1368 if (u1 == u2) { in regionMatches()
1375 if (Character.toLowerCase(u1) == Character.toLowerCase(u2)) { in regionMatches()
/libcore/luni/src/test/java/libcore/java/net/
DOldURLTest.java563 URL u2; field in OldURLTest