/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeMapExtendTest.java | 139 assertEquals(tm.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_Map() 158 assertEquals(subMap_default.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_SortedMap() 947 Set keySet = subMap_default.keySet(); in test_SubMap_keySet() local 948 assertFalse(keySet.isEmpty()); in test_SubMap_keySet() 949 assertEquals(9, keySet.size()); in test_SubMap_keySet() 951 keySet = subMap_startExcluded_endExcluded.entrySet(); in test_SubMap_keySet() 952 assertFalse(keySet.isEmpty()); in test_SubMap_keySet() 953 assertEquals(8, keySet.size()); in test_SubMap_keySet() 955 keySet = subMap_startExcluded_endIncluded.entrySet(); in test_SubMap_keySet() 956 assertFalse(keySet.isEmpty()); in test_SubMap_keySet() [all …]
|
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() 379 testNullsOnView(nullHostile.keySet());
|
D | SortedMapTestBase.java | 98 assertEquals(ref.keySet(), map.keySet()); in testKeySet() 99 Iterator<Integer> i = ref.keySet().iterator(); in testKeySet() 100 Iterator<Integer> j = map.keySet().iterator(); in testKeySet() 283 assertFalse(map.keySet().iterator().hasNext()); in testIsEmpty2() 325 assertEquals(ref.keySet().size(), map.keySet().size()); in testViews() 326 assertEquals(ref.keySet(), map.keySet()); in testViews() 327 compareIterators(ref.keySet(), map.keySet()); in testViews()
|
D | HashtableTest.java | 131 hashTable.put(hashTable, hashTable.keySet()); in test_HashTable_Constructor() 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() 672 Set keySet = hashTable.keySet(); in test_HashTable_remove_scenario1() local 673 hashTable.put(hashTable, keySet); in test_HashTable_remove_scenario1() [all …]
|
D | WeakHashMapTest.java | 298 Set keySet = whm.keySet(); in test_keySet() local 299 assertEquals("Incorrect number of keys returned,", 100, keySet.size()); in test_keySet() 300 Iterator it = keySet.iterator(); in test_keySet() 325 } while (keySet.size() != 99 && in test_keySet() 328 assertEquals("Incorrect number of keys returned after gc,", 99, keySet.size()); in test_keySet() 342 Iterator iter = map.keySet().iterator(); in test_keySet_hasNext() 421 map.keySet().forEach((k) -> setOutput.add(k)); in test_forEach() 422 assertEquals(map.keySet(), setOutput); in test_forEach() 441 map.keySet().forEach(null); in test_forEach_NPE() 477 map.keySet().forEach(new java.util.function.Consumer<Object>() { in test_forEach_CME() [all …]
|
D | IdentityHashMap2Test.java | 140 Set keys = map.keySet(); in test_clone() 155 Set key2 = map2.keySet(); in test_clone() 256 Set s = hm.keySet(); in test_keySet() 265 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet() 266 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet() 272 Iterator it = map.keySet().iterator(); in test_keySet() 284 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet() 290 Iterator it2 = map2.keySet().iterator(); in test_keySet() 301 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
|
D | PropertyResourceBundleTest.java | 48 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_InputStream() 55 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_InputStream() 81 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_Reader() 91 assertEquals(2, prb.keySet().size()); in test_ConstructorLjava_io_Reader()
|
D | HashMapTest.java | 208 Set keys = map.keySet(); in test_clone() 223 Set key2 = map2.keySet(); in test_clone() 304 assertTrue(hm.keySet().remove("A")); in test_removeFromViews() 357 Set s = hm.keySet(); in test_keySet() 365 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet() 366 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet() 372 Iterator it = map.keySet().iterator(); in test_keySet() 384 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet() 390 Iterator it2 = map2.keySet().iterator(); in test_keySet() 401 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet() [all …]
|
D | LinkedHashMapTest.java | 257 Set s = hm.keySet(); in test_keySet() 265 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet() 266 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet() 272 Iterator it = map.keySet().iterator(); in test_keySet() 284 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet() 290 Iterator it2 = map2.keySet().iterator(); in test_keySet() 301 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet() 380 Set keys = map.keySet(); in test_clone() 396 Set key2 = map2.keySet(); in test_clone() 592 Set s1 = lhm.keySet(); in test_ordered_keySet() [all …]
|
D | IdentityHashMapTest.java | 148 Set keys = map.keySet(); in test_clone() 163 Set key2 = map2.keySet(); in test_clone() 250 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() 595 Set keyset = map.keySet(); in test_sets() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_MapTest.java | 57 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet()); in runTest() 96 private static void testKeySet(Set<String> referenceKeySet, Set<String> keySet) { in testKeySet() argument 99 testKeySetContents(keySet); in testKeySet() 104 crossCheckOrdering(referenceKeySet, keySet, String.class); in testKeySet() 107 private static void testKeySetContents(Set<String> keySet) { in testKeySetContents() argument 109 assertTrue("should contain \"0\"", keySet.contains("0")); in testKeySetContents() 110 assertTrue("should contain \"50\"", keySet.contains("50")); in testKeySetContents() 111 assertTrue("should not contain \"100\"", !keySet.contains("100")); in testKeySetContents() 118 assertTrue("Should contain set of \"0\", \"25\", and \"99\"", keySet.containsAll(hs)); in testKeySetContents() 121 !keySet.containsAll(hs)); in testKeySetContents() [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/ojluni/src/main/java/java/io/ |
D | ExpiringCache.java | 120 Set<String> keySet = map.keySet(); in cleanup() local 122 String[] keys = new String[keySet.size()]; in cleanup() 124 for (String key: keySet) { in cleanup()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 85 Set<Object> keySet = new HashSet<Object>(); in test_entrySet() local 93 keySet.add(e.getKey()); in test_entrySet() 100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet() 101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet() 102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet() 103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet() 129 Set<?> s = a.keySet(); in test_keySet()
|
/libcore/ojluni/src/main/java/sun/util/resources/ |
D | OpenListResourceBundle.java | 97 return lookup.keySet(); in handleKeySet() 101 public Set<String> keySet() { in keySet() method in OpenListResourceBundle 108 ks.addAll(parent.keySet()); in keySet()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | GroupByOpTest.java | 71 assertEquals(2, m.keySet().size()); in testBypassCollect() 87 assertEquals(2, result.keySet().size()); in testGroupBy() 147 assertEquals(result.keySet().size(), md.expectedSize); in testOps() 160 if (!Objects.equals(a.keySet(), b.keySet())) { in multiMapEquals() 164 for (K k : a.keySet()) { in multiMapEquals()
|
/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()
|
/libcore/ojluni/src/main/java/java/util/ |
D | PropertyResourceBundle.java | 181 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys() 195 return lookup.keySet(); in handleKeySet()
|
D | ListResourceBundle.java | 153 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys() 170 return lookup.keySet(); in handleKeySet()
|
D | AbstractMap.java | 327 transient Set<K> keySet; field in AbstractMap 346 public Set<K> keySet() { in keySet() method in AbstractMap 347 Set<K> ks = keySet; in keySet() 384 keySet = ks; in keySet() 574 result.keySet = null; in clone()
|
/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()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubMapTest.java | 161 Set s = map.keySet(); in testKeySet() 175 Set s = map.keySet(); in testKeySetOrder() 468 Iterator i = sm.keySet().iterator(); 475 Iterator j = sm.keySet().iterator(); 499 Iterator i = sm.keySet().iterator(); 504 Iterator j = sm.keySet().iterator(); 526 Iterator i = sm.keySet().iterator(); 552 Iterator i = sm.keySet().iterator(); 671 Set s = map.keySet(); 685 Set s = map.keySet(); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 162 Set s = map.keySet(); in testKeySet() 176 Set s = map.keySet(); in testKeySetOrder() 206 Set s = map.keySet(); 633 Iterator i = sm.keySet().iterator(); 640 Iterator j = sm.keySet().iterator(); 664 Iterator i = sm.keySet().iterator(); 669 Iterator j = sm.keySet().iterator(); 691 Iterator i = sm.keySet().iterator(); 717 Iterator i = sm.keySet().iterator(); 836 Set s = map.keySet(); [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TreeSubMapTest.java | 184 Set s = map.keySet(); in testKeySet() 198 Set s = map.keySet(); in testKeySetOrder() 491 Iterator i = sm.keySet().iterator(); 498 Iterator j = sm.keySet().iterator(); 522 Iterator i = sm.keySet().iterator(); 527 Iterator j = sm.keySet().iterator(); 549 Iterator i = sm.keySet().iterator(); 575 Iterator i = sm.keySet().iterator(); 694 Set s = map.keySet(); 708 Set s = map.keySet(); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 185 Set s = map.keySet(); in testKeySet() 199 Set s = map.keySet(); in testKeySetOrder() 229 Set s = map.keySet(); 656 Iterator i = sm.keySet().iterator(); 663 Iterator j = sm.keySet().iterator(); 687 Iterator i = sm.keySet().iterator(); 692 Iterator j = sm.keySet().iterator(); 714 Iterator i = sm.keySet().iterator(); 740 Iterator i = sm.keySet().iterator(); 859 Set s = map.keySet(); [all …]
|