/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 …]
|
D | map-util.h | 47 FindWithDefault(const Collection& collection, in FindWithDefault() argument 50 typename Collection::const_iterator it = collection.find(key); in FindWithDefault() 51 if (it == collection.end()) { in FindWithDefault() 62 FindOrNull(const Collection& collection, in FindOrNull() argument 64 typename Collection::const_iterator it = collection.find(key); in FindOrNull() 65 if (it == collection.end()) { in FindOrNull() 78 FindPtrOrNull(const Collection& collection, in FindPtrOrNull() argument 80 typename Collection::const_iterator it = collection.find(key); in FindPtrOrNull() 81 if (it == collection.end()) { in FindPtrOrNull() 92 bool InsertOrUpdate(Collection * const collection, in InsertOrUpdate() argument [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 190 Collection<V> collection = map.get(key); in put() local 191 if (collection == null) { in put() 192 collection = createCollection(key); in put() 193 if (collection.add(value)) { in put() 195 map.put(key, collection); in put() 200 } else if (collection.add(value)) { in put() 209 Collection<V> collection = map.get(key); in getOrCreateCollection() local 210 if (collection == null) { in getOrCreateCollection() 211 collection = createCollection(key); in getOrCreateCollection() 212 map.put(key, collection); in getOrCreateCollection() [all …]
|
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 | 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 …]
|
/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 …]
|
/external/chromium-trace/trace-viewer/third_party/Paste/tests/ |
D | test_httpheaders.py | 4 def _test_generic(collection): argument 5 assert 'bing' == VIA(collection) 6 REFERER.update(collection,'internal:/some/path') 7 assert 'internal:/some/path' == REFERER(collection) 8 CACHE_CONTROL.update(collection,max_age=1234) 9 CONTENT_DISPOSITION.update(collection,filename="bingles.txt") 10 PRAGMA.update(collection,"test","multi",'valued="items"') 11 assert 'public, max-age=1234' == CACHE_CONTROL(collection) 13 CONTENT_DISPOSITION(collection) 14 assert 'test, multi, valued="items"' == PRAGMA(collection) [all …]
|
/external/ceres-solver/internal/ceres/ |
D | map_util.h | 59 FindOrDie(const Collection& collection, in FindOrDie() argument 61 typename Collection::const_iterator it = collection.find(key); in FindOrDie() 62 CHECK(it != collection.end()) << "Map key not found: " << key; in FindOrDie() 71 FindWithDefault(const Collection& collection, in FindWithDefault() argument 74 typename Collection::const_iterator it = collection.find(key); in FindWithDefault() 75 if (it == collection.end()) { in FindWithDefault() 87 Collection * const collection, in InsertIfNotPresent() argument 91 collection->insert(typename Collection::value_type(key, value)); in InsertIfNotPresent() 100 FindOrNull(Collection& collection, // NOLINT in FindOrNull() argument 102 typename Collection::iterator it = collection.find(key); in FindOrNull() [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/hamcrest/library/src/org/hamcrest/collection/ |
D | IsIn.java | 1 package org.hamcrest.collection; 12 private final Collection<T> collection; field in IsIn 14 public IsIn(Collection<T> collection) { in IsIn() argument 15 this.collection = collection; in IsIn() 19 collection = Arrays.asList(elements); in IsIn() 23 return collection.contains(o); in matches() 28 buffer.appendValueList("{", ", ", "}", collection); in describeTo() 32 public static <T> Matcher<T> isIn(Collection<T> collection) { in isIn() argument 33 return new IsIn<T>(collection); in isIn()
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
D | CollectionSerializer.java | 55 Collection collection; in readObject() local 57 collection = (Collection)c.newInstance(); in readObject() 60 collection = new ArrayList(length); in readObject() 63 if (length == 0) return (T)collection; in readObject() 71 collection.add(serializer.readObject(data, clazz)); in readObject() 75 collection.add(Serializer.readClassAndObject(data)); in readObject() 78 return (T)collection; in readObject() 82 Collection collection = (Collection)object; in writeObject() local 83 int length = collection.size(); in writeObject() 88 Iterator it = collection.iterator(); in writeObject() [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 …]
|
/external/chromium-trace/trace-viewer/third_party/Paste/paste/ |
D | httpheaders.py | 303 def apply(self, collection, **kwargs): argument 313 self.update(collection, **kwargs) 440 def delete(self, collection): argument 444 if type(collection) == dict: 445 if self._environ_name in collection: 446 del collection[self._environ_name] 448 assert list == type(collection) 450 while i < len(collection): 451 if collection[i][0].lower() == self._headers_name: 452 del collection[i] [all …]
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/ |
D | Filters.java | 60 public static <T> Filter<T> in( Collection<? extends T> collection ) in in() argument 62 return new InFilter<T>(collection); in in() 80 public static <T> Filter<T> notIn( Collection<? extends T> collection ) in notIn() argument 82 return not( in( collection ) ); in notIn() 130 private Collection<? extends T> collection; field in Filters.InFilter 132 public InFilter( Collection<? extends T> collection ) in InFilter() argument 134 this.collection = collection; in InFilter() 139 return collection.contains(input); in apply()
|
/external/lldb/source/Breakpoint/ |
D | BreakpointSiteList.cpp | 40 collection::iterator iter = m_bp_site_list.find (bp_site_load_addr); in Add() 44 m_bp_site_list.insert (iter, collection::value_type (bp_site_load_addr, bp)); in Add() 85 collection::iterator pos = GetIDIterator(break_id); // Predicate in Remove() 98 collection::iterator pos = m_bp_site_list.find(address); in RemoveByAddress() 124 BreakpointSiteList::collection::iterator 132 BreakpointSiteList::collection::const_iterator 145 collection::iterator pos = GetIDIterator(break_id); in FindByID() 157 collection::const_iterator pos = GetIDConstIterator(break_id); in FindByID() 169 collection::iterator iter = m_bp_site_list.find(addr); in FindByAddress() 179 collection::const_iterator pos = GetIDConstIterator(bp_site_id); in BreakpointSiteContainsBreakpoint() [all …]
|
/external/lldb/source/Plugins/SymbolFile/DWARF/ |
D | DWARFDeclContext.cpp | 35 collection::const_reverse_iterator pos; in GetQualifiedName() 36 collection::const_reverse_iterator begin = m_entries.rbegin(); in GetQualifiedName() 37 collection::const_reverse_iterator end = m_entries.rend(); in GetQualifiedName() 73 collection::const_iterator pos; in operator ==() 74 collection::const_iterator begin = m_entries.begin(); in operator ==() 75 collection::const_iterator end = m_entries.end(); in operator ==() 77 collection::const_iterator rhs_pos; in operator ==() 78 collection::const_iterator rhs_begin = rhs.m_entries.begin(); in operator ==()
|
/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 …]
|
/external/lldb/source/Target/ |
D | UnixSignals.cpp | 116 collection::iterator pos = m_signals.find (signo); in RemoveSignal() 124 collection::const_iterator pos = m_signals.find (signo); in GetSignalAsCString() 144 collection::const_iterator pos, end = m_signals.end (); in GetSignalNumberFromName() 169 collection::const_iterator pos = m_signals.find (current_signal); in GetNextSignalNumber() 170 collection::const_iterator end = m_signals.end(); in GetNextSignalNumber() 192 collection::const_iterator pos = m_signals.find (signo); in GetSignalInfo() 208 collection::const_iterator pos = m_signals.find (signo); in GetShouldSuppress() 217 collection::iterator pos = m_signals.find (signo); in SetShouldSuppress() 238 collection::const_iterator pos = m_signals.find (signo); in GetShouldStop() 247 collection::iterator pos = m_signals.find (signo); in SetShouldStop() [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 …]
|