Home
last modified time | relevance | path

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

12345678910

/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()
DOldMapEntryTest.java22 import java.util.HashMap;
29 HashMap hm = null;
54 class Mock_HashMap extends HashMap {
102 hm = new HashMap(); in setUp()
DEvilMapTest.java20 import java.util.HashMap;
53 HashMap<String, String> map = new HashMap<String, String>(evil); in test_48055_HashMap()
55 HashMap<String, String> map2 = new HashMap<String, String>(); in test_48055_HashMap()
/libcore/ojluni/src/main/java/java/util/
DHashSet.java95 private transient HashMap<E,Object> map;
105 map = new HashMap<>(); in HashSet()
118 map = new HashMap<>(Math.max((int) (c.size()/.75f) + 1, 16)); in HashSet()
132 map = new HashMap<>(initialCapacity, loadFactor); in HashSet()
144 map = new HashMap<>(initialCapacity); in HashSet()
256 newSet.map = (HashMap<E, Object>) map.clone(); in clone()
323 HashMap.MAXIMUM_CAPACITY); in readObject()
328 new HashMap<E,Object>(capacity, loadFactor)); in readObject()
351 return new HashMap.KeySpliterator<E,Object>(map, 0, -1, 0, 0); in spliterator()
/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.java26 import java.util.HashMap;
752 private static final Map<String, String> zidToMzone = new HashMap<>();
753 private static final Map<String, String> mzoneToZid = new HashMap<>();
754 private static final Map<String, Map<String, String>> mzoneToZidL = new HashMap<>();
755 private static final Map<String, String> aliases = new HashMap<>();
767 map = new HashMap<>();
/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/src/main/java/java/time/chrono/
DThaiBuddhistChronology.java76 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<>();
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java30 import java.util.HashMap;
199 Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size()); in setOcspResponses()
218 Map<X509Certificate, byte[]> copy = new HashMap<>(ocspResponses.size()); in getOcspResponses()
267 copy.ocspResponses = new HashMap<>(ocspResponses); in clone()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java32 import java.util.HashMap;
241 HashMap<Integer, String> value = new HashMap<Integer, String>(); in test_SubSelect()
277 HashMap<Integer, Integer> value = new HashMap<Integer, Integer>(); in test_SelectThreeTables()
309 HashMap<Integer, String> value = new HashMap<Integer, String>(); in test_SelectUnionItself()
336 HashMap<Integer, Integer> value = new HashMap<Integer, Integer>(); in test_SelectLeftOuterJoin()
369 HashMap<Integer, Integer> value = new HashMap<Integer, Integer>(); in test_SelectRightOuterJoin()
399 HashMap<Integer, Integer> values = new HashMap<Integer, Integer>(); in test_SelectGroupBy()
/libcore/ojluni/src/main/java/java/security/
DSecureClassLoader.java28 import java.util.HashMap;
52 private final HashMap<CodeSource, ProtectionDomain> pdcache =
53 new HashMap<>(11);
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestServiceLoader.java64 import java.util.HashMap;
79 Map<String, Chronology> chronos = new HashMap<>(); in test_copticServiceLoader()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DMapTest.java28 import java.util.HashMap;
46 private static final Map<Integer, String> EXPECTED = new HashMap<>();
71 map = new HashMap<>(EXPECTED); in setUp()
/libcore/luni/src/test/java/libcore/dalvik/system/
DClassLoaderTestSupport.java25 import java.util.HashMap;
39 HashMap<String, File> resourcesMap = new HashMap<>(); in setupAndCopyResources()

12345678910