Searched refs:tm (Results 1 - 21 of 21) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidTreeMapTest.java42 TreeMap<Integer, String> tm = new TreeMap<Integer, String>();
57 tm.put(new Integer(val), "V:" + val);
60 if (SPEW) System.out.println("tm = " + tm);
62 if (SPEW) System.out.println("tm.size() = " + tm.size());
64 assertEquals(tm.size(), hm.size());
66 if (SPEW) System.out.println("tm.firstKey() = " + tm.firstKey());
68 if (SPEW) System.out.println("tm
[all...]
H A DOldTreeMapTest.java79 TreeMap tm; field in class:OldTreeMapTest
107 TreeMap myTreeMap = new TreeMap(new HashMap(tm));
158 assertTrue("Returned false for valid key", tm.containsKey("95"));
159 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX"));
162 tm.containsKey(new Double(3.14));
169 tm.containsKey(null);
178 assertEquals("Returned incorrect first key", "0", tm.firstKey());
179 tm = new TreeMap();
181 tm.firstKey();
192 tm
[all...]
H A DOldCollectionsTest.java815 TreeMap tm = new TreeMap<Integer, String>();
817 SortedMap sm = Collections.checkedSortedMap(tm, Integer.class, String.class);
/libcore/crypto/src/test/java/org/conscrypt/
H A DTrustManagerImplTest.java92 X509TrustManager tm = trustManager(root);
94 assertInvalid(chain1, tm);
96 assertValid(chain2, tm);
98 assertValid(chain1, tm);
122 X509TrustManager tm = trustManager(root);
130 assertTrue(tm instanceof TrustManagerImpl);
131 TrustManagerImpl tmi = (TrustManagerImpl) tm;
194 private void assertValid(X509Certificate[] chain, X509TrustManager tm) throws Exception { argument
195 if (tm instanceof TrustManagerImpl) {
196 TrustManagerImpl tmi = (TrustManagerImpl) tm;
202 assertValidPinned(X509Certificate[] chain, X509TrustManager tm, String hostname, X509Certificate[] fullChain) argument
212 assertInvalid(X509Certificate[] chain, X509TrustManager tm) argument
225 assertInvalidPinned(X509Certificate[] chain, X509TrustManager tm, String hostname) argument
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DTrustManagerFactoryTest.java143 private void test_X509TrustManager(X509TrustManager tm) throws Exception { argument
145 X509Certificate[] issuers = tm.getAcceptedIssuers();
148 assertNotSame(issuers, tm.getAcceptedIssuers());
159 tm.checkClientTrusted(chain, keyType);
164 tm.checkServerTrusted(chain, keyType);
169 tm.checkClientTrusted(chain, keyType);
170 tm.checkServerTrusted(chain, keyType);
239 X509TrustManager tm = (X509TrustManager) trustManager;
240 tm.checkClientTrusted(chain, "RSA");
241 tm
[all...]
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLContextSpiTest.java153 * SSLContextSpi#engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
168 TrustManager[] tm = trustMF.getTrustManagers();
171 ssl.engineInit(km, tm, sr);
176 ssl.engineInit(km, tm, null);
207 TrustManager[] tm = trustMF.getTrustManagers();
209 ssl.engineInit(km, tm, sr);
H A DTrustManagerFactorySpiTest.java112 TrustManager[] tm = tmf.getTrustManagers();
119 tm = tmf.getTrustManagers();
H A DSSLContext2Test.java114 TrustManager [] tm = new TManager[10];
117 sslC.init(km, tm, null);
121 sslC.init(km, tm, new SecureRandom());
H A DTrustManagerFactory1Test.java379 TrustManager[] tm = trustMF.getTrustManagers();
380 assertNotNull("Result has not be null", tm);
382 (tm.length > 0));
H A DSSLContext1Test.java110 TrustManager[] tm = null;
112 sslContext.init(km, tm, new SecureRandom());
118 sslContext.init(km, tm, null);
470 * <code>init(KeyManager[] km, TrustManager[] tm, SecureRandom random)</code>
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLContext.java210 * @param tm
217 public final void init(KeyManager[] km, TrustManager[] tm, SecureRandom sr) argument
219 spiImpl.engineInit(km, tm, sr);
H A DSSLContextSpi.java42 * @param tm
49 protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) argument
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DSSLContextSpiImpl.java21 public void engineInit(KeyManager[] km, TrustManager[] tm, argument
H A DMySSLContextSpi.java43 protected void engineInit(KeyManager[] km, TrustManager[] tm, argument
/libcore/crypto/src/main/java/org/conscrypt/
H A DSSLParametersImpl.java411 for (TrustManager tm : tms) {
412 if (tm instanceof X509TrustManager) {
413 return (X509TrustManager)tm;
H A DClientHandshakeImpl.java553 TrustManagerImpl tm = (TrustManagerImpl) x509tm;
554 tm.checkServerTrusted(serverCert.certs, authType, hostname);
H A DServerHandshakeImpl.java556 X509TrustManager tm = parameters.getTrustManager();
557 accepted = tm.getAcceptedIssuers();
H A DOpenSSLSocketImpl.java610 TrustManagerImpl tm = (TrustManagerImpl) x509tm;
611 tm.checkServerTrusted(peerCertificateChain, authMethod, wrappedHost);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java45 protected void engineInit(KeyManager[] km, TrustManager[] tm, argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DMatcherTest.java522 Matcher tm = tp.matcher("aaa");
523 assertTrue(tm.matches());
524 assertEquals("", tm.group(1));
/libcore/luni/src/test/java/tests/api/java/util/
H A DCollectionsTest.java2043 TreeMap tm = new TreeMap();
2044 tm.putAll(hm);
2045 Map c = Collections.unmodifiableSortedMap(tm);
2046 assertTrue("Returned map is of incorrect size", c.size() == tm.size());
2051 tm.get(x)));

Completed in 1202 milliseconds