Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java147 public void forEachRemaining(IntConsumer block) { in chars() argument
149 block.accept(charAt(cur)); in chars()
182 public void forEachRemaining(IntConsumer block) { in codePoints() argument
189 block.accept(c1); in codePoints()
194 block.accept(Character.toCodePoint(c1, c2)); in codePoints()
196 block.accept(c1); in codePoints()
DProcessEnvironment.java277 byte[] block = new byte[count]; in toEnvironmentBlock()
283 System.arraycopy(key, 0, block, i, key.length); in toEnvironmentBlock()
285 block[i++] = (byte) '='; in toEnvironmentBlock()
286 System.arraycopy(value, 0, block, i, value.length); in toEnvironmentBlock()
292 return block; in toEnvironmentBlock()
DCharacter.java3209 UnicodeBlock block = map.get(blockName.toUpperCase(Locale.US)); in forName() local
3210 if (block == null) { in forName()
3213 return block; in forName()
7648 UnicodeBlock block = UnicodeBlock.of(codePoint); in getName()
7649 if (block != null) in getName()
7650 return block.toString().replace('_', ' ') + " " in getName()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java284 public final SelectableChannel configureBlocking(boolean block) in configureBlocking() argument
290 if (blocking == block) in configureBlocking()
292 if (block && haveValidKeys()) in configureBlocking()
294 implConfigureBlocking(block); in configureBlocking()
295 blocking = block; in configureBlocking()
315 protected abstract void implConfigureBlocking(boolean block) in implConfigureBlocking() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DChannelInputStream.java49 boolean block) in read() argument
58 if (bm != block) in read()
59 sc.configureBlocking(block); in read()
61 if (bm != block) in read()
DMembershipKeyImpl.java171 public MembershipKey block(InetAddress toBlock) in block() method in MembershipKeyImpl
183 ((DatagramChannelImpl)ch).block(this, toBlock); in block()
DSinkChannelImpl.java111 protected void implConfigureBlocking(boolean block) throws IOException { in implConfigureBlocking() argument
112 IOUtil.configureBlocking(fd, block); in implConfigureBlocking()
DSourceChannelImpl.java112 protected void implConfigureBlocking(boolean block) throws IOException { in implConfigureBlocking() argument
113 IOUtil.configureBlocking(fd, block); in implConfigureBlocking()
DServerSocketChannelImpl.java282 protected void implConfigureBlocking(boolean block) throws IOException { in implConfigureBlocking() argument
283 IOUtil.configureBlocking(fd, block); in implConfigureBlocking()
DSocketChannelImpl.java592 protected void implConfigureBlocking(boolean block) throws IOException { in implConfigureBlocking() argument
593 IOUtil.configureBlocking(fd, block); in implConfigureBlocking()
1090 boolean block, boolean ready) in checkConnect() argument
DNet.java559 private static native int blockOrUnblock4(boolean block, FileDescriptor fd, int group,
602 …static native int blockOrUnblock6(boolean block, FileDescriptor fd, byte[] group, int index, byte[…
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java261 public X509Certificate getCertificate(PKCS7 block) in getCertificate() argument
264 return block.getCertificate(certificateSerialNumber, issuerName); in getCertificate()
274 public ArrayList<X509Certificate> getCertificateChain(PKCS7 block) in getCertificateChain() argument
278 userCert = block.getCertificate(certificateSerialNumber, issuerName); in getCertificateChain()
285 X509Certificate[] pkcsCerts = block.getCertificates(); in getCertificateChain()
326 SignerInfo verify(PKCS7 block, byte[] data) in verify() argument
329 return verify(block, new ByteArrayInputStream(data)); in verify()
338 SignerInfo verify(PKCS7 block, InputStream inputStream) in verify() argument
344 ContentInfo content = block.getContentInfo(); in verify()
435 X509Certificate cert = getCertificate(block); in verify()
[all …]
/libcore/ojluni/src/main/native/
DSocketChannelImpl.c53 jobject fdo, jboolean block, in Java_sun_nio_ch_SocketChannelImpl_checkConnect() argument
67 result = poll(&poller, 1, block ? -1 : 0); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
72 if (!block && (result == 0)) in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
DNet.c598 Java_sun_nio_ch_Net_blockOrUnblock4(JNIEnv *env, jobject this, jboolean block, jobject fdo, in Java_sun_nio_ch_Net_blockOrUnblock4() argument
607 int opt = (block) ? IP_BLOCK_SOURCE : IP_UNBLOCK_SOURCE; in Java_sun_nio_ch_Net_blockOrUnblock4()
622 if (block && (errno == ENOPROTOOPT)) in Java_sun_nio_ch_Net_blockOrUnblock4()
672 Java_sun_nio_ch_Net_blockOrUnblock6(JNIEnv *env, jobject this, jboolean block, jobject fdo, in Java_sun_nio_ch_Net_blockOrUnblock6() argument
682 int opt = (block) ? MCAST_BLOCK_SOURCE : MCAST_UNBLOCK_SOURCE; in Java_sun_nio_ch_Net_blockOrUnblock6()
689 if (block && (errno == ENOPROTOOPT || errno == EOPNOTSUPP)) in Java_sun_nio_ch_Net_blockOrUnblock6()
DFileDispatcherImpl.c194 jboolean block, jlong pos, jlong size, in FileDispatcherImpl_lock0() argument
214 if (block == JNI_TRUE) { in FileDispatcherImpl_lock0()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java163 key.block(sourceAddress); in test_blockWithJoinWithSource()
170 key.block(sourceAddress); in test_blockWithJoinWithoutSource()
190 key.block(Inet4Address.getByName("224.0.0.10")); in test_block_Exception()
196 key.block(Inet6Address.LOOPBACK); in test_block_Exception()
202 key.block(sourceAddress); in test_block_Exception()
218 key.block(sourceAddress); in test_unblockWithJoinWithoutSource()
DDatagramChannelMulticastTest.java289 key.block(sourceAddress); in test_joinAnySource_blockLimit()
555 membershipKey.block(null); in test_block_null()
570 membershipKey.block(UNICAST_IPv6_1); in test_block_mixedAddressTypes_IPv4()
585 membershipKey.block(UNICAST_IPv4_1); in test_block_mixedAddressTypes_IPv6()
600 membershipKey.block(UNICAST_IPv4_2); in test_block_cannotBlockWithSourceSpecificMembership()
614 membershipKey.block(UNICAST_IPv4_1); in test_block_multipleBlocksIgnored()
616 MembershipKey membershipKey2 = membershipKey.block(UNICAST_IPv4_1); in test_block_multipleBlocksIgnored()
629 membershipKey.block(WILDCARD_IPv4); in test_block_wildcardAddress()
652 membershipKey.block(UNICAST_IPv4_1); in test_unblock_multipleUnblocksFail()
670 membershipKey.block(UNICAST_IPv4_1); in test_unblock_null()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DSignerInfo.java78 public java.security.cert.X509Certificate getCertificate(sun.security.pkcs.PKCS7 block) in getCertificate() argument
85 sun.security.pkcs.PKCS7 block) throws java.io.IOException { in getCertificateChain() argument
89 sun.security.pkcs.SignerInfo verify(sun.security.pkcs.PKCS7 block, byte[] data) in verify() argument
95 sun.security.pkcs.PKCS7 block, java.io.InputStream inputStream) in verify() argument
101 sun.security.pkcs.SignerInfo verify(sun.security.pkcs.PKCS7 block) in verify() argument
/libcore/ojluni/src/main/java/sun/security/util/
DSignatureFileVerifier.java78 private PKCS7 block; field in SignatureFileVerifier
118 block = new PKCS7(rawBytes); in SignatureFileVerifier()
119 sfBytes = block.getContentInfo().getData(); in SignatureFileVerifier()
292 SignerInfo[] infos = block.verify(sfBytes); in processImpl()
300 CodeSigner[] newSigners = getSigners(infos, block); in processImpl()
467 ManifestDigester.Entry mde = md.get(name,block.isOldStyle()); in verifySection()
544 private CodeSigner[] getSigners(SignerInfo infos[], PKCS7 block) in getSigners() argument
553 ArrayList<X509Certificate> chain = info.getCertificateChain(block); in getSigners()
DDisabledAlgorithmConstraints.java155 for (String block : disabledAlgorithms) { in checkProperty()
156 if (block.toLowerCase(Locale.ENGLISH).indexOf(param) >= 0) { in checkProperty()
/libcore/ojluni/src/main/java/java/nio/channels/
DMembershipKey.java125 public abstract MembershipKey block(InetAddress source) throws IOException; in block() method in MembershipKey
DSelectableChannel.java315 public abstract SelectableChannel configureBlocking(boolean block) in configureBlocking() argument
/libcore/ojluni/annotations/mmodule/sun/security/pkcs/
DSignerInfo.annotated.java65 public java.security.cert.X509Certificate getCertificate(sun.security.pkcs.PKCS7 block) throws java… in getCertificate() argument
70 …ecurity.cert.X509Certificate> getCertificateChain(sun.security.pkcs.PKCS7 block) throws java.io.IO… in getCertificateChain() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectableChannelTest.java52 public SelectableChannel configureBlocking(boolean block) in configureBlocking() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DSignatureFileVerifier.java108 sun.security.pkcs.SignerInfo[] infos, sun.security.pkcs.PKCS7 block) in getSigners() argument
158 private sun.security.pkcs.PKCS7 block; field in SignatureFileVerifier

12