Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamCloseTest.java48 final boolean[] holder = new boolean[1]; in testOneCloseHandler()
49 Runnable closer = () -> { holder[0] = true; }; in testOneCloseHandler()
55 assertTrue(holder[0]); in testOneCloseHandler()
57 Arrays.fill(holder, false); in testOneCloseHandler()
61 assertTrue(holder[0]); in testOneCloseHandler()
63 Arrays.fill(holder, false); in testOneCloseHandler()
67 assertTrue(holder[0]); in testOneCloseHandler()
69 Arrays.fill(holder, false); in testOneCloseHandler()
73 assertTrue(holder[0]); in testOneCloseHandler()
77 final boolean[] holder = new boolean[2]; in testTwoCloseHandlers()
[all …]
/libcore/ojluni/src/main/java/java/net/
DInet4Address.java121 holder().hostName = null; in Inet4Address()
122 holder().address = 0; in Inet4Address()
123 holder().family = AF_INET; in Inet4Address()
127 holder().hostName = hostName; in Inet4Address()
128 holder().family = AF_INET; in Inet4Address()
135 holder().address = address; in Inet4Address()
138 holder().originalHostName = hostName; in Inet4Address()
141 holder().hostName = hostName; in Inet4Address()
142 holder().family = AF_INET; in Inet4Address()
143 holder().address = address; in Inet4Address()
[all …]
DInetSocketAddress.java91 if (addr.holder().getHostName() != null) in getHostString()
92 return addr.holder().getHostName(); in getHostString()
138 private final transient InetSocketAddressHolder holder; field in InetSocketAddress
160 holder = new InetSocketAddressHolder(null, null, 0); in InetSocketAddress()
198 holder = new InetSocketAddressHolder( in InetSocketAddress()
239 holder = new InetSocketAddressHolder(host, addr, checkPort(port)); in InetSocketAddress()
244 holder = new InetSocketAddressHolder(hostname, null, port); in InetSocketAddress()
287 pfields.put("hostname", holder.hostname); in writeObject()
288 pfields.put("addr", holder.addr); in writeObject()
289 pfields.put("port", holder.port); in writeObject()
[all …]
DInetAddress.java266 transient InetAddressHolder holder; field in InetAddress
268 InetAddressHolder holder() { in holder() method in InetAddress
269 return holder; in holder()
323 holder = new InetAddressHolder(); in InetAddress()
336 return new Inet4Address(holder().getHostName(), holder().getAddress()); in readResolve()
564 if (holder().getHostName() == null) { in getHostName()
565 holder().hostName = InetAddress.getHostFromNameService(this); in getHostName()
567 return holder().getHostName(); in getHostName()
744 String hostName = holder().getHostName(); in toString()
1574 holder = new InetAddressHolder(host, address, family); in readObject()
[all …]
DPlainDatagramSocketImpl.java131 i.holder().address = p.getAddress().holder().address; in peek()
243 inetAddressUnspec.holder().family = AF_UNSPEC; in disconnect0()
DInet6Address.java401 holder.init(null, AF_INET6); in Inet6Address()
409 holder.init(hostName, AF_INET6); in Inet6Address()
528 holder.init(hostName, family); in initif()
669 if (holder().getFamily() != AF_INET6) { in readObject()
DInet6AddressImpl.java138 address.holder().hostName = host; in lookupHostByName()
139 address.holder().originalHostName = host; in lookupHostByName()
313 anyAddress.holder().hostName = "::"; in anyLocalAddress()
DAbstractPlainDatagramSocketImpl.java146 disconnect0(connectedAddress.holder().getFamily()); in disconnect()
/libcore/ojluni/src/main/native/
Dnet_util.c81 jobject holder; in getInet6Address_scopeifname() local
84 holder = (*env)->GetObjectField(env, iaObj, ia6_holder6ID); in getInet6Address_scopeifname()
85 CHECK_NULL_RETURN(holder, NULL); in getInet6Address_scopeifname()
86 return (*env)->GetObjectField(env, holder, ia6_scopeifnameID); in getInet6Address_scopeifname()
90 jobject holder; in setInet6Address_scopeifname() local
93 holder = (*env)->GetObjectField(env, iaObj, ia6_holder6ID); in setInet6Address_scopeifname()
94 CHECK_NULL_RETURN(holder, JNI_FALSE); in setInet6Address_scopeifname()
95 (*env)->SetObjectField(env, holder, ia6_scopeifnameID, scopeifname); in setInet6Address_scopeifname()
100 jobject holder; in getInet6Address_scopeid_set() local
103 holder = (*env)->GetObjectField(env, iaObj, ia6_holder6ID); in getInet6Address_scopeid_set()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldInheritableThreadLocalTest.java37 final Object[] holder = new Object[1]; in test_Ljava_lang_InheritableThreadLocal() local
40 holder[0] = threadLocal.get(); in test_Ljava_lang_InheritableThreadLocal()
46 assertSame(inheritedValue, holder[0]); in test_Ljava_lang_InheritableThreadLocal()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java1309 HoldingConsumer<T> holder = new HoldingConsumer<>(); in trySplit() local
1311 if (s > 1 && tryAdvance(holder)) { in trySplit()
1319 do { a[j] = holder.value; } while (++j < n && tryAdvance(holder)); in trySplit()
1419 HoldingIntConsumer holder = new HoldingIntConsumer(); in trySplit() local
1421 if (s > 1 && tryAdvance(holder)) { in trySplit()
1429 do { a[j] = holder.value; } while (++j < n && tryAdvance(holder)); in trySplit()
1529 HoldingLongConsumer holder = new HoldingLongConsumer(); in trySplit() local
1531 if (s > 1 && tryAdvance(holder)) { in trySplit()
1539 do { a[j] = holder.value; } while (++j < n && tryAdvance(holder)); in trySplit()
1639 HoldingDoubleConsumer holder = new HoldingDoubleConsumer(); in trySplit() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractListTest.java412 List<Integer> holder = new ArrayList<Integer>(16); in test_subListII2() local
414 holder.add(i); in test_subListII2()
418 List<Integer> sub = holder.subList(0, holder.size()); in test_subListII2()
419 holder.add(11); in test_subListII2()
511 holder.clear(); in test_subListII2()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInetSocketAddress.java124 private final transient java.net.InetSocketAddress.InetSocketAddressHolder holder; field in InetSocketAddress
127 holder = null;
DInetAddress.java40 java.net.InetAddress.InetAddressHolder holder() { in holder() method in InetAddress
233 transient java.net.InetAddress.InetAddressHolder holder; field in InetAddress
/libcore/luni/src/main/native/
DNetworkUtilities.cpp107 ScopedLocalRef<jobject> holder(env, env->GetObjectField(inetAddress, holderFid)); in inetAddressToSockaddr() local
113 ss.ss_family = env->GetIntField(holder.get(), familyFid); in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp597 jobject holder = env->GetObjectField(javaInetSocketAddress, holderFid); in fillInetSocketAddress() local
602 env->SetObjectField(holder, addressFid, sender); in fillInetSocketAddress()
603 env->SetIntField(holder, portFid, port); in fillInetSocketAddress()
628 jobject holder = env->GetObjectField(javaInetSocketAddress, holderFid); in javaInetSocketAddressToInetAddressAndPort() local
634 javaInetAddress = env->GetObjectField(holder, addressFid); in javaInetSocketAddressToInetAddressAndPort()
635 port = env->GetIntField(holder, portFid); in javaInetSocketAddressToInetAddressAndPort()
/libcore/luni/
Dunicode-license.txt45 Except as contained in this notice, the name of a copyright holder shall not
48 copyright holder.
/libcore/
DNOTICE59 Except as contained in this notice, the name of a copyright holder
62 of the copyright holder.
DLICENSE61 placed by the copyright holder saying it may be distributed under the terms of
216 copyright holder who places the Program under this License may add an explicit
/libcore/ojluni/
DNOTICE347 placed by the copyright holder saying it may be distributed under the terms of
502 copyright holder who places the Program under this License may add an explicit
1549 Except as contained in this notice, the name of a copyright holder shall not
1552 authorization of the copyright holder.
1588 Except as contained in this notice, the name of a copyright holder
1591 written authorization of the copyright holder.