/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 | 69 abstract protected URLConnection openConnection(URL u) throws IOException; in openConnection() argument 93 protected URLConnection openConnection(URL u, Proxy p) throws IOException { in openConnection() argument 122 protected void parseURL(URL u, String spec, int start, int limit) { in parseURL() argument 124 String protocol = u.getProtocol(); in parseURL() 125 String authority = u.getAuthority(); in parseURL() 126 String userInfo = u.getUserInfo(); in parseURL() 127 String host = u.getHost(); in parseURL() 128 int port = u.getPort(); in parseURL() 129 String path = u.getPath(); in parseURL() 130 String query = u.getQuery(); in parseURL() [all …]
|
/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/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/test/java/util/concurrent/tck/ |
D | TimeUnit8Test.java | 137 Arrays.stream(TimeUnit.values()).mapToLong(u -> u.toNanos(1)), in testConvertDuration_roundtripDurationOfNanos() 144 u -> assertEquals(u.convert(n, NANOSECONDS), in testConvertDuration_roundtripDurationOfNanos() 145 u.convert(Duration.ofNanos(n))))); in testConvertDuration_roundtripDurationOfNanos() 156 for (TimeUnit u : TimeUnit.values()) { in testConvertDuration_nearOverflow() 157 ChronoUnit cu = u.toChronoUnit(); in testConvertDuration_nearOverflow() 159 if (u.toNanos(1) > SECONDS.toNanos(1)) { in testConvertDuration_nearOverflow() 160 r = u.toNanos(1) / SECONDS.toNanos(1); in testConvertDuration_nearOverflow() 170 assertEquals(Long.MAX_VALUE, u.convert(max)); in testConvertDuration_nearOverflow() 171 assertEquals(Long.MAX_VALUE - 1, u.convert(max.minus(1, NANOS))); in testConvertDuration_nearOverflow() 172 assertEquals(Long.MAX_VALUE - 1, u.convert(max.minus(1, cu))); in testConvertDuration_nearOverflow() [all …]
|
/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/java/security/spec/ |
D | XECPublicKeySpec.java | 44 private final BigInteger u; field in XECPublicKeySpec 57 public XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u) { in XECPublicKeySpec() argument 59 Objects.requireNonNull(u, "u must not be null"); in XECPublicKeySpec() 62 this.u = u; in XECPublicKeySpec() 81 return u; in getU()
|
/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/ojluni/src/main/java/java/util/ |
D | BitSet.java | 719 int u = wordIndex(fromIndex); in nextSetBit() local 720 if (u >= wordsInUse) in nextSetBit() 723 long word = words[u] & (WORD_MASK << fromIndex); in nextSetBit() 727 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextSetBit() 728 if (++u == wordsInUse) in nextSetBit() 730 word = words[u]; in nextSetBit() 751 int u = wordIndex(fromIndex); in nextClearBit() local 752 if (u >= wordsInUse) in nextClearBit() 755 long word = ~words[u] & (WORD_MASK << fromIndex); in nextClearBit() 759 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextClearBit() [all …]
|
D | SplittableRandom.java | 298 for (long u = r >>> 1; // ensure nonnegative in internalNextLong() 299 u + m - (r = u % n) < 0L; // rejection check in internalNextLong() 300 u = mix64(nextSeed()) >>> 1) // retry in internalNextLong() 327 for (int u = r >>> 1; in internalNextInt() 328 u + m - (r = u % n) < 0; in internalNextInt() 329 u = mix32(nextSeed()) >>> 1) in internalNextInt() 448 for (int u = r >>> 1; in nextInt() 449 u + m - (r = u % bound) < 0; in nextInt() 450 u = mix32(nextSeed()) >>> 1) in nextInt() 500 for (long u = r >>> 1; in nextLong() [all …]
|
D | ServiceLoader.java | 243 private static void fail(Class<?> service, URL u, int line, String msg) in fail() argument 246 fail(service, u + ":" + line + ": " + msg); in fail() 252 private int parseLine(Class<?> service, URL u, BufferedReader r, int lc, in parseLine() argument 266 fail(service, u, lc, "Illegal configuration-file syntax"); in parseLine() 269 fail(service, u, lc, "Illegal provider-class name: " + ln); in parseLine() 273 fail(service, u, lc, "Illegal provider-class name: " + ln); in parseLine() 298 private Iterator<String> parse(Class<?> service, URL u) in parse() argument 305 in = u.openStream(); in parse() 308 while ((lc = parseLine(service, u, r, lc, names)) >= 0); in parse()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReferencePipeline.java | 185 public void accept(P_OUT u) { 186 if (predicate.test(u)) 187 downstream.accept(u); 204 public void accept(P_OUT u) { 205 downstream.accept(mapper.apply(u)); 222 public void accept(P_OUT u) { 223 downstream.accept(mapper.applyAsInt(u)); 240 public void accept(P_OUT u) { 241 downstream.accept(mapper.applyAsLong(u)); 258 public void accept(P_OUT u) { [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | Handler.java | 50 protected java.net.URLConnection openConnection(URL u) in openConnection() argument 52 return openConnection(u, null); in openConnection() 55 protected java.net.URLConnection openConnection(URL u, Proxy p) in openConnection() argument 57 return new FtpURLConnection(u, p); in openConnection()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 722 for (long u = r >>> 1; // ensure nonnegative in internalNextLong() 723 u + m - (r = u % n) < 0L; // rejection check in internalNextLong() 724 u = mix64(nextSeed()) >>> 1) // retry in internalNextLong() 751 for (int u = r >>> 1; in internalNextInt() 752 u + m - (r = u % n) < 0; in internalNextInt() 753 u = mix32(nextSeed()) >>> 1) in internalNextInt() 808 for (int u = r >>> 1; in nextInt() 809 u + m - (r = u % bound) < 0; in nextInt() 810 u = mix32(nextSeed()) >>> 1) in nextInt() 859 for (long u = r >>> 1; in nextLong() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | InfiniteStreamWithLimitOpTest.java | 140 private TestData.OfRef<Long> refLongRange(long l, long u) { 142 String.format("[%d, %d)", l, u), 143 () -> LongStream.range(l, u).boxed()); 150 private TestData.OfInt intRange(int l, int u) { 152 String.format("[%d, %d)", l, u), 153 () -> IntStream.range(l, u)); 160 private TestData.OfLong longRange(long l, long u) { 162 String.format("[%d, %d)", l, u), 163 () -> LongStream.range(l, u)); 170 private TestData.OfDouble doubleRange(long l, long u) { [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 60 URL u; in getConnection() local 62 u = urlCache.get(jarFile); in getConnection() 64 if (u != null) in getConnection() 65 return u.openConnection(); in getConnection()
|
D | Handler.java | 39 protected java.net.URLConnection openConnection(URL u) in openConnection() argument 41 return new JarURLConnection(u, this); in openConnection() 96 protected int hashCode(URL u) { in hashCode() argument 99 String protocol = u.getProtocol(); in hashCode() 103 String file = u.getFile(); in hashCode()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | Log1pTests.java | 54 double u = 1.0 + x; in hp15cLogp() local 55 return (u == 1.0 ? x : StrictMath.log(u) * x / (u - 1)); in hp15cLogp()
|