Searched refs:String (Results 1 - 25 of 2604) sorted by last modified time

1234567891011>>

/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DDefaultHostnameVerifierTest.java73 private void assertFirstCn(String dn, String expected) {
337 X509Certificate parseCertificate(String encoded) throws Exception {
346 public StubX509Certificate(String subjectDn) {
351 public StubX509Certificate addSubjectAlternativeName(int type, String name) {
406 @Override public String getSigAlgName() {
410 @Override public String getSigAlgOID() {
446 @Override public String toString() {
454 @Override public void verify(PublicKey key, String sigProvider) {
458 @Override public Set<String> getCriticalExtensionOID
[all...]
H A DKeyManagerFactoryTest.java56 String algorithm = KeyManagerFactory.getDefaultAlgorithm();
64 private static boolean supportsManagerFactoryParameters(String algorithm) {
69 private static String[] keyTypes(String algorithm) {
140 private static final String[] KEY_TYPES_ONLY
141 = StandardNames.KEY_TYPES.toArray(new String[StandardNames.KEY_TYPES.size()]);
142 private static final String[] KEY_TYPES_WITH_EMPTY
143 = new String[KEY_TYPES_ONLY.length + 1];
144 private static final String[] KEY_TYPES_WITH_EMPTY_AND_NULL
145 = new String[KEY_TYPES_ONL
[all...]
H A DSSLContextTest.java50 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
68 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
75 SSLContext.getInstance(null, (String) null);
84 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
86 SSLContext.getInstance(protocol, (String) null);
99 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
100 String protocolName = SSLContext.getInstance(protocol).getProtocol();
113 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
127 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) {
149 for (String protoco
[all...]
H A DSSLEngineTest.java63 String[] cipherSuites = e.getSupportedCipherSuites();
86 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites();
87 for (String cipherSuite : cipherSuites) {
107 final String[] cipherSuiteArray
109 ? new String[] { cipherSuite,
111 : new String[] { cipherSuite });
133 String[] cipherSuites = e.getEnabledCipherSuites();
149 e.setEnabledCipherSuites(new String[1]);
154 e.setEnabledCipherSuites(new String[] { "Bogus" } );
159 e.setEnabledCipherSuites(new String[
[all...]
H A DSSLParametersTest.java34 String[] cipherSuites = new String[] { "foo", null, "bar" };
45 String[] cipherSuites = new String[] { "foo", null, "bar" };
46 String[] protocols = new String[] { "baz", null, "qux" };
63 String[] cipherSuites = new String[] { "fnord" };
64 String[] copy = cipherSuites.clone();
78 String[] protocol
[all...]
H A DSSLSessionContextTest.java170 String[] supportedCipherSuites = c.serverSocket.getSupportedCipherSuites();
172 LinkedList<String> uniqueCipherSuites
175 Iterator<String> i = uniqueCipherSuites.iterator();
177 String cipherSuite = i.next();
211 String cipherSuite1 = uniqueCipherSuites.get(0);
212 String cipherSuite2 = uniqueCipherSuites.get(1);
213 String cipherSuite3 = uniqueCipherSuites.get(2);
216 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite1 }, null));
218 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite2 }, null));
220 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite
[all...]
H A DSSLSessionTest.java287 String key = "KEY";
288 String value = "VALUE";
300 String key = "KEY";
301 String value = "VALUE";
H A DSSLSocketFactoryTest.java40 String[] cipherSuites = sf.getDefaultCipherSuites();
47 String[] cipherSuites = sf.getSupportedCipherSuites();
H A DSSLSocketTest.java62 String[] cipherSuites = ssl.getSupportedCipherSuites();
105 String clientProvider,
106 String serverProvider,
111 String clientToServerString = "this is sent from the client to the server...";
112 String serverToClientString = "... and this from the server to the client";
118 String[] cipherSuites;
122 String[] clientSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites();
123 String[] serverSuites = c.serverContext.getSocketFactory().getSupportedCipherSuites();
124 Set<String> ccs = new HashSet<String>(Array
[all...]
H A DTrustManagerFactoryTest.java41 private static final String [] KEY_TYPES = new String[] { "RSA", "DSA", "EC", "EC_RSA" };
57 String algorithm = TrustManagerFactory.getDefaultAlgorithm();
140 for (String keyType : KEY_TYPES) {
149 String keyAlgName = TestKeyStore.keyAlgorithm(keyType);
150 String sigAlgName = TestKeyStore.signatureAlgorithm(keyType);
177 String type = service.getType();
181 String algorithm = service.getAlgorithm();
224 String type = service.getType();
228 String algorith
[all...]
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
H A DX500PrincipalTest.java29 String expected = "aced0005737200266a617661782e73656375726974792e617574682e7"
73 String[] formats = {
78 for (String format : formats) {
84 String expected = ""
/libcore/luni/src/test/java/libcore/net/http/
H A DHttpResponseCacheTest.java77 String tmp = System.getProperty("java.io.tmpdir");
180 Collections.<String, List<String>>emptyMap());
195 final String body = "ABCDE";
205 @Override public CacheResponse get(URI uri, String requestMethod,
206 Map<String, List<String>> requestHeaders) throws IOException {
310 String suite = connection.getCipherSuite();
431 final AtomicReference<Map<String, List<String>>> requestHeadersRe
[all...]
/libcore/luni/src/test/java/libcore/sqlite/
H A DAbstractSqlTest.java57 private final String[] ones = {"hello!", "goodbye"};
67 private final String[] ones_updated;
72 ones_updated = new String[ones.length];
138 private void assertAllFromTbl1(Statement stmt, String[] ones, short[] twos)
199 private void updateOnes(Statement stmt, String[] ones_updated, short[] twos)
207 protected abstract String getConnectionURL();
209 protected abstract String getDriverClassName();
H A DOldDatabaseTest.java74 String tableName = userTab.getString("TABLE_NAME");
199 String row[] = (String[]) res.rows.elementAt(0);
207 String args[] = new String[1];
210 String[] s = (String[]) res.rows.elementAt(0);
244 String tableName = userTabs.getString("TABLE_NAME");
261 List<String> errors = tracker.getErrors();
265 for (String
[all...]
H A DOldFunctionContextTest.java51 String row[] = (String[]) res.rows.elementAt(0);
52 String val = row[0];
64 String row[] = (String[]) res.rows.elementAt(0);
65 String val = row[0];
77 String row[] = (String[]) res.rows.elementAt(0);
78 String val = row[0];
106 String expecte
[all...]
H A DOldJDBCDriverFunctionalTest.java29 private String connectionURL = "empty";
36 @Override protected String getConnectionURL() {
38 String tmp = System.getProperty("java.io.tmpdir");
57 @Override protected String getDriverClassName() {
H A DOldSQLiteTest.java33 String tmp = System.getProperty("java.io.tmpdir");
H A DOldStmtTest.java32 private static final String CREATE_ALL_TYPES = "create table type ("
64 static final String INSERT_ALL_TYPES = "insert into type ("
74 static final String ALL_TYPES_TABLE = "type";
184 String[] row0 = (String[]) count.rows.elementAt(0);
216 String[] row0 = (String[]) r.rows.elementAt(0);
219 String[] row1 = (String[]) r.rows.elementAt(1);
222 String[] row
[all...]
H A DQueryTimeoutTest.java38 private static final String EXEC_QUERY
41 private static final String FETCH_QUERY = "select a from t_orig where DELAY(2,1)=1";
60 @Override public void function(FunctionContext functionContext, String[] args) {
70 @Override public void step(FunctionContext functionContext, String[] args) {
81 private void exec(String queryString) throws Exception {
/libcore/luni/src/test/java/libcore/util/
H A DBasicLruCacheTest.java28 BasicLruCache<String, String> cache = newCreatingCache();
29 String created = cache.get("aa");
34 BasicLruCache<String, String> cache = newCreatingCache();
41 new BasicLruCache<String, String>(0);
48 BasicLruCache<String, String> cache = new BasicLruCache<String, Strin
[all...]
H A DCollectionUtilsTest.java31 List<Reference<String>> refs = new ArrayList<Reference<String>>();
38 Iterable<String> strings = CollectionUtils.dereferenceIterable(refs, true);
39 assertEquals(Arrays.<String>asList("a", "b", "c", "d", "e"), toList(strings));
42 assertEquals(Arrays.<String>asList("a", "c", "d", "e"), toList(strings));
45 Iterator<String> i = strings.iterator();
64 assertEquals(Arrays.<String>asList(), toList(strings));
76 List<String> list = new ArrayList<String>();
77 CollectionUtils.removeDuplicates(list, String
[all...]
H A DSerializationTester.java30 private final String golden;
33 public SerializationTester(T value, String golden) {
95 private static String hexEncode(byte[] bytes) {
98 result.append(String.format("%02x", b));
103 private static byte[] hexDecode(String s) {
118 public static String serializeHex(Object object) throws IOException {
122 public static Object deserializeHex(String hex) throws IOException, ClassNotFoundException {
/libcore/luni/src/test/java/libcore/xml/
H A DDeclarationTest.java36 private String systemIdA;
39 private String systemIdB;
60 private String stringToSystemId(String contents) throws IOException {
82 String message = "This implementation doesn't parse the encoding from the XML declaration";
88 String message = "This implementation doesn't parse the version from the XML declaration";
94 String message = "This implementation doesn't parse standalone from the XML declaration";
H A DDomSerializationTest.java61 private String toXml(Document document) throws Exception {
67 private void assertXmlEquals(String expectedXml, Document document) throws Exception {
68 String actual = toXml(document);
69 String declarationA = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
70 String declarationB = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>";
H A DDomTest.java77 private final String xml
384 String message = "isDefaultNamespace() should be consistent with lookupNamespaceURI(null)";
420 String original = domToString(document);
426 String original = domToString(document);
432 String original = domToString(document);
434 String expected = original.replaceFirst(
454 String original = domToString(document);
456 String expected = original.replace("image/png", "foobar");
482 String original = domToString(document);
484 String expecte
[all...]

Completed in 82 milliseconds

1234567891011>>