/libcore/luni/src/main/java/java/util/logging/ |
H A D | FileHandler.java | 332 private boolean getBooleanProperty(String key, boolean defaultValue) { argument 333 String property = manager.getProperty(key); 347 private String getStringProperty(String key, String defaultValue) { argument 348 String property = manager.getProperty(key); 353 private int getIntProperty(String key, int defaultValue) { argument 354 String property = manager.getProperty(key);
|
H A D | Handler.java | 89 void printInvalidPropMessage(String key, String value, Exception e) { argument 90 String msg = "Invalid property value for " + prefix + ":" + key + "/" + value;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | HashMapTest.java | 201 map.put("key", "value"); 208 "key", keys.iterator().next()); 210 map2.put("key", "value2"); 241 assertTrue("Returned false for valid key", hm.containsKey(new Integer( 243 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD")); 247 assertTrue("Failed with null key", m.containsKey(null)); 248 assertTrue("Failed with missing key matching null hash", !m 313 assertNull("Get returned non-null for non existent key", 316 assertEquals("Get returned incorrect value for existing key", "HELLO", hm.get("T") 321 assertEquals("Failed with null key", "tes 625 private int key = 0; field in class:HashMapTest.ReusableKey 627 setKey(int key) argument 737 put(K key, V value) argument [all...] |
H A D | HashtableTest.java | 196 assertTrue("Failed to find key", htfull.containsKey("FKey 4")); 197 assertTrue("Failed to find key", !htfull.containsKey("FKey 99")); 237 assertTrue("Missing key from enumeration", elmVector.contains(s)); 426 assertTrue("Missing key from enumeration", keyVector.contains(s)); 469 assertTrue("Returned incorrect key set", s 519 assertTrue("should contain key", s1.remove("Key 0")); 520 assertTrue("should not contain key", !s1.remove("Key 0")); 574 // String key = (String) it.next(); 575 // if ("12".equals(key) || "9".equals(key)) { [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | ProxySelectorImpl.java | 104 private int getSystemPropertyInt(String key, int defaultValue) { argument 105 String string = System.getProperty(key);
|
/libcore/luni/src/main/java/java/util/ |
H A D | HashSet.java | 205 E key = (E) stream.readObject(); 206 backingMap.put(key, this);
|
H A D | ResourceBundle.java | 236 private static MissingResourceException missingResourceException(String className, String key) { argument 237 String detail = "Can't find resource for bundle '" + className + "', key '" + key + "'"; 238 throw new MissingResourceException(detail, className, key); 425 * @param key 431 public final Object getObject(String key) { argument 434 Object result = theParent.handleGetObject(key); 441 throw missingResourceException(last.getClass().getName(), key); 447 * @param key 456 public final String getString(String key) { argument 472 getStringArray(String key) argument 571 handleGetObject(String key) argument 619 containsKey(String key) argument [all...] |
H A D | ComparableTimSort.java | 453 * Locates the position at which to insert the specified key into the 454 * specified sorted range; if the range contains an element equal to key, 457 * @param key the key whose insertion point to search for 463 * @return the int k, 0 <= k <= n such that a[b + k - 1] < key <= a[b + k], 465 * In other words, key belongs at index b + k; or in other words, 466 * the first k elements of a should precede key, and the last n - k 469 private static int gallopLeft(Comparable<Object> key, Object[] a, argument 475 if (key.compareTo(a[base + hint]) > 0) { 476 // Gallop right until a[base+hint+lastOfs] < key < 539 gallopRight(Comparable<Object> key, Object[] a, int base, int len, int hint) argument [all...] |
H A D | TimSort.java | 485 * Locates the position at which to insert the specified key into the 486 * specified sorted range; if the range contains an element equal to key, 489 * @param key the key whose insertion point to search for 496 * @return the int k, 0 <= k <= n such that a[b + k - 1] < key <= a[b + k], 498 * In other words, key belongs at index b + k; or in other words, 499 * the first k elements of a should precede key, and the last n - k 502 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, argument 507 if (c.compare(key, a[base + hint]) > 0) { 508 // Gallop right until a[base+hint+lastOfs] < key < 572 gallopRight(T key, T[] a, int base, int len, int hint, Comparator<? super T> c) argument [all...] |
H A D | Collections.java | 135 @Override public boolean containsKey(Object key) { argument 147 @Override public Object get(Object key) { argument 294 SingletonMap(K key, V value) { argument 295 k = key; 299 @Override public boolean containsKey(Object key) { argument 300 return k == null ? key == null : k.equals(key); 307 @Override public V get(Object key) { argument 308 if (containsKey(key)) { 676 @Override public boolean containsKey(Object key) { argument 700 get(Object key) argument 724 put(K key, V value) argument 736 remove(Object key) argument 1247 containsKey(Object key) argument 1263 get(Object key) argument 1279 put(K key, V value) argument 1287 remove(Object key) argument 1850 singletonMap(K key, V value) argument 3097 containsKey(Object key) argument 3105 get(Object key) argument 3109 put(K key, V value) argument 3113 remove(Object key) argument 3404 secondaryHash(Object key) argument 3415 secondaryIdentityHash(Object key) argument [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CRL2Test.java | 186 public void verify(PublicKey key) { argument 190 public void verify(PublicKey key, String sigProvider) { argument
|
H A D | X509CertSelectorTest.java | 738 PublicKey key = selector.getSubjectPublicKey(); 739 assertEquals("0.3.5", key.getAlgorithm()); 740 assertEquals("X.509", key.getFormat()); 741 assertTrue(Arrays.equals(enc, key.getEncoded())); 742 assertNotNull(key.toString()); 744 key = new MyPublicKey(); 746 selector.setSubjectPublicKey(key); 748 assertEquals(key, keyActual); 749 assertEquals(key.getAlgorithm(), keyActual.getAlgorithm()); 1428 PublicKey key 1573 protected PublicKey key = null; field in class:X509CertSelectorTest.TestCert 1636 TestCert(PublicKey key) argument 1672 setPublicKey(PublicKey key) argument 1822 verify(PublicKey key) argument 1827 verify(PublicKey key, String sigProvider) argument [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | KeyStoreTestSupport.java | 133 public void verify(PublicKey key) throws CertificateException, argument 138 public void verify(PublicKey key, String sigProvider) argument
|
H A D | TestKeyStoreSpi.java | 197 public void engineSetKeyEntry(String alias, Key key, char[] password, argument 201 throw new KeyStoreException("alias is not a key enrty"); 205 if (key instanceof PrivateKey) 212 aliases.put(alias, key); 216 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
|
/libcore/luni/src/main/java/java/security/ |
H A D | IdentityScope.java | 63 * if an identity with the same key already exists. 138 * Returns the {@code Identity} which is associated with the specified key 139 * or {@code null} if no {@code Identity} associated with the specified key 142 * @param key 144 * @return the {@code Identity} associated with the specified key or {@code 147 public abstract Identity getIdentity(PublicKey key); argument 156 * with the same key already exists.
|
H A D | KeyStore.java | 42 * The type of the system key store can be changed by setting the {@code 79 * the concrete key store. 231 * Returns the key with the given alias, using the password to recover the 232 * key from the store. 237 * the password used to recover the key. 238 * @return the key with the specified alias, or {@code null} if the 243 * if the algorithm for recovering the key is not available. 245 * if the key can not be recovered. 308 * Associates the given alias with the key, password and certificate chain. 313 * the alias for the key 328 setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 365 setKeyEntry(String alias, byte[] key, Certificate[] chain) argument [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
H A D | MacSpi.java | 48 * Initializes this {@code MacSpi} instance with the specified key and 51 * @param key 52 * the key to initialize this algorithm. 56 * if the specified key cannot be used to initialize this 62 protected abstract void engineInit(Key key, AlgorithmParameterSpec params) argument
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | DateIntervalFormat.java | 57 protected void entryEvicted(String key, Long value) { argument 107 String key = skeleton + "\t" + localeName + "\t" + tzName; 108 Long formatter = CACHED_FORMATTERS.get(key); 113 CACHED_FORMATTERS.put(key, address);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | SecretKeyFactoryTest.java | 72 // PBEKeySpecs constructor without key length 198 SecretKey key = factory.generateSecret(ks); 199 assertTrue(Arrays.equals(expected, key.getEncoded())); 208 SecretKey key = factory.generateSecret(ks); 209 assertTrue(Arrays.equals(expected, key.getEncoded()));
|
/libcore/luni/src/main/java/java/util/jar/ |
H A D | JarVerifier.java | 266 String key = it.next(); 267 if (key.endsWith(".DSA") || key.endsWith(".RSA") || key.endsWith(".EC")) { 268 verifyCertificate(key);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | ProviderTest.java | 173 String key = (String)e.getKey(); 175 if (key.equals("MessageDigest.SHA-1") && val.equals("SomeClassName")) { 178 if (key.equals("Alg.Alias.MessageDigest.SHA1") && val.equals("SHA-1")) { 181 if (key.equals("MessageDigest.abc") && val.equals("SomeClassName")) { 184 if (key.equals("Provider.id className") && val.equals(p.getClass().getName())) { 187 if (key.equals("Provider.id name") && val.equals("MyProvider")) { 190 if (key.equals("MessageDigest.SHA-256") && val.equals("aaa.bbb.ccc.ddd")) { 193 if (key.equals("Provider.id version") && val.equals("1.0")) { 196 if (key.equals("Provider.id info") && val.equals("Provider for testing")) {
|
/libcore/benchmarks/libs/ |
H A D | caliper.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ... |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ScheduledThreadPoolExecutor.java | 844 private void siftUp(int k, RunnableScheduledFuture<?> key) { argument 848 if (key.compareTo(e) >= 0) 854 queue[k] = key; 855 setIndex(key, k); 862 private void siftDown(int k, RunnableScheduledFuture<?> key) { argument 870 if (key.compareTo(c) <= 0) 876 queue[k] = key; 877 setIndex(key, k);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherOutputStream1Test.java | 199 Key key = kg.generateKey(); 202 c.init(Cipher.ENCRYPT_MODE, key);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/ |
H A D | SubjectPublicKeyInfoTest.java | 129 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) argument 135 protected Key engineTranslateKey(Key key) throws InvalidKeyException { argument
|