/libcore/support/src/test/java/tests/support/ |
D | Support_UnmodifiableMapTest.java | 87 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 …]
|
D | Support_MapTest2.java | 44 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/ |
D | AbstractMapTest.java | 78 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());
|
D | HashMapTest.java | 149 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()
|
D | IdentityHashMapTest.java | 143 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()
|
D | WeakHashMapTest.java | 304 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()
|
D | LinkedHashMapTest.java | 251 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 …]
|
D | HashtableTest.java | 466 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/ |
D | ListResourceBundle.java | 52 Iterator<String> local = table.keySet().iterator(); in getKeys() 94 Iterator<String> it = table.keySet().iterator(); in getKeys() 137 return table.keySet();
|
D | AbstractMap.java | 37 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()
|
D | Map.java | 171 public Set<K> keySet(); in keySet() method
|
D | EnumMap.java | 442 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;
|
D | TreeSet.java | 217 return backingMap.keySet().iterator(); in iterator() 478 Iterator<E> it = backingMap.keySet().iterator(); in writeObject()
|
D | WeakHashMap.java | 351 public Set<K> keySet() { 353 if (keySet == null) { 354 keySet = new AbstractSet<K>() { 389 return keySet;
|
D | IdentityHashMap.java | 609 public Set<K> keySet() { 610 if (keySet == null) { 611 keySet = new AbstractSet<K>() { 647 return keySet;
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldLinkedHashMapTest.java | 35 Iterator iterator = map.keySet().iterator(); in testLinkedHashMap() 51 iterator = map.keySet().iterator(); in testLinkedHashMap()
|
D | CollectionsTest.java | 44 testEmptyIterator(Collections.emptyMap().keySet().iterator()); in testEmptyIterator()
|
D | OldTreeMapTest.java | 252 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/ |
D | Security2Test.java | 44 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()
|
D | Provider2Test.java | 101 provTest.keySet().add("another property key"); in test_keySet()
|
D | MessageDigest2Test.java | 347 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/ |
D | ConcurrentNavigableMap.java | 125 NavigableSet<K> keySet(); in keySet() method
|
/libcore/luni/src/main/java/java/util/jar/ |
D | Manifest.java | 314 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()
|
D | Attributes.java | 279 public Set<Object> keySet() { in keySet() method in Attributes 280 return map.keySet(); in keySet()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldRuntimeTest.java | 293 Object [] keySet = System.getenv().keySet().toArray(); in getEnv() local 296 envp[i] = keySet[i] + "=" + valueSet[i]; in getEnv()
|