Home
last modified time | relevance | path

Searched refs:IdentityHashMap (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/src/test/java/util/IdentityHashMap/
DCapacity.java24 package test.java.util.IdentityHashMap;
29 import java.util.IdentityHashMap;
59 tableField = IdentityHashMap.class.getDeclaredField("table");
80 static int capacity(IdentityHashMap<?,?> map) { in capacity() argument
88 static void assertCapacity(IdentityHashMap<?,?> map, in assertCapacity() argument
93 static void growUsingPut(IdentityHashMap<Object,Object> map, in growUsingPut()
99 static void growUsingPutAll(IdentityHashMap<Object,Object> map, in growUsingPutAll()
101 IdentityHashMap<Object,Object> other = new IdentityHashMap<>(); in growUsingPutAll()
106 static void growUsingRepeatedPutAll(IdentityHashMap<Object,Object> map, in growUsingRepeatedPutAll()
121 IdentityHashMap<Object,Object> m = new IdentityHashMap<>(size); in canInsertExpectedItemsWithoutResizing()
[all …]
DToArray.java31 package test.java.util.IdentityHashMap;
34 import java.util.IdentityHashMap;
46 Map<String,String> mm = new IdentityHashMap<>(); in main()
60 Map m = new IdentityHashMap(); in main()
74 IdentityHashMap<Integer,Integer> map = new IdentityHashMap<>(); in main()
DEntrySetIteratorRemoveInvalidatesEntry.java35 package test.java.util.IdentityHashMap;
37 import java.util.IdentityHashMap;
44 final IdentityHashMap<String, String> identityHashMap = in main()
45 new IdentityHashMap<>(); in main()
DDistinctEntrySetElements.java35 package test.java.util.IdentityHashMap;
37 import java.util.IdentityHashMap;
45 final IdentityHashMap<String, String> identityHashMap = in main()
46 new IdentityHashMap<>(); in main()
DToString.java31 package test.java.util.IdentityHashMap;
33 import java.util.IdentityHashMap;
41 Map<String, String> m = new IdentityHashMap<>(); in main()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DIdentityHashMap2Test.java28 import java.util.IdentityHashMap;
46 private IdentityHashMap hm;
59 new Support_MapTest2(new IdentityHashMap()).runTest(); in test_Constructor()
61 IdentityHashMap hm2 = new IdentityHashMap(); in test_Constructor()
70 IdentityHashMap hm2 = new IdentityHashMap(5); in test_ConstructorI()
73 new IdentityHashMap(-1); in test_ConstructorI()
80 IdentityHashMap empty = new IdentityHashMap(0); in test_ConstructorI()
94 IdentityHashMap hm2 = new IdentityHashMap(myMap); in test_ConstructorLjava_util_Map()
100 hm2 = new IdentityHashMap(mockMap); in test_ConstructorLjava_util_Map()
106 new IdentityHashMap(Integer.MAX_VALUE); in test_IdentityHashMap_Constructor_BigSize()
[all …]
DIdentityHashMapTest.java33 import java.util.IdentityHashMap;
57 IdentityHashMap hm;
70 new Support_MapTest2(new IdentityHashMap()).runTest(); in test_Constructor()
72 IdentityHashMap hm2 = new IdentityHashMap(); in test_Constructor()
81 IdentityHashMap hm2 = new IdentityHashMap(5); in test_ConstructorI()
84 new IdentityHashMap(-1); in test_ConstructorI()
90 IdentityHashMap empty = new IdentityHashMap(0); in test_ConstructorI()
104 IdentityHashMap hm2 = new IdentityHashMap(myMap); in test_ConstructorLjava_util_Map()
110 hm2 = new IdentityHashMap(mockMap); in test_ConstructorLjava_util_Map()
114 new IdentityHashMap(null); in test_ConstructorLjava_util_Map()
[all …]
DAbstractMapTest.java28 import java.util.IdentityHashMap;
86 AbstractMap map4 = new IdentityHashMap(1); in test_keySet()
110 AbstractMap map4 = new IdentityHashMap(1); in test_removeLjava_lang_Object()
238 AbstractMap map4 = new IdentityHashMap(1); in test_values()
/libcore/luni/src/test/java/libcore/java/util/
DEvilMapTest.java23 import java.util.IdentityHashMap;
93 IdentityHashMap<String, String> map = new IdentityHashMap<String, String>(evil); in test_48055_IdentityHashMap()
95 IdentityHashMap<String, String> map2 = new IdentityHashMap<String, String>(); in test_48055_IdentityHashMap()
/libcore/ojluni/src/main/java/java/util/
DIdentityHashMap.java143 public class IdentityHashMap<K,V> class
214 public IdentityHashMap() { in IdentityHashMap() method in IdentityHashMap
227 public IdentityHashMap(int expectedMaxSize) { in IdentityHashMap() method in IdentityHashMap
269 public IdentityHashMap(Map<? extends K, ? extends V> m) { in IdentityHashMap() method in IdentityHashMap
647 } else if (o instanceof IdentityHashMap<?, ?> m) { in equals()
706 IdentityHashMap<?,?> m = (IdentityHashMap<?,?>) super.clone(); in clone()
782 if (tab != IdentityHashMap.this.table) { in remove()
783 IdentityHashMap.this.remove(key); in remove()
806 traversalTable == IdentityHashMap.this.table) { in remove()
882 if (traversalTable != IdentityHashMap.this.table) in setValue()
[all …]
/libcore/ojluni/src/test/java/util/Collections/
DCheckedIdentityMap.java35 import java.util.IdentityHashMap;
47 new IdentityHashMap<Integer, Integer>(), in testHashCode()
50 new IdentityHashMap<Integer, Integer>(), in testHashCode()
DSetFromMap.java34 import java.util.IdentityHashMap;
57 Map<String,Boolean> m = new IdentityHashMap<>(); in realMain()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DTerminatingThreadLocal.java29 import java.util.IdentityHashMap;
102 return Collections.newSetFromMap(new IdentityHashMap<>(4));
/libcore/ojluni/src/test/java/util/Map/
DGet.java34 import java.util.IdentityHashMap;
53 testMap(new IdentityHashMap<>()); in testGet()
84 boolean usesIdentity = m instanceof IdentityHashMap; in testMap()
DLockStep.java35 import java.util.IdentityHashMap;
104 new IdentityHashMap(11), in testLockStep()
DEntryHashCode.java55 new IdentityHashMap<>(),
DCollisions.java32 import java.util.IdentityHashMap;
170 assertTrue((map instanceof IdentityHashMap) || !map.entrySet().contains(t), in testEntriesIteratorRemove()
DMapWithCollisionsProviders.java30 import java.util.IdentityHashMap;
195 new IdentityHashMap<>(), keys, val)); in makeMapsMoreTypes()
DToArray.java51 new IdentityHashMap<>(), in testToArray()
/libcore/ojluni/src/test/java/util/Collection/
DIteratorAtEnd.java37 import java.util.IdentityHashMap;
160 testMap(new IdentityHashMap()); in testIdentityHashMap()
/libcore/ojluni/src/main/java/javax/crypto/
DJceSecurity.java61 new IdentityHashMap<>();
65 new IdentityHashMap<>();
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectionAndMapModifyStreamTest.java119 maps.put(IdentityHashMap.class.getName(), () -> new IdentityHashMap<>(content)); in createMaps()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java42 import java.util.IdentityHashMap;
614 Map<Class<?>, Boolean> interfaceSet = new IdentityHashMap<>(interfaces.length); in apply()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java45 import java.util.IdentityHashMap;
126 … static final IdentityHashMap<String, String> IDENTITYMAP = new IdentityHashMap<String, String>();
/libcore/ojluni/src/main/java/java/lang/
DThrowable.java680 Set<Throwable> dejaVu = Collections.newSetFromMap(new IdentityHashMap<>()); in printStackTrace()

12