Home
last modified time | relevance | path

Searched refs:impl (Results 1 – 25 of 41) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DSocketInputStream.java49 private AbstractPlainSocketImpl impl = null; field in SocketInputStream
59 SocketInputStream(AbstractPlainSocketImpl impl) throws IOException { in SocketInputStream() argument
60 super(impl.getFileDescriptor()); in SocketInputStream()
61 this.impl = impl; in SocketInputStream()
62 socket = impl.getSocket(); in SocketInputStream()
120 return read(b, off, length, impl.getTimeout()); in read()
132 if (impl.isConnectionReset()) { in read()
148 FileDescriptor fd = impl.acquireFD(); in read()
158 IoTrace.socketReadEnd(traceContext, impl.address, impl.port, in read()
168 impl.setConnectionResetPending(); in read()
[all …]
DSocketOutputStream.java47 private AbstractPlainSocketImpl impl = null; field in SocketOutputStream
57 SocketOutputStream(AbstractPlainSocketImpl impl) throws IOException { in SocketOutputStream() argument
58 super(impl.getFileDescriptor()); in SocketOutputStream()
59 this.impl = impl; in SocketOutputStream()
60 socket = impl.getSocket(); in SocketOutputStream()
109 FileDescriptor fd = impl.acquireFD(); in socketWrite()
116 impl.setConnectionResetPending(); in socketWrite()
119 if (impl.isClosedOrPending()) { in socketWrite()
125 IoTrace.socketWriteEnd(traceContext, impl.address, impl.port, bytesWritten); in socketWrite()
173 impl.close(); in close()
DServerSocket.java64 private SocketImpl impl; field in ServerSocket
75 ServerSocket(SocketImpl impl) { in ServerSocket() argument
76 this.impl = impl; in ServerSocket()
77 impl.setServerSocket(this); in ServerSocket()
259 return impl; in getImpl()
263 if (impl == null) in checkOldImpl()
274 impl.getClass().getDeclaredMethod("connect", cl); in checkOldImpl()
285 impl = factory.createSocketImpl(); in setImpl()
290 impl = new SocksSocketImpl(); in setImpl()
292 if (impl != null) in setImpl()
[all …]
DSocket.java72 SocketImpl impl; field in Socket
139 impl = new SocksSocketImpl(p); in Socket()
140 impl.setSocket(this); in Socket()
144 impl = new PlainSocketImpl(); in Socket()
145 impl.setSocket(this); in Socket()
164 protected Socket(SocketImpl impl) throws SocketException { in Socket() argument
165 this.impl = impl; in Socket()
166 if (impl != null) { in Socket()
168 this.impl.setSocket(this); in Socket()
431 if (impl != null) { in Socket()
[all …]
DDatagramSocket.java85 DatagramSocketImpl impl; field in DatagramSocket
151 if (oldImpl || (impl instanceof AbstractPlainDatagramSocketImpl && in connectInternal()
152 ((AbstractPlainDatagramSocketImpl)impl).nativeConnectDisabled())) { in connectInternal()
211 protected DatagramSocket(DatagramSocketImpl impl) { in DatagramSocket() argument
212 if (impl == null) in DatagramSocket()
214 this.impl = impl; in DatagramSocket()
302 if (impl == null) in checkOldImpl()
312 impl.getClass().getDeclaredMethod("peekData", cl); in checkOldImpl()
324 if (impl == null) { in createImpl()
326 impl = factory.createDatagramSocketImpl(); in createImpl()
[all …]
DInetAddress.java229 static final InetAddressImpl impl = new Inet6AddressImpl(); field in InetAddress
235 return impl.lookupAllHostAddr(host, netId);
239 return impl.getHostByAddr(addr);
450 return impl.isReachable(this, timeout, netif, ttl); in isReachable()
708 return impl.lookupAllHostAddr(host, NETID_UNSET)[0]; in getByName()
752 return impl.lookupAllHostAddr(host, NETID_UNSET).clone(); in getAllByName()
767 return impl.loopbackAddresses()[0]; in getLoopbackAddress()
816 return impl.lookupAllHostAddr(local, NETID_UNSET)[0]; in getLocalHost()
824 return impl.anyLocalAddress(); in anyLocalAddress()
944 impl.clearAddressCache(); in clearDnsCache()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCollectionTest.java19 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()
DCollection8Test.java31 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/
DDatagramSocketImplTest.java35 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_Constructor() local
36 assertNull(impl.getFileDescriptor()); in test_Constructor()
41 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_connect() local
44 impl.test_connect(localhost, 0); in test_connect()
45 impl.test_connect(localhost, -1); in test_connect()
46 impl.test_connect(null, -1); in test_connect()
48 impl.test_disconnect(); in test_connect()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DDefaultFtpClientProvider.java25 package sun.net.ftp.impl;
35 return sun.net.ftp.impl.FtpClient.create(); in createFtpClient()
/libcore/ojluni/src/main/java/java/util/jar/
DPack200.java735 Class impl = (PACK_PROVIDER.equals(prop))? packerImpl: unpackerImpl; in newInstance() local
736 if (impl == null) { in newInstance()
741 impl = Class.forName(implName); in newInstance()
750 return impl.newInstance(); in newInstance()
/libcore/ojluni/src/main/java/javax/net/ssl/
DTrustManagerFactory.java141 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
185 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
222 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
DKeyManagerFactory.java142 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
186 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
223 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
DSSLContext.java191 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
234 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
271 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathBuilder.java173 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
216 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
253 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
DCertPathValidator.java174 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
218 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
255 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
DCertificateFactory.java208 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
255 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
296 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
DCertStore.java239 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
309 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
363 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
/libcore/ojluni/src/main/java/sun/security/jca/
DGetInstance.java52 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/
DKeyPairGenerator.java182 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
183 kpg = (KeyPairGenerator)instance.impl; in getInstance()
185 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance()
235 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
575 spi = (KeyPairGeneratorSpi)instance.impl; in Delegate()
DSecureRandom.java280 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
365 return new SecureRandom((SecureRandomSpi) instance.impl, in getInstance()
406 (SecureRandomSpi) instance.impl, instance.provider, algorithm); in getInstanceFromCryptoProvider()
449 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
/libcore/dom/src/test/java/org/w3c/domts/
DLSDocumentBuilderFactory.java34 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()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java216 public MySocket(SocketImpl impl) throws SocketException { in test_SocketOptions_setOption() argument
217 super(impl); in test_SocketOptions_setOption()
221 MySocketImpl impl = new MySocketImpl(); in test_SocketOptions_setOption() local
222 Socket s = new MySocket(impl); in test_SocketOptions_setOption()
227 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
231 assertEquals(true, impl.createCalled); in test_SocketOptions_setOption()
233 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
235 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
239 assertEquals(Integer.valueOf(0), (Integer) impl.value); in test_SocketOptions_setOption()
241 assertEquals(Integer.valueOf(1), (Integer) impl.value); in test_SocketOptions_setOption()
/libcore/ojluni/src/main/java/javax/crypto/
DExemptionMechanism.java138 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
186 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
226 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferences.java238 for (PreferencesFactory impl : ServiceLoader.load(PreferencesFactory.class)) { in findPreferencesFactory()
239 return impl; in findPreferencesFactory()

12