/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldAndroidTreeMapTest.java | 42 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 D | OldTreeMapTest.java | 79 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 D | OldCollectionsTest.java | 815 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 D | TrustManagerImplTest.java | 92 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 D | TrustManagerFactoryTest.java | 143 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 D | SSLContextSpiTest.java | 153 * 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 D | TrustManagerFactorySpiTest.java | 112 TrustManager[] tm = tmf.getTrustManagers(); 119 tm = tmf.getTrustManagers();
|
H A D | SSLContext2Test.java | 114 TrustManager [] tm = new TManager[10]; 117 sslC.init(km, tm, null); 121 sslC.init(km, tm, new SecureRandom());
|
H A D | TrustManagerFactory1Test.java | 379 TrustManager[] tm = trustMF.getTrustManagers(); 380 assertNotNull("Result has not be null", tm); 382 (tm.length > 0));
|
H A D | SSLContext1Test.java | 110 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 D | SSLContext.java | 210 * @param tm 217 public final void init(KeyManager[] km, TrustManager[] tm, SecureRandom sr) argument 219 spiImpl.engineInit(km, tm, sr);
|
H A D | SSLContextSpi.java | 42 * @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 D | SSLContextSpiImpl.java | 21 public void engineInit(KeyManager[] km, TrustManager[] tm, argument
|
H A D | MySSLContextSpi.java | 43 protected void engineInit(KeyManager[] km, TrustManager[] tm, argument
|
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | SSLParametersImpl.java | 411 for (TrustManager tm : tms) { 412 if (tm instanceof X509TrustManager) { 413 return (X509TrustManager)tm;
|
H A D | ClientHandshakeImpl.java | 553 TrustManagerImpl tm = (TrustManagerImpl) x509tm; 554 tm.checkServerTrusted(serverCert.certs, authType, hostname);
|
H A D | ServerHandshakeImpl.java | 556 X509TrustManager tm = parameters.getTrustManager(); 557 accepted = tm.getAcceptedIssuers();
|
H A D | OpenSSLSocketImpl.java | 610 TrustManagerImpl tm = (TrustManagerImpl) x509tm; 611 tm.checkServerTrusted(peerCertificateChain, authMethod, wrappedHost);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySSLContextSpi.java | 45 protected void engineInit(KeyManager[] km, TrustManager[] tm, argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | MatcherTest.java | 522 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 D | CollectionsTest.java | 2043 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)));
|