Searched refs:sf (Results 1 - 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldSimpleFormatterTest.java25 SimpleFormatter sf = new SimpleFormatter(); field in class:OldSimpleFormatterTest
28 assertEquals("Head for this SimpleFormatter should be empty", "", sf.getHead(null));
29 assertEquals("Tail for this SimpleFormatter should be empty", "", sf.getTail(null));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
H A DServerSocketFactoryTest.java36 ServerSocketFactory sf = new MyServerSocketFactory();
40 ServerSocketFactory sf = ServerSocketFactory.getDefault();
41 ServerSocket ss = sf.createServerSocket();
47 ServerSocketFactory sf = ServerSocketFactory.getDefault();
48 ServerSocket ss = sf.createServerSocket(0);
52 sf.createServerSocket(ss.getLocalPort());
60 sf.createServerSocket(-1);
67 ServerSocketFactory sf = ServerSocketFactory.getDefault();
68 ServerSocket ss = sf.createServerSocket(0, 0);
72 sf
[all...]
H A DSocketFactoryTest.java43 SocketFactory sf = SocketFactory.getDefault();
45 Socket s = sf.createSocket();
59 SocketFactory sf = SocketFactory.getDefault();
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
68 sf.createSocket("1.2.3.4hello", sport);
75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]);
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort());
96 SocketFactory sf = SocketFactory.getDefault();
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport);
106 sf
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLSocketFactoryTest.java46 SocketFactory sf = SSLSocketFactory.getDefault();
47 assertTrue(sf instanceof SSLSocketFactory);
65 SSLSocketFactory sf = (SSLSocketFactory)SSLSocketFactory.getDefault();
73 Socket s = sf.createSocket(st, "localhost", sport, false);
77 s = sf.createSocket(st, "localhost", sport, true);
82 sf.createSocket(null, "localhost", sport, true);
89 s = sf.createSocket(new Socket(), "localhost", 1080, false);
97 s = sf.createSocket(st, "1.2.3.4hello", sport, false);
108 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();
110 sf
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DHttpsURLConnection.java309 * @param sf the default SSL socket factory
317 public static void setDefaultSSLSocketFactory(SSLSocketFactory sf) { argument
318 if (sf == null) {
327 defaultSSLSocketFactory = sf;
358 * @param sf the SSL socket factory
363 public void setSSLSocketFactory(SSLSocketFactory sf) { argument
364 if (sf == null) {
373 sslSocketFactory = sf;
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLSessions.java67 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();
68 SSLSocket ssl = (SSLSocket) sf.createSocket();
H A DTestSSLContext.java381 public static SSLSocketFactory clientAuth(final SSLSocketFactory sf, argument
393 return set(sf.createSocket(host, port));
397 return set(sf.createSocket(host, port, localHost, localPort));
400 return set(sf.createSocket(host, port));
404 return set(sf.createSocket(address, port));
408 return sf.getDefaultCipherSuites();
411 return sf.getSupportedCipherSuites();
416 return set(sf.createSocket(s, host, port, autoClose));
/libcore/luni/src/main/java/javax/xml/validation/
H A DSchemaFactoryFinder.java171 SchemaFactory sf;
180 sf = createInstance(r);
181 if(sf!=null) return sf;
208 sf = createInstance(factoryClassName);
209 if(sf != null){
210 return sf;
223 sf = loadFromServicesFile(schemaLanguage,resource.toExternalForm(),
225 if(sf!=null) return sf;
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DSSLSocketBenchmark.java72 private SocketFactory sf; field in class:SSLSocketBenchmark
78 this.sf = sslContext.getSocketFactory();
83 Socket s = sf.createSocket(webSite.host, webSite.port);
H A DReflectionBenchmark.java194 F.class.getField("sf");
206 public static int sf = 0; field in class:ReflectionBenchmark.C
225 sf = value;
236 public static final int sf = 0; field in interface:ReflectionBenchmark.IC
/libcore/ojluni/src/main/java/sun/security/util/
H A DSignatureFileVerifier.java280 Manifest sf = new Manifest();
281 sf.read(new ByteArrayInputStream(sfBytes));
284 sf.getMainAttributes().getValue(Attributes.Name.SIGNATURE_VERSION);
307 sf.getEntries().entrySet().iterator();
310 boolean manifestSigned = verifyManifestHash(sf, md, manifestDigests);
313 if (!manifestSigned && !verifyManifestMainAttrs(sf, md)) {
351 private boolean verifyManifestHash(Manifest sf, argument
356 Attributes mattr = sf.getMainAttributes();
396 private boolean verifyManifestMainAttrs(Manifest sf, argument
400 Attributes mattr = sf
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSocketFactoryTest.java211 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault();
212 Socket sslSocket = sf.createSocket(null, (InputStream) null, false);

Completed in 417 milliseconds