/libcore/luni/src/main/java/java/nio/channels/ |
H A D | Selector.java | 27 * {@link SelectionKey} that represents the registration. The keys are also 28 * added to the selector's key set. Selection keys can be canceled so that the 31 * By invoking the {@code select} method, the key set is checked and all keys 33 * canceled keys. During the select operation, the channels registered with this 59 * {@link #wakeup()} method of this selector is called. After this, all keys 81 * Gets the set of registered keys. The set is immutable and is not thread- 84 * @return the set of registered keys. 86 public abstract Set<SelectionKey> keys(); method in class:Selector 130 * Gets the selection keys whose channels are ready for operation. The set 131 * is not thread-safe and no keys ma [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Dictionary.java | 25 * associate keys with values, such as {@code Hashtable}. 41 * @see #keys 68 * Returns an enumeration on the keys of this dictionary. 70 * @return an enumeration of the keys of this dictionary. 75 public abstract Enumeration<K> keys(); method in class:Dictionary 90 * @see #keys 112 * @see #keys
|
H A D | EnumMap.java | 26 * An {@code Map} specialized for use with {@code Enum} types as keys. 39 transient Enum[] keys; field in class:EnumMap 87 return (enumMap.keys[ordinal] == null ? 0 : enumMap.keys[ordinal] 97 return (KT) enumMap.keys[ordinal]; 111 return enumMap.put((KT) enumMap.keys[ordinal], value); 116 StringBuilder result = new StringBuilder(enumMap.keys[ordinal] 162 return type.get(new MapEntry(enumMap.keys[prePosition], 169 enumMap.remove(enumMap.keys[prePosition]); 181 new MapEntry(enumMap.keys[prePositio [all...] |
H A D | Hashtable.java | 30 * <p>Neither keys nor values can be null. (Use {@code HashMap} or {@code LinkedHashMap} if you 31 * need null keys or values.) 33 * @param <K> the type of keys maintained by this map 248 * @see #keys 355 * @see #keys 588 * Returns a set of the keys contained in this {@code Hashtable}. The set 592 * @return a set of the keys. 626 * Returns an enumeration on the keys of this {@code Hashtable} instance. 630 * @return an enumeration of the keys of this {@code Hashtable}. 635 public synchronized Enumeration<K> keys() { method in class:Hashtable [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | ExtendedKeyUsage.java | 46 private List<String> keys; field in class:ExtendedKeyUsage 60 if (keys == null) { 61 keys = (List<String>) ASN1.decode(getEncoded()); 63 return keys; 68 encoding = ASN1.encode(keys); 75 if (keys == null) { 77 keys = getExtendedKeyUsage(); 85 for (Iterator<?> it = keys.iterator(); it.hasNext();) {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherPBEThread.java | 30 CipherPBEThread(String name, int[] keys, String[] modes, String[] paddings) { argument 31 super(name, keys, modes, paddings);
|
H A D | CipherRSAThread.java | 26 CipherRSAThread(String name, int[] keys, String[] modes, String[] paddings) { argument 27 super(name, keys, modes, paddings);
|
H A D | CipherSymmetricKeyThread.java | 28 CipherSymmetricKeyThread(String name, int[] keys, String[] modes, String[] paddings) { argument 29 super(name, keys, modes, paddings);
|
H A D | CipherWrapThread.java | 26 CipherWrapThread(String name, int[] keys, String[] modes, String[] paddings) { argument 27 super(name, keys, modes, paddings);
|
H A D | CipherThread.java | 40 CipherThread(String name, int[] keys, String[] modes, String[] paddings) { argument 42 keyLengthAr = keys;
|
/libcore/support/src/test/java/tests/security/ |
H A D | DefaultKeys.java | 185 private static final HashMap<String, KeySpec> keys = new HashMap<String, KeySpec>(); field in class:DefaultKeys 187 keys.put("DH_public", new X509EncodedKeySpec(DH_public)); 188 keys.put("DH_private", new PKCS8EncodedKeySpec(DH_private)); 189 keys.put("DSA_public", new X509EncodedKeySpec(DSA_public)); 190 keys.put("DSA_private", new PKCS8EncodedKeySpec(DSA_private)); 191 keys.put("RSA_public", new X509EncodedKeySpec(RSA_public)); 192 keys.put("RSA_private", new PKCS8EncodedKeySpec(RSA_private)); 198 return factory.generatePrivate(keys.get(algorithmName + "_private")); 204 return factory.generatePublic(keys.get(algorithmName + "_public"));
|
/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | SystemScope.java | 47 private Hashtable keys = new Hashtable(); field in class:SystemScope 94 return (Identity) keys.get(key); 111 if (key != null && keys.containsKey(key)) { 117 keys.put(key, identity); 143 contains = contains || keys.containsKey(key); 144 keys.remove(key);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
H A D | MockAbstractSelector.java | 65 public Set<SelectionKey> keys() { method in class:MockAbstractSelector
|
/libcore/luni/src/main/java/java/io/ |
H A D | SerializationHandleMap.java | 28 private Object[] keys; field in class:SerializationHandleMap 45 Object[] oldKeys = keys; 48 this.keys = new Object[newSize]; 55 int index = findIndex(key, keys); 56 keys[index] = key; 63 int index = findIndex(key, keys); 64 if (keys[index] == key) { 99 int index = findIndex(_key, keys); 102 if (keys[index] != _key) { 105 index = findIndex(_key, keys); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | AbstractMapTest.java | 292 Vector keys = new Vector(); field in class:AbstractMapTest.AMT 309 Object k = keys.elementAt(index); 341 keys.add(k);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | X509KeyManagerTest.java | 32 private PrivateKey[] keys; field in class:X509KeyManagerTest 631 keys = new PrivateKey[3]; 632 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); 633 keys[1] = kf.generatePrivate(new PKCS8EncodedKeySpec(key2Bytes)); 634 keys[2] = kf.generatePrivate(new PKCS8EncodedKeySpec(key3Bytes)); 639 keyTest.setKeyEntry("clientKey_01", keys[0], PASSWORD, new X509Certificate[] {cert[0]}); 640 keyTest.setKeyEntry("clientKey_02", keys[1], PASSWORD, new X509Certificate[] {cert[0], cert[1]}); 641 keyTest.setKeyEntry("clientKey_03", keys[2], PASSWORD, new X509Certificate[] {cert[0], cert[2]}); 646 keys = new PrivateKey[1]; 647 keys[ [all...] |
H A D | HandshakeCompletedEventTest.java | 393 String keys; field in class:HandshakeCompletedEventTest.TestServer 399 public TestServer(boolean provideKeys, int clientAuth, String keys) throws Exception { argument 400 this.keys = keys; 406 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys) : null; 476 private String keys; field in class:HandshakeCompletedEventTest.TestClient 480 public TestClient(boolean provideKeys, String keys) { argument 481 this.keys = keys; 489 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys) 539 getKeyManagers(String keys) argument [all...] |
H A D | SSLSessionTest.java | 490 String keys; field in class:SSLSessionTest.TestServer 498 public TestServer(boolean provideKeys, int clientAuth, String keys) throws Exception { argument 499 this.keys = keys; 505 store = provideKeys ? getKeyStore(keys) : null; 573 private String keys; field in class:SSLSessionTest.TestClient 579 public TestClient(boolean provideKeys, String keys) { argument 580 this.keys = keys; 588 store = provideKeys ? getKeyStore(keys) 634 getKeyStore(String keys) argument [all...] |
H A D | SSLSocketTest.java | 485 String keys = useBKS ? SERVER_KEYS_BKS : SERVER_KEYS_JKS; 486 TestServer server = new TestServer(true, keys); 521 String keys; field in class:SSLSocketTest.TestServer 527 public TestServer(boolean provideKeys, String keys) { argument 528 this.keys = keys; 536 KeyManager[] keyManagers = provideKeys ? getKeyManagers(keys) : null; 589 private KeyManager[] getKeyManagers(String keys) throws Exception { argument 590 byte[] bytes = Base64.decode(keys.getBytes());
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONObject.java | 89 * <li>show up in the {@link #keys} iterator 121 * @param copyFrom a map whose keys are of type {@link String} and whose 123 * @throws NullPointerException if any of the map's keys are null. 131 * Deviate from the original by checking that keys are non-null and 652 * undefined. The order of the keys is undefined. 654 public Iterator<String> keys() { method in class:JSONObject 660 * is a view of the keys in this object. {@link Set#remove(Object)} will remove 664 * See {@link #keys()}.
|
/libcore/luni/src/main/java/java/nio/ |
H A D | SelectorImpl.java | 64 * The unmodifiable set of keys as exposed to the user. This object is used 73 * The unmodifiable set of selectable keys as seen by the user. This object 140 @Override public synchronized Set<SelectionKey> keys() { method in class:SelectorImpl 301 * Removes cancelled keys from the key set and selected key set, and 302 * unregisters the corresponding channels. Returns the number of keys
|
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 465 * Returns all preference keys stored in this node or an empty array if no 468 * @return the list of all preference keys of this node. 475 public abstract String[] keys() throws BackingStoreException; method in class:Preferences
|
H A D | XMLParser.java | 212 String[] keys = prefs.keys(); 213 String[] values = new String[keys.length]; 214 for (int i = 0; i < keys.length; i++) { 215 values[i] = prefs.get(keys[i], null); 217 exportEntries(keys, values, out); 220 private static void exportEntries(String[] keys, String[] values, argument 222 if (keys.length == 0) { 227 for (int i = 0; i < keys.length; i++) { 230 new String[] { keys[ [all...] |
H A D | AbstractPreferences.java | 289 * Returns an array of all preference keys of this node or an empty array if 293 * @return the array of all preference keys. 366 for (String key : keys()) { 512 public String[] keys() throws BackingStoreException { method in class:AbstractPreferences
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | PreferencesTest.java | 84 assertEquals(0, p.keys().length); 122 assertEquals(0, p.keys().length); 319 public String[] keys() throws BackingStoreException { method in class:PreferencesTest.MockPreferences
|