Home
last modified time | relevance | path

Searched refs:keySet (Results 1 – 25 of 61) sorted by relevance

123

/libcore/support/src/test/java/tests/support/
DSupport_UnmodifiableMapTest.java87 Set<?> keySet = map.keySet(); in runTest() local
88 t_KeySet(keySet); in runTest()
100 void t_KeySet(Set<?> keySet) { in t_KeySet() argument
105 keySet.contains("0")); in t_KeySet()
107 keySet.contains("50")); in t_KeySet()
110 !keySet.contains("100")); in t_KeySet()
119 keySet.containsAll(hs)); in t_KeySet()
123 !keySet.containsAll(hs)); in t_KeySet()
127 !keySet.isEmpty()); in t_KeySet()
130 Iterator<?> it = keySet.iterator(); in t_KeySet()
[all …]
DSupport_MapTest2.java44 assertTrue("Should not have keys", !map.keySet().iterator() in runTest()
58 assertTrue("Should not have keys", !map.keySet().iterator() in runTest()
/libcore/luni/src/test/java/tests/api/java/util/
DAbstractMapTest.java78 assertSame("HashMap(0)", map1.keySet(), map1.keySet()); in test_keySet()
81 assertSame("HashMap(10)", map2.keySet(), map2.keySet()); in test_keySet()
84 assertSame("EMPTY_MAP", map3.keySet(), map3.keySet()); in test_keySet()
87 assertSame("IdentityHashMap", map4.keySet(), map4.keySet()); in test_keySet()
90 assertSame("LinkedHashMap", map5.keySet(), map5.keySet()); in test_keySet()
93 assertSame("TreeMap", map6.keySet(), map6.keySet()); in test_keySet()
96 assertSame("WeakHashMap", map7.keySet(), map7.keySet()); in test_keySet()
291 testNullsOnView(nullHostile.keySet());
DHashMapTest.java149 Set keys = map.keySet(); in test_clone()
164 Set key2 = map2.keySet(); in test_clone()
241 assertTrue(hm.keySet().remove("A")); in test_removeFromViews()
293 Set s = hm.keySet(); in test_keySet()
301 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
302 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
308 Iterator it = map.keySet().iterator(); in test_keySet()
320 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
326 Iterator it2 = map2.keySet().iterator(); in test_keySet()
337 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
DIdentityHashMapTest.java143 Set keys = map.keySet(); in test_clone()
158 Set key2 = map2.keySet(); in test_clone()
245 Set s = hm.keySet(); in test_keySet()
254 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
255 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
261 Iterator it = map.keySet().iterator(); in test_keySet()
273 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
279 Iterator it2 = map2.keySet().iterator(); in test_keySet()
290 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
DWeakHashMapTest.java304 Set keySet = whm.keySet(); in test_keySet() local
305 assertEquals("Incorrect number of keys returned,", 100, keySet.size()); in test_keySet()
306 Iterator it = keySet.iterator(); in test_keySet()
322 } while (count <= 5 && keySet.size() == 100); in test_keySet()
324 assertEquals("Incorrect number of keys returned after gc,", 99, keySet in test_keySet()
DLinkedHashMapTest.java251 Set s = hm.keySet(); in test_keySet()
259 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
260 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
266 Iterator it = map.keySet().iterator(); in test_keySet()
278 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
284 Iterator it2 = map2.keySet().iterator(); in test_keySet()
295 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
374 Set keys = map.keySet(); in test_clone()
390 Set key2 = map2.keySet(); in test_clone()
586 Set s1 = lhm.keySet(); in test_ordered_keySet()
[all …]
DHashtableTest.java466 Set s = ht10.keySet(); in test_keySet()
482 Iterator it = map.keySet().iterator(); in test_keySet()
493 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
499 Iterator it2 = map2.keySet().iterator(); in test_keySet()
510 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
518 Set s1 = ht10.keySet(); in test_keySet_subtest0()
533 Set set = ht.keySet(); in test_keySet_subtest0()
/libcore/luni/src/main/java/java/util/
DListResourceBundle.java52 Iterator<String> local = table.keySet().iterator(); in getKeys()
94 Iterator<String> it = table.keySet().iterator(); in getKeys()
137 return table.keySet();
DAbstractMap.java37 Set<K> keySet; field in AbstractMap
331 public Set<K> keySet() { in keySet() method in AbstractMap
332 if (keySet == null) { in keySet()
333 keySet = new AbstractSet<K>() { in keySet()
361 return keySet; in keySet()
502 result.keySet = null; in clone()
DMap.java171 public Set<K> keySet(); in keySet() method
DEnumMap.java442 Iterator<K> iter = map.keySet().iterator();
602 public Set<K> keySet() {
603 if (keySet == null) {
604 keySet = new EnumMapKeySet<K, V>(this);
606 return keySet;
DTreeSet.java217 return backingMap.keySet().iterator(); in iterator()
478 Iterator<E> it = backingMap.keySet().iterator(); in writeObject()
DWeakHashMap.java351 public Set<K> keySet() {
353 if (keySet == null) {
354 keySet = new AbstractSet<K>() {
389 return keySet;
DIdentityHashMap.java609 public Set<K> keySet() {
610 if (keySet == null) {
611 keySet = new AbstractSet<K>() {
647 return keySet;
/libcore/luni/src/test/java/libcore/java/util/
DOldLinkedHashMapTest.java35 Iterator iterator = map.keySet().iterator(); in testLinkedHashMap()
51 iterator = map.keySet().iterator(); in testLinkedHashMap()
DCollectionsTest.java44 testEmptyIterator(Collections.emptyMap().keySet().iterator()); in testEmptyIterator()
DOldTreeMapTest.java252 Set<Integer> keySet = smap.keySet(); in test_headMapLjava_lang_Object() local
253 assertEquals(0, keySet.size()); in test_headMapLjava_lang_Object()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurity2Test.java44 for (Object k : provider.keySet()) { in test_getProvidersLjava_lang_String()
75 for (String filterString : allSupported.keySet()) { in test_getProvidersLjava_lang_String()
120 Set allProviderKeys = provider.keySet(); in getProvidersCount()
124 for (Object filter : filterMap.keySet()) { in getProvidersCount()
DProvider2Test.java101 provTest.keySet().add("another property key"); in test_keySet()
DMessageDigest2Test.java347 for (Provider provider : digestAlgs.keySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
355 for (Provider provider : digestAlgs.keySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
444 for (Object key : provider.keySet()) { in getDigestAlgorithms()
/libcore/luni/src/main/java/java/util/concurrent/
DConcurrentNavigableMap.java125 NavigableSet<K> keySet(); in keySet() method
/libcore/luni/src/main/java/java/util/jar/
DManifest.java314 Iterator<?> entries = manifest.mainAttributes.keySet().iterator(); in write()
323 Iterator<String> i = manifest.getEntries().keySet().iterator(); in write()
328 Iterator<?> entries = attributes.keySet().iterator(); in write()
DAttributes.java279 public Set<Object> keySet() { in keySet() method in Attributes
280 return map.keySet(); in keySet()
/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java293 Object [] keySet = System.getenv().keySet().toArray(); in getEnv() local
296 envp[i] = keySet[i] + "=" + valueSet[i]; in getEnv()

123