Home
last modified time | relevance | path

Searched refs:containsValue (Results 1 – 25 of 38) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidHashMapTest.java72 assertFalse(map.containsValue(new Integer(1))); in testManipulate()
92 assertTrue(map.containsValue(new Integer(0))); in testManipulate()
93 assertTrue(map.containsValue(new Integer(1))); in testManipulate()
94 assertTrue(map.containsValue(new Integer(2))); in testManipulate()
95 assertTrue(map.containsValue(new Integer(3))); in testManipulate()
107 assertFalse(map.containsValue(new Integer(1))); in testManipulate()
DOldMapEntryTest.java44 assertTrue(hm.containsValue(me.getValue())); in testGetValue()
DOldTreeMapTest.java216 && head.containsValue(new Integer("1")) in test_headMapLjava_lang_Object()
459 .containsValue(objArray[i])); in test_tailMapLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DIdentityHashMapTest.java191 .containsValue(objArray[19])); in test_containsValueLjava_lang_Object()
193 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
208 && hm.containsValue(m.getValue())); in test_entrySet()
512 assertTrue("testA can not find null value", map.containsValue(null)); in test_null_Keys_and_Values()
522 .containsValue(value)); in test_null_Keys_and_Values()
532 assertTrue("testC can not find null value", map.containsValue(null)); in test_null_Keys_and_Values()
541 .containsValue(anothervalue)); in test_null_Keys_and_Values()
551 .containsValue(anothervalue)); in test_null_Keys_and_Values()
569 .containsValue("value1")); in test_remove()
602 assertTrue("entry value not found in map", map.containsValue(entry in test_sets()
[all …]
DAbstractMapTest.java196 assertFalse(map.containsValue("v")); in test_containValue()
197 assertFalse(map.containsValue(null)); in test_containValue()
203 assertTrue(map.containsValue("v")); in test_containValue()
204 assertTrue(map.containsValue("value")); in test_containValue()
205 assertTrue(map.containsValue(null)); in test_containValue()
DIdentityHashMap2Test.java202 .containsValue(objArray[19])); in test_containsValueLjava_lang_Object()
204 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
219 && hm.containsValue(m.getValue())); in test_entrySet()
438 !myIdentityHashMap.containsValue(objArray2[0])); in test_values()
DTreeMapTest.java232 .containsValue(objArray[986])); in test_containsValueLjava_lang_Object()
234 .containsValue(new Object())); in test_containsValueLjava_lang_Object()
295 && head.containsValue(new Integer("1")) in test_headMapLjava_lang_Object()
591 assertTrue(map.containsValue(entry.getValue())); in test_subMap_Iterator()
619 .containsValue(objArray[i])); in test_tailMapLjava_lang_Object()
724 !myTreeMap.containsValue(new Integer(0))); in test_values()
754 !myTreeMap.containsValue(objArray[300])); in test_subMap_values_size()
770 !myTreeMap.containsValue(objArray[300])); in test_subMap_values_size()
786 !myTreeMap.containsValue(objArray[600])); in test_subMap_values_size()
803 !myTreeMap.containsValue(objArray[600])); in test_subMap_values_size()
[all …]
DHashtableTest.java215 assertTrue("Returned false for valid value", ht10.containsValue(e in test_containsValueLjava_lang_Object()
218 .containsValue(new Object())); in test_containsValueLjava_lang_Object()
221 ht10.containsValue(null); in test_containsValueLjava_lang_Object()
770 !myHashtable.containsValue(new Integer(0))); in test_values()
DEnumMapTest.java303 .containsValue(double1)); in test_containsValueLjava_lang_Object()
307 .containsValue(double1)); in test_containsValueLjava_lang_Object()
309 .containsValue(double2)); in test_containsValueLjava_lang_Object()
311 .containsValue(2)); in test_containsValueLjava_lang_Object()
313 .containsValue(1)); in test_containsValueLjava_lang_Object()
316 .containsValue(null)); in test_containsValueLjava_lang_Object()
319 .containsValue(null)); in test_containsValueLjava_lang_Object()
DHashMapTest.java259 .containsValue(new Integer(875))); in test_containsValueLjava_lang_Object()
261 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
276 && hm.containsValue(m.getValue())); in test_entrySet()
609 !myHashMap.containsValue(new Integer(0))); in test_values()
DCollectionsTest.java189 || (map.containsValue(firstNormalValue) && map in run()
190 .containsValue(lastNormalValue)) || (map in run()
191 .containsValue(firstOffsetValue) && map in run()
192 .containsValue(lastOffsetValue)))) in run()
1964 assertTrue(single.containsValue(value)); in test_singletonMapLjava_lang_Object()
1966 assertFalse(single.containsValue(null)); in test_singletonMapLjava_lang_Object()
1968 assertFalse(Collections.singletonMap(null, null).containsValue(value)); in test_singletonMapLjava_lang_Object()
1970 assertTrue(Collections.singletonMap(null, null).containsValue(null)); in test_singletonMapLjava_lang_Object()
2262 assertTrue("Should contain the value 0", map.containsValue(0)); in testContents()
2263 assertTrue("Should contain the value 50", map.containsValue(50)); in testContents()
[all …]
DLinkedHashMapTest.java228 && hm.containsValue(m.getValue())); in test_entrySet()
321 !myLinkedHashMap.containsValue(new Integer(0))); in test_values()
489 .containsValue(new Integer(875))); in test_containsValueLjava_lang_Object()
491 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
DSortedMapTestBase.java71 assertEquals(ref.containsValue(value), map.containsValue(value)); in testContainsValue()
/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java70 assertTrue("Should contain the value 0", map.containsValue(0)); in testContents()
71 assertTrue("Should contain the value 50", map.containsValue(50)); in testContents()
72 assertTrue("Should not contain value 100", !map.containsValue(100)); in testContents()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java76 assertTrue("Should have returned false", !a.containsValue("One")); in test_containsValueLjava_lang_Object()
77 assertTrue("Should have returned true", a.containsValue("one")); in test_containsValueLjava_lang_Object()
253 assertFalse(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
258 assertTrue(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
/libcore/luni/src/main/java/java/util/
DMap.java112 public boolean containsValue(Object value); in containsValue() method
DAbstractMap.java213 public boolean containsValue(Object value) { in containsValue() method in AbstractMap
474 return containsValue(object); in values()
DWeakHashMap.java428 return containsValue(object);
508 public boolean containsValue(Object value) {
DIdentityHashMap.java354 public boolean containsValue(Object value) {
675 return containsValue(object);
DHashtable.java309 public synchronized boolean containsValue(Object value) { in containsValue() method in Hashtable
339 return containsValue(value); in contains()
971 return containsValue(o); in contains()
/libcore/luni/src/main/java/java/util/jar/
DAttributes.java238 public boolean containsValue(Object value) { in containsValue() method in Attributes
239 return map.containsValue(value); in containsValue()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java185 assertTrue(map.containsValue("A")); in testContainsValue()
186 assertFalse(map.containsValue("Z")); in testContainsValue()
292 assertTrue(map.containsValue(((Map.Entry)(ar[i])).getValue())); in testEntrySetToArray()
503 c.containsValue(null); in testContainsValue_NullPointerException()
682 assertTrue(map.containsValue("XYZ")); // fails if write-through broken in testSetValueWriteThrough()
DConcurrentSkipListSubMapTest.java98 assertTrue(map.containsValue("A")); in testContainsValue()
99 assertFalse(map.containsValue("Z")); in testContainsValue()
516 c.containsValue(null);
772 assertTrue(map.containsValue("A"));
773 assertFalse(map.containsValue("Z"));
1190 c.containsValue(null);
DConcurrentSkipListMapTest.java76 assertTrue(map.containsValue("A")); in testContainsValue()
77 assertFalse(map.containsValue("Z")); in testContainsValue()
311 assertTrue(map.containsValue(((Map.Entry)(ar[i])).getValue()));
325 assertTrue(map.containsValue(((Map.Entry)(ar[i])).getValue()));
705 c.containsValue(null);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DSystemTest.java327 map.containsValue(null); in testEnvUnmodifiable()
334 map.containsValue(new Integer(10)); in testEnvUnmodifiable()

12