/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | ServerSocketFactoryTest.java | 36 ServerSocketFactory sf = new MyServerSocketFactory(); in test_Constructor() local 40 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket() local 41 ServerSocket ss = sf.createServerSocket(); in test_createServerSocket() 47 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_I() local 48 ServerSocket ss = sf.createServerSocket(0); in test_createServerSocket_I() 52 sf.createServerSocket(ss.getLocalPort()); in test_createServerSocket_I() 60 sf.createServerSocket(-1); in test_createServerSocket_I() 67 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_II() local 68 ServerSocket ss = sf.createServerSocket(0, 0); in test_createServerSocket_II() 72 sf.createServerSocket(ss.getLocalPort(), 0); in test_createServerSocket_II() [all …]
|
D | SocketFactoryTest.java | 43 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket() local 45 Socket s = sf.createSocket(); in test_createSocket() 59 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_StringI() local 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI() 68 sf.createSocket("1.2.3.4hello", sport); in test_createSocket_StringI() 75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); in test_createSocket_StringI() 82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); in test_createSocket_StringI() 96 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressI() local 100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); in test_createSocket_InetAddressI() 106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]); in test_createSocket_InetAddressI() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 46 SocketFactory sf = SSLSocketFactory.getDefault(); in test_Constructor() local 47 assertTrue(sf instanceof SSLSocketFactory); in test_Constructor() 65 SSLSocketFactory sf = (SSLSocketFactory)SSLSocketFactory.getDefault(); in test_createSocket() local 73 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket() 77 s = sf.createSocket(st, "localhost", sport, true); in test_createSocket() 82 sf.createSocket(null, "localhost", sport, true); in test_createSocket() 89 s = sf.createSocket(new Socket(), "localhost", 1080, false); in test_createSocket() 97 s = sf.createSocket(st, "1.2.3.4hello", sport, false); in test_createSocket() 108 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getDefaultCipherSuites() local 110 sf.getDefaultCipherSuites().length > 0); in test_getDefaultCipherSuites() [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HttpsURLConnection.java | 383 public static void setDefaultSSLSocketFactory(SSLSocketFactory sf) { in setDefaultSSLSocketFactory() argument 384 if (sf == null) { in setDefaultSSLSocketFactory() 393 defaultSSLSocketFactory = sf; in setDefaultSSLSocketFactory() 432 public void setSSLSocketFactory(SSLSocketFactory sf) { in setSSLSocketFactory() argument 433 if (sf == null) { in setSSLSocketFactory() 442 sslSocketFactory = sf; in setSSLSocketFactory()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldSimpleFormatterTest.java | 25 SimpleFormatter sf = new SimpleFormatter(); field in OldSimpleFormatterTest 28 assertEquals("Head for this SimpleFormatter should be empty", "", sf.getHead(null)); in testSimpleFormatter() 29 assertEquals("Tail for this SimpleFormatter should be empty", "", sf.getTail(null)); in testSimpleFormatter()
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactoryFinder.java | 171 SchemaFactory sf; in _newFactory() local 180 sf = createInstance(r); in _newFactory() 181 if(sf!=null) return sf; in _newFactory() 208 sf = createInstance(factoryClassName); in _newFactory() 209 if(sf != null){ in _newFactory() 210 return sf; in _newFactory() 223 sf = loadFromServicesFile(schemaLanguage,resource.toExternalForm(), in _newFactory() 225 if(sf!=null) return sf; in _newFactory()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLSocketBenchmark.java | 72 private SocketFactory sf; field in SSLSocketBenchmark 78 this.sf = sslContext.getSocketFactory(); in setUp() 83 Socket s = sf.createSocket(webSite.host, webSite.port); in time()
|
D | ReflectionBenchmark.java | 206 public static int sf = 0; field in ReflectionBenchmark.C 225 sf = value; in setStaticField() 236 public static final int sf = 0; field
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | SignatureFileVerifier.java | 280 Manifest sf = new Manifest(); in processImpl() local 281 sf.read(new ByteArrayInputStream(sfBytes)); in processImpl() 284 sf.getMainAttributes().getValue(Attributes.Name.SIGNATURE_VERSION); in processImpl() 307 sf.getEntries().entrySet().iterator(); in processImpl() 310 boolean manifestSigned = verifyManifestHash(sf, md, manifestDigests); in processImpl() 313 if (!manifestSigned && !verifyManifestMainAttrs(sf, md)) { in processImpl() 351 private boolean verifyManifestHash(Manifest sf, in verifyManifestHash() argument 356 Attributes mattr = sf.getMainAttributes(); in verifyManifestHash() 396 private boolean verifyManifestMainAttrs(Manifest sf, in verifyManifestMainAttrs() argument 400 Attributes mattr = sf.getMainAttributes(); in verifyManifestMainAttrs()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSessions.java | 67 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in create() local 68 SSLSocket ssl = (SSLSocket) sf.createSocket(); in create()
|
D | TestSSLContext.java | 381 public static SSLSocketFactory clientAuth(final SSLSocketFactory sf, in clientAuth() argument 393 return set(sf.createSocket(host, port)); in clientAuth() 397 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth() 400 return set(sf.createSocket(host, port)); in clientAuth() 404 return set(sf.createSocket(address, port)); in clientAuth() 408 return sf.getDefaultCipherSuites(); in clientAuth() 411 return sf.getSupportedCipherSuites(); in clientAuth() 416 return set(sf.createSocket(s, host, port, autoClose)); in clientAuth()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 110 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_createSocket_withConsumedInputStream() local 111 Socket sslSocket = sf.createSocket(null, (InputStream) null, false); in test_SSLSocketFactory_createSocket_withConsumedInputStream()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | SignatureFileVerifier.java | 86 java.util.jar.Manifest sf, in verifyManifestHash() argument 94 java.util.jar.Manifest sf, sun.security.util.ManifestDigester md) in verifyManifestMainAttrs() argument
|