Home
last modified time | relevance | path

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

123

/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/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/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/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()
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/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/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/main/java/java/util/concurrent/
DTimeUnit.java85 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() argument
100 public long convert(long d, TimeUnit u) { return u.toMicros(d); } in convert() argument
115 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert() argument
130 public long convert(long d, TimeUnit u) { return u.toSeconds(d); } in convert() argument
146 public long convert(long d, TimeUnit u) { return u.toMinutes(d); } in convert() argument
162 public long convert(long d, TimeUnit u) { return u.toHours(d); } in convert() argument
178 public long convert(long d, TimeUnit u) { return u.toDays(d); } in convert() argument
DForkJoinWorkerThread.java251 sun.misc.Unsafe u = sun.misc.Unsafe.getUnsafe(); in createThreadGroup() local
252 long tg = u.objectFieldOffset in createThreadGroup()
254 long gp = u.objectFieldOffset in createThreadGroup()
257 u.getObject(Thread.currentThread(), tg); in createThreadGroup()
259 ThreadGroup parent = (ThreadGroup)u.getObject(group, gp); in createThreadGroup()
DThreadLocalRandom.java217 for (long u = r >>> 1; // ensure nonnegative in internalNextLong()
218 u + m - (r = u % n) < 0L; // rejection check in internalNextLong()
219 u = mix64(nextSeed()) >>> 1) // retry in internalNextLong()
246 for (int u = r >>> 1; in internalNextInt()
247 u + m - (r = u % n) < 0; in internalNextInt()
248 u = mix32(nextSeed()) >>> 1) in internalNextInt()
303 for (int u = r >>> 1; in nextInt()
304 u + m - (r = u % bound) < 0; in nextInt()
305 u = mix32(nextSeed()) >>> 1) in nextInt()
354 for (long u = r >>> 1; in nextLong()
[all …]
/libcore/ojluni/src/main/java/java/util/
DBitSet.java716 int u = wordIndex(fromIndex); in nextSetBit() local
717 if (u >= wordsInUse) in nextSetBit()
720 long word = words[u] & (WORD_MASK << fromIndex); in nextSetBit()
724 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextSetBit()
725 if (++u == wordsInUse) in nextSetBit()
727 word = words[u]; in nextSetBit()
748 int u = wordIndex(fromIndex); in nextClearBit() local
749 if (u >= wordsInUse) in nextClearBit()
752 long word = ~words[u] & (WORD_MASK << fromIndex); in nextClearBit()
756 return (u * BITS_PER_WORD) + Long.numberOfTrailingZeros(word); in nextClearBit()
[all …]
DSplittableRandom.java298 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()
428 for (int u = r >>> 1; in nextInt()
429 u + m - (r = u % bound) < 0; in nextInt()
430 u = mix32(nextSeed()) >>> 1) in nextInt()
480 for (long u = r >>> 1; in nextLong()
[all …]
DArraysParallelSortHelpers.java132 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 …]
DServiceLoader.java243 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/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DInfiniteStreamWithLimitOpTest.java140 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/
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/main/java/sun/nio/ch/
DNativeThreadSet.java88 int u = used; in signalAndWait() local
96 if (--u == 0) in signalAndWait()
/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 …]

123