Home
last modified time | relevance | path

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

1234567

/libcore/ojluni/src/main/java/sun/net/
DRegisteredDomain.java29 import java.util.HashSet;
44 private static Set<String> top1Set = new HashSet<String>(Arrays.asList("asia", "biz", "cat", "coop",
57 private static Set<String> top2Set = new HashSet<String>(Arrays.asList("as", "bf", "cd", "cx",
61 private static Set<String> top4Set = new HashSet<String>(Arrays.asList("af", "bm", "bs", "bt",
65 private static Set<String> top3Set = new HashSet<String>(Arrays.asList("ad", "aw", "be", "bw",
69 private static Set<String> ukSet = new HashSet<String>(Arrays.asList( "bl", "british-library",
73 private static Set<String> arSet = new HashSet<String>(Arrays.asList( "argentina", "educ",
77 private static Set<String> omSet = new HashSet<String>(Arrays.asList("mediaphone", "nawrastelecom",
82 private static Set<String> top5Set = new HashSet<String>(Arrays.asList("au", "arpa", "bd", "bn", "c…
88 private static Set<String> jpSet = new HashSet<String>(Arrays.asList("aichi", "akita", "aomori",
[all …]
/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/com/android/org/bouncycastle/jce/provider/
DCertBlacklistTest.java32 import java.util.HashSet;
158 Set<String> results = new HashSet<String>(); in getPubkeyBlacklist()
171 Set<String> results = new HashSet<String>(); in getSerialBlacklist()
207 private void writeBlacklist(HashSet<String> values) throws IOException { in writeBlacklist()
236 HashSet<String> bl = new HashSet<String>(); in testPubkeyBlacklistLegit()
250 writeBlacklist(new HashSet<String>()); in testLegitPubkeyIsntBlacklisted()
263 HashSet<String> testBlackList = new HashSet<String>(); in testPubkeyIsBlacklisted()
274 HashSet<String> bl = new HashSet<String>(); in testSerialBlacklistLegit()
286 HashSet<String> bl = new HashSet<String>(); in testPubkeyBlacklistMultipleLegit()
299 HashSet<String> bl = new HashSet<String>(); in testSerialBlacklistMultipleLegit()
[all …]
/libcore/ojluni/src/main/java/java/util/
DHashSet.java87 public class HashSet<E> class
102 public HashSet() { in HashSet() method in HashSet
115 public HashSet(Collection<? extends E> c) { in HashSet() method in HashSet
129 public HashSet(int initialCapacity, float loadFactor) { in HashSet() method in HashSet
141 public HashSet(int initialCapacity) { in HashSet() method in HashSet
158 HashSet(int initialCapacity, float loadFactor, boolean dummy) { in HashSet() method in HashSet
252 HashSet<E> newSet = (HashSet<E>) super.clone(); in clone()
299 map = (((HashSet)this) instanceof LinkedHashSet ? in readObject()
/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 …]
DCollectionCertStore.java33 import java.util.HashSet;
125 HashSet<Certificate> result = new HashSet<>(); in engineGetCertificates()
167 HashSet<CRL> result = new HashSet<>(); in engineGetCRLs()
DIndexedCollectionCertStore.java152 otherCertificates = new HashSet<Certificate>(); in buildIndex()
157 otherCRLs = new HashSet<CRL>(); in buildIndex()
243 Set<Certificate> matches = new HashSet<>(); in engineGetCertificates()
250 Set<Certificate> matches = new HashSet<>(); in engineGetCertificates()
289 Set<X509Certificate> matches = new HashSet<>(16); in engineGetCertificates()
299 Set<Certificate> matches = new HashSet<>(16); in engineGetCertificates()
347 Set<CRL> matches = new HashSet<>(); in engineGetCRLs()
354 Set<CRL> matches = new HashSet<>(); in engineGetCRLs()
371 HashSet<CRL> matches = new HashSet<>(16); in engineGetCRLs()
395 Set<CRL> matches = new HashSet<>(16); in engineGetCRLs()
DForwardState.java34 import java.util.HashSet;
65 HashSet<GeneralNameInterface> subjectNamesTraversed;
137 subjectNamesTraversed = new HashSet<GeneralNameInterface>(); in initState()
253 = (HashSet<GeneralNameInterface>)subjectNamesTraversed.clone(); in clone()
/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 …]
DPKIXRevocationChecker.java31 import java.util.HashSet;
228 : new HashSet<Option>(options); in setOptions()
269 copy.options = new HashSet<>(options); in clone()
/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/icu/
DTimeZoneNamesTest.java21 import java.util.HashSet;
29 HashSet<String> allIds = new HashSet<String>(Arrays.asList(TimeZone.getAvailableIDs())); in test_forLocale()
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java31 import java.util.HashSet;
110 algorithms = new HashSet(); in provide()
127 modes = new HashSet<String>(); in provideCipherModes()
135 paddings = new HashSet<String>(); in provideCipherPaddings()
594 public static final Set<String> SSL_CONTEXT_PROTOCOLS = new HashSet<String>(Arrays.asList(
605 public static final Set<String> KEY_TYPES = new HashSet<String>(Arrays.asList(
621 public static final Set<String> SSL_SOCKET_PROTOCOLS = new HashSet<String>(Arrays.asList(
628 new HashSet<String>(Arrays.asList(
633 new HashSet<String>(Arrays.asList(
670 public static final Set<String> CLIENT_AUTH_TYPES = new HashSet<String>(Arrays.asList(
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java30 import java.util.HashSet;
43 Set<InetAddress> actual = new HashSet<InetAddress>(Collections.list(lo.getInetAddresses())); in testIPv6()
45 Set<InetAddress> expected = new HashSet<InetAddress>(); in testIPv6()
110 Set<String> allNames = new HashSet<String>(); in testDumpAll()
111 Set<Integer> allIndexes = new HashSet<Integer>(); in testDumpAll()
/libcore/support/src/test/java/tests/support/
DSupport_UnmodifiableCollectionTest.java21 import java.util.HashSet;
55 HashSet<Integer> hs = new HashSet<Integer>(); in runTest()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java39 import java.util.HashSet;
67 entry.setValue(new HashSet<String>(entry.getValue())); in test_Provider_getServices()
113 Set<String> toRemove = new HashSet<String>(); in test_Provider_getServices()
249 private static final HashSet<String> TYPES_SUPPORTS_PARAMETER = new HashSet<String>(
254 private static final HashSet<String> TYPES_NOT_SUPPORTS_PARAMETER = new HashSet<String>(
261 HashSet<String> remainingTypes = new HashSet<String>(Arrays.asList(TYPES_SERVICES_CHECKED)); in test_Provider_getServices_supportsParameter()
263 HashSet<String> supportsParameterTypes = new HashSet<String>(); in test_Provider_getServices_supportsParameter()
264 HashSet<String> noSupportsParameterTypes = new HashSet<String>(); in test_Provider_getServices_supportsParameter()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectorImpl.java48 protected HashSet<SelectionKey> keys;
56 keys = new HashSet<SelectionKey>(); in SelectorImpl()
57 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()
/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/ojluni/src/main/java/sun/security/util/
DUntrustedCertificates.java33 import java.util.HashSet;
45 private final static Set<X509Certificate> untrustedCerts = new HashSet<>();
/libcore/ojluni/src/main/java/sun/security/ssl/
DSSLAlgorithmConstraints.java37 import java.util.HashSet;
264 Set<String> components = new HashSet<>(); in decomposes()
359 Set<String> components = new HashSet<>(); in decomposes()
369 Set<String> components = new HashSet<>(); in decomposes()
410 Set<String> components = new HashSet<>(); in decomposes()
451 Set<String> components = new HashSet<>(); in decomposes()
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DSamplingProfiler.java21 import java.util.HashSet;
418 Set<Thread> n = new HashSet<Thread>(Arrays.asList(newThreads)); in updateThreadHistory()
419 Set<Thread> o = new HashSet<Thread>(Arrays.asList(oldThreads)); in updateThreadHistory()
422 Set<Thread> added = new HashSet<Thread>(n); in updateThreadHistory()
426 Set<Thread> removed = new HashSet<Thread>(o); in updateThreadHistory()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java56 import java.util.HashSet;
133 HashSet<TrustAnchor> set = new HashSet<TrustAnchor>(); in getTrustAnchorSet()
286 HashSet<PolicyNode> s = new HashSet<PolicyNode>(); in getPolicyTree()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelector.java31 import java.util.HashSet;
85 private final Set<SelectionKey> cancelledKeys = new HashSet<SelectionKey>();

1234567