Home
last modified time | relevance | path

Searched refs:contains (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/main/java/sun/security/util/
DAlgorithmDecomposer.java94 if (elements.contains("SHA1") && !elements.contains("SHA-1")) { in decompose()
97 if (elements.contains("SHA-1") && !elements.contains("SHA1")) { in decompose()
102 if (elements.contains("SHA224") && !elements.contains("SHA-224")) { in decompose()
105 if (elements.contains("SHA-224") && !elements.contains("SHA224")) { in decompose()
110 if (elements.contains("SHA256") && !elements.contains("SHA-256")) { in decompose()
113 if (elements.contains("SHA-256") && !elements.contains("SHA256")) { in decompose()
118 if (elements.contains("SHA384") && !elements.contains("SHA-384")) { in decompose()
121 if (elements.contains("SHA-384") && !elements.contains("SHA384")) { in decompose()
126 if (elements.contains("SHA512") && !elements.contains("SHA-512")) { in decompose()
129 if (elements.contains("SHA-512") && !elements.contains("SHA512")) { in decompose()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DListResourceBundleTest.java40 assertTrue("Missing key parent1", result.contains("parent1")); in test_getKeys()
41 assertTrue("Missing key parent2", result.contains("parent2")); in test_getKeys()
42 assertTrue("Missing key parent3", result.contains("parent3")); in test_getKeys()
43 assertTrue("Missing key parent4", result.contains("parent4")); in test_getKeys()
44 assertTrue("Missing key child1", result.contains("child1")); in test_getKeys()
45 assertTrue("Missing key child2", result.contains("child2")); in test_getKeys()
46 assertTrue("Missing key child3", result.contains("child3")); in test_getKeys()
61 assertTrue(result.contains(null)); in test_handleGetObjectLjava_lang_String()
62 assertTrue(result.contains("frFRVARValue4")); in test_handleGetObjectLjava_lang_String()
63 assertTrue(result.contains("frFRVARChildValue1")); in test_handleGetObjectLjava_lang_String()
[all …]
DTreeSetTest.java68 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection()
102 anotherTreeSet.contains(objArray[counter])); in test_ConstructorLjava_util_SortedSet()
115 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object()
132 assertTrue("Returned incorrect set", s.contains(i.next())); in test_addAllLjava_util_Collection()
143 assertTrue("Found element in cleared set", !ts.contains(objArray[0])); in test_clear()
155 .contains(i.next())); in test_clone()
175 .contains(objArray[objArray.length / 2])); in test_containsLjava_lang_Object()
177 .contains(new Integer(-9))); in test_containsLjava_lang_Object()
179 ts.contains(new Object()); in test_containsLjava_lang_Object()
206 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_headSetLjava_lang_Object()
[all …]
DEnumSetTest.java183 "enumSet should not contain null value", enumSet.contains(null)); in test_AllOf_LClass()
185 "enumSet should contain EnumFoo.a", enumSet.contains(EnumFoo.a)); in test_AllOf_LClass()
187 "enumSet should contain EnumFoo.b", enumSet.contains(EnumFoo.b)); in test_AllOf_LClass()
200 assertFalse(hugeEnumSet.contains(null)); in test_AllOf_LClass()
201 assertTrue(hugeEnumSet.contains(HugeEnum.a)); in test_AllOf_LClass()
202 assertTrue(hugeEnumSet.contains(HugeEnum.b)); in test_AllOf_LClass()
595 boolean result = hugeSet.contains(HugeEnum.aa); in test_clear()
600 result = hugeSet.contains(HugeEnum.aa); in test_clear()
671 assertTrue(set.contains(EnumWithInnerClass.d)); in test_ComplementOf_LEnumSet()
675 complementOfE.contains(EnumWithInnerClass.a)); in test_ComplementOf_LEnumSet()
[all …]
DEnumMapTest.java353 .contains(mockEntry)); in test_entrySet()
356 .contains(mockEntry)); in test_entrySet()
358 .contains(Size.Small)); in test_entrySet()
361 .contains(mockEntry)); in test_entrySet()
363 .contains(new Integer(1))); in test_entrySet()
367 .contains(mockEntry)); in test_entrySet()
371 .contains(mockEntry)); in test_entrySet()
385 .contains(mockEntry)); in test_entrySet()
388 .contains(mockEntry)); in test_entrySet()
459 assertTrue("Returned false for contained object", set.contains(entry)); in test_entrySet()
[all …]
DLinkedHashSetTest.java104 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection()
127 assertTrue("Failed to add element to set", hs.contains(new Integer(-9))); in test_addLjava_lang_Object()
140 assertTrue("Failed to clear set", !hs.contains(i.next())); in test_clear()
160 assertTrue("Returned false for valid object", hs.contains(objArray[90])); in test_containsLjava_lang_Object()
162 .contains(new Object())); in test_containsLjava_lang_Object()
166 assertTrue("Cannot handle null", s.contains(null)); in test_containsLjava_lang_Object()
192 assertTrue("Cannot find null", hs.contains(oo)); in test_iterator()
211 assertTrue("Failed to remove element", !hs.contains(new Integer(98))); in test_removeLjava_lang_Object()
295 assertTrue(lhs.contains(o[i])); in test_toArray()
316 assertTrue(lhs.contains(o1[i])); in test_toArray$Ljava_lang_Object()
DPropertyResourceBundleTest.java116 assertTrue("Returned the wrong keys", test.contains("p1") in test_getKeys()
117 && test.contains("p2")); in test_getKeys()
195 .contains("p1")); in test_access$0_Enumeration()
197 .contains("p2")); in test_access$0_Enumeration()
198 assertTrue("did not get the local property p3", contents.contains("p3")); in test_access$0_Enumeration()
199 assertTrue("did not get the local property p4", contents.contains("p4")); in test_access$0_Enumeration()
DTimeZoneTest.java231 assertTrue(ids.toString(), ids.contains("America/Los_Angeles")); in test_getAvailableIDs_I_16947622()
235 assertTrue(ids.toString(), ids.contains("America/Dawson")); in test_getAvailableIDs_I_16947622()
236 assertTrue(ids.toString(), ids.contains("America/Tijuana")); in test_getAvailableIDs_I_16947622()
237 assertTrue(ids.toString(), ids.contains("America/Vancouver")); in test_getAvailableIDs_I_16947622()
238 assertTrue(ids.toString(), ids.contains("Canada/Pacific")); in test_getAvailableIDs_I_16947622()
239 assertTrue(ids.toString(), ids.contains("Canada/Yukon")); in test_getAvailableIDs_I_16947622()
240 assertTrue(ids.toString(), ids.contains("Pacific/Pitcairn")); in test_getAvailableIDs_I_16947622()
248 assertTrue(idList.toString(), idList.contains("Asia/Hong_Kong")); in test_getAvailableIDs_I()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java253 assertTrue(s1.contains("MessageDigest.SHA-256")); in testKeySet()
254 assertTrue(s1.contains("MessageDigest.SHA-1")); in testKeySet()
255 assertTrue(s1.contains("Alg.Alias.MessageDigest.SHA1")); in testKeySet()
256 assertTrue(s1.contains("MessageDigest.abc")); in testKeySet()
257 assertTrue(s1.contains("Provider.id info")); in testKeySet()
258 assertTrue(s1.contains("Provider.id className")); in testKeySet()
259 assertTrue(s1.contains("Provider.id version")); in testKeySet()
260 assertTrue(s1.contains("Provider.id name")); in testKeySet()
280 assertTrue(c1.contains("MyProvider")); in testValues()
281 assertTrue(c1.contains("aaa.bbb.ccc.ddd")); in testValues()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java37 assertTrue(s.contains("Foo")); in testPatternSyntaxException()
38 assertTrue(s.contains("Bar")); in testPatternSyntaxException()
39 assertTrue(s.contains("0")); in testPatternSyntaxException()
48 assertFalse(s.contains("Foo")); in testPatternSyntaxException()
49 assertTrue(s.contains("Bar")); in testPatternSyntaxException()
50 assertTrue(s.contains("0")); in testPatternSyntaxException()
59 assertTrue(s.contains("Foo")); in testPatternSyntaxException()
60 assertFalse(s.contains("Bar")); in testPatternSyntaxException()
61 assertTrue(s.contains("0")); in testPatternSyntaxException()
70 assertFalse(s.contains("Foo")); in testPatternSyntaxException()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DPosixFilePermissions.java75 writeBits(sb, perms.contains(OWNER_READ), perms.contains(OWNER_WRITE), in toString()
76 perms.contains(OWNER_EXECUTE)); in toString()
77 writeBits(sb, perms.contains(GROUP_READ), perms.contains(GROUP_WRITE), in toString()
78 perms.contains(GROUP_EXECUTE)); in toString()
79 writeBits(sb, perms.contains(OTHERS_READ), perms.contains(OTHERS_WRITE), in toString()
80 perms.contains(OTHERS_EXECUTE)); in toString()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubSetTest.java246 assertTrue(q.contains(i)); in testRemoveElement()
248 assertFalse(q.contains(i)); in testRemoveElement()
249 assertTrue(q.contains(i - 1)); in testRemoveElement()
252 assertTrue(q.contains(i)); in testRemoveElement()
254 assertFalse(q.contains(i)); in testRemoveElement()
256 assertFalse(q.contains(i + 1)); in testRemoveElement()
267 assertTrue(q.contains(new Integer(i))); in testContains()
269 assertFalse(q.contains(new Integer(i))); in testContains()
331 assertFalse(q.contains(x)); in testRemoveAll()
438 assertTrue(q.contains(it.next())); in testIterator()
[all …]
DConcurrentSkipListSubSetTest.java249 assertTrue(q.contains(i)); in testRemoveElement()
251 assertFalse(q.contains(i)); in testRemoveElement()
252 assertTrue(q.contains(i - 1)); in testRemoveElement()
255 assertTrue(q.contains(i)); in testRemoveElement()
257 assertFalse(q.contains(i)); in testRemoveElement()
259 assertFalse(q.contains(i + 1)); in testRemoveElement()
270 assertTrue(q.contains(new Integer(i))); in testContains()
272 assertFalse(q.contains(new Integer(i))); in testContains()
334 assertFalse(q.contains(x)); in testRemoveAll()
441 assertTrue(q.contains(it.next())); in testIterator()
[all …]
DTreeSetTest.java295 assertTrue(q.contains(i)); in testRemoveElement()
297 assertFalse(q.contains(i)); in testRemoveElement()
298 assertTrue(q.contains(i - 1)); in testRemoveElement()
301 assertTrue(q.contains(i)); in testRemoveElement()
303 assertFalse(q.contains(i)); in testRemoveElement()
305 assertFalse(q.contains(i + 1)); in testRemoveElement()
316 assertTrue(q.contains(new Integer(i))); in testContains()
318 assertFalse(q.contains(new Integer(i))); in testContains()
380 assertFalse(q.contains(x)); in testRemoveAll()
487 assertTrue(q.contains(it.next())); in testIterator()
[all …]
DConcurrentSkipListSetTest.java291 assertTrue(q.contains(i)); in testRemoveElement()
293 assertFalse(q.contains(i)); in testRemoveElement()
294 assertTrue(q.contains(i - 1)); in testRemoveElement()
297 assertTrue(q.contains(i)); in testRemoveElement()
299 assertFalse(q.contains(i)); in testRemoveElement()
301 assertFalse(q.contains(i + 1)); in testRemoveElement()
312 assertTrue(q.contains(new Integer(i))); in testContains()
314 assertFalse(q.contains(new Integer(i))); in testContains()
376 assertFalse(q.contains(x)); in testRemoveAll()
482 assertTrue(q.contains(it.next())); in testIterator()
[all …]
DBlockingQueueTest.java347 assertFalse(q.contains(makeElement(99)));
354 assertEquals((pass == 0), q.contains(elts[i]));
356 assertFalse(q.contains(elts[i]));
357 assertTrue(q.contains(elts[i - 1]));
359 assertTrue(q.contains(elts[i + 1]));
363 assertTrue(q.contains(elts[0]));
365 assertTrue(q.contains(elts[i]));
366 assertFalse(q.contains(elts[i + 1]));
368 assertFalse(q.contains(elts[i]));
370 assertFalse(q.contains(elts[i + 1]));
DConcurrentHashMapTest.java251 assertTrue(map.contains("A")); in testContains()
252 assertFalse(map.contains("Z")); in testContains()
331 assertTrue(s.contains(one)); in testKeySet()
332 assertTrue(s.contains(two)); in testKeySet()
333 assertTrue(s.contains(three)); in testKeySet()
334 assertTrue(s.contains(four)); in testKeySet()
335 assertTrue(s.contains(five)); in testKeySet()
360 assertTrue(s.contains("A")); in testValuesToArray()
361 assertTrue(s.contains("B")); in testValuesToArray()
362 assertTrue(s.contains("C")); in testValuesToArray()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java52 .contains(new Integer(101))); in runTest()
58 .contains(new Integer(101))); in runTest()
80 .contains(new Integer(102))); in runTest()
82 .contains(new Integer(103))); in runTest()
94 .contains(new Integer(0))); in runTest()
96 .contains(new Integer(50))); in runTest()
102 .contains(new Integer(101))); in runTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java96 assertTrue("a) Should contain entry", valueSet.contains("one")); in test_entrySet()
97 assertTrue("b) Should contain entry", valueSet.contains("two")); in test_entrySet()
98 assertTrue("c) Should contain entry", valueSet.contains("three")); in test_entrySet()
99 assertTrue("d) Should contain entry", valueSet.contains("four")); in test_entrySet()
100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet()
101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet()
102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet()
103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet()
131 assertTrue("a) Should contain entry", s.contains(new Attributes.Name("1"))); in test_keySet()
132 assertTrue("b) Should contain entry", s.contains(new Attributes.Name("2"))); in test_keySet()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatter.java152 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorDate()
153 assertTrue(msg.contains("Year"), msg); in assertGoodErrorDate()
154 assertTrue(msg.contains("MinuteOfHour"), msg); in assertGoodErrorDate()
155 assertTrue(msg.contains("DayOfMonth"), msg); in assertGoodErrorDate()
167 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorTime()
168 assertTrue(msg.contains("HourOfDay"), msg); in assertGoodErrorTime()
169 assertTrue(msg.contains("MonthOfYear"), msg); in assertGoodErrorTime()
170 assertTrue(msg.contains("SecondOfMinute"), msg); in assertGoodErrorTime()
179 assertTrue(msg.contains("11:30:56"), msg); in test_parsed_toString_resolvedTime()
187 assertTrue(msg.contains("2010-06-30"), msg); in test_parsed_toString_resolvedDate()
[all …]
/libcore/luni/src/test/java/tests/java/lang/String/
DTests.java26 assertTrue("aabc".contains("abc")); in test_contains()
27 assertTrue("abcd".contains("abc")); in test_contains()
28 assertFalse("abcd".contains("cba")); in test_contains()
/libcore/luni/src/test/java/libcore/libcore/timezone/
DTimeZoneDataFilesTest.java44 assertTrue(paths[0].contains("/misc/zoneinfo/current/")); in getTimeZoneFilePaths()
53 assertTrue(paths[3].contains("/usr/share/zoneinfo/")); in getTimeZoneFilePaths()
67 assertTrue(dataDirPath + " invalid", dataDirPath.contains("/misc/zoneinfo/current/icu")); in generateIcuDataPath_includesTimeZoneOverride()
76 assertTrue(runtimeModulePath + " invalid", runtimeModulePath.contains("/etc/icu")); in generateIcuDataPath_includesTimeZoneOverride()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DSystemScope.java139 boolean contains = names.containsKey(name); in removeIdentity()
145 contains = contains || keys.containsKey(key); in removeIdentity()
149 if (!contains) { in removeIdentity()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java2731 if (f.contains(Flags.PREVIOUS)) in flags()
2973 if (f.contains(Flags.ALTERNATE)) in printString()
3003 if (f.contains(Flags.UPPERCASE)) { in print()
3015 boolean pad = f.contains(Flags.LEFT_JUSTIFY); in justify()
3037 sb.append(f.contains(Flags.UPPERCASE) ? 'T' : 't'); in toString()
3038 sb.append(f.contains(Flags.UPPERCASE) in toString()
3045 && f.contains(Flags.ALTERNATE)) in checkGeneral()
3048 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY)) in checkGeneral()
3062 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY)) in checkDateTime()
3072 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY)) in checkCharacter()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeSetTest.java42 .contains(objArray[counter])); in test_ConstructorLjava_util_Collection()
75 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object()
99 assertTrue("Returned incorrect set", s.contains(i.next())); in test_addAllLjava_util_Collection()
140 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_headSetLjava_lang_Object()
189 aSubSet.contains(objArray[counter])); in test_subSetLjava_lang_ObjectLjava_lang_Object()
226 assertTrue("Returned incorrect set", s.contains(objArray[i])); in test_tailSetLjava_lang_Object()

12345678910>>...16