/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 39 protected URLConnection openConnection(URL u) in openConnection() argument 45 URL u; field in URLTest 68 u = new URL( in test_ConstructorLjava_lang_String() 70 assertEquals("u returns a wrong protocol", "http", u.getProtocol()); in test_ConstructorLjava_lang_String() 71 assertEquals("u returns a wrong host", "www.yahoo1.com", u.getHost()); in test_ConstructorLjava_lang_String() 72 assertEquals("u returns a wrong port", 8080, u.getPort()); in test_ConstructorLjava_lang_String() 74 "/dir1/dir2/test.cgi?point1.html", u.getFile()); in test_ConstructorLjava_lang_String() 75 assertEquals("u returns a wrong anchor", "anchor1", u.getRef()); in test_ConstructorLjava_lang_String() 209 u = new URL( in test_ConstructorLjava_lang_String() 214 u = new URL( in test_ConstructorLjava_lang_String() [all …]
|
D | JarURLConnectionTest.java | 57 URL u = copyAndOpenResourceStream("lf.jar", "swt.dll"); in test_getAttributes() local 59 juc = (JarURLConnection) u.openConnection(); in test_getAttributes() 70 URL u = copyAndOpenResourceStream("lf.jar", "plus.bmp"); in test_getEntryName() local 71 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 74 u = copyAndOpenResourceStream("lf.jar", ""); in test_getEntryName() 75 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 86 URL u = copyAndOpenResourceStream("lf.jar", "plus.bmp"); in test_getJarEntry() local 87 juc = (JarURLConnection) u.openConnection(); in test_getJarEntry() 90 u = copyAndOpenResourceStream("lf.jar", ""); in test_getJarEntry() 91 juc = (JarURLConnection) u.openConnection(); in test_getJarEntry() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLStreamHandler.java | 70 abstract protected URLConnection openConnection(URL u) throws IOException; in openConnection() argument 94 protected URLConnection openConnection(URL u, Proxy p) throws IOException { in openConnection() argument 123 protected void parseURL(URL u, String spec, int start, int limit) { in parseURL() argument 125 String protocol = u.getProtocol(); in parseURL() 126 String authority = u.getAuthority(); in parseURL() 127 String userInfo = u.getUserInfo(); in parseURL() 128 String host = u.getHost(); in parseURL() 129 int port = u.getPort(); in parseURL() 130 String path = u.getPath(); in parseURL() 131 String query = u.getQuery(); in parseURL() [all …]
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | BiPredicate.java | 53 boolean test(T t, U u); in test() argument 73 return (T t, U u) -> test(t, u) && other.test(t, u); in and() 84 return (T t, U u) -> !test(t, u); in negate() 105 return (T t, U u) -> test(t, u) || other.test(t, u); in or()
|
D | BiFunction.java | 53 R apply(T t, U u); in apply() argument 70 return (T t, U u) -> after.apply(apply(t, u)); in andThen()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | Handler.java | 53 protected void parseURL(URL u, String spec, int start, int limit) { in parseURL() argument 67 super.parseURL(u, spec.replace(File.separatorChar, '/'), start, limit); in parseURL() 70 public synchronized URLConnection openConnection(URL u) in openConnection() argument 72 return openConnection(u, null); in openConnection() 75 public synchronized URLConnection openConnection(URL u, Proxy p) in openConnection() argument 77 String host = u.getHost(); in openConnection() 80 File file = new File(ParseUtil.decode(u.getPath())); in openConnection() 81 return createFileURLConnection(u, file); in openConnection() 91 ru = new URL("ftp", host, u.getFile() + in openConnection() 92 (u.getRef() == null ? "": "#" + u.getRef())); in openConnection() [all …]
|
/libcore/ojluni/src/main/native/ |
D | Float.c | 44 } u; in Float_intBitsToFloat() local 45 u.i = (long)v; in Float_intBitsToFloat() 46 return (jfloat)u.f; in Float_intBitsToFloat() 58 } u; in Float_floatToRawIntBits() local 59 u.f = (float)v; in Float_floatToRawIntBits() 60 return (jint)u.i; in Float_floatToRawIntBits()
|
D | Double.c | 46 } u; in Double_longBitsToDouble() local 48 u.l = v; in Double_longBitsToDouble() 49 return (jdouble)u.d; in Double_longBitsToDouble() 61 } u; in Double_doubleToRawLongBits() local 63 u.d = (double)v; in Double_doubleToRawLongBits() 64 return u.l; in Double_doubleToRawLongBits()
|
D | ObjectInputStream.c | 59 } u; in Java_java_io_ObjectInputStream_bytesToFloats() local 96 u.i = (long) ival; in Java_java_io_ObjectInputStream_bytesToFloats() 97 floats[dstpos] = (jfloat) u.f; in Java_java_io_ObjectInputStream_bytesToFloats() 127 } u; in Java_java_io_ObjectInputStream_bytesToDoubles() local 169 u.l = lval; in Java_java_io_ObjectInputStream_bytesToDoubles() 170 doubles[dstpos] = (jdouble) u.d; in Java_java_io_ObjectInputStream_bytesToDoubles()
|
D | ObjectOutputStream.c | 58 } u; in Java_java_io_ObjectOutputStream_floatsToBytes() local 96 u.f = fval; in Java_java_io_ObjectOutputStream_floatsToBytes() 97 ival = (jint) u.i; in Java_java_io_ObjectOutputStream_floatsToBytes() 130 } u; in Java_java_io_ObjectOutputStream_doublesToBytes() local 170 u.d = (double) dval; in Java_java_io_ObjectOutputStream_doublesToBytes() 171 lval = u.l; in Java_java_io_ObjectOutputStream_doublesToBytes()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 198 u = null; in testURLURLString() 199 u1 = new URL(u, "somefile.java"); in testURLURLString() 208 u = new URL(gamelanNetwork, in testURLURLString() 210 assertTrue("someFancyNewProt".equalsIgnoreCase(u.getProtocol())); in testURLURLString() 327 u = sampleFile.toURL(); in testOpenConnection() 328 u.openConnection(); in testOpenConnection() 330 is = (InputStream) u.getContent(new Class[] { Object.class }); in testOpenConnection() 333 assertTrue("Incorrect content " + u in testOpenConnection() 338 URL u = new URL("https://a.xy.com/index.html"); in testOpenConnection() local 339 URLConnection conn = u.openConnection(); in testOpenConnection() [all …]
|
D | OldJarURLConnectionTest.java | 58 URL u = createContent("lf.jar", "swt.dll"); in test_getAttributes() local 59 juc = (JarURLConnection) u.openConnection(); in test_getAttributes() 75 URL u = createContent("TestCodeSigners.jar", "Test.class"); in test_getCertificates() local 77 juc = (JarURLConnection) u.openConnection(); in test_getCertificates() 100 URL u = createContent("lf.jar", "swt.dll"); in test_getManifest() local 102 juc = (JarURLConnection) u.openConnection(); in test_getManifest() 120 URL u = createContent("lf.jar", "plus.bmp"); in test_getEntryName() local 122 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 126 u = createContent("lf.jar", ""); in test_getEntryName() 128 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() [all …]
|
D | OldURLStreamHandlerTest.java | 188 @Override public InetAddress getHostAddress(URL u) { in getHostAddress() argument 189 return super.getHostAddress(u); in getHostAddress() 192 @Override public int hashCode(URL u) { in hashCode() argument 193 return super.hashCode(u); in hashCode() 200 @Override public URLConnection openConnection(URL u, Proxy p) throws IOException { in openConnection() argument 201 return super.openConnection(u, p); in openConnection() 212 @Override public void setURL(URL u, in setURL() argument 218 super.setURL(u, protocol, host, port, file, ref); in setURL() 221 @Override public void setURL(URL u, in setURL() argument 230 super.setURL(u, protocol, host, port, authority, in setURL() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/ |
D | Handler.java | 102 public synchronized URLConnection openConnection(URL u) { in openConnection() argument 103 return new MailToURLConnection(u); in openConnection() 116 public void parseURL(URL u, String spec, int start, int limit) { in parseURL() argument 118 String protocol = u.getProtocol(); in parseURL() 120 int port = u.getPort(); in parseURL() 142 setURL(u, protocol, host, port, file, null); in parseURL()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/gopher/ |
D | Handler.java | 49 public java.net.URLConnection openConnection(URL u) in openConnection() argument 51 return openConnection(u, null); in openConnection() 54 public java.net.URLConnection openConnection(URL u, Proxy p) in openConnection() argument 69 return new HttpURLConnection(u, p); in openConnection() 72 return new GopherURLConnection(u); in openConnection() 80 GopherURLConnection(URL u) { in GopherURLConnection() argument 81 super(u); in GopherURLConnection()
|
D | GopherClient.java | 83 URL u; field in GopherClient 123 InputStream openStream(URL u) throws IOException { in openStream() argument 124 this.u = u; in openStream() 127 String s = u.getFile(); in openStream() 137 openServer(u.getHost(), u.getPort() <= 0 ? 70 : u.getPort()); in openStream() 276 + "\" on " + u.getHost(); in run() 278 title = "Gopher directory " + gkey + " from " + u.getHost(); in run() 301 String host = t2 + 1 < t3 ? s.substring(t2 + 1, t3) : u.getHost(); in run()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
D | Handler.java | 55 protected java.net.URLConnection openConnection(URL u) in openConnection() argument 57 return openConnection(u, (Proxy)null); in openConnection() 60 protected java.net.URLConnection openConnection(URL u, Proxy p) in openConnection() argument 62 return new HttpURLConnection(u, p, this); in openConnection()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 60 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() argument 75 public long convert(long d, TimeUnit u) { return u.toMicros(d); } in convert() argument 90 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert() argument 105 public long convert(long d, TimeUnit u) { return u.toSeconds(d); } in convert() argument 121 public long convert(long d, TimeUnit u) { return u.toMinutes(d); } in convert() argument 137 public long convert(long d, TimeUnit u) { return u.toHours(d); } in convert() argument 153 public long convert(long d, TimeUnit u) { return u.toDays(d); } in convert() argument
|
D | ForkJoinWorkerThread.java | 222 sun.misc.Unsafe u = sun.misc.Unsafe.getUnsafe(); in createThreadGroup() local 223 long tg = u.objectFieldOffset in createThreadGroup() 225 long gp = u.objectFieldOffset in createThreadGroup() 228 u.getObject(Thread.currentThread(), tg); in createThreadGroup() 230 ThreadGroup parent = (ThreadGroup)u.getObject(group, gp); in createThreadGroup()
|
/libcore/ojluni/src/main/java/java/util/ |
D | BitSet.java | 707 int u = wordIndex(fromIndex); in nextSetBit() local 708 if (u >= wordsInUse) in nextSetBit() 711 long word = words[u] & (WORD_MASK << fromIndex); in nextSetBit() 715 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextSetBit() 716 if (++u == wordsInUse) in nextSetBit() 718 word = words[u]; in nextSetBit() 739 int u = wordIndex(fromIndex); in nextClearBit() local 740 if (u >= wordsInUse) in nextClearBit() 743 long word = ~words[u] & (WORD_MASK << fromIndex); in nextClearBit() 747 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextClearBit() [all …]
|
D | SplittableRandom.java | 299 for (long u = r >>> 1; // ensure nonnegative in internalNextLong() 300 u + m - (r = u % n) < 0L; // rejection check in internalNextLong() 301 u = mix64(nextSeed()) >>> 1) // retry in internalNextLong() 328 for (int u = r >>> 1; in internalNextInt() 329 u + m - (r = u % n) < 0; in internalNextInt() 330 u = mix32(nextSeed()) >>> 1) in internalNextInt() 429 for (int u = r >>> 1; in nextInt() 430 u + m - (r = u % bound) < 0; in nextInt() 431 u = mix32(nextSeed()) >>> 1) in nextInt() 481 for (long u = r >>> 1; in nextLong() [all …]
|
D | ArraysParallelSortHelpers.java | 132 int h = n >>> 1, q = h >>> 1, u = h + q; // quartiles in compute() local 136 b+u, n-u, wb+h, g, c)); in compute() 137 new Sorter<T>(rc, a, w, b+u, n-u, wb+u, g, c).fork(); in compute() 250 int h = n >>> 1, q = h >>> 1, u = h + q; // quartiles in compute() local 254 b+u, n-u, wb+h, g)); in compute() 255 new Sorter(rc, a, w, b+u, n-u, wb+u, g).fork(); in compute() 361 int h = n >>> 1, q = h >>> 1, u = h + q; // quartiles in compute() local 365 b+u, n-u, wb+h, g)); in compute() 366 new Sorter(rc, a, w, b+u, n-u, wb+u, g).fork(); in compute() 472 int h = n >>> 1, q = h >>> 1, u = h + q; // quartiles in compute() local [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | Handler.java | 54 protected java.net.URLConnection openConnection(URL u) in openConnection() argument 56 return openConnection(u, null); in openConnection() 59 protected java.net.URLConnection openConnection(URL u, Proxy p) in openConnection() argument 61 return new FtpURLConnection(u, p); in openConnection()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReferencePipeline.java | 174 public void accept(P_OUT u) { 175 if (predicate.test(u)) 176 downstream.accept(u); 193 public void accept(P_OUT u) { 194 downstream.accept(mapper.apply(u)); 210 public void accept(P_OUT u) { 211 downstream.accept(mapper.applyAsInt(u)); 227 public void accept(P_OUT u) { 228 downstream.accept(mapper.applyAsLong(u)); 244 public void accept(P_OUT u) { [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Service.java | 149 private static void fail(Class service, URL u, int line, String msg) in fail() argument 152 fail(service, u + ":" + line + ": " + msg); in fail() 160 private static int parseLine(Class service, URL u, BufferedReader r, int lc, in parseLine() argument 174 fail(service, u, lc, "Illegal configuration-file syntax"); in parseLine() 177 fail(service, u, lc, "Illegal provider-class name: " + ln); in parseLine() 181 fail(service, u, lc, "Illegal provider-class name: " + ln); in parseLine() 214 private static Iterator parse(Class service, URL u, Set returned) in parse() argument 221 in = u.openStream(); in parse() 224 while ((lc = parseLine(service, u, r, lc, names, returned)) >= 0); in parse()
|