Home
last modified time | relevance | path

Searched refs:HashSet (Results 1 – 25 of 200) sorted by relevance

12345678

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DHashSetTest.java24 import java.util.HashSet;
41 HashSet hs;
50 HashSet hs2 = new HashSet(); in test_Constructor()
59 HashSet hs2 = new HashSet(5); in test_ConstructorI()
62 new HashSet(-1); in test_ConstructorI()
75 HashSet hs2 = new HashSet(5, (float) 0.5); in test_ConstructorIF()
78 new HashSet(0, 0); in test_ConstructorIF()
91 HashSet hs2 = new HashSet(Arrays.asList(objArray)); in test_ConstructorLjava_util_Collection()
99 new HashSet(null); in test_ConstructorLjava_util_Collection()
138 HashSet hs2 = (HashSet) hs.clone(); in test_clone()
[all …]
DCollections2Test.java33 import java.util.HashSet;
370 c1 = new HashSet<Object>(); in test_Disjoint()
371 c2 = new HashSet<Object>(); in test_Disjoint()
387 c2 = new HashSet<Object>(); in test_Disjoint()
438 Set<String> c = new HashSet<String>(); in test_checkedSetSerializationCompatability()
525 HashSet<String> setOutput = new HashSet<>(); in testMapForEach()
527 assertEquals(new HashSet<>(map.values()), setOutput); in testMapForEach()
546 HashSet<Integer> output = new HashSet<Integer>(); in testSetForEach()
556 HashSet<Integer> set = new HashSet<Integer>(); in test_Set_forEach()
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/
DCertBlocklistTest.java35 import java.util.HashSet;
156 Set<String> results = new HashSet<String>(); in getPubkeyBlocklist()
169 Set<String> results = new HashSet<String>(); in getSerialBlocklist()
205 private void writeBlocklist(HashSet<String> values) throws IOException { in writeBlocklist()
234 HashSet<String> bl = new HashSet<String>(); in testPubkeyBlocklistLegit()
248 writeBlocklist(new HashSet<String>()); in testLegitPubkeyIsntBlocklisted()
261 HashSet<String> testBlockList = new HashSet<String>(); in testPubkeyIsBlocklisted()
272 HashSet<String> bl = new HashSet<String>(); in testSerialBlocklistLegit()
284 HashSet<String> bl = new HashSet<String>(); in testPubkeyBlocklistMultipleLegit()
297 HashSet<String> bl = new HashSet<String>(); in testSerialBlocklistMultipleLegit()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java31 import java.util.HashSet;
61 new HashSet<Object>() /* pubCredentials */, in test_Constructor_failsWithNullArguments()
62 new HashSet<Object>() /* privCredentials */); in test_Constructor_failsWithNullArguments()
68 new Subject(false , new HashSet<Principal>(), null, new HashSet<Object>()); in test_Constructor_failsWithNullArguments()
74 new Subject(false , new HashSet<Principal>(), new HashSet<Object>(), null); in test_Constructor_failsWithNullArguments()
267 Set<Principal> principalsSet = new HashSet<>(); in testSerialization_nullPrincipalsAllowed()
272 false /* readOnly */, principalsSet, new HashSet<Object>(), new HashSet<Object>()); in testSerialization_nullPrincipalsAllowed()
278 false, new HashSet<Principal>(), new HashSet<Object>(), new HashSet<Object>()); in testSecureTest_removeAllNull_throwsException()
288 false, new HashSet<Principal>(), new HashSet<Object>(), new HashSet<Object>()); in testSecureTest_retainAllNull_throwsException()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPolicyNodeImpl.java29 import java.util.HashSet;
57 private HashSet<PolicyNodeImpl> mChildren;
61 private HashSet<PolicyQualifierInfo> mQualifierSet;
63 private HashSet<String> mExpectedPolicySet;
94 mChildren = new HashSet<PolicyNodeImpl>(); in PolicyNodeImpl()
102 mQualifierSet = new HashSet<PolicyQualifierInfo>(qualifierSet); in PolicyNodeImpl()
104 mQualifierSet = new HashSet<PolicyQualifierInfo>(); in PolicyNodeImpl()
109 mExpectedPolicySet = new HashSet<String>(expectedPolicySet); in PolicyNodeImpl()
111 mExpectedPolicySet = new HashSet<String>(); in PolicyNodeImpl()
303 Set<PolicyNodeImpl> set = new HashSet<>(); in getPolicyNodes()
[all …]
DForwardState.java34 import java.util.HashSet;
65 HashSet<GeneralNameInterface> subjectNamesTraversed;
138 subjectNamesTraversed = new HashSet<GeneralNameInterface>(); in initState()
254 = (HashSet<GeneralNameInterface>)subjectNamesTraversed.clone(); in clone()
/libcore/ojluni/src/main/java/java/util/
DHashSet.java89 public class HashSet<E> class
104 public HashSet() { in HashSet() method in HashSet
117 public HashSet(Collection<? extends E> c) { in HashSet() method in HashSet
131 public HashSet(int initialCapacity, float loadFactor) { in HashSet() method in HashSet
143 public HashSet(int initialCapacity) { in HashSet() method in HashSet
160 HashSet(int initialCapacity, float loadFactor, boolean dummy) { in HashSet() method in HashSet
255 HashSet<E> newSet = (HashSet<E>) super.clone(); in clone()
326 map = (((HashSet<?>)this) instanceof LinkedHashSet ? in readObject()
/libcore/ojluni/annotations/hiddenapi/java/util/
DHashSet.java31 public class HashSet<E> extends java.util.AbstractSet<E> class
34 public HashSet() { in HashSet() method in HashSet
38 public HashSet(java.util.Collection<? extends E> c) { in HashSet() method in HashSet
42 public HashSet(int initialCapacity, float loadFactor) { in HashSet() method in HashSet
46 public HashSet(int initialCapacity) { in HashSet() method in HashSet
50 HashSet(int initialCapacity, float loadFactor, boolean fake) { in HashSet() method in HashSet
/libcore/ojluni/src/main/java/java/security/cert/
DX509CRLSelector.java80 private HashSet<Object> issuerNames;
81 private HashSet<X500Principal> issuerX500Principals;
127 issuerX500Principals = new HashSet<X500Principal>(issuers); in setIssuers()
128 issuerNames = new HashSet<Object>(); in setIssuers()
202 HashSet<Object> tempNames = cloneAndCheckIssuerNames(names); in setIssuerNames()
291 issuerNames = new HashSet<Object>(); in addIssuerNameInternal()
294 issuerX500Principals = new HashSet<X500Principal>(); in addIssuerNameInternal()
311 private static HashSet<Object> cloneAndCheckIssuerNames(Collection<?> names) in cloneAndCheckIssuerNames()
314 HashSet<Object> namesCopy = new HashSet<Object>(); in cloneAndCheckIssuerNames()
344 private static HashSet<Object> cloneIssuerNames(Collection<Object> names) { in cloneIssuerNames()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DHashSet.annotated.java31 public class HashSet<E> extends java.util.AbstractSet<E> implements java.util.Set<E>, java.lang.Clo… class
33 public HashSet() { throw new RuntimeException("Stub!"); } in HashSet() method in HashSet
35 public HashSet(@libcore.util.NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam… in HashSet() method in HashSet
37 public HashSet(int initialCapacity, float loadFactor) { throw new RuntimeException("Stub!"); } in HashSet() method in HashSet
39 public HashSet(int initialCapacity) { throw new RuntimeException("Stub!"); } in HashSet() method in HashSet
/libcore/ojluni/src/main/java/sun/nio/fs/
DUtil.java100 HashSet<E> set = new HashSet<>(); in newSet()
113 HashSet<E> set = new HashSet<>(other); in newSet()
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java24 import java.util.HashSet;
36 private final Set<String> prefixesToNotInherit = new HashSet<String>();
37 private final Set<String> prefixesToLoad = new HashSet<String>();
65 final Set<String> prefixesToNotInherit = new HashSet<String>(this.prefixesToNotInherit); in build()
66 final Set<String> prefixesToLoad = new HashSet<String>(this.prefixesToLoad); in build()
/libcore/luni/src/test/java/libcore/java/security/
DPrincipalTest.java23 import java.util.HashSet;
34 HashSet<Principal> subjectPrincipals = new HashSet<>(); in test_Principal_implies()
/libcore/ojluni/src/test/java/nio/file/attribute/
DAclEntryEmptySetTest.java50 Set<AclEntryFlag> flags = new HashSet<>(); in main()
53 Set<AclEntryPermission> perms = new HashSet<>(); in main()
/libcore/ojluni/src/main/java/sun/security/util/
DAlgorithmDecomposer.java28 import java.util.HashSet;
46 Set<String> elements = new HashSet<>(); in decomposeImpl()
81 return new HashSet<>(); in decompose()
151 return new HashSet<>(); in decomposeOneHash()
DAnchorCertificates.java35 import java.util.HashSet;
47 private static HashSet<String> certs;
60 certs = new HashSet<>(); in AccessController.doPrivileged()
/libcore/tools/upstream/src/main/java/libcore/
DStandardRepositories.java24 import java.util.HashSet;
89 new HashSet<>(Arrays.asList(
117 new HashSet<>(Arrays.asList(
132 new HashSet<>(Arrays.asList(
/libcore/support/src/test/java/libcore/javax/net/ssl/
DSSLConfigurationAsserts.java21 import java.util.HashSet;
97 assertEquals(new HashSet<String>(Arrays.asList(expected)), in assertProtocolsEqual()
98 new HashSet<String>(Arrays.asList(actual))); in assertProtocolsEqual()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java45 import java.util.HashSet;
111 HashSet<OpenOption> openOptions = new HashSet<>(); in test_newByteChannel()
255 HashSet<Path> pathSet = new HashSet<>(); in test_newDirectoryStream()
256 HashSet<Path> expectedPathSet = new HashSet<>(); in test_newDirectoryStream()
313 HashSet<Path> pathSet = new HashSet<>(); in test_newDirectoryStream$Path$String()
314 HashSet<Path> expectedPathSet = new HashSet<>(); in test_newDirectoryStream$Path$String()
DDefaultSecureDirectoryStreamTest.java42 import java.util.HashSet;
98 HashSet<Path> pathsSet = new HashSet<>(); in testIterator()
99 HashSet<Path> expectedPathsSet = new HashSet<>(); in testIterator()
139 HashSet<Path> pathsSet = new HashSet<>(); in test_newDirectoryStream()
140 HashSet<Path> expectedPathsSet = new HashSet<>(); in test_newDirectoryStream()
203 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel()
250 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel_NPE()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectorImpl.java47 protected HashSet<SelectionKey> keys;
55 keys = new HashSet<SelectionKey>(); in SelectorImpl()
56 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java37 import java.util.HashSet;
60 Set<InetAddress> actual = new HashSet<InetAddress>(Collections.list(lo.getInetAddresses())); in testIPv6()
62 Set<InetAddress> expected = new HashSet<InetAddress>(); in testIPv6()
133 Set<String> allNames = new HashSet<String>(); in testDumpAll()
134 Set<Integer> allIndexes = new HashSet<Integer>(); in testDumpAll()
217 Set<String> ifaddrsNames = new HashSet<>(); in testGetNetworkInterfaces_matchesIfaddrs()
221 Set<String> actualNiNames = new HashSet<>(); in testGetNetworkInterfaces_matchesIfaddrs()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java38 import java.util.HashSet;
131 HashSet<TrustAnchor> originalSet = (HashSet<TrustAnchor>) taSet; in testPKIXBuilderParametersSetCertSelector03()
132 HashSet<TrustAnchor> originalSetCopy = (HashSet<TrustAnchor>) originalSet in testPKIXBuilderParametersSetCertSelector03()
170 new PKIXBuilderParameters(new HashSet<TrustAnchor>(), null); in testPKIXBuilderParametersSetCertSelector05()
/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedCharacterIteratorTest.java22 import java.util.HashSet;
37 HashSet<AttributedCharacterIterator.Attribute> attr = in test_getRunLimitLSet()
38 new HashSet<AttributedCharacterIterator.Attribute>(); in test_getRunLimitLSet()
176 HashSet<AttributedCharacterIterator.Attribute> attr = in test_getRunStartLjava_util_Set()
177 new HashSet<AttributedCharacterIterator.Attribute>(); in test_getRunStartLjava_util_Set()
/libcore/tools/crypto/src/java/libcore/java/security/
DProviderOverlap.java21 import java.util.HashSet;
46 Set<String> result = new HashSet<>(); in getAlgorithms()

12345678