/libcore/ojluni/src/main/java/sun/security/util/ |
D | AlgorithmDecomposer.java | 97 if (elements.contains("SHA1") && !elements.contains("SHA-1")) { in decompose() 100 if (elements.contains("SHA-1") && !elements.contains("SHA1")) { in decompose() 105 if (elements.contains("SHA224") && !elements.contains("SHA-224")) { in decompose() 108 if (elements.contains("SHA-224") && !elements.contains("SHA224")) { in decompose() 113 if (elements.contains("SHA256") && !elements.contains("SHA-256")) { in decompose() 116 if (elements.contains("SHA-256") && !elements.contains("SHA256")) { in decompose() 121 if (elements.contains("SHA384") && !elements.contains("SHA-384")) { in decompose() 124 if (elements.contains("SHA-384") && !elements.contains("SHA384")) { in decompose() 129 if (elements.contains("SHA512") && !elements.contains("SHA-512")) { in decompose() 132 if (elements.contains("SHA-512") && !elements.contains("SHA512")) { in decompose() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileLockTest.java | 43 assertTrue(strLock.contains("0")); in testToString() 44 assertTrue(strLock.contains("42")); in testToString() 45 assertTrue(strLock.contains("exclusive")); in testToString() 46 assertTrue(strLock.contains("valid")); in testToString() 47 assertFalse(strLock.contains("invalid")); in testToString() 51 assertTrue(strLock.contains("0")); in testToString() 52 assertTrue(strLock.contains("42")); in testToString() 53 assertTrue(strLock.contains("exclusive")); in testToString() 54 assertTrue(strLock.contains("invalid")); in testToString() 62 assertTrue(strLock.contains("0")); in testToString() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ListResourceBundleTest.java | 40 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 …]
|
D | TreeSetTest.java | 68 .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(Integer.valueOf(-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(Integer.valueOf(-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 …]
|
D | EnumSetTest.java | 183 "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 …]
|
D | EnumMapTest.java | 353 .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(Integer.valueOf(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 …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 247 assertTrue(s1.contains("MessageDigest.SHA-256")); in testKeySet() 248 assertTrue(s1.contains("MessageDigest.SHA-1")); in testKeySet() 249 assertTrue(s1.contains("Alg.Alias.MessageDigest.SHA1")); in testKeySet() 250 assertTrue(s1.contains("MessageDigest.abc")); in testKeySet() 251 assertTrue(s1.contains("Provider.id info")); in testKeySet() 252 assertTrue(s1.contains("Provider.id className")); in testKeySet() 253 assertTrue(s1.contains("Provider.id version")); in testKeySet() 254 assertTrue(s1.contains("Provider.id name")); in testKeySet() 274 assertTrue(c1.contains("MyProvider")); in testValues() 275 assertTrue(c1.contains("aaa.bbb.ccc.ddd")); in testValues() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 37 assertTrue(s.contains("Foo")); in testPatternSyntaxException() 38 assertTrue(s.contains("Bar")); in testPatternSyntaxException() 39 assertTrue(s.contains("0")); in testPatternSyntaxException() 40 assertTrue(s.contains("^")); in testPatternSyntaxException() 49 assertFalse(s.contains("Foo")); in testPatternSyntaxException() 50 assertTrue(s.contains("Bar")); in testPatternSyntaxException() 51 assertTrue(s.contains("0")); in testPatternSyntaxException() 52 assertTrue(s.contains("^")); in testPatternSyntaxException() 61 assertTrue(s.contains("Foo")); in testPatternSyntaxException() 62 assertFalse(s.contains("Bar")); in testPatternSyntaxException() [all …]
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | TcpKeepAliveTest.java | 56 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPIDLE)) { in testTcpKeepAlive() 62 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPCOUNT)) { in testTcpKeepAlive() 68 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPINTERVAL)) { in testTcpKeepAlive() 74 if (s.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPIDLE)) { in testTcpKeepAlive() 80 if (s.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPCOUNT)) { in testTcpKeepAlive() 86 if (s.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPINTERVAL)) { in testTcpKeepAlive() 92 if (ds.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPCOUNT)) { in testTcpKeepAlive() 96 if (ds.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPIDLE)) { in testTcpKeepAlive() 100 if (ds.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPINTERVAL)) { in testTcpKeepAlive() 104 if (mc.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPCOUNT)) { in testTcpKeepAlive() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TreeSubSetTest.java | 269 assertTrue(q.contains(i)); in testRemoveElement() 271 assertFalse(q.contains(i)); in testRemoveElement() 272 assertTrue(q.contains(i - 1)); in testRemoveElement() 275 assertTrue(q.contains(i)); in testRemoveElement() 277 assertFalse(q.contains(i)); in testRemoveElement() 279 assertFalse(q.contains(i + 1)); in testRemoveElement() 290 assertTrue(q.contains(new Integer(i))); in testContains() 292 assertFalse(q.contains(new Integer(i))); in testContains() 354 assertFalse(q.contains(x)); in testRemoveAll() 461 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 272 assertTrue(q.contains(i)); in testRemoveElement() 274 assertFalse(q.contains(i)); in testRemoveElement() 275 assertTrue(q.contains(i - 1)); in testRemoveElement() 278 assertTrue(q.contains(i)); in testRemoveElement() 280 assertFalse(q.contains(i)); in testRemoveElement() 282 assertFalse(q.contains(i + 1)); in testRemoveElement() 293 assertTrue(q.contains(new Integer(i))); in testContains() 295 assertFalse(q.contains(new Integer(i))); in testContains() 357 assertFalse(q.contains(x)); in testRemoveAll() 464 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | ConcurrentSkipListSetTest.java | 321 assertTrue(q.contains(i)); in testRemoveElement() 323 assertFalse(q.contains(i)); in testRemoveElement() 324 assertTrue(q.contains(i - 1)); in testRemoveElement() 327 assertTrue(q.contains(i)); in testRemoveElement() 329 assertFalse(q.contains(i)); in testRemoveElement() 331 assertFalse(q.contains(i + 1)); in testRemoveElement() 342 assertTrue(q.contains(new Integer(i))); in testContains() 344 assertFalse(q.contains(new Integer(i))); in testContains() 406 assertFalse(q.contains(x)); in testRemoveAll() 512 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | TreeSetTest.java | 318 assertTrue(q.contains(i)); in testRemoveElement() 320 assertFalse(q.contains(i)); in testRemoveElement() 321 assertTrue(q.contains(i - 1)); in testRemoveElement() 324 assertTrue(q.contains(i)); in testRemoveElement() 326 assertFalse(q.contains(i)); in testRemoveElement() 328 assertFalse(q.contains(i + 1)); in testRemoveElement() 339 assertTrue(q.contains(new Integer(i))); in testContains() 341 assertFalse(q.contains(new Integer(i))); in testContains() 403 assertFalse(q.contains(x)); in testRemoveAll() 510 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentSkipListSubSetTest.java | 249 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(Integer.valueOf(i))); in testContains() 272 assertFalse(q.contains(Integer.valueOf(i))); in testContains() 334 assertFalse(q.contains(x)); in testRemoveAll() 441 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | TreeSubSetTest.java | 246 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(Integer.valueOf(i))); in testContains() 269 assertFalse(q.contains(Integer.valueOf(i))); in testContains() 331 assertFalse(q.contains(x)); in testRemoveAll() 438 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | ConcurrentSkipListSetTest.java | 291 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(Integer.valueOf(i))); in testContains() 314 assertFalse(q.contains(Integer.valueOf(i))); in testContains() 376 assertFalse(q.contains(x)); in testRemoveAll() 482 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
D | TreeSetTest.java | 295 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(Integer.valueOf(i))); in testContains() 318 assertFalse(q.contains(Integer.valueOf(i))); in testContains() 380 assertFalse(q.contains(x)); in testRemoveAll() 487 assertTrue(q.contains(it.next())); in testIterator() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatter.java | 157 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorDate() 158 assertTrue(msg.contains("Year"), msg); in assertGoodErrorDate() 159 assertTrue(msg.contains("MinuteOfHour"), msg); in assertGoodErrorDate() 160 assertTrue(msg.contains("DayOfMonth"), msg); in assertGoodErrorDate() 172 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorTime() 173 assertTrue(msg.contains("HourOfDay"), msg); in assertGoodErrorTime() 174 assertTrue(msg.contains("MonthOfYear"), msg); in assertGoodErrorTime() 175 assertTrue(msg.contains("SecondOfMinute"), msg); in assertGoodErrorTime() 184 assertTrue(msg.contains("11:30:56"), msg); in test_parsed_toString_resolvedTime() 192 assertTrue(msg.contains("2010-06-30"), msg); in test_parsed_toString_resolvedDate() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | PosixFilePermissions.java | 75 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 96 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/support/src/test/java/tests/support/ |
D | Support_CollectionTest.java | 52 .contains(Integer.valueOf(101))); in runTest() 58 .contains(Integer.valueOf(101))); in runTest() 80 .contains(Integer.valueOf(102))); in runTest() 82 .contains(Integer.valueOf(103))); in runTest() 94 .contains(Integer.valueOf(0))); in runTest() 96 .contains(Integer.valueOf(50))); in runTest() 102 .contains(Integer.valueOf(101))); in runTest()
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | SignaturesCollector.java | 142 if (internalOrDesc.length() == 1 && "VZCBSIFJD".contains(internalOrDesc)) { in getInternalName() 203 return mClasses.contains(internalClassName); in containsClass() 206 public boolean contains(String internalClassName, MethodNode node) { in contains() method in SignaturesCollector.SignaturesCollection 207 return contains(new Method(internalClassName, node)); in contains() 210 public boolean contains(MethodInsnNode node) { in contains() method in SignaturesCollector.SignaturesCollection 211 return contains(new Method(node)); in contains() 214 public boolean contains(Handle handle) { in contains() method in SignaturesCollector.SignaturesCollection 215 return contains(new Method(handle)); in contains() 218 public boolean contains(FieldInsnNode node) { in contains() method in SignaturesCollector.SignaturesCollection 219 return contains(new Field(node)); in contains() [all …]
|
D | UnsupportedNewApis.java | 52 public boolean contains(String internalClassName) { in contains() method in UnsupportedNewApis 53 return apis.contains(internalClassName); in contains() 56 public boolean contains(SignaturesCollector.Method method) { in contains() method in UnsupportedNewApis 57 return apis.contains(method.toString()); in contains() 60 public boolean contains(SignaturesCollector.Field field) { in contains() method in UnsupportedNewApis 62 return apis.contains(signature); in contains()
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | PropertiesEntrySetTest.java | 112 assertTrue(aEntrySet.toString().contains("p1=1")); in testToString() 113 assertTrue(aEntrySet.toString().contains("p2=2")); in testToString() 122 assertTrue(bEntrySet.toString().contains("p1=1")); in testToString() 123 assertTrue(bEntrySet.toString().contains("p2=2")); in testToString() 128 assertTrue(bEntrySet.toString().contains("p0=0")); in testToString() 132 assertFalse(bEntrySet.toString().contains("p1=1")); in testToString() 134 assertTrue(bEntrySet.toString().contains("p0=0")); in testToString() 135 assertTrue(bEntrySet.toString().contains("p2=2")); in testToString() 140 assertFalse(bEntrySet.toString().contains("p0=0")); in testToString() 142 assertTrue(bEntrySet.toString().contains("p2=2")); in testToString() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/attribute/ |
D | AclEntryTest.java | 51 assertTrue(permissions.contains(AclEntryPermission.READ_DATA)); in testGetters() 52 assertTrue(permissions.contains(AclEntryPermission.READ_ATTRIBUTES)); in testGetters() 56 assertTrue(flags.contains(AclEntryFlag.INHERIT_ONLY)); in testGetters() 78 assertTrue(permissions.contains(AclEntryPermission.READ_DATA)); in testBuilder() 79 assertTrue(permissions.contains(AclEntryPermission.READ_ATTRIBUTES)); in testBuilder() 83 assertTrue(flags.contains(AclEntryFlag.INHERIT_ONLY)); in testBuilder()
|