Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 17 of 17) 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.java134 holder().hostName = null; in Inet4Address()
135 holder().address = 0; in Inet4Address()
136 holder().family = AF_INET; in Inet4Address()
140 holder().hostName = hostName; in Inet4Address()
141 holder().family = AF_INET; in Inet4Address()
148 holder().address = address; in Inet4Address()
151 holder().originalHostName = hostName; in Inet4Address()
154 holder().hostName = hostName; in Inet4Address()
155 holder().family = AF_INET; in Inet4Address()
156 holder().address = address; in Inet4Address()
[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.java132 i.holder().address = p.getAddress().holder().address; in peek()
244 inetAddressUnspec.holder().family = AF_UNSPEC; in disconnect0()
DInet6Address.java409 holder.init(null, AF_INET6); in Inet6Address()
417 holder.init(hostName, AF_INET6); in Inet6Address()
536 holder.init(hostName, family); in initif()
677 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/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
239 transient java.net.InetAddress.InetAddressHolder holder; field in InetAddress
/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/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/luni/src/main/native/
DNetworkUtilities.cpp111 ScopedLocalRef<jobject> holder(env, env->GetObjectField(inetAddress, holderFid)); in inetAddressToSockaddr() local
117 ss.ss_family = env->GetIntField(holder.get(), familyFid); in inetAddressToSockaddr()