HomeSort by relevance Sort by last modified time
    Searched refs:hashSet (Results 1 - 25 of 38) sorted by null

1 2

  /external/deqp/framework/delibs/depool/
dePoolHashSet.h 48 * HashSet* HashSet_create (deMemPool* pool);
49 * int HashSet_getNumElements (const HashSet* hashSet);
50 * Set<Value>* HashSet_find (const HashSet* hashSet, Key key); TODO: better API
51 * Hash<Set*>* HashSet_getHash (const HashSet* hashSet); TODO: better API
52 * deBool HashSet_insert (HashSet* hashSet, Key key, Value value);
53 * void HashSet_delete (HashSet* hashSet, Key key, Value value)
    [all...]
dePoolHashSet.c 34 deTestHashSet* hashSet = deTestHashSet_create(pool);
38 DE_TEST_ASSERT(deTestHashSet_getNumElements(hashSet) == 0);
43 deTestHashSet_insert(hashSet, (deInt16)i, 2*j + 5);
45 DE_TEST_ASSERT(deTestHashSet_getNumElements(hashSet) == 19);
52 deTestHashSet_delete(hashSet, (deInt16)i, 2*j + 5);
54 DE_TEST_ASSERT(deTestHashSet_getNumElements(hashSet) == 19);
58 DE_TEST_ASSERT(deTestHash_getNumElements(hashSet) == 0);
  /packages/apps/Settings/src/com/android/settings/inputmethod/
UserDictionaryCursorLoader.java 84 final Set<Integer> hashSet = new ArraySet<>();
90 if (hashSet.contains(hash)) {
93 hashSet.add(hash);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
HashSetTest.java 24 import java.util.HashSet;
41 HashSet hs;
46 * java.util.HashSet#HashSet()
49 // Test for method java.util.HashSet()
50 HashSet hs2 = new HashSet();
51 assertEquals("Created incorrect HashSet", 0, hs2.size());
55 * java.util.HashSet#HashSet(int
    [all...]
LinkedHashSetTest.java 24 import java.util.HashSet;
335 LinkedHashSet<String> hashSet = new LinkedHashSet<>();
338 hashSet.addAll(keys);
341 SpliteratorTester.runBasicIterationTests_unordered(hashSet.spliterator(), expectedKeys,
343 SpliteratorTester.runBasicSplitTests(hashSet, expectedKeys);
344 SpliteratorTester.testSpliteratorNPE(hashSet.spliterator());
346 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.ORDERED));
349 assertTrue(hashSet.spliterator().hasCharacteristics(Spliterator.DISTINCT));
351 SpliteratorTester.assertSupportsTrySplit(hashSet);
  /libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
