Searched defs:hm (Results 1 - 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
H A DOldMapEntryTest.java29 HashMap hm = null; field in class:OldMapEntryTest
33 assertTrue(hm.containsKey(me.getKey()));
34 hm.clear();
44 assertTrue(hm.containsValue(me.getValue()));
45 hm.clear();
79 hm.clear();
102 hm = new HashMap();
104 hm.put(new Integer(1), "one");
105 hm.put(new Integer(2), "two");
107 i = hm
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DIdentityHashMap2Test.java46 private IdentityHashMap hm; field in class:IdentityHashMap2Test
96 assertTrue("Failed to construct correct IdentityHashMap", hm
118 hm.clear();
119 assertEquals("Clear failed to reset size", 0, hm.size());
122 hm.get(objArray2[i]));
131 IdentityHashMap hm2 = (IdentityHashMap) hm.clone();
132 assertTrue("Clone answered equivalent IdentityHashMap", hm2 != hm);
134 assertTrue("Clone answered unequal IdentityHashMap", hm
190 hm.put(a, new Object());
191 assertTrue(hm
[all...]
H A DIdentityHashMapTest.java53 IdentityHashMap hm; field in class:IdentityHashMapTest
102 assertTrue("Failed to construct correct IdentityHashMap", hm
122 hm.clear();
123 assertEquals("Clear failed to reset size", 0, hm.size());
126 hm.get(objArray2[i]));
135 IdentityHashMap hm2 = (IdentityHashMap) hm.clone();
136 assertTrue("Clone answered equivalent IdentityHashMap", hm2 != hm);
138 assertTrue("Clone answered unequal IdentityHashMap", hm
171 assertTrue("Returned false for valid key", hm
173 assertTrue("Returned true for copy of valid key", !hm
[all...]
H A DLinkedHashMapTest.java38 LinkedHashMap hm; field in class:LinkedHashMapTest
127 assertTrue("Failed to construct correct LinkedHashMap", hm
138 hm.get("T"));
139 hm.put("T", "HELLO");
140 assertEquals("Get returned incorecct value for existing key", "HELLO", hm.get("T")
156 hm.put("KEY", "VALUE");
158 "VALUE", hm.get("KEY"));
190 hm2.putAll(hm);
221 Set s = hm.entrySet();
223 assertTrue("Returned set of incorrect size", hm
[all...]
H A DHashMapTest.java90 HashMap hm; field in class:HashMapTest
159 assertTrue("Failed to construct correct HashMap", hm
163 hm = new HashMap(mockMap);
164 assertEquals(hm, mockMap);
171 hm.clear();
172 assertEquals("Clear failed to reset size", 0, hm.size());
175 hm.get(objArray2[i]));
183 assertEquals("Failed to reset size on large integer map", 0, hm.size());
194 HashMap hm2 = (HashMap) hm.clone();
195 assertTrue("Clone answered equivalent HashMap", hm2 != hm);
[all...]
H A DCollectionsTest.java70 private HashMap hm; field in class:CollectionsTest
1742 Map c = Collections.unmodifiableMap(hm);
1743 assertTrue("Returned map is of incorrect size", c.size() == hm.size());
1744 Iterator iterator = hm.keySet().iterator();
1748 hm.get(x)));
1859 tm.putAll(hm);
1862 Iterator i = hm.keySet().iterator();
2206 hm = new HashMap();
2214 hm.put(objArray[i].toString(), objArray[i]);
/libcore/luni/src/main/java/java/util/
H A DIdentityHashMap.java144 IdentityHashMap<KT, VT> hm) {
145 associatedMap = hm;
147 expectedModCount = hm.modCount;
200 public IdentityHashMapEntrySet(IdentityHashMap<KT, VT> hm) { argument
201 associatedMap = hm;
143 IdentityHashMapIterator(MapEntry.Type<E, KT, VT> value, IdentityHashMap<KT, VT> hm) argument

Completed in 202 milliseconds