/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 47 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/ |
D | URLStreamHandler.java | 393 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() 436 (u1.getProtocol() != null && 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() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 199 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/ |
D | Handler.java | 43 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/ |
D | Handler.java | 61 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/ |
D | Handler.java | 122 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/main/java/java/lang/ |
D | String.java | 1366 char u1 = Character.toUpperCase(c1); in regionMatches() local 1368 if (u1 == u2) { in regionMatches() 1375 if (Character.toLowerCase(u1) == Character.toLowerCase(u2)) { in regionMatches()
|
/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 674 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, 684 staddr[1] = (unsigned char)u1;
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 4843 long u1 = tmp >>> 32; 4861 while(q1 >= DIV_NUM_BASE || unsignedLongCompare(q1*v0, make64(r_tmp, u1))) { 4868 tmp = mulsub(u2,u1,v1,v0,q1); 4869 u1 = tmp & LONG_MASK; 4897 long r = mulsub(u1, u0, v1, v0, q0) >>> shift; 4919 long r = mulsub(u1, u0, v1, v0, q0) >>> shift; 4996 private static long mulsub(long u1, long u0, final long v1, final long v0, long q0) { 4998 return make64(u1 + (tmp>>>32) - q0*v1,tmp & LONG_MASK);
|