/external/protobuf/src/google/protobuf/stubs/ |
D | map_util.h | 74 FindOrDie(const Collection& collection, 76 typename Collection::const_iterator it = collection.find(key); 77 GOOGLE_CHECK(it != collection.end()) << "Map key not found: " << key; 84 FindOrDie(Collection& collection, // NOLINT 86 typename Collection::iterator it = collection.find(key); 87 GOOGLE_CHECK(it != collection.end()) << "Map key not found: " << key; 94 FindOrDieNoPrint(const Collection& collection, 96 typename Collection::const_iterator it = collection.find(key); 97 GOOGLE_CHECK(it != collection.end()) << "Map key not found"; 104 FindOrDieNoPrint(Collection& collection, // NOLINT [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 189 Collection<V> collection = map.get(key); in put() local 190 if (collection == null) { in put() 191 collection = createCollection(key); in put() 192 if (collection.add(value)) { in put() 194 map.put(key, collection); in put() 199 } else if (collection.add(value)) { in put() 208 Collection<V> collection = map.get(key); in getOrCreateCollection() local 209 if (collection == null) { in getOrCreateCollection() 210 collection = createCollection(key); in getOrCreateCollection() 211 map.put(key, collection); in getOrCreateCollection() [all …]
|
D | Sets.java | 115 Collection<E> collection = (Collection<E>) elements; in immutableEnumSet() local 116 if (collection.isEmpty()) { in immutableEnumSet() 119 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); in immutableEnumSet() 410 Collection<E> collection) { in complementOf() argument 411 if (collection instanceof EnumSet) { in complementOf() 412 return EnumSet.complementOf((EnumSet<E>) collection); in complementOf() 414 checkArgument(!collection.isEmpty(), in complementOf() 416 Class<E> type = collection.iterator().next().getDeclaringClass(); in complementOf() 417 return makeComplementByHand(collection, type); in complementOf() 433 Collection<E> collection, Class<E> type) { in complementOf() argument [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingCollection.java | 68 public boolean removeAll(Collection<?> collection) { in removeAll() argument 69 return delegate().removeAll(collection); in removeAll() 93 public boolean containsAll(Collection<?> collection) { in containsAll() argument 94 return delegate().containsAll(collection); in containsAll() 98 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 99 return delegate().addAll(collection); in addAll() 103 public boolean retainAll(Collection<?> collection) { in retainAll() argument 104 return delegate().retainAll(collection); in retainAll() 140 protected boolean standardContainsAll(Collection<?> collection) { in standardContainsAll() argument 141 return Collections2.containsAllImpl(this, collection); in standardContainsAll() [all …]
|
D | AbstractMapBasedMultimap.java | 192 Collection<V> collection = map.get(key); in put() local 193 if (collection == null) { in put() 194 collection = createCollection(key); in put() 195 if (collection.add(value)) { in put() 197 map.put(key, collection); in put() 202 } else if (collection.add(value)) { in put() 211 Collection<V> collection = map.get(key); in getOrCreateCollection() local 212 if (collection == null) { in getOrCreateCollection() 213 collection = createCollection(key); in getOrCreateCollection() 214 map.put(key, collection); in getOrCreateCollection() [all …]
|
D | FilteredEntryMultimap.java | 89 Collection<E> collection, Predicate<? super E> predicate) { in filterCollection() argument 90 if (collection instanceof Set) { in filterCollection() 91 return Sets.filter((Set<E>) collection, predicate); in filterCollection() 93 return Collections2.filter(collection, predicate); in filterCollection() 155 Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key)); in removeEntriesIf() local 156 if (!collection.isEmpty() && predicate.apply(Maps.immutableEntry(key, collection))) { in removeEntriesIf() 157 if (collection.size() == entry.getValue().size()) { in removeEntriesIf() 160 collection.clear(); in removeEntriesIf() 193 Collection<V> collection = unfiltered.asMap().get(key); in remove() local 194 if (collection == null) { in remove() [all …]
|
D | Collections2.java | 107 Collection<?> collection, @Nullable Object object) { in safeContains() argument 108 checkNotNull(collection); in safeContains() 110 return collection.contains(object); in safeContains() 123 static boolean safeRemove(Collection<?> collection, @Nullable Object object) { in safeRemove() argument 124 checkNotNull(collection); in safeRemove() 126 return collection.remove(object); in safeRemove() 157 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 158 for (E element : collection) { in addAll() 161 return unfiltered.addAll(collection); in addAll() 180 public boolean containsAll(Collection<?> collection) { in containsAll() argument [all …]
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
D | IsIn.java | 1 package org.hamcrest.collection; 11 private final Collection<T> collection; field in IsIn 13 public IsIn(Collection<T> collection) { in IsIn() argument 14 this.collection = collection; in IsIn() 18 collection = Arrays.asList(elements); in IsIn() 24 return collection.contains(o); in matches() 30 buffer.appendValueList("{", ", ", "}", collection); in describeTo() 46 public static <T> Matcher<T> isIn(Collection<T> collection) { in isIn() argument 47 return in(collection); in isIn() 60 public static <T> Matcher<T> in(Collection<T> collection) { in in() argument [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionRemoveTester.java | 48 int initialSize = collection.size(); in testRemove_present() 50 collection.remove(samples.e0)); in testRemove_present() 52 initialSize - 1, collection.size()); in testRemove_present() 61 Iterator<E> iterator = collection.iterator(); in testRemovePresentConcurrentWithIteration() 62 assertTrue(collection.remove(samples.e0)); in testRemovePresentConcurrentWithIteration() 73 collection.remove(samples.e3)); in testRemove_notPresent() 80 collection = getSubjectGenerator().create(createArrayWithNullElement()); in testRemove_nullPresent() 82 int initialSize = collection.size(); in testRemove_nullPresent() 83 assertTrue("remove(null) should return true", collection.remove(null)); in testRemove_nullPresent() 85 initialSize - 1, collection.size()); in testRemove_nullPresent() [all …]
|
D | CollectionRemoveAllTester.java | 51 collection.removeAll(MinimalCollection.of())); in testRemoveAll_emptyCollection() 58 collection.removeAll(MinimalCollection.of(samples.e3))); in testRemoveAll_nonePresent() 66 collection.removeAll(MinimalCollection.of(samples.e0))); in testRemoveAll_allPresent() 74 collection.removeAll(MinimalCollection.of(samples.e0, samples.e3))); in testRemoveAll_somePresent() 83 Iterator<E> iterator = collection.iterator(); in testRemoveAllSomePresentConcurrentWithIteration() 84 assertTrue(collection.removeAll(MinimalCollection.of(samples.e0, samples.e3))); in testRemoveAllSomePresentConcurrentWithIteration() 99 collection.removeAll(MinimalCollection.of( in testRemoveAll_somePresentLargeCollectionToRemove() 110 collection.removeAll(MinimalCollection.of())); in testRemoveAll_unsupportedEmptyCollection() 121 collection.removeAll(MinimalCollection.of(samples.e3))); in testRemoveAll_unsupportedNonePresent() 131 collection.removeAll(MinimalCollection.of(samples.e0)); in testRemoveAll_unsupportedPresent() [all …]
|
D | CollectionContainsAllTester.java | 46 collection.containsAll(MinimalCollection.of())); in testContainsAll_empty() 52 collection.containsAll(MinimalCollection.of(samples.e0))); in testContainsAll_subset() 57 collection.containsAll(MinimalCollection.of(createSamplesArray()))); in testContainsAll_sameElements() 63 collection.containsAll(collection)); in testContainsAll_self() 68 collection.containsAll(MinimalCollection.of(samples.e0, samples.e3))); in testContainsAll_partialOverlap() 73 collection.containsAll(MinimalCollection.of(samples.e3))); in testContainsAll_disjoint() 79 assertFalse(collection.containsAll(MinimalCollection.of((E) null))); in testContainsAll_nullNotAllowed() 85 assertFalse(collection.containsAll(MinimalCollection.of((E) null))); in testContainsAll_nullAllowed() 92 assertTrue(collection.containsAll(MinimalCollection.of((E) null))); in testContainsAll_nullPresent() 99 collection.containsAll(wrong)); in testContainsAll_wrongType()
|
D | CollectionAddAllTester.java | 53 collection.addAll(emptyCollection())); in testAddAll_supportedNothing() 61 collection.addAll(emptyCollection())); in testAddAll_unsupportedNothing() 70 collection.addAll(createDisjointCollection())); in testAddAll_supportedNonePresent() 77 collection.addAll(createDisjointCollection()); in testAddAll_unsupportedNonePresent() 89 collection.addAll(MinimalCollection.of(samples.e3, samples.e0))); in testAddAll_supportedSomePresent() 90 assertTrue("should contain " + samples.e3, collection.contains(samples.e3)); in testAddAll_supportedSomePresent() 91 assertTrue("should contain " + samples.e0, collection.contains(samples.e0)); in testAddAll_supportedSomePresent() 98 collection.addAll(MinimalCollection.of(samples.e3, samples.e0)); in testAddAll_unsupportedSomePresent() 110 Iterator<E> iterator = collection.iterator(); in testAddAllConcurrentWithIteration() 111 assertTrue(collection.addAll(MinimalCollection.of(samples.e3, samples.e0))); in testAddAllConcurrentWithIteration() [all …]
|
D | CollectionToArrayTester.java | 46 Object[] array = collection.toArray(); in testToArray_noArgs() 59 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() 65 E[] array = collection.toArray(empty); in testToArray_emptyArray() 75 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() 84 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() 95 array, collection.toArray(array)); in testToArray_rightSizedArray() 103 array, collection.toArray(array)); in testToArray_rightSizedArray_ordered() 110 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject() 118 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered() 127 array, collection.toArray(array)); in testToArray_oversizedArray() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
D | X509CollectionStoreParameters.java | 15 private Collection collection; field in X509CollectionStoreParameters 27 public X509CollectionStoreParameters(Collection collection) in X509CollectionStoreParameters() argument 29 if (collection == null) in X509CollectionStoreParameters() 33 this.collection = collection; in X509CollectionStoreParameters() 44 return new X509CollectionStoreParameters(collection); in clone() 54 return new ArrayList(collection); in getCollection() 66 sb.append(" collection: " + collection + "\n"); in toString()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/ |
D | CollectionAddAllTester.java | 50 collection.addAll(emptyCollection())); in testAddAll_supportedNothing() 58 collection.addAll(emptyCollection())); in testAddAll_unsupportedNothing() 67 collection.addAll(createDisjointCollection())); in testAddAll_supportedNonePresent() 74 collection.addAll(createDisjointCollection()); in testAddAll_unsupportedNonePresent() 86 collection.addAll(MinimalCollection.of(samples.e3, samples.e0))); in testAddAll_supportedSomePresent() 87 assertTrue("should contain " + samples.e3, collection.contains(samples.e3)); in testAddAll_supportedSomePresent() 88 assertTrue("should contain " + samples.e0, collection.contains(samples.e0)); in testAddAll_supportedSomePresent() 95 collection.addAll(MinimalCollection.of(samples.e3, samples.e0)); in testAddAll_unsupportedSomePresent() 107 Iterator<E> iterator = collection.iterator(); in testAddAllConcurrentWithIteration() 108 assertTrue(collection.addAll(MinimalCollection.of(samples.e3, samples.e0))); in testAddAllConcurrentWithIteration() [all …]
|
D | CollectionToArrayTester.java | 43 Object[] array = collection.toArray(); in testToArray_noArgs() 56 Object[] array = collection.toArray(); in testToArray_isPlainObjectArray() 62 E[] array = collection.toArray(empty); in testToArray_emptyArray() 72 E[] array = collection.toArray(empty); in testToArray_emptyArray_ordered() 81 Object[] array = collection.toArray(in); in testToArray_emptyArrayOfObject() 92 array, collection.toArray(array)); in testToArray_rightSizedArray() 100 array, collection.toArray(array)); in testToArray_rightSizedArray_ordered() 107 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject() 115 array, collection.toArray(array)); in testToArray_rightSizedArrayOfObject_ordered() 124 array, collection.toArray(array)); in testToArray_oversizedArray() [all …]
|
D | CollectionAddTester.java | 47 collection.add(samples.e3)); in testAdd_supportedNotPresent() 54 collection.add(samples.e3); in testAdd_unsupportedNotPresent() 67 collection.add(samples.e0)); in testAdd_unsupportedPresent() 77 assertTrue("add(null) should return true", collection.add(null)); in testAdd_nullSupported() 85 collection.add(null); in testAdd_nullUnsupported() 99 Iterator<E> iterator = collection.iterator(); in testAddConcurrentWithIteration() 100 assertTrue(collection.add(samples.e3)); in testAddConcurrentWithIteration()
|
/external/pdfium/third_party/base/ |
D | stl_util.h | 19 bool ContainsKey(const Collection& collection, const Key& key) { in ContainsKey() argument 20 return collection.find(key) != collection.end(); in ContainsKey() 26 bool ContainsValue(const Collection& collection, const Value& value) { in ContainsValue() argument 27 return std::find(collection.begin(), collection.end(), value) != in ContainsValue() 28 collection.end(); in ContainsValue() 43 ResultType CollectionSize(const Collection& collection) { in CollectionSize() argument 44 return pdfium::base::checked_cast<ResultType>(collection.size()); in CollectionSize()
|
/external/libcups/cups/ |
D | testipp.c | 48 static ipp_uchar_t collection[] = /* Collection buffer */ variable 312 if (length != sizeof(collection)) in main() 315 (int)length, (int)sizeof(collection)); in main() 341 else if (data.wused != sizeof(collection)) in main() 344 (int)sizeof(collection)); in main() 346 hex_dump("Baseline", collection, sizeof(collection)); in main() 349 else if (memcmp(data.wbuffer, collection, data.wused)) in main() 352 if (data.wbuffer[i] != collection[i]) in main() 357 hex_dump("Baseline", collection, sizeof(collection)); in main() 393 else if (length != sizeof(collection)) in main() [all …]
|
/external/libtextclassifier/util/gtl/ |
D | map_util.h | 33 const Collection& collection, in FindWithDefault() argument 36 typename Collection::const_iterator it = collection.find(key); in FindWithDefault() 37 if (it == collection.end()) { in FindWithDefault() 48 bool InsertIfNotPresent(Collection* const collection, in InsertIfNotPresent() argument 50 return collection->insert(vt).second; in InsertIfNotPresent() 56 Collection* const collection, in InsertIfNotPresent() argument 59 return InsertIfNotPresent(collection, in InsertIfNotPresent()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | UnmodifiableCollectionTests.java | 115 Collection<E> collection, E sampleElement) { in assertCollectionIsUnmodifiable() argument 119 copy.addAll(collection); in assertCollectionIsUnmodifiable() 121 collection.add(sampleElement); in assertCollectionIsUnmodifiable() 126 assertCollectionsAreEquivalent(copy, collection); in assertCollectionIsUnmodifiable() 129 collection.addAll(siblingCollection); in assertCollectionIsUnmodifiable() 133 assertCollectionsAreEquivalent(copy, collection); in assertCollectionIsUnmodifiable() 136 collection.clear(); in assertCollectionIsUnmodifiable() 140 assertCollectionsAreEquivalent(copy, collection); in assertCollectionIsUnmodifiable() 142 assertIteratorIsUnmodifiable(collection.iterator()); in assertCollectionIsUnmodifiable() 143 assertCollectionsAreEquivalent(copy, collection); in assertCollectionIsUnmodifiable() [all …]
|
D | MultimapPutTester.java | 139 Collection<V> collection = multimap().get(sampleKeys().e3); in testPutNotPresentKeyPropagatesToGet() local 140 assertThat(collection).isEmpty(); in testPutNotPresentKeyPropagatesToGet() 142 assertThat(collection).has().item(sampleValues().e3); in testPutNotPresentKeyPropagatesToGet() 172 Collection<V> collection = multimap().get(key); in testPutPresentKeyPropagatesToGet() local 173 Collection<V> expectedCollection = Helpers.copyToList(collection); in testPutPresentKeyPropagatesToGet() 177 assertThat(collection).has().exactlyAs(expectedCollection); in testPutPresentKeyPropagatesToGet() 191 Collection<V> collection = multimap().asMap().get(key); in testPutPresentKeyPropagatesToAsMapGet() local 192 assertNotNull(collection); in testPutPresentKeyPropagatesToAsMapGet() 193 Collection<V> expectedCollection = Helpers.copyToList(collection); in testPutPresentKeyPropagatesToAsMapGet() 197 assertThat(collection).has().exactlyAs(expectedCollection); in testPutPresentKeyPropagatesToAsMapGet() [all …]
|
D | MultimapRemoveEntryTester.java | 128 Collection<V> collection = multimap().get(key); in testRemovePropagatesToGet() local 129 assertNotNull(collection); in testRemovePropagatesToGet() 130 Collection<V> expectedCollection = Helpers.copyToList(collection); in testRemovePropagatesToGet() 135 assertThat(collection).has().exactlyAs(expectedCollection); in testRemovePropagatesToGet() 149 Collection<V> collection = multimap().asMap().get(key); in testRemovePropagatesToAsMap() local 150 assertNotNull(collection); in testRemovePropagatesToAsMap() 151 Collection<V> expectedCollection = Helpers.copyToList(collection); in testRemovePropagatesToAsMap() 156 assertThat(collection).has().exactlyAs(expectedCollection); in testRemovePropagatesToAsMap() 172 Collection<V> collection = null; in testRemovePropagatesToAsMapEntrySet() local 176 collection = asMapEntry.getValue(); in testRemovePropagatesToAsMapEntrySet() [all …]
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/ |
D | Matchers.java | 558 …public static <T> org.hamcrest.collection.IsArray<T> array(org.hamcrest.Matcher<? super T>... elem… in array() 559 return org.hamcrest.collection.IsArray.<T>array(elementMatchers); in array() 573 return org.hamcrest.collection.IsArrayContaining.<T>hasItemInArray(elementMatcher); in hasItemInArray() 587 return org.hamcrest.collection.IsArrayContaining.<T>hasItemInArray(element); in hasItemInArray() 601 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(items); in arrayContaining() 615 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(itemMatchers); in arrayContaining() 629 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(itemMatchers); in arrayContaining() 653 …return org.hamcrest.collection.IsArrayContainingInAnyOrder.<E>arrayContainingInAnyOrder(itemMatche… in arrayContainingInAnyOrder() 677 …return org.hamcrest.collection.IsArrayContainingInAnyOrder.<E>arrayContainingInAnyOrder(itemMatche… in arrayContainingInAnyOrder() 699 return org.hamcrest.collection.IsArrayContainingInAnyOrder.<E>arrayContainingInAnyOrder(items); in arrayContainingInAnyOrder() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingMultisetTest.java | 55 @Override public boolean addAll(Collection<? extends T> collection) { in addAll() argument 56 return standardAddAll(collection); in addAll() 75 @Override public boolean containsAll(Collection<?> collection) { in containsAll() argument 76 return standardContainsAll(collection); in containsAll() 83 @Override public boolean removeAll(Collection<?> collection) { in removeAll() argument 84 return standardRemoveAll(collection); in removeAll() 87 @Override public boolean retainAll(Collection<?> collection) { in retainAll() argument 88 return standardRetainAll(collection); in retainAll() 200 Collection<? extends Entry<String>> collection) { in suite() 209 @Override public boolean containsAll(Collection<?> collection) { in suite() [all …]
|