Searched refs:key (Results 101 - 125 of 300) sorted by relevance

1234567891011>>

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyMacSpi.java47 protected void engineInit(Key key, AlgorithmParameterSpec params) argument
50 if (!(key instanceof SecretKeySpec)) {
51 throw new IllegalArgumentException("params is null and key is SecretKeySpec");
H A DMyKeyAgreementSpi.java45 protected Key engineDoPhase(Key key, boolean lastPhase) argument
75 protected void engineInit(Key key, SecureRandom random) argument
81 protected void engineInit(Key key, AlgorithmParameterSpec params, argument
/libcore/luni/src/test/java/tests/security/interfaces/
H A DDSAPrivateKeyTest.java37 DSAPrivateKey key = (DSAPrivateKey) keyPair.getPrivate();
38 assertNotNull("Invalid X value", key.getX());
/libcore/ojluni/src/main/java/java/lang/
H A DThreadLocal.java302 * its main ref field as the key (which is always a
304 * == null) mean that the key is no longer referenced, so the
389 ThreadLocal<Object> key = (ThreadLocal<Object>) e.get();
390 if (key != null) {
391 Object value = key.childValue(e.value);
392 Entry c = new Entry(key, value);
393 int h = key.threadLocalHashCode & (len - 1);
404 * Get the entry associated with key. This method
406 * key. It otherwise relays to getEntryAfterMiss. This is
410 * @param key th
413 getEntry(ThreadLocal<?> key) argument
431 getEntryAfterMiss(ThreadLocal<?> key, int i, Entry e) argument
454 set(ThreadLocal<?> key, Object value) argument
490 remove(ThreadLocal<?> key) argument
520 replaceStaleEntry(ThreadLocal<?> key, Object value, int staleSlot) argument
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DConcurrentSkipListMapTest.java84 * containsKey returns true for contained key
102 * get returns the correct element at the given key,
123 * firstKey returns first key
131 * lastKey returns last key
198 * descending iterator of key set is inverse ordered
351 * putAll adds all key-value pairs from the given map
366 * putIfAbsent works when the given key is not present
375 * putIfAbsent does not add the pair if the key is already present
383 * replace fails when the given key is not present
392 * replace succeeds if the key i
1074 put(NavigableMap<Integer, Integer> map, int key) argument
1079 remove(NavigableMap<Integer, Integer> map, int key) argument
[all...]
H A DTreeMapTest.java83 * containsKey returns true for contained key
101 * get returns the correct element at the given key,
122 * firstKey returns first key
130 * lastKey returns last key
197 * descending iterator of key set is inverse ordered
334 * putAll adds all key-value pairs from the given map
349 * remove removes the correct key-value pair from the map
818 int key = rnd.nextInt(limit);
819 put(map, key);
842 int key
879 put(NavigableMap<Integer, Integer> map, int key) argument
884 remove(NavigableMap<Integer, Integer> map, int key) argument
[all...]
/libcore/luni/src/test/java/tests/security/spec/
H A DEncodedKeySpec2Test.java48 // check public key encoding
50 Key key = fact.generatePublic(new X509EncodedKeySpec(encoded));
52 assertTrue("public key encodings were different",
53 isEqual(key, keys.getPublic()));
55 // check private key encoding
57 key = fact.generatePrivate(new PKCS8EncodedKeySpec(encoded));
59 assertTrue("private key encodings were different",
60 isEqual(key, keys.getPrivate()));
/libcore/ojluni/src/main/java/java/text/
H A DFormat.java188 * Each attribute key of the AttributedCharacterIterator will be of type
192 * key is also used as the attribute value.
302 * <code>string</code> and additional key/value pair <code>key</code>,
306 * @param key Key for AttributedCharacterIterator
307 * @param value Value associated with key in AttributedCharacterIterator
311 String string, AttributedCharacterIterator.Attribute key,
315 as.addAttribute(key, value);
321 * <code>iterator</code> and the additional attribute <code>key</code>
325 * @param key Ke
310 createAttributedCharacterIterator( String string, AttributedCharacterIterator.Attribute key, Object value) argument
329 createAttributedCharacterIterator( AttributedCharacterIterator iterator, AttributedCharacterIterator.Attribute key, Object value) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/
H A DX509Factory.java218 Object key = new Cache.EqualByteArray(encoding);
219 return cache.get(key);
230 Object key = new Cache.EqualByteArray(encoding);
231 cache.put(key, value);
/libcore/luni/src/main/java/libcore/icu/
H A DDateTimeFormat.java46 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone();
48 DateFormat formatter = CACHED_FORMATTERS.get(key);
52 CACHED_FORMATTERS.put(key, formatter);
/libcore/luni/src/main/java/libcore/net/http/
H A DResponseUtils.java77 final String key = components[0].trim().toLowerCase();
79 if (key.isEmpty() || value.isEmpty()) {
83 parameters.put(key, value);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherPBEThread.java44 SecretKey key = skf.generateSecret(keySpec);
52 cip.init(Cipher.ENCRYPT_MODE, key, parSpec);
55 cip.init(Cipher.DECRYPT_MODE, key, parSpec);
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractSelector.java58 * cancelled-key set and for removing a key from its channel's key set, and
146 * Retrieves this selector's cancelled-key set.
150 * @return The cancelled-key set
170 * The initial attachment for the resulting key
172 * @return A new key representing the registration of the given channel
179 * Removes the given key from its channel's key set.
184 * @param key
187 deregister(AbstractSelectionKey key) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleExtensions.java62 private LocaleExtensions(String id, Character key, Extension value) { argument
64 this.extensionMap = Collections.singletonMap(key, value);
87 char key = LocaleUtils.toLower(ext.getKey().value());
90 if (LanguageTag.isPrivateusePrefixChar(key)) {
98 map.put(key, new Extension(key, LocaleUtils.toLowerString(value)));
116 String key = LocaleUtils.toLowerString(kwd.getKey().value());
118 ukmap.put(key, type);
143 public Extension getExtension(Character key) { argument
144 return extensionMap.get(LocaleUtils.toLower(key));
147 getExtensionValue(Character key) argument
[all...]
H A DUnicodeLocaleExtension.java53 private UnicodeLocaleExtension(String key, String value) { argument
54 super(SINGLETON, key + "-" + value);
56 keywords = Collections.singletonMap(key, value);
78 String key = keyword.getKey();
81 sb.append(LanguageTag.SEP).append(key);
H A DInternalLocaleBuilder.java132 public InternalLocaleBuilder setUnicodeLocaleKeyword(String key, String type) throws LocaleSyntaxException { argument
133 if (!UnicodeLocaleExtension.isKey(key)) {
134 throw new LocaleSyntaxException("Ill-formed Unicode locale keyword key: " + key);
137 CaseInsensitiveString cikey = new CaseInsensitiveString(key);
140 // null type is used for remove the key
168 // validate key
171 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton);
175 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton);
178 if (UnicodeLocaleExtension.isSingletonChar(key
[all...]
/libcore/support/src/test/java/tests/security/
H A DAlgorithmParameterSymmetricHelper.java54 Key key = generator.generateKey();
62 cipher.init(Cipher.ENCRYPT_MODE, key, parameters);
65 cipher.init(Cipher.DECRYPT_MODE, key, parameters);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DPreferencesTest.java281 public String get(String key, String deflt) { argument
286 public boolean getBoolean(String key, boolean deflt) { argument
291 public byte[] getByteArray(String key, byte[] deflt) { argument
296 public double getDouble(String key, double deflt) { argument
301 public float getFloat(String key, float deflt) { argument
306 public int getInt(String key, int deflt) { argument
311 public long getLong(String key, long deflt) { argument
346 public void put(String key, String value) { argument
351 public void putBoolean(String key, boolean value) { argument
356 public void putByteArray(String key, byt argument
361 putDouble(String key, double value) argument
366 putFloat(String key, float value) argument
371 putInt(String key, int value) argument
376 putLong(String key, long value) argument
381 remove(String key) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DEnumMap.java48 * <p>Null keys are not permitted. Attempts to insert a null key will
50 * presence of a null key or to remove one will, however, function properly.
131 * Creates an empty enum map with the specified key type.
133 * @param keyType the class object of the key type for this enum map
143 * Creates an enum map with the same key type as the specified enum
161 * enum map's key type).
188 * Returns the number of key-value mappings in this map.
190 * @return the number of key-value mappings in this map
215 * key.
217 * @param key th
221 containsKey(Object key) argument
225 containsMapping(Object key, Object value) argument
245 get(Object key) argument
266 put(K key, V value) argument
286 remove(Object key) argument
297 removeMapping(Object key, Object value) argument
313 isValidKey(Object key) argument
742 typeCheck(K key) argument
[all...]
H A DResourceBundle.java125 * Resource bundles contain key/value pairs. The keys uniquely
128 * two key/value pairs:
159 * The getter methods all require the key as an argument and return
180 * manages its resource as a list of key/value pairs.
231 * key with the same value (as for the okKey below).
236 * public Object handleGetObject(String key) {
237 * if (key.equals("okKey")) return "Ok";
238 * if (key.equals("cancelKey")) return "Cancel";
255 * public Object handleGetObject(String key) {
257 * if (key
401 getString(String key) argument
418 getStringArray(String key) argument
435 getObject(String key) argument
722 LoaderReference(ClassLoader referent, ReferenceQueue<Object> q, CacheKey key) argument
740 BundleReference(ResourceBundle referent, ReferenceQueue<Object> q, CacheKey key) argument
1775 handleGetObject(String key) argument
1798 containsKey(String key) argument
[all...]
H A DCollections.java238 * @param key the key to be searched for.
239 * @return the index of the search key, if it is contained in the list;
242 * key would be inserted into the list: the index of the first
243 * element greater than the key, or <tt>list.size()</tt> if all
244 * elements in the list are less than the specified key. Note
246 * and only if the key is found.
249 * integers), or the search key is not mutually comparable
253 int binarySearch(List<? extends Comparable<? super T>> list, T key) { argument
255 return Collections.indexedBinarySearch(list, key);
261 indexedBinarySearch(List<? extends Comparable<? super T>> list, T key) argument
281 iteratorBinarySearch(List<? extends Comparable<? super T>> list, T key) argument
357 binarySearch(List<? extends T> list, T key, Comparator<? super T> c) argument
367 indexedBinarySearch(List<? extends T> l, T key, Comparator<? super T> c) argument
386 iteratorBinarySearch(List<? extends T> l, T key, Comparator<? super T> c) argument
1494 containsKey(Object key) argument
1496 get(Object key) argument
1498 put(K key, V value) argument
1501 remove(Object key) argument
1556 putIfAbsent(K key, V value) argument
1561 remove(Object key, Object value) argument
1566 replace(K key, V oldValue, V newValue) argument
1571 replace(K key, V value) argument
1576 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
1581 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1587 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
1593 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
1920 lowerKey(K key) argument
1921 floorKey(K key) argument
1922 ceilingKey(K key) argument
1923 higherKey(K key) argument
1926 lowerEntry(K key) argument
1934 floorEntry(K key) argument
1942 ceilingEntry(K key) argument
1951 higherEntry(K key) argument
2621 containsKey(Object key) argument
2627 get(Object key) argument
2631 put(K key, V value) argument
2634 remove(Object key) argument
2698 putIfAbsent(K key, V value) argument
2702 remove(Object key, Object value) argument
2706 replace(K key, V oldValue, V newValue) argument
2710 replace(K key, V value) argument
2714 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
2719 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
2724 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
2729 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
2908 lowerEntry(K key) argument
2910 lowerKey(K key) argument
2912 floorEntry(K key) argument
2914 floorKey(K key) argument
2916 ceilingEntry(K key) argument
2918 ceilingKey(K key) argument
2920 higherEntry(K key) argument
2922 higherKey(K key) argument
3617 typeCheck(Object key, Object value) argument
3635 badKeyMsg(Object key) argument
3653 containsKey(Object key) argument
3655 get(Object key) argument
3656 remove(Object key) argument
3664 put(K key, V value) argument
3710 putIfAbsent(K key, V value) argument
3716 remove(Object key, Object value) argument
3721 replace(K key, V oldValue, V newValue) argument
3727 replace(K key, V value) argument
3733 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
3744 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
3750 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
3756 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
4097 lowerEntry(K key) argument
4104 lowerKey(K key) argument
4106 floorEntry(K key) argument
4113 floorKey(K key) argument
4115 ceilingEntry(K key) argument
4122 ceilingKey(K key) argument
4124 higherEntry(K key) argument
4131 higherKey(K key) argument
4624 containsKey(Object key) argument
4626 get(Object key) argument
4655 putIfAbsent(K key, V value) argument
4660 remove(Object key, Object value) argument
4665 replace(K key, V oldValue, V newValue) argument
4670 replace(K key, V value) argument
4675 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
4681 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
4687 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
4693 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
4901 singletonMap(K key, V value) argument
4916 SingletonMap(K key, V value) argument
4923 containsKey(Object key) argument
4925 get(Object key) argument
4952 getOrDefault(Object key, V defaultValue) argument
4967 putIfAbsent(K key, V value) argument
4972 remove(Object key, Object value) argument
4977 replace(K key, V oldValue, V newValue) argument
4982 replace(K key, V value) argument
4987 computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) argument
4993 computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
4999 compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) argument
5005 merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMacSpiTest.java57 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException { argument
58 super.engineInit(key, params);
91 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException { argument
92 super.engineInit(key, params);
130 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException { argument
131 super.engineInit(key, params);
238 protected void engineInit(Key key, AlgorithmParameterSpec params) argument
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxWatchService.java286 LinuxWatchKey key = wdToKey.get(wd);
287 if (key == null) {
288 key = new LinuxWatchKey(dir, watcher, ifd, wd);
289 wdToKey.put(wd, key);
291 return key;
294 // cancel single key
297 LinuxWatchKey key = (LinuxWatchKey)obj;
298 if (key.isValid()) {
299 wdToKey.remove(key.descriptor());
300 key
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSelectorTest.java105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT);
113 assertEquals(key,key2);
164 // add one key into selectedKeys
353 * This test cancels a key while selecting to verify that the cancelled
354 * key set is processed both before and after the call to the underlying
363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ);
368 // make sure to call key.cancel() while the main thread is selecting
370 key.cancel();
371 assertFalse(key.isValid());
380 assertTrue(key
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DRefSortedMap.java43 final K key; field in class:RefSortedMap.MapEntry
46 MapEntry(K key, V value) { argument
47 this.key = key;
52 return key;
188 public SortedMap<K, V> headMap(K key) { argument
189 if (!isInRange(key)) {
192 return new SubMap(hasStart, start, true, key);
221 public SortedMap<K, V> tailMap(K key) { argument
222 if (!isInRange(key)) {
228 isInRange(K key) argument
278 headMap(K key) argument
294 tailMap(K key) argument
[all...]

Completed in 527 milliseconds

1234567891011>>