HomeSort by relevance Sort by last modified time
    Searched defs:collection (Results 1 - 25 of 854) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/libs/hwui/tests/unit/
StringUtilsTests.cpp 25 auto collection = StringUtils::split("a b c"); local
27 EXPECT_TRUE(collection.has("a"));
28 EXPECT_TRUE(collection.has("b"));
29 EXPECT_TRUE(collection.has("c"));
30 EXPECT_FALSE(collection.has("d"));
34 auto collection = StringUtils::split("GL_ext1 GL_ext2 GL_ext3"); local
36 EXPECT_TRUE(collection.has("GL_ext1"));
37 EXPECT_FALSE(collection.has("GL_ext")); // string present, but not in list
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsCollectionWithSize.java 1 package org.hamcrest.collection;
6 import java.util.Collection;
11 * Matches if collection size satisfies a nested matcher.
13 public class IsCollectionWithSize<E> extends FeatureMatcher<Collection<? extends E>, Integer> {
15 super(sizeMatcher, "a collection with size", "collection size");
19 protected Integer featureValueOf(Collection<? extends E> actual) {
24 * Creates a matcher for {@link java.util.Collection}s that matches when the <code>size()</code> method returns
30 * a matcher for the size of an examined {@link java.util.Collection}
32 public static <E> Matcher<Collection<? extends E>> hasSize(Matcher<? super Integer> sizeMatcher)
    [all...]
IsIn.java 1 package org.hamcrest.collection;
8 import java.util.Collection;
11 private final Collection<T> collection; field in class:IsIn
13 public IsIn(Collection<T> collection) {
14 this.collection = collection;
18 collection = Arrays.asList(elements);
24 return collection.contains(o)
    [all...]
IsArrayWithSize.java 1 package org.hamcrest.collection;
IsEmptyCollection.java 1 package org.hamcrest.collection;
7 import java.util.Collection;
10 * Tests if collection is empty.
12 public class IsEmptyCollection<E> extends TypeSafeMatcher<Collection<? extends E>> {
15 public boolean matchesSafely(Collection<? extends E> item) {
20 public void describeMismatchSafely(Collection<? extends E> item, Description mismatchDescription) {
26 description.appendText("an empty collection");
30 * Creates a matcher for {@link java.util.Collection}s matching examined collections whose <code>isEmpty</code>
36 public static <E> Matcher<Collection<? extends E>> empty() {
41 * Creates a matcher for {@link java.util.Collection}s matching examined collections whose <code>isEmpty</code
    [all...]
IsEmptyIterable.java 1 package org.hamcrest.collection;
8 * Tests if collection is empty.
IsIterableWithSize.java 1 package org.hamcrest.collection;
IsMapWithSize.java 1 package org.hamcrest.collection;
IsArray.java 1 package org.hamcrest.collection;
IsArrayContaining.java 1 package org.hamcrest.collection;
IsArrayContainingInAnyOrder.java 1 package org.hamcrest.collection;
9 import java.util.Collection;
16 private final Collection<Matcher<? super E>> matchers;
18 public IsArrayContainingInAnyOrder(Collection<Matcher<? super E>> matchers) {
66 * examined array satisfies one matcher anywhere in the specified collection of matchers.
67 * For a positive match, the examined array must be of the same length as the specified collection
71 * N.B. each matcher in the specified collection will only be used once during a given
83 public static <E> Matcher<E[]> arrayContainingInAnyOrder(Collection<Matcher<? super E>> itemMatchers) {
IsArrayContainingInOrder.java 1 package org.hamcrest.collection;
9 import java.util.Collection;
16 private final Collection<Matcher<? super E>> matchers;
  /external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
IsInTest.java 1 package org.hamcrest.collection;
8 import java.util.Collection;
19 Collection<String> collection = Arrays.asList(elements); local
20 Matcher<String> isIn = new IsIn<String>(collection);
IsArrayContainingInAnyOrderTest.java 1 package org.hamcrest.collection;
6 import static org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder;
IsArrayContainingTest.java 1 package org.hamcrest.collection;
6 import static org.hamcrest.collection.IsArrayContaining.hasItemInArray;
43 // arrayContaining("a"), "not a collection");
IsArrayWithSizeTest.java 1 package org.hamcrest.collection;
6 import static org.hamcrest.collection.IsArrayWithSize.arrayWithSize;
7 import static org.hamcrest.collection.IsArrayWithSize.emptyArray;
IsIterableWithSizeTest.java 1 package org.hamcrest.collection;
9 import static org.hamcrest.collection.IsIterableWithSize.iterableWithSize;
IsMapContainingTest.java 1 package org.hamcrest.collection;
9 import static org.hamcrest.collection.IsMapContaining.hasEntry;
IsMapContainingValueTest.java 1 package org.hamcrest.collection;
11 import static org.hamcrest.collection.IsMapContaining.hasValue;
  /frameworks/base/core/tests/coretests/src/com/android/internal/util/
ArrayUtilsTest.java 40 ArrayList<Object> collection = null; local
41 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
43 collection = new ArrayList<>();
44 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
46 collection = new ArrayList<>(Collections.singletonList(a));
47 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
48 assertEquals(1, collection.size());
49 assertTrue(collection.contains(a));
51 collection = new ArrayList<>(Collections.singletonList(null));
52 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull))
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
X509CollectionStoreParameters.java 4 import java.util.Collection;
7 * This class contains a collection for collection based <code>X509Store</code>s.
15 private Collection collection; field in class:X509CollectionStoreParameters
20 * The collection is copied.
23 * @param collection
24 * The collection containing X.509 object types.
25 * @throws NullPointerException if <code>collection</code> is <code>null</code>.
27 public X509CollectionStoreParameters(Collection collection
    [all...]
  /external/guava/guava/src/com/google/common/collect/
ImmutableAsList.java 28 * to the backing collection.
39 // The collection's contains() is at least as fast as ImmutableList's
64 final ImmutableCollection<?> collection; field in class:ImmutableAsList.SerializedForm
65 SerializedForm(ImmutableCollection<?> collection) {
66 this.collection = collection;
69 return collection.asList();
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
IterablesTest.java 38 import java.util.Collection;
81 List<Integer> collection = new ArrayList<Integer>(nums) { local
86 assertEquals(5, Iterables.size(collection));
528 Collection<String> set = ImmutableSet.of("a", "b", "c", "d", "e");
534 Collection<String> list = newArrayList("a", "b", "c", "d", "e");
540 Collection<String> set = ImmutableSet.of("a", "b");
545 Collection<String> list = newArrayList("a", "b");
550 Collection<String> set = ImmutableSet.of("a", "b");
555 Collection<String> list = newArrayList("a", "b");
560 Collection<String> set = Sets.newHashSet("a", "b")
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/
AbstractCollectionTester.java 21 import java.util.Collection;
24 * Base class for collection testers.
26 * @param <E> the element type of the collection to be tested.
32 extends AbstractContainerTester<Collection<E>, E> {
35 protected Collection<E> collection; field in class:AbstractCollectionTester
37 @Override protected Collection<E> actualContents() {
38 return collection;
41 // TODO: dispose of this once collection is encapsulated.
42 @Override protected Collection<E> resetContainer(Collection<E> newContents)
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
IterablesTest.java 43 import java.util.Collection;
87 List<Integer> collection = new ArrayList<Integer>(nums) { local
92 assertEquals(5, Iterables.size(collection));
593 Collection<String> set = ImmutableSet.of("a", "b", "c", "d", "e");
599 Collection<String> list = newArrayList("a", "b", "c", "d", "e");
605 Collection<String> set = ImmutableSet.of("a", "b");
610 Collection<String> list = newArrayList("a", "b");
615 Collection<String> set = ImmutableSet.of("a", "b");
620 Collection<String> list = newArrayList("a", "b");
625 Collection<String> set = Sets.newHashSet("a", "b")
    [all...]

Completed in 813 milliseconds

1 2 3 4 5 6 7 8 91011>>