Searched defs:collection (Results 1 - 25 of 115) sorted by relevance

12345

/external/chromium/chrome/browser/
H A Dbrowsing_data_appcache_helper_unittest.cc51 std::map<GURL, appcache::AppCacheInfoVector>& collection = local
54 ASSERT_EQ(2u, collection.size());
55 EXPECT_TRUE(ContainsKey(collection, manifest1.GetOrigin()));
56 ASSERT_EQ(1u, collection[manifest1.GetOrigin()].size());
57 EXPECT_EQ(manifest1, collection[manifest1.GetOrigin()].at(0).manifest_url);
59 EXPECT_TRUE(ContainsKey(collection, manifest2.GetOrigin()));
60 EXPECT_EQ(2u, collection[manifest2.GetOrigin()].size());
62 manifest_results.insert(collection[manifest2.GetOrigin()].at(0).manifest_url);
63 manifest_results.insert(collection[manifest2.GetOrigin()].at(1).manifest_url);
83 std::map<GURL, appcache::AppCacheInfoVector>& collection local
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DImmutableAsList.java26 * List returned by {@link ImmutableCollection#asList} when the collection isn't
34 private final transient ImmutableCollection<E> collection; field in class:ImmutableAsList
36 ImmutableAsList(Object[] array, ImmutableCollection<E> collection) { argument
38 this.collection = collection;
42 // The collection's contains() is at least as fast as RegularImmutableList's
44 return collection.contains(target);
51 final ImmutableCollection<?> collection; field in class:ImmutableAsList.SerializedForm
52 SerializedForm(ImmutableCollection<?> collection) { argument
53 this.collection
[all...]
H A DImmutableEnumSet.java65 @Override public boolean containsAll(Collection<?> collection) { argument
66 return delegate.containsAll(collection);
H A DForwardingCollection.java29 * A collection which forwards all its method calls to another collection.
31 * backing collection as desired per the <a
69 public boolean removeAll(Collection<?> collection) { argument
70 return delegate().removeAll(collection);
94 public boolean containsAll(Collection<?> collection) { argument
95 return delegate().containsAll(collection);
99 public boolean addAll(Collection<? extends E> collection) { argument
100 return delegate().addAll(collection);
104 public boolean retainAll(Collection<?> collection) { argument
141 standardContainsAll(Collection<?> collection) argument
157 standardAddAll(Collection<? extends E> collection) argument
188 standardRemoveAll(Collection<?> collection) argument
200 standardRetainAll(Collection<?> collection) argument
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DAbstractCollectionTester.java22 * Base class for collection testers.
26 * @param <E> the element type of the collection to be tested.
34 protected Collection<E> collection; field in class:AbstractCollectionTester
37 return collection;
40 // TODO: dispose of this once collection is encapsulated.
42 collection = super.resetContainer(newContents);
43 return collection;
H A DMinimalCollection.java25 * A simplistic collection which implements only the bare minimum allowed by the
78 @Override public boolean containsAll(Collection<?> collection) { argument
80 for (Object object : collection) {
87 return super.containsAll(collection);
101 * a "type A" unmodifiable collection freaks out proactively, even if there
H A DSortedMapInterfaceTest.java177 private static <E> List<E> toList(Collection<E> collection) { argument
178 return new ArrayList<E>(collection);
/external/jmonkeyengine/engine/src/networking/com/jme3/network/
H A DFilters.java58 * collection and false for all other cases.
60 public static <T> Filter<T> in( Collection<? extends T> collection )
62 return new InFilter<T>(collection);
77 * collection and false for all other cases. This is the equivalent
78 * of calling not(in(collection)).
80 public static <T> Filter<T> notIn( Collection<? extends T> collection )
82 return not( in( collection ) );
130 private Collection<? extends T> collection; field in class:Filters.InFilter
132 public InFilter( Collection<? extends T> collection )
134 this.collection
[all...]
/external/junit/src/org/junit/internal/matchers/
H A DIsCollectionContaining.java22 public boolean matchesSafely(Iterable<T> collection) { argument
23 for (T item : collection) {
33 .appendText("a collection containing ")
/external/protobuf/src/google/protobuf/stubs/
H A Dmap-util.h47 FindWithDefault(const Collection& collection, argument
50 typename Collection::const_iterator it = collection.find(key);
51 if (it == collection.end()) {
62 FindOrNull(const Collection& collection, argument
64 typename Collection::const_iterator it = collection.find(key);
65 if (it == collection.end()) {
78 FindPtrOrNull(const Collection& collection, argument
80 typename Collection::const_iterator it = collection.find(key);
81 if (it == collection.end()) {
92 bool InsertOrUpdate(Collection * const collection, argument
109 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument
[all...]
/external/chromium/chrome/browser/notifications/
H A Dballoon.cc15 BalloonCollection* collection)
18 collection_(collection) {
14 Balloon(const Notification& notification, Profile* profile, BalloonCollection* collection) argument
H A Dballoon.h53 BalloonCollection* collection);
71 const BalloonCollection* collection() const { return collection_; } function in class:Balloon
79 // to the balloon collection for checking against available space and
118 // The collection that this balloon belongs to. Non-owned pointer.
/external/webkit/Source/WebCore/bindings/js/
H A DJSHTMLAllCollectionCustom.cpp44 static JSValue getNamedItems(ExecState* exec, JSHTMLAllCollection* collection, const Identifier& propertyName) argument
47 collection->impl()->namedItems(identifierToAtomicString(propertyName), namedItems);
52 return toJS(exec, collection->globalObject(), namedItems[0].get());
57 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
69 HTMLAllCollection* collection = static_cast<HTMLAllCollection*>(jsCollection->impl()); local
79 return JSValue::encode(toJS(exec, jsCollection->globalObject(), collection->item(index)));
91 Node* node = collection->namedItem(pstr);
95 node = collection->nextNamedItem(pstr);
109 bool JSHTMLAllCollection::canGetItemsForName(ExecState*, HTMLAllCollection* collection, const Identifier& propertyName) argument
112 collection
[all...]
H A DJSHTMLCollectionCustom.cpp40 static JSValue getNamedItems(ExecState* exec, JSHTMLCollection* collection, const Identifier& propertyName) argument
43 collection->impl()->namedItems(identifierToAtomicString(propertyName), namedItems);
48 return toJS(exec, collection->globalObject(), namedItems[0].get());
53 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
65 HTMLCollection* collection = jsCollection->impl(); local
75 return JSValue::encode(toJS(exec, jsCollection->globalObject(), collection->item(index)));
87 Node* node = collection->namedItem(pstr);
91 node = collection->nextNamedItem(pstr);
105 bool JSHTMLCollection::canGetItemsForName(ExecState*, HTMLCollection* collection, const Identifier& propertyName) argument
108 collection
132 toJS(ExecState* exec, JSDOMGlobalObject* globalObject, HTMLCollection* collection) argument
[all...]
H A DJSHTMLDocumentCustom.cpp65 RefPtr<HTMLCollection> collection = document->documentNamedItems(name); local
67 unsigned length = collection->length();
72 Node* node = collection->firstItem();
81 return toJS(exec, collection.get());
/external/webkit/Source/WebCore/bindings/v8/custom/
H A DV8HTMLAllCollectionCustom.cpp44 static v8::Handle<v8::Value> getNamedItems(HTMLAllCollection* collection, AtomicString name) argument
47 collection->namedItems(name, namedItems);
58 static v8::Handle<v8::Value> getItem(HTMLAllCollection* collection, v8::Handle<v8::Value> argument) argument
62 v8::Handle<v8::Value> result = getNamedItems(collection, toWebCoreString(argument->ToString()));
70 RefPtr<Node> result = collection->item(index->Uint32Value());
H A DV8HTMLCollectionCustom.cpp44 static v8::Handle<v8::Value> getNamedItems(HTMLCollection* collection, AtomicString name) argument
47 collection->namedItems(name, namedItems);
58 static v8::Handle<v8::Value> getItem(HTMLCollection* collection, v8::Handle<v8::Value> argument) argument
65 v8::Handle<v8::Value> result = getNamedItems(collection, toWebCoreString(asString));
73 RefPtr<Node> result = collection->item(index->Uint32Value());
H A DV8HTMLOptionsCollectionCustom.cpp120 HTMLOptionsCollection* collection = V8HTMLOptionsCollection::toNative(info.Holder()); local
122 RefPtr<Node> result = collection->item(index);
132 HTMLOptionsCollection* collection = V8HTMLOptionsCollection::toNative(info.Holder()); local
133 HTMLSelectElement* base = static_cast<HTMLSelectElement*>(collection->base());
/external/guava/guava-tests/test/com/google/common/eventbus/
H A DEventBusTest.java212 private <T> void assertContains(T element, Collection<T> collection) { argument
214 collection.contains(element));
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DUnmodifiableCollectionTests.java98 * Verifies that a collection is immutable.
100 * <p>A collection is considered immutable if:
105 * collection throw UnsupportedOperationException when those mutators
109 * @param collection the presumed-immutable collection
111 * {@code collection}. {@code collection} may or may not have {@code
115 Collection<E> collection, E sampleElement) {
119 copy.addAll(collection);
121 collection
114 assertCollectionIsUnmodifiable( Collection<E> collection, E sampleElement) argument
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DPopulatedCachesTest.java372 private void assertCollectionSize(Collection<?> collection, int size) { argument
373 assertEquals(size, collection.size());
375 assertFalse(collection.isEmpty());
377 assertTrue(collection.isEmpty());
379 assertEquals(size, Iterables.size(collection));
380 assertEquals(size, Iterators.size(collection.iterator()));
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingCollectionTest.java53 @Override public boolean addAll(Collection<? extends T> collection) { argument
54 return standardAddAll(collection);
65 @Override public boolean containsAll(Collection<?> collection) { argument
66 return standardContainsAll(collection);
73 @Override public boolean removeAll(Collection<?> collection) { argument
74 return standardRemoveAll(collection);
77 @Override public boolean retainAll(Collection<?> collection) { argument
78 return standardRetainAll(collection);
H A DForwardingSetTest.java61 @Override public boolean addAll(Collection<? extends T> collection) { argument
62 return standardAddAll(collection);
73 @Override public boolean containsAll(Collection<?> collection) { argument
74 return standardContainsAll(collection);
81 @Override public boolean removeAll(Collection<?> collection) { argument
82 return standardRemoveAll(collection);
85 @Override public boolean retainAll(Collection<?> collection) { argument
86 return standardRetainAll(collection);
H A DForwardingSortedSetTest.java60 @Override public boolean addAll(Collection<? extends T> collection) { argument
61 return standardAddAll(collection);
72 @Override public boolean containsAll(Collection<?> collection) { argument
73 return standardContainsAll(collection);
80 @Override public boolean removeAll(Collection<?> collection) { argument
81 return standardRemoveAll(collection);
84 @Override public boolean retainAll(Collection<?> collection) { argument
85 return standardRetainAll(collection);
/external/webkit/Source/JavaScriptCore/wtf/
H A DHashCountedSet.h198 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits>& collection, VectorType& vector) argument
202 vector.resize(collection.size());
204 iterator it = collection.begin();
205 iterator end = collection.end();
211 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits>& collection, Vector<Value>& vector) argument
215 vector.resize(collection.size());
217 iterator it = collection.begin();
218 iterator end = collection.end();

Completed in 414 milliseconds

12345