Home
last modified time | relevance | path

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

12

/libcore/support/src/test/java/tests/resources/ServiceLoader/
Dhyts_services.jar ... tests/ tests/resources/ tests/resources/impl/ tests/resources/impl/ImplementationOfAbstractService.class ...
Dhyts_services2.jar ... tests/ tests/resources/ tests/resources/impl/ tests/resources/impl/ImplementationOfServiceIn2File2.class ...
/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/ojluni/src/main/java/java/net/
DSocketInputStream.java53 private AbstractPlainSocketImpl impl = null; field in SocketInputStream
63 SocketInputStream(AbstractPlainSocketImpl impl) throws IOException { in SocketInputStream() argument
64 super(impl.getFileDescriptor()); in SocketInputStream()
65 this.impl = impl; in SocketInputStream()
66 socket = impl.getSocket(); in SocketInputStream()
144 return read(b, off, length, impl.getTimeout()); in read()
156 if (impl.isConnectionReset()) { in read()
172 FileDescriptor fd = impl.acquireFD(); in read()
183 impl.releaseFD(); in read()
191 impl.setConnectionResetPending(); in read()
[all …]
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()
260 return impl; in getImpl()
264 if (impl == null) in checkOldImpl()
272 impl.getClass().getDeclaredMethod("connect", in checkOldImpl()
285 impl = factory.createSocketImpl(); in setImpl()
290 impl = new SocksSocketImpl(); in setImpl()
292 if (impl != null) in setImpl()
[all …]
DSocketSecrets.java37 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()
DInetAddress.java273 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 …]
DDatagramSocket.java86 DatagramSocketImpl impl; field in DatagramSocket
164 if (oldImpl || (impl instanceof AbstractPlainDatagramSocketImpl && in connectInternal()
165 ((AbstractPlainDatagramSocketImpl)impl).nativeConnectDisabled())) { in connectInternal()
227 protected DatagramSocket(DatagramSocketImpl impl) { in DatagramSocket() argument
228 if (impl == null) in DatagramSocket()
230 this.impl = impl; in DatagramSocket()
323 if (impl == null) in checkOldImpl()
333 impl.getClass().getDeclaredMethod("peekData", cl); in checkOldImpl()
345 if (impl == null) { in createImpl()
347 impl = factory.createDatagramSocketImpl(); in createImpl()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCollectionTest.java42 final CollectionImplementation impl; field in CollectionTest
45 CollectionTest(CollectionImplementation impl, String methodName) { in CollectionTest() argument
47 this.impl = impl; in CollectionTest()
50 public static Test testSuite(CollectionImplementation impl) { in testSuite() argument
54 impl), in testSuite()
57 impl)); in testSuite()
DCollection8Test.java76 final CollectionImplementation impl; field in Collection8Test
79 Collection8Test(CollectionImplementation impl, String methodName) { in Collection8Test() argument
81 this.impl = impl; in Collection8Test()
87 AndroidCollection8Test(CollectionImplementation impl, String methodName) { in AndroidCollection8Test() argument
88 super(impl, methodName); in AndroidCollection8Test()
93 public static Test testSuite(CollectionImplementation impl) { in testSuite() argument
98 impl); in testSuite()
110 Collection c = impl.emptyCollection();
194 Collection c = impl.emptyCollection();
208 if (!impl.permitsNulls()) {
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java42 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_Constructor() local
43 assertNull(impl.getFileDescriptor()); in test_Constructor()
48 MockDatagramSocketImpl impl = new MockDatagramSocketImpl(); in test_connect() local
51 impl.test_connect(localhost, 0); in test_connect()
52 impl.test_connect(localhost, -1); in test_connect()
53 impl.test_connect(null, -1); in test_connect()
55 impl.test_disconnect(); in test_connect()
/libcore/ojluni/src/main/java/java/util/jar/
DPack200.java794 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/ojluni/src/main/java/javax/net/ssl/
DKeyManagerFactory.java155 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()
DTrustManagerFactory.java157 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()
DSSLContext.java201 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/java/security/cert/
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()
DCertPathBuilder.java175 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
218 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
255 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
DCertificateFactory.java208 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
257 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
300 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
/libcore/ojluni/src/main/java/java/security/
DKeyPairGenerator.java189 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
190 kpg = (KeyPairGenerator)instance.impl; in getInstance()
192 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance()
251 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
595 spi = (KeyPairGeneratorSpi)instance.impl; in Delegate()
DSecureRandom.java299 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
350 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
394 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/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/luni/src/test/java/libcore/java/net/
DSocketTest.java230 public MySocket(SocketImpl impl) throws SocketException { in test_SocketOptions_setOption() argument
231 super(impl); in test_SocketOptions_setOption()
235 MySocketImpl impl = new MySocketImpl(); in test_SocketOptions_setOption() local
236 Socket s = new MySocket(impl); in test_SocketOptions_setOption()
241 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
245 assertEquals(true, impl.createCalled); in test_SocketOptions_setOption()
247 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
249 assertEquals(Boolean.FALSE, (Boolean) impl.value); in test_SocketOptions_setOption()
253 assertEquals(Integer.valueOf(0), (Integer) impl.value); in test_SocketOptions_setOption()
255 assertEquals(Integer.valueOf(1), (Integer) impl.value); in test_SocketOptions_setOption()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java491 InterfaceWithDefault impl = new InterfaceWithReAbstractedMethod() { in testDefaultMethod_reimplementedInClass() local
497 Class<?> implClass = impl.getClass(); in testDefaultMethod_reimplementedInClass()
504 assertEquals(implClassName, impl.defaultMethod()); in testDefaultMethod_reimplementedInClass()
505 assertEquals(implClassName, implClassDefaultMethod.invoke(impl)); in testDefaultMethod_reimplementedInClass()
526 InterfaceWithDefault impl = new InterfaceWithRedefinedMethods() {}; in testDefaultMethod_reimplementInInterface() local
527 Class<?> implClass = impl.getClass(); in testDefaultMethod_reimplementInInterface()
533 assertEquals(interfaceClassName, impl.defaultMethod()); in testDefaultMethod_reimplementInInterface()
534 assertEquals(interfaceClassName, implClassDefaultMethod.invoke(impl)); in testDefaultMethod_reimplementInInterface()

12