Home
last modified time | relevance | path

Searched refs:HashMap (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/libcore/ojluni/annotations/hiddenapi/java/util/
DHashMap.java31 public class HashMap<K, V> extends java.util.AbstractMap<K, V> class
34 public HashMap(int initialCapacity, float loadFactor) { in HashMap() method in HashMap
38 public HashMap(int initialCapacity) { in HashMap() method in HashMap
42 public HashMap() { in HashMap() method in HashMap
46 public HashMap(java.util.Map<? extends K, ? extends V> m) { in HashMap() method in HashMap
82 final java.util.HashMap.Node<K, V> getNode(int hash, java.lang.Object key) { in getNode()
98 final java.util.HashMap.Node<K, V>[] resize() { in resize()
102 final void treeifyBin(java.util.HashMap.Node<K, V>[] tab, int hash) { in treeifyBin()
114 final java.util.HashMap.Node<K, V> removeNode( in removeNode()
217 java.util.HashMap.Node<K, V> newNode( in newNode()
[all …]
DLinkedHashMap.java31 public class LinkedHashMap<K, V> extends java.util.HashMap<K, V> implements java.util.Map<K, V> {
67 java.util.HashMap.Node<K, V> newNode(int hash, K key, V value, java.util.HashMap.Node<K, V> e) { in newNode()
71 java.util.HashMap.Node<K, V> replacementNode( in replacementNode()
72 java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next) { in replacementNode()
76 java.util.HashMap.TreeNode<K, V> newTreeNode( in newTreeNode()
77 int hash, K key, V value, java.util.HashMap.Node<K, V> next) { in newTreeNode()
81 java.util.HashMap.TreeNode<K, V> replacementTreeNode( in replacementTreeNode()
82 java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next) { in replacementTreeNode()
86 void afterNodeRemoval(java.util.HashMap.Node<K, V> e) { in afterNodeRemoval()
94 void afterNodeAccess(java.util.HashMap.Node<K, V> e) { in afterNodeAccess()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DHashMapTest.java33 import java.util.HashMap;
95 HashMap hm;
108 new Support_MapTest2(new HashMap()).runTest(); in test_Constructor()
110 HashMap hm2 = new HashMap(); in test_Constructor()
119 HashMap hm2 = new HashMap(5); in test_ConstructorI()
122 new HashMap(-1); in test_ConstructorI()
128 HashMap empty = new HashMap(0); in test_ConstructorI()
139 HashMap hm2 = new HashMap(5, (float) 0.5); in test_ConstructorIF()
142 new HashMap(0, 0); in test_ConstructorIF()
148 HashMap empty = new HashMap(0, 0.75f); in test_ConstructorIF()
[all …]
DAbstractMapTest.java25 import java.util.HashMap;
77 AbstractMap map1 = new HashMap(0); in test_keySet()
80 AbstractMap map2 = new HashMap(10); in test_keySet()
106 AbstractMap map1 = new HashMap(0); in test_removeLjava_lang_Object()
142 AbstractMap map = new HashMap(); in test_clear()
229 AbstractMap map1 = new HashMap(0); in test_values()
232 AbstractMap map2 = new HashMap(10); in test_values()
256 private Map map = new HashMap(); in test_clone()
360 Map<String, String> a = new HashMap<String, String>();
364 Map<String, String> b = new HashMap<String, String>();
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidHashMapTest.java19 import java.util.HashMap;
29 private void addItems(HashMap<String, Integer> map) { in addItems()
44 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testAdd()
49 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testClear()
57 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testRemove()
65 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testManipulate()
113 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testKeyIterator()
148 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testValueIterator()
183 HashMap<String, Integer> map = new HashMap<String, Integer>(); in testEntryIterator()
218 HashMap<String, String> map1 = new HashMap<String, String>(); in testEquals()
[all …]
DHashMapTest.java26 import java.util.HashMap;
36 MapDefaultMethodTester.test_getOrDefault(new HashMap<>(), true /*acceptsNullKey*/, in test_getOrDefault()
41 MapDefaultMethodTester.test_forEach(new HashMap<>()); in test_forEach()
45 MapDefaultMethodTester.test_putIfAbsent(new HashMap<>(), true /*acceptsNullKey*/, in test_putIfAbsent()
51 .test_remove(new HashMap<>(), true /*acceptsNullKey*/, true /*acceptsNullValue*/); in test_remove()
56 .test_replace$K$V$V(new HashMap<>(), true /*acceptsNullKey*/, in test_replace$K$V$V()
61 MapDefaultMethodTester.test_replace$K$V(new HashMap<>(), true /*acceptsNullKey*/, in test_replace$K$V()
66 MapDefaultMethodTester.test_computeIfAbsent(new HashMap<>(), true /*acceptsNullKey*/, in test_computeIfAbsent()
71 MapDefaultMethodTester.test_computeIfPresent(new HashMap<>(), true /*acceptsNullKey*/); in test_computeIfPresent()
76 .test_compute(new HashMap<>(), true /*acceptsNullKey*/); in test_compute()
[all …]
DOldTreeSetTest.java22 import java.util.HashMap;
44 HashMap hm = new HashMap(); in test_ConstructorLjava_util_Collection()
79 HashMap hm = new HashMap(); in test_addLjava_lang_Object()
101 HashMap hm = new HashMap(); in test_addAllLjava_util_Collection()
/libcore/ojluni/src/test/java/util/HashMap/
DWhiteBoxResizeTest.java24 package test.java.util.HashMap;
32 import java.util.HashMap;
59 Class<?> mClass = HashMap.class; in WhiteBoxResizeTest()
76 Object[] table(HashMap map) { in table()
82 int capacity(HashMap map) { in capacity()
104 capacityTestDefaultConstructor(new HashMap<>()); in capacityTestDefaultConstructor()
108 void capacityTestDefaultConstructor(HashMap<Integer, Integer> map) { in capacityTestDefaultConstructor()
121 List<Supplier<HashMap<Integer, Integer>>> suppliers = List.of( in capacityTestInitialCapacity()
122 () -> new HashMap<>(initialCapacity), in capacityTestInitialCapacity()
123 () -> new HashMap<>(initialCapacity, 0.75f), in capacityTestInitialCapacity()
[all …]
DHashMapCloneLeak.java33 package test.java.util.HashMap;
35 import java.util.HashMap;
43 private static HashMap<Integer, Object> makeMap() { in makeMap()
44 HashMap<Integer, Object> map = new HashMap<Integer, Object>(); in makeMap()
52 HashMap<Integer, Object> hm = makeMap(); in main()
53 hm = (HashMap<Integer, Object>)hm.clone(); in main()
DReplaceExisting.java32 package test.java.util.HashMap;
35 import java.util.HashMap;
45 HashMap<Integer,Integer> hm = prepHashMap(); in main()
51 private static HashMap<Integer,Integer> prepHashMap() { in prepHashMap()
52 HashMap<Integer,Integer> hm = new HashMap<>(16, 0.75f); in prepHashMap()
65 private static void testItr(HashMap<Integer,Integer> hm, int elemBeforePut) { in testItr()
DToString.java31 package test.java.util.HashMap;
33 import java.util.HashMap;
38 Map m = new HashMap(); in main()
DKeySetRemove.java30 package test.java.util.HashMap;
32 import java.util.HashMap;
38 Map[] m = {new HashMap(), new TreeMap()}; in main()
DSetValue.java30 package test.java.util.HashMap;
32 import java.util.HashMap;
41 Map m = new HashMap(); in main()
/libcore/ojluni/src/main/java/java/util/
DHashSet.java97 transient HashMap<E,Object> map;
107 map = new HashMap<>(); in HashSet()
120 map = HashMap.newHashMap(Math.max(c.size(), 12)); in HashSet()
138 map = new HashMap<>(initialCapacity, loadFactor); in HashSet()
154 map = new HashMap<>(initialCapacity); in HashSet()
266 newSet.map = (HashMap<E, Object>) map.clone(); in clone()
336 HashMap.MAXIMUM_CAPACITY); in readObject()
343 .checkArray(s, Map.Entry[].class, HashMap.tableSizeFor(capacity)); in readObject()
348 new HashMap<>(capacity, loadFactor)); in readObject()
371 return new HashMap.KeySpliterator<>(map, 0, -1, 0, 0); in spliterator()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DEncryptedPrivateKeyInfoData.java21 import java.util.HashMap;
1133 private static final HashMap<String, byte[]> validEPKIEncodings = new HashMap<String, byte[]>();
1135 … private static final HashMap<String, byte[]> validEPKIEncodingsNP = new HashMap<String, byte[]>();
1137 private static final HashMap<String, byte[]> validAPEncodings = new HashMap<String, byte[]>();
/libcore/benchmarks/src/benchmarks/
DVirtualVersusInterfaceBenchmark.java19 import java.util.HashMap;
28 Map<String, String> map = new HashMap<String, String>(); in timeMapPut()
34 HashMap<String, String> map = new HashMap<String, String>(); in timeHashMapPut()
DHashedCollectionsBenchmark.java19 import java.util.HashMap;
29 HashMap<String, String> map = new HashMap<String, String>(); in timeHashMapGet()
36 HashMap<String, String> map = new HashMap<String, String>(); in timeHashMapGet_Synchronized()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java32 import java.util.HashMap;
40 … private static final HashMap<String, byte []> privateKeyEncoding = new HashMap<String, byte[]>();
41 private static final HashMap<String, byte []> publicKeyEncoding = new HashMap<String, byte[]>();
DMDGoldenData.java24 import java.util.HashMap;
45 private static final HashMap<String, byte[]> goldenData = new HashMap<String, byte[]>();
/libcore/ojluni/src/test/java/time/test/java/time/format/
DZoneName.java25 import java.util.HashMap;
982 private static final Map<String, String> zidToMzone = new HashMap<>();
983 private static final Map<String, String> mzoneToZid = new HashMap<>();
984 private static final Map<String, Map<String, String>> mzoneToZidL = new HashMap<>();
985 private static final Map<String, String> aliases = new HashMap<>();
997 map = new HashMap<>();
/libcore/ojluni/src/test/java/util/LinkedHashMap/
DEmptyMapIterator.java32 import java.util.HashMap;
37 HashMap map = new HashMap(); in main()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurity2Test.java23 import java.util.HashMap;
39 Map<String, Integer> allSupported = new HashMap<String, Integer>(); in test_getProvidersLjava_lang_String()
182 Map<String, String> filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
194 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
208 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
221 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
232 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
241 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
251 filter = new HashMap<String, String>(); in test_getProvidersLjava_util_Map()
/libcore/ojluni/annotations/flagged_api/java/util/
DHashMap.annotated.java30 public class HashMap<K, V> extends java.util.AbstractMap<K,V> implements java.util.Map<K,V>, java.l… class
32 public HashMap(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in HashMap() method in HashMap
34 public HashMap(int initialCapacity) { throw new RuntimeException("Stub!"); } in HashMap() method in HashMap
36 public HashMap() { throw new RuntimeException("Stub!"); } in HashMap() method in HashMap
38 public HashMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"); } in HashMap() method in HashMap
89 public static <K, V> java.util.HashMap<K,V> newHashMap(int numMappings) { throw new RuntimeExceptio… in newHashMap()
/libcore/ojluni/src/main/java/java/time/chrono/
DThaiBuddhistChronology.java75 import java.util.HashMap;
127 private static final HashMap<String, String[]> ERA_NARROW_NAMES = new HashMap<>();
131 private static final HashMap<String, String[]> ERA_SHORT_NAMES = new HashMap<>();
135 private static final HashMap<String, String[]> ERA_FULL_NAMES = new HashMap<>();
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java32 import java.util.HashMap;
46 private static final HashMap<String, JarFile> fileCache = new HashMap<>();
49 private static final HashMap<JarFile, URL> urlCache = new HashMap<>();

12345678910>>...13