/libcore/ojluni/src/main/java/java/net/ |
D | SocketInputStream.java | 52 private AbstractPlainSocketImpl impl = null; field in SocketInputStream 62 SocketInputStream(AbstractPlainSocketImpl impl) throws IOException { in SocketInputStream() argument 63 super(impl.getFileDescriptor()); in SocketInputStream() 64 this.impl = impl; in SocketInputStream() 65 socket = impl.getSocket(); in SocketInputStream() 143 return read(b, off, length, impl.getTimeout()); in read() 155 if (impl.isConnectionReset()) { in read() 169 FileDescriptor fd = impl.acquireFD(); in read() 178 impl.setConnectionReset(); in read() 180 impl.releaseFD(); in read() [all …]
|
D | ServerSocket.java | 70 private SocketImpl impl; field in ServerSocket 85 ServerSocket(SocketImpl impl) { in ServerSocket() argument 87 this.impl = impl; in ServerSocket() 88 impl.setServerSocket(this); in ServerSocket() 282 return impl; in getImpl() 286 if (impl == null) in checkOldImpl() 294 impl.getClass().getDeclaredMethod("connect", in checkOldImpl() 307 impl = factory.createSocketImpl(); in setImpl() 312 impl = new SocksSocketImpl(); in setImpl() 314 if (impl != null) in setImpl() [all …]
|
D | SocketOutputStream.java | 50 private AbstractPlainSocketImpl impl = null; field in SocketOutputStream 60 SocketOutputStream(AbstractPlainSocketImpl impl) throws IOException { in SocketOutputStream() argument 61 super(impl.getFileDescriptor()); in SocketOutputStream() 62 this.impl = impl; in SocketOutputStream() 63 socket = impl.getSocket(); in SocketOutputStream() 112 FileDescriptor fd = impl.acquireFD(); in socketWrite() 118 if (impl.isClosedOrPending()) { in socketWrite() 124 impl.releaseFD(); in socketWrite() 172 impl.close(); in close()
|
D | SocketSecrets.java | 37 SocketImpl impl; in setOption() local 40 impl = ((Socket)obj).getImpl(); in setOption() 42 impl = ((ServerSocket)obj).getImpl(); in setOption() 46 impl.setOption(name, value); in setOption() 50 SocketImpl impl; in getOption() local 53 impl = ((Socket)obj).getImpl(); in getOption() 55 impl = ((ServerSocket)obj).getImpl(); in getOption() 59 return impl.getOption(name); in getOption()
|
D | Socket.java | 76 SocketImpl impl; field in Socket 150 impl = new SocksSocketImpl(p); in Socket() 151 impl.setSocket(this); in Socket() 155 impl = new PlainSocketImpl(); in Socket() 156 impl.setSocket(this); in Socket() 179 protected Socket(SocketImpl impl) throws SocketException { in Socket() argument 180 checkPermission(impl); in Socket() 181 this.impl = impl; in Socket() 182 if (impl != null) { in Socket() 184 this.impl.setSocket(this); in Socket() [all …]
|
D | DatagramSocket.java | 88 DatagramSocketImpl impl; field in DatagramSocket 166 if (oldImpl || (impl instanceof AbstractPlainDatagramSocketImpl && in connectInternal() 167 ((AbstractPlainDatagramSocketImpl)impl).nativeConnectDisabled())) { in connectInternal() 229 protected DatagramSocket(DatagramSocketImpl impl) { in DatagramSocket() argument 230 if (impl == null) in DatagramSocket() 232 this.impl = impl; in DatagramSocket() 325 if (impl == null) in checkOldImpl() 335 impl.getClass().getDeclaredMethod("peekData", cl); in checkOldImpl() 347 if (impl == null) { in createImpl() 349 impl = factory.createDatagramSocketImpl(); in createImpl() [all …]
|
D | InetAddress.java | 273 static final InetAddressImpl impl = new Inet6AddressImpl(); field in InetAddress 282 return impl.lookupAllHostAddr(host, netId); 286 return impl.getHostByAddr(addr); 525 return impl.isReachable(this, timeout, netif, ttl); in isReachable() 533 return ((Inet6AddressImpl) impl).icmpEcho(this, timeout, null, 0); in isReachableByICMP() 1106 return impl.lookupAllHostAddr(host, NETID_UNSET)[0]; in getByName() 1152 return impl.lookupAllHostAddr(host, NETID_UNSET).clone(); in getAllByName() 1168 return impl.loopbackAddresses()[0]; in getLoopbackAddress() 1488 return impl.lookupAllHostAddr(local, NETID_UNSET)[0]; in getLocalHost() 1505 return impl.anyLocalAddress(); in anyLocalAddress() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CollectionTest.java | 19 final CollectionImplementation impl; field in CollectionTest 22 CollectionTest(CollectionImplementation impl, String methodName) { in CollectionTest() argument 24 this.impl = impl; in CollectionTest() 27 public static Test testSuite(CollectionImplementation impl) { in testSuite() argument 31 impl), in testSuite() 34 impl)); in testSuite() 39 assertTrue(impl.emptyCollection().isEmpty()); in testEmptyMeansEmpty() 40 assertEquals(0, impl.emptyCollection().size()); in testEmptyMeansEmpty()
|
D | Collection8Test.java | 31 final CollectionImplementation impl; field in Collection8Test 34 Collection8Test(CollectionImplementation impl, String methodName) { in Collection8Test() argument 36 this.impl = impl; in Collection8Test() 39 public static Test testSuite(CollectionImplementation impl) { in testSuite() argument 42 impl); in testSuite() 49 final Collection c = impl.emptyCollection(); in testForEach() 51 final Object x = impl.makeElement(1); in testForEach() 52 final Object y = impl.makeElement(2); in testForEach() 76 if (!impl.isConcurrent()) return; in testForEachConcurrentStressTest() 77 final Collection c = impl.emptyCollection(); in testForEachConcurrentStressTest() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketImplTest.java | 45 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_Constructor() local 46 assertNull(impl.getFileDescriptor()); in test_Constructor() 51 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_connect() local 54 impl.test_connect(localhost, 0); in test_connect() 55 impl.test_connect(localhost, -1); in test_connect() 56 impl.test_connect(null, -1); in test_connect() 58 impl.test_disconnect(); in test_connect() 66 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in testSetOption() local 67 setAndAssertOption(impl, StandardSocketOptions.SO_SNDBUF, in testSetOption() 69 setAndAssertOption(impl, StandardSocketOptions.SO_RCVBUF, in testSetOption() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | Collection8Test.java | 85 final CollectionImplementation impl; field in Collection8Test 88 Collection8Test(CollectionImplementation impl, String methodName) { in Collection8Test() argument 89 this.impl = impl; in Collection8Test() 95 AndroidCollection8Test(CollectionImplementation impl, String methodName) { in AndroidCollection8Test() argument 96 super(impl, methodName); in AndroidCollection8Test() 101 public static Test testSuite(CollectionImplementation impl) { in testSuite() argument 119 Collection c = impl.emptyCollection(); 203 Collection c = impl.emptyCollection(); 217 if (!impl.permitsNulls()) { 222 if (!impl.permitsNulls() && c instanceof Queue) { [all …]
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | Cleaner.java | 135 final CleanerImpl impl; field in Cleaner 141 return cleaner.impl; in CleanerImpl.setCleanerImplAccess() 150 impl = new CleanerImpl(); in Cleaner() 154 impl = new CleanerImpl(queue); in Cleaner() 180 cleaner.impl.start(cleaner, null); in create() 208 cleaner.impl.start(cleaner, threadFactory); in create() 220 cleaner.impl.start(cleaner); in createSystemCleaner()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Pack200.java | 794 Class<?> impl = (PACK_PROVIDER.equals(prop))? packerImpl: unpackerImpl; in newInstance() local 795 if (impl == null) { in newInstance() 800 impl = Class.forName(implName); in newInstance() 809 return impl.newInstance(); in newInstance()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 267 public MySocket(SocketImpl impl) throws SocketException { in MySocket() argument 268 super(impl); in MySocket() 276 MySocketImpl impl = new MySocketImpl(); in test_SocketOptions_setOption() local 277 Socket s = new MySocket(impl); in test_SocketOptions_setOption() 282 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption() 286 assertEquals(true, impl.createCalled); in test_SocketOptions_setOption() 288 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption() 290 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption() 294 assertEquals(Integer.valueOf(0), (Integer) impl.value); in test_SocketOptions_setOption() 296 assertEquals(Integer.valueOf(1), (Integer) impl.value); in test_SocketOptions_setOption() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | DefaultFtpClientProvider.java | 25 package sun.net.ftp.impl; 35 return sun.net.ftp.impl.FtpClient.create(); in createFtpClient()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | TrustManagerFactory.java | 157 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance() 201 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance() 238 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
|
D | KeyManagerFactory.java | 155 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance() 199 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance() 236 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
|
D | SSLContext.java | 201 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance() 244 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance() 281 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | GetInstance.java | 52 public final Object impl; field in GetInstance.Instance 53 private Instance(Provider provider, Object impl) { in Instance() argument 55 this.impl = impl; in Instance() 60 return new Object[] {impl, provider}; in toArray()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertPathBuilder.java | 175 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance() 221 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance() 261 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
|
D | CertPathValidator.java | 176 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance() 223 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance() 263 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
|
D | CertStore.java | 242 return new CertStore((CertStoreSpi)instance.impl, in getInstance() 316 return new CertStore((CertStoreSpi)instance.impl, in getInstance() 373 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SecureRandom.java | 449 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance() 496 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance() 537 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance() 596 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance() 651 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance() 701 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
|
D | KeyPairGenerator.java | 194 if (instance.impl instanceof KeyPairGenerator) { in getInstance() 195 kpg = (KeyPairGenerator)instance.impl; in getInstance() 197 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance() 267 if (instance.impl instanceof KeyPairGenerator) { in getInstance() 618 spi = (KeyPairGeneratorSpi)instance.impl; in Delegate()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | LSDocumentBuilderFactory.java | 34 private final DOMImplementation impl; field in LSDocumentBuilderFactory 279 impl = (DOMImplementation) getDOMImplementationMethod.invoke(domRegistry, in LSDocumentBuilderFactory() 281 Method createLSParserMethod = impl.getClass().getMethod("createLSParser", in LSDocumentBuilderFactory() 283 parser = createLSParserMethod.invoke(impl, in LSDocumentBuilderFactory() 349 return impl; in getDOMImplementation()
|