Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 84) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java39 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 …]
DJarURLConnectionTest.java57 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/
DURLStreamHandler.java69 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/
DHandler.java53 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/
DBiPredicate.java53 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()
DBiFunction.java53 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/
DTimeUnit8Test.java137 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/
DOldURLTest.java198 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 …]
DOldJarURLConnectionTest.java58 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 …]
DOldURLStreamHandlerTest.java188 @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/
DXECPublicKeySpec.java44 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/
DFloat.c44 } 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()
DDouble.c46 } 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()
DObjectInputStream.c59 } 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()
DObjectOutputStream.c58 } 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/
DBitSet.java719 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 …]
DArraysParallelSortHelpers.java134 int h = n >>> 1, q = h >>> 1, u = h + q; // quartiles in compute() local
138 b+u, n-u, wb+h, g, c)); in compute()
139 new Sorter<>(rc, a, w, b+u, n-u, wb+u, g, c).fork(); in compute()
/libcore/ojluni/src/main/java/java/util/stream/
DReferencePipeline.java189 public void accept(P_OUT u) {
190 if (predicate.test(u))
191 downstream.accept(u);
208 public void accept(P_OUT u) {
209 downstream.accept(mapper.apply(u));
226 public void accept(P_OUT u) {
227 downstream.accept(mapper.applyAsInt(u));
244 public void accept(P_OUT u) {
245 downstream.accept(mapper.applyAsLong(u));
262 public void accept(P_OUT u) {
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DHandler.java50 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/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DInfiniteStreamWithLimitOpTest.java143 private TestData.OfRef<Long> refLongRange(long l, long u) {
145 String.format("[%d, %d)", l, u),
146 () -> LongStream.range(l, u).boxed());
153 private TestData.OfInt intRange(int l, int u) {
155 String.format("[%d, %d)", l, u),
156 () -> IntStream.range(l, u));
163 private TestData.OfLong longRange(long l, long u) {
165 String.format("[%d, %d)", l, u),
166 () -> LongStream.range(l, u));
173 private TestData.OfDouble doubleRange(long l, long u) {
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java60 URL u; in getConnection() local
62 u = urlCache.get(jarFile); in getConnection()
64 if (u != null) in getConnection()
65 return u.openConnection(); in getConnection()
DHandler.java39 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/
DLog1pTests.java56 double u = 1.0 + x; in hp15cLogp() local
57 return (u == 1.0 ? x : StrictMath.log(u) * x / (u - 1)); in hp15cLogp()
/libcore/ojluni/src/test/java/lang/Float/
DParseFloatTest.java102 BigDecimal l, u; in check()
105 u = null; in check()
108 u = new BigDecimal(na).add(new BigDecimal(Math.ulp(n)).multiply(HALF)); in check()
111 int cmpU = u != null ? bd.compareTo(u) : -1; in check()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java77 MockURLConnection u = new MockURLConnection(new URL( in test_addRequestProperty() local
82 u.addRequestProperty(null, "someValue"); in test_addRequestProperty()
88 u.connect(); in test_addRequestProperty()
92 u.addRequestProperty(null, "someValue"); in test_addRequestProperty()
106 MockURLConnection u = new MockURLConnection(new URL( in test_setRequestProperty() local
109 u.setRequestProperty(null, "someValue"); in test_setRequestProperty()
116u.setRequestProperty("user-agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Geck… in test_setRequestProperty()
121 u.connect(); in test_setRequestProperty()
126 u.setRequestProperty(null, "someValue"); in test_setRequestProperty()
139 MockURLConnection u = new MockURLConnection(new URL( in test_setUseCachesZ() local
[all …]

1234