StreamFlagsTest.java 45 Stream<String> hashSet = new HashSet<String>().stream();
50 Stream<?>[] streams = { arrayList, linkedList, hashSet, treeSet, linkedHashSet, repeat };
62 Stream<String> hashSet = new HashSet<String>().stream();
73 assertFlags(OpTestCase.getStreamFlags(hashSet),
  /frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/
TypeAssignmentTest.kt 37 import java.util.HashSet;
44 HashSet<MyObject> mHashSet;
68 val hashSet = testObject.getField(processingEnv, "mHashSet").asType()
71 to = hashSet
74 from = hashSet,
  /external/mockito/src/main/java/org/mockito/internal/util/collections/
HashCodeAndEqualsSafeSet.java 11 import java.util.HashSet;
34 private final HashSet<HashCodeAndEqualsMockWrapper> backingHashSet = new HashSet<HashCodeAndEqualsMockWrapper>();
131 private HashSet<HashCodeAndEqualsMockWrapper> asWrappedMocks(Collection<?> mocks) {
133 HashSet<HashCodeAndEqualsMockWrapper> hashSet = new HashSet<HashCodeAndEqualsMockWrapper>();
136 hashSet.add(HashCodeAndEqualsMockWrapper.of(mock));
138 return hashSet;
  /external/mockito/src/test/java/org/mockitousage/stubbing/
ReturningDefaultValuesTest.java 14 import java.util.HashSet;
59 assertTrue(mock.hashSet().isEmpty());
85 HashSet<?> hashSet() {
  /cts/tests/tests/util/src/android/util/cts/
ArraySetTest.java 36 import java.util.HashSet;
139 private static <E> void compareSets(HashSet<E> set, ArraySet<E> array) {
142 // Check that every entry in HashSet is in ArraySet.
147 // Check that every entry in ArraySet is in HashSet using ArraySet.iterator().
153 // Check that every entry in ArraySet is in HashSet using ArraySet.valueAt().
164 assertTrue("HashSet.equals(ArraySet) failed", set.equals(array));
165 assertTrue("ArraySet.equals(HashSet) failed", array.equals(set));
167 assertTrue("HashSet.containsAll(ArraySet) failed", set.containsAll(array));
168 assertTrue("ArraySet.containsAll(HashSet) failed", array.containsAll(set));
195 private static <E> void dump(HashSet<E> set, ArraySet<E> array)
    [all...]
  /frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
ArrayMapTests.java 25 import java.util.HashSet;
211 private static boolean compareSets(HashSet set, ArraySet array) {
313 Log.e("test", "HashSet of " + set.size() + " entries:");
338 HashSet<ControlledHash> hashSet = new HashSet<ControlledHash>();
352 hashChanged = hashSet.add(key);
359 hashChanged = hashSet.remove(key);
373 dump(hashSet, arraySet);
384 if (!compareSets(hashSet, arraySet))
    [all...]
  /libcore/ojluni/src/main/java/java/security/cert/
PKIXParameters.java 35 import java.util.HashSet;
147 Set<TrustAnchor> hashSet = new HashSet<TrustAnchor>();
154 hashSet.add(new TrustAnchor((X509Certificate)cert, null));
157 setTrustAnchors(hashSet);
210 (new HashSet<TrustAnchor>(trustAnchors));
259 Collections.unmodifiableSet(new HashSet<String>(initialPolicies));
  /packages/apps/Launcher3/src/com/android/launcher3/
Utilities.java 60 import java.util.HashSet;
577 * Returns a HashSet with a single element. We use this instead of Collections.singleton()
578 * because HashSet ensures all operations, such as remove, are supported.
580 public static <T> HashSet<T> singletonHashSet(T elem) {
581 HashSet<T> hashSet = new HashSet<>(1);
582 hashSet.add(elem);
583 return hashSet;
  /external/guice/core/test/com/google/inject/spi/
InjectionPointTest.java 42 import java.util.HashSet;
142 Constructor<HashSet> constructor = HashSet.class.getConstructor();
143 TypeLiteral<HashSet<String>> hashSet = new TypeLiteral<HashSet<String>>() {};
145 InjectionPoint injectionPoint = InjectionPoint.forConstructor(constructor, hashSet);
154 " does not define java.util.HashSet.<init>()",
162 " does not define java.util.HashSet.<init>()",
302 Set<String> methods = new HashSet<String>()
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/
ShortcutManagerTest1.java 55 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.hashSet;
    [all...]
BaseShortcutManagerTest.java 21 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.hashSet;
111 import java.util.HashSet;
785 mUninstalledPackages = new HashSet<>();
786 mDisabledPackages = new HashSet<>();
787 mSystemPackages = new HashSet<>();
788 mEphemeralPackages = new HashSet<>();
    [all...]
  /frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
ShortcutManagerTestUtils.java 352 public static <T> Set<T> hashSet(Set<T> in) {
    [all...]
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.29/
mockito-core-2.2.29.jar 
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/
mockito-core-2.2.5.jar 
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.1/
mockito-core-2.7.1.jar 
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.6/
mockito-core-2.7.6.jar 
  /external/robolectric/v1/lib/main/
h2-1.2.147.jar 
  /prebuilts/devtools/tools/lib/
uast-162.2228.14.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/uast/145.597.3/
uast-145.597.3.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/uast/162.2228.14/
uast-162.2228.14.jar 

Completed in 674 milliseconds

1 2