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

1 2 3

  /external/chromium/chrome/browser/
browsing_data_appcache_helper_unittest.cc 51 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/src/com/google/common/collect/
ImmutableAsList.java 24 * List returned by {@link ImmutableCollection#asList} when the collection isn't
31 private final transient ImmutableCollection<E> collection; field in class:ImmutableAsList
33 ImmutableAsList(Object[] array, ImmutableCollection<E> collection) {
35 this.collection = collection;
39 // The collection's contains() is at least as fast as RegularImmutableList's
41 return collection.contains(target);
48 final ImmutableCollection<?> collection; field in class:ImmutableAsList.SerializedForm
49 SerializedForm(ImmutableCollection<?> collection) {
50 this.collection = collection
    [all...]
ImmutableList.java 25 import java.util.Collection;
40 * separate collection that can still change, an instance of {@code
206 * {@code elements} is a {@link Collection}, this method behaves exactly as
207 * {@link #copyOf(Collection)}; otherwise, it behaves exactly as {@code
215 return (elements instanceof Collection)
216 ? copyOf((Collection<? extends E>) elements)
234 * or concurrent collection that is currently being modified by another
240 public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) {
267 Collection<? extends E> collection) {
439 Collection<?> collection = (Collection<?>) elements; local
    [all...]
AbstractMultiset.java 24 import java.util.Collection;
158 @Override public boolean containsAll(Collection<?> elements) {
162 @Override public boolean addAll(Collection<? extends E> elementsToAdd) {
178 @Override public boolean removeAll(Collection<?> elementsToRemove) {
179 Collection<?> collection = (elementsToRemove instanceof Multiset) local
182 return elementSet().removeAll(collection);
186 @Override public boolean retainAll(Collection<?> elementsToRetain) {
ImmutableSet.java 25 import java.util.Collection;
39 * separate collection that can still change, an instance of this class contains
47 * only immutable objects into this collection.
197 Collection<E> list = Lists.newArrayList(elements);
202 Collection<? extends E> collection) {
205 switch (collection.size()) {
210 return ImmutableSet.<E>of(collection.iterator().next());
212 return create(collection, collection.size())
514 Collection<?> collection = (Collection<?>) elements; local
    [all...]
ImmutableSetMultimap.java 27 import java.util.Collection;
147 super(new LinkedHashMap<K, Collection<V>>());
149 @Override Collection<V> createCollection() {
191 * Stores a collection of values with the same key in the built multimap.
198 Collection<V> collection = builderMultimap.get(checkNotNull(key)); local
200 collection.add(checkNotNull(value));
226 for (Map.Entry<? extends K, ? extends Collection<? extends V>> entry
271 for (Map.Entry<? extends K, ? extends Collection<? extends V>> entry
274 Collection<? extends V> values = entry.getValue()
    [all...]
ImmutableSortedSet.java 28 import java.util.Collection;
42 * of a separate collection that can still change, an instance of {@code
54 * {@link #containsAll(Collection)}, and {@link #equals(Object)}
56 * element in the collection. Unlike most collections, an
72 * to place only immutable objects into this collection.
384 Collection<T> collection = (iterable instanceof Collection) local
385 ? (Collection<T>) iterable : Lists.newArrayList(iterable);
386 Object[] array = new Object[collection.size()]
    [all...]
Lists.java 28 import java.util.Collection;
110 if (elements instanceof Collection) {
112 Collection<? extends E> collection = (Collection<? extends E>) elements; local
113 return new ArrayList<E>(collection);
Sets.java 30 import java.util.Collection;
87 * order, not the order in which the elements appear in the given collection.
115 * Unlike {@link EnumSet#copyOf(Collection)}, this method does not produce an
116 * exception on an empty collection, and it may be called on any iterable, not
117 * just a {@code Collection}.
204 if (elements instanceof Collection) {
206 Collection<? extends E> collection = (Collection<? extends E>) elements; local
207 return new HashSet<E>(collection);
263 Collection<? extends E> collection = (Collection<? extends E>) elements; local
    [all...]
  /external/webkit/Source/WebCore/bindings/js/
JSHTMLAllCollectionCustom.cpp 44 static JSValue getNamedItems(ExecState* exec, JSHTMLAllCollection* collection, const Identifier& propertyName)
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)
112 collection->namedItems(identifierToAtomicString(propertyName), namedItems)
    [all...]
JSHTMLCollectionCustom.cpp 40 static JSValue getNamedItems(ExecState* exec, JSHTMLCollection* collection, const Identifier& propertyName)
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)
108 collection->namedItems(identifierToAtomicString(propertyName), namedItems)
    [all...]
JSHTMLDocumentCustom.cpp 65 RefPtr<HTMLCollection> collection = document->documentNamedItems(name); local
67 unsigned length = collection->length();
72 Node* node = collection->firstItem();
81 return toJS(exec, collection.get());
  /libcore/luni/src/main/java/java/security/cert/
CollectionCertStoreParameters.java 20 import java.util.Collection;
24 * The parameters to initialize a <i>Collection</i> type {@code CertStore} instance.
26 * It is used to specify the {@code Collection} where the {@code CertStore} will
30 // Default empty and immutable collection.
33 private static final Collection<?> defaultCollection = Collections.EMPTY_SET;
34 // A <code>Collection</code> of <code>Certificate</code>s
36 private final Collection<?> collection; field in class:CollectionCertStoreParameters
39 * Creates a new {@code CollectionCertStoreParameters} without a collection.
41 * The default collection is an empty and unmodifiable {@code Collection}
    [all...]
  /external/webkit/Source/WebCore/bindings/v8/custom/
V8HTMLOptionsCollectionCustom.cpp 120 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/chromium/chrome/browser/notifications/
balloon.h 53 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/v8/
V8Collection.h 52 template<class Collection> static Collection* toNativeCollection(v8::Local<v8::Object> object)
54 return reinterpret_cast<Collection*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
62 // Returns named property of a collection.
63 template<class Collection, class ItemType> static v8::Handle<v8::Value> getNamedPropertyOfCollection(v8::Local<v8::String> name, v8::Local<v8::Object> object)
65 // FIXME: assert object is a collection type
68 Collection* collection = toNativeCollection<Collection>(object); local
70 return getV8Object<ItemType>(collection->namedItem(propertyName))
94 Collection* collection = toNativeCollection<Collection>(object); local
108 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
123 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
140 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
151 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DerOutputStream.java 89 private void encodeValueCollection(ASN1ValueCollection collection) {
97 collection.type.encodeASN(this);
199 private void getValueOfLength(ASN1ValueCollection collection) {
201 Object[] cv = collection.getValues(content).toArray();
212 collection.type.setEncodingContent(this);
220 seqLen += collection.type.getEncodedLength(this);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
EnumMapTest.java 20 import java.util.Collection;
386 Collection c = new ArrayList();
643 Collection c = new ArrayList();
990 Collection collection = enumColorMap.values(); local
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
EnumMapTest.java 22 import java.util.Collection;
389 Collection c = new ArrayList();
645 Collection c = new ArrayList();
991 Collection collection = enumColorMap.values(); local
    [all...]
  /external/chromium/chrome/browser/chromeos/notifications/
notification_browsertest.cc 140 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
145 collection->Add(NewMockNotification("1"), browser()->profile());
152 collection->Add(NewMockNotification("2"), browser()->profile());
158 collection->RemoveById("1");
165 collection->RemoveById("2");
179 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
186 collection->Add(NewMockNotification("1"), browser()->profile());
187 collection->Add(NewMockNotification("2"), browser()->profile());
194 collection->RemoveById("1");
200 collection->Add(NewMockNotification("1"), browser()->profile())
227 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
264 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
307 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
374 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
388 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
417 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
492 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
525 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
548 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
579 BalloonCollectionImpl* collection = GetBalloonCollectionImpl(); local
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
AbstractMessageLite.java 37 import java.util.Collection;
309 final Collection<? super T> list) {
315 if (values instanceof Collection) {
317 Collection<T> collection = (Collection<T>) values; local
318 list.addAll(collection);
  /external/webkit/Source/WebKit/qt/Api/
qwebelement.h 201 void append(const QWebElementCollection &collection);
214 inline const_iterator(const QWebElementCollection* collection, int index) : i(index), collection(collection) {}
215 inline const_iterator(const const_iterator& o) : i(o.i), collection(o.collection) {}
217 inline const QWebElement operator*() const { return collection->at(i); }
219 inline bool operator==(const const_iterator& o) const { return i == o.i && collection == o.collection; }
220 inline bool operator!=(const const_iterator& o) const { return i != o.i || collection != o.collection;
237 const QWebElementCollection* const collection; member in class:QWebElementCollection::const_iterator
271 const QWebElementCollection* const collection; member in class:QWebElementCollection::iterator
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
CertStore_ImplTest.java 36 import java.util.Collection;
89 Collection collection = certS.getCertificates(certSelector); local
90 assertNull("Not null collection", collection);
91 collection = certS.getCRLs(crlSelector);
92 assertNull("Not null collection", collection);
  /external/stlport/test/unit/
hash_test.cpp 188 // key in in a set ("collection"). Notice that data is unique by construction in main(), thus the
190 // (c) We check if we have seen as many data elements in collection as we have seen in the multimap.
201 set<int> collection; local
211 collection.insert( j->second );
216 if (collection.size() == h.size()) cout << " OK" << endl;
243 CPPUNIT_CHECK( collection.size() == h.size() );
  /external/webkit/Source/WebKit/gtk/tests/
testdomdocument.c 168 WebKitDOMHTMLCollection *collection = webkit_dom_document_get_links(document); local
169 g_assert(collection);
170 gulong length = webkit_dom_html_collection_get_length(collection);
178 WebKitDOMNode *node = webkit_dom_html_collection_item(collection, i);
187 g_object_unref(collection);
211 WebKitDOMHTMLCollection *collection = webkit_dom_document_get_links(document); local
212 g_assert(collection);
213 g_object_weak_ref(G_OBJECT(collection), (GWeakNotify)weak_notify, &count);
222 g_object_unref(collection);
236 collection = webkit_dom_document_get_links(document)
    [all...]

Completed in 412 milliseconds

1 2 3