/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | WeakHashMapTest.java | 156 assertTrue("Should contain referenced key", whm 193 assertTrue("Invalid map entry returned--bad key", keys 195 assertTrue("Invalid map entry returned--bad key", values 241 map.put(null, "value"); // add null key 246 assertEquals("null key was removed", 1, map.size()); 307 Object key = it.next(); 308 assertTrue("Invalid map entry returned--bad key", keys 309 .contains(key));
|
H A D | EnumMapTest.java | 48 private K key; field in class:EnumMapTest.MockEntry 52 public MockEntry(K key, V value) { argument 53 this.key = key; 59 return (key == null ? 0 : key.hashCode()) 64 return key; 106 assertNull("Return non-null for non mapped key", enumColorMap.put( 108 assertEquals("Get returned incorrect value for given key", 2, 120 assertNull("Return non-null for non mapped key", enumSizeMa [all...] |
H A D | ResourceBundleTest.java | 247 protected Object handleGetObject(String key) { argument
|
H A D | TreeMapTest.java | 177 map.put("key", "value"); 183 assertEquals("keySet() does not work", "key", keys.iterator().next()); 185 map2.put("key", "value2"); 221 assertTrue("Returned false for valid key", tm.containsKey("95")); 222 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX")); 259 assertEquals("Returned incorrect first key", "0", tm.firstKey()); 272 // Test for the same key & same value 420 assertTrue("Returned incorrect last key", tm.lastKey().equals( 532 fail("end key less than start key shoul [all...] |
H A D | LinkedHashMapTest.java | 137 assertNull("Get returned non-null for non existent key", 140 assertEquals("Get returned incorecct value for existing key", "HELLO", hm.get("T") 145 assertEquals("Failed with null key", "test", m.get(null)); 146 assertNull("Failed with missing key matching null hash", m 157 assertEquals("Failed to install key/value pair", 236 private void entrySetRemoveHelper(String key, String value) { argument 238 m1.put(key, value); 259 assertTrue("Failed with null key", m.keySet().contains(null)); 260 assertNull("Failed with null key", m.keySet().iterator().next()); 335 assertNull("Failed to remove given key", h [all...] |
H A D | PropertiesTest.java | 124 assertNull(props.getProperty("key")); 134 assertEquals("defaultValue", props.getProperty("key", "defaultValue")); 139 public synchronized Object get(Object key) { argument 140 return getProperty((String) key); // assume String 226 assertTrue("Failed to add empty key", prop.get("").equals("")); 327 assertEquals("Failed to add empty key", "", prop.get("")); 417 assertTrue("Failed to add empty key", prop.get("").equals("")); 421 assertTrue("Failed to add empty key", prop.get("").equals("")); 425 assertTrue("Failed to add empty key", prop.get("").equals("")); 900 parent.setProperty("parent.a.key", "paren [all...] |
H A D | CollectionsTest.java | 1443 assertTrue("Trying to use a null key in map failed", synchMap.get(null) 1454 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map: ", 1457 "Removing a key from the keySet of the synchronized map did not remove it from the original map", 1577 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map", 1580 "Removing a key from the keySet of the synchronized map did not remove it from the original map", 1806 assertTrue("Trying to use a null key in map failed", unmodMap.get(null) 1958 Double key = new Double (3.14); 1961 Map single = Collections.singletonMap(key, value); 1963 assertTrue(single.containsKey(key)); 1967 assertFalse(Collections.singletonMap(null, null).containsKey(key)); [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | DefaultHostnameVerifierTest.java | 416 @Override public void verify(PublicKey key) { argument 420 @Override public void verify(PublicKey key, String sigProvider) { argument
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | TestKeyStore.java | 73 * want a canned KeyStore with a variety of key pairs. 75 * Creating a key store is relatively slow, so a singleton instance is 216 * private key as well as a CA certificate. 233 * private key as well as a CA certificate. 251 * Creates KeyStores containing the requested key types. Since key 278 * Sets the requested key types to generate and include. The default is 286 /** A unique prefix to identify the key aliases */ 317 /** a private key entry to be used for signing, otherwise self-sign */ 400 * Add newly generated keys of a given key typ [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyFactory2Test.java | 125 assertEquals("generatePrivate generated different key for algorithm " + keyfactAlgs[i], 129 assertEquals("generatePrivate generated different key for algorithm " + keyfactAlgs[i], 155 "generatePublic generated different key for algorithm " 250 "generatePrivate generated different key for algorithm " 256 "generatePublic generated different key for algorithm " 263 assertTrue("improper key spec for encoded public key", 267 assertTrue("improper key spec for encoded private key", 320 * Returns the key algorithm 359 engineGetKeySpec(Key key, Class<T> keySpec) argument 363 engineTranslateKey(Key key) argument [all...] |
H A D | MessageDigest2Test.java | 444 for (Object key : provider.keySet()) { 445 String algorithm = (String) key;
|
H A D | SignatureTest.java | 551 public void verify(PublicKey key) {} argument 553 public void verify(PublicKey key, String sigProvider) {} argument
|
H A D | KeyStore4Test.java | 191 Key key = keyStore.getKey("keyalias", null); 192 assertNotNull(key);
|
H A D | KeyStore2Test.java | 269 assertEquals("the public key of the certificate from getCertificate() " 303 // key entry 307 assertEquals("key entry - the alias returned for this certificate was wrong", 403 assertNull("the private key returned from getKey for a certificate entry is not null", 529 assertEquals("the public key of the certificate from getCertificate() " 883 // put the key into keystore 970 public void verify(PublicKey key) throws CertificateException, argument 975 public void verify(PublicKey key, String sigProvider) argument
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 92 * An object whose most recent element is a key. The next element must 365 * Encodes the key (property name) to this stringer. 370 public JSONStringer key(String name) throws JSONException { method in class:JSONStringer 381 * adjusts the stack to expect the key's value. 411 } else if (context == Scope.DANGLING_KEY) { // value for key
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | AbstractPreferencesTest.java | 208 assertEquals("default", pref.get("key", "default")); 209 assertNull(pref.get("key", null)); 221 pref.get("key", null); 222 pref.get("key", ""); 228 pref.get("key", "abc"); 396 assertEquals(0, keys[i].indexOf("key")); 424 mock1.put("key", "1value"); 432 assertEquals("1value", mock1.get("key", null)); 437 String key = keys[i]; 438 assertTrue("key" [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | X509CRLTest.java | 135 String key = line.substring(0, index); 137 dates.put(key, value); 192 fail("should not verify using incorrect key type");
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CRLSelector2Test.java | 584 public void verify(PublicKey key) throws CRLException, argument 590 public void verify(PublicKey key, String sigProvider) argument
|
/libcore/luni/src/main/java/java/net/ |
H A D | URLConnection.java | 143 * A hashtable that maps the filename extension (key) to a MIME-type 421 * for the null key; in HTTP's case, this maps to the HTTP status line and is 434 * response-header field names are the key values of the map. The map values 435 * are lists of header field values associated with a particular key name. 438 * for the null key; in HTTP's case, this maps to the HTTP status line and is 450 * connection. The request property names are the key values of the map. The 451 * map values are lists of property values of the corresponding key name. 489 * Returns the value of the header field specified by {@code key} or {@code 494 * for the null key; in HTTP's case, this maps to the HTTP status line and is 497 * @param key 501 getHeaderField(String key) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldAbstractPreferencesTest.java | 1101 protected String getSpi(String key) { argument 1111 protected void putSpi(String key, String value) { argument 1119 protected void removeSpi(String key) { argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinTask.java | 576 ForkJoinTask<?> key = ((ExceptionNode)x).get(); 578 int i = System.identityHashCode(key) & (t.length - 1);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | MacTest.java | 558 * <code>init(Key key, AlgorithmParameterSpec params)</code> 559 * <code>init(Key key)</code> 819 SecretKey key = new SecretKeySpec(new byte[] { 850 mac.init(key);
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | KeyStoreTest.java | 89 private static final char[] PASSWORD_KEY = "key password".toCharArray(); 121 throw new IllegalArgumentException("Unexpected key type " + keyType); 181 // JKS key stores cannot store secret keys, neither can the RI's PKCS12 219 // BouncyCastle's PKCS12 ignores the key password unlike the RI which requires it 345 public static void setSecretKey(KeyStore ks, String alias, SecretKey key) throws Exception { argument 347 key, 358 public static void setSecretKeyBytes(KeyStore ks, String alias, SecretKey key) argument 361 key.getEncoded(), 751 // add 1000 since some key stores round of time to nearest second 2520 // http://b/857840: want JKS key stor [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
H A D | DomTest.java | 1703 public void handle(short operation, String key, Object data, Node src, Node dst) { argument 1704 calls.add(notification(operation, key, data, src, dst)); 1708 private String notification(short operation, String key, Object data, Node src, Node dst) { argument 1709 return "op:" + operation + " key:" + key + " data:" + data + " src:" + src + " dst:" + dst;
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_ICU.cpp | 89 bool hasKey(const char* key) { argument 91 ures_getStringByKey(bundle_, key, NULL, &status);
|