Home
last modified time | relevance | path

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

123

/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/
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()
DIdentityHashMapTest.java195 .containsValue(objArray[19])); in test_containsValueLjava_lang_Object()
197 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
212 && hm.containsValue(m.getValue())); in test_entrySet()
516 assertTrue("testA can not find null value", map.containsValue(null)); in test_null_Keys_and_Values()
526 .containsValue(value)); in test_null_Keys_and_Values()
536 assertTrue("testC can not find null value", map.containsValue(null)); in test_null_Keys_and_Values()
545 .containsValue(anothervalue)); in test_null_Keys_and_Values()
555 .containsValue(anothervalue)); in test_null_Keys_and_Values()
573 .containsValue("value1")); in test_remove()
606 assertTrue("entry value not found in map", map.containsValue(entry in test_sets()
[all …]
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.java234 .containsValue(objArray[986])); in test_containsValueLjava_lang_Object()
236 .containsValue(new Object())); in test_containsValueLjava_lang_Object()
297 && head.containsValue(new Integer("1")) in test_headMapLjava_lang_Object()
595 assertTrue(map.containsValue(entry.getValue())); in test_subMap_Iterator()
623 .containsValue(objArray[i])); in test_tailMapLjava_lang_Object()
728 !myTreeMap.containsValue(new Integer(0))); in test_values()
758 !myTreeMap.containsValue(objArray[300])); in test_subMap_values_size()
774 !myTreeMap.containsValue(objArray[300])); in test_subMap_values_size()
790 !myTreeMap.containsValue(objArray[600])); in test_subMap_values_size()
807 !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.java312 .containsValue(double1)); in test_containsValueLjava_lang_Object()
316 .containsValue(double1)); in test_containsValueLjava_lang_Object()
318 .containsValue(double2)); in test_containsValueLjava_lang_Object()
320 .containsValue(2)); in test_containsValueLjava_lang_Object()
322 .containsValue(1)); in test_containsValueLjava_lang_Object()
325 .containsValue(null)); in test_containsValueLjava_lang_Object()
328 .containsValue(null)); in test_containsValueLjava_lang_Object()
DCollectionsTest.java190 || (map.containsValue(firstNormalValue) && map in run()
191 .containsValue(lastNormalValue)) || (map in run()
192 .containsValue(firstOffsetValue) && map in run()
193 .containsValue(lastOffsetValue)))) in run()
1984 assertTrue(single.containsValue(value)); in test_singletonMapLjava_lang_Object()
1986 assertFalse(single.containsValue(null)); in test_singletonMapLjava_lang_Object()
1988 assertFalse(Collections.singletonMap(null, null).containsValue(value)); in test_singletonMapLjava_lang_Object()
1990 assertTrue(Collections.singletonMap(null, null).containsValue(null)); in test_singletonMapLjava_lang_Object()
2284 assertTrue("Should contain the value 0", map.containsValue(0)); in testContents()
2285 assertTrue("Should contain the value 50", map.containsValue(50)); in testContents()
[all …]
DSortedMapTestBase.java71 assertEquals(ref.containsValue(value), map.containsValue(value)); in testContainsValue()
DHashMapTest.java264 .containsValue(new Integer(875))); in test_containsValueLjava_lang_Object()
266 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
281 && hm.containsValue(m.getValue())); in test_entrySet()
615 !myHashMap.containsValue(new Integer(0))); in test_values()
DLinkedHashMapTest.java234 && hm.containsValue(m.getValue())); in test_entrySet()
327 !myLinkedHashMap.containsValue(new Integer(0))); in test_values()
495 .containsValue(new Integer(875))); in test_containsValueLjava_lang_Object()
497 .containsValue(new Integer(-9))); in test_containsValueLjava_lang_Object()
/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/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java269 assertTrue(map.containsValue("A")); in testContainsValue()
270 assertFalse(map.containsValue("Z")); in testContainsValue()
377 assertTrue(map.containsValue(((Map.Entry)(ar[i])).getValue())); in testEntrySetToArray()
628 c.containsValue(null); in testContainsValue_NullPointerException()
807 assertTrue(map.containsValue("XYZ")); // fails if write-through broken in testSetValueWriteThrough()
DConcurrentSkipListSubMapTest.java116 assertTrue(map.containsValue("A")); in testContainsValue()
117 assertFalse(map.containsValue("Z")); in testContainsValue()
534 c.containsValue(null);
790 assertTrue(map.containsValue("A"));
791 assertFalse(map.containsValue("Z"));
1208 c.containsValue(null);
/libcore/ojluni/annotations/mmodule/java/util/
DLinkedHashMap.annotated.java43 public boolean containsValue(java.lang.Object value) { throw new RuntimeException("Stub!"); } in containsValue() method in LinkedHashMap
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMapTest.java294 assertTrue(map.containsValue("A")); in testContainsValue()
295 assertFalse(map.containsValue("Z")); in testContainsValue()
417 assertTrue(map.containsValue(((Map.Entry)(ar[i])).getValue())); in testEntrySetToArray()
668 c.containsValue(null); in testContainsValue_NullPointerException()
847 assertTrue(map.containsValue("XYZ")); // fails if write-through broken in testSetValueWriteThrough()
/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()
/libcore/ojluni/src/main/java/java/util/jar/
DAttributes.java190 public boolean containsValue(Object value) { in containsValue() method in Attributes
191 return map.containsValue(value); in containsValue()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DWeakHashMap.annotated.java59 public boolean containsValue(@libcore.util.Nullable java.lang.Object value) { throw new RuntimeExce… in containsValue() method in WeakHashMap
DAbstractMap.annotated.java40 public boolean containsValue(@libcore.util.Nullable java.lang.Object value) { throw new RuntimeExce… in containsValue() method in AbstractMap
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java111 public boolean containsValue(Object value) { in containsValue() method in AbstractMap
440 return AbstractMap.this.containsValue(v); in values()
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java235 public boolean containsValue(Object value) { in containsValue() method in ProcessEnvironment.StringEnvironment
236 return m.containsValue(Value.valueOfQueryOnly(value)); in containsValue()

123