/external/chromium/chrome/browser/ |
H A D | 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/ |
H A D | 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) { argument 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) { argument 50 this.collection [all...] |
H A D | ForwardingCollection.java | 25 * A collection which forwards all its method calls to another collection. 27 * the backing collection as desired per the <a 48 public boolean removeAll(Collection<?> collection) { argument 49 return delegate().removeAll(collection); 76 public boolean containsAll(Collection<?> collection) { argument 77 return delegate().containsAll(collection); 80 public boolean addAll(Collection<? extends E> collection) { argument 81 return delegate().addAll(collection); 84 public boolean retainAll(Collection<?> collection) { argument [all...] |
H A D | ImmutableEnumSet.java | 69 @Override public boolean containsAll(Collection<?> collection) { argument 70 return delegate.containsAll(collection);
|
H A D | Collections2.java | 48 * Returns {@code true} if the collection {@code self} contains all of the 49 * elements in the collection {@code c}. 51 * <p>This method iterates over the specified collection {@code c}, checking 53 * the specified collection {@code self}. If all elements are so contained, 56 * @param self a collection which might contain all elements in {@code c} 57 * @param c a collection whose elements might be contained by {@code self} 71 * Converts an iterable into a collection. If the iterable is already a 72 * collection, it is returned. Otherwise, an {@link java.util.ArrayList} is 82 * returned collection is a live view of {@code unfiltered}; changes to one 85 * <p>The resulting collection' 118 safeContains(Collection<?> collection, Object object) argument 147 addAll(Collection<? extends E> collection) argument 172 containsAll(Collection<?> collection) argument 203 removeAll(final Collection<?> collection) argument 213 retainAll(final Collection<?> collection) argument [all...] |
H A D | ImmutableList.java | 40 * separate collection that can still change, an instance of {@code 234 * or concurrent collection that is currently being modified by another 267 Collection<? extends E> collection) { 268 Object[] elements = collection.toArray(); 273 @SuppressWarnings("unchecked") // collection had only Es in it 439 Collection<?> collection = (Collection<?>) elements; 440 contents.ensureCapacity(contents.size() + collection.size()); 266 copyFromCollection( Collection<? extends E> collection) argument
|
H A D | ImmutableSet.java | 39 * separate collection that can still change, an instance of this class contains 47 * only immutable objects into this collection. 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; 515 contents.ensureCapacity(contents.size() + collection.size()); 201 copyOfInternal( Collection<? extends E> collection) argument
|
/external/protobuf/src/google/protobuf/stubs/ |
H A D | map-util.h | 47 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 D | balloon.cc | 15 BalloonCollection* collection) 18 collection_(collection) { 14 Balloon(const Notification& notification, Profile* profile, BalloonCollection* collection) argument
|
H A D | 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/js/ |
H A D | JSHTMLAllCollectionCustom.cpp | 44 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 D | JSHTMLCollectionCustom.cpp | 40 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 D | 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());
|
/external/webkit/Source/WebCore/bindings/v8/custom/ |
H A D | V8HTMLAllCollectionCustom.cpp | 44 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 D | V8HTMLCollectionCustom.cpp | 44 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 D | 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/webkit/Source/JavaScriptCore/wtf/ |
H A D | HashCountedSet.h | 198 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();
|
/external/webkit/Source/WebCore/bindings/v8/ |
H A D | V8Collection.h | 62 // Returns named property of a collection. 65 // FIXME: assert object is a collection type 68 Collection* collection = toNativeCollection<Collection>(object); local 70 return getV8Object<ItemType>(collection->namedItem(propertyName)); 88 // Returns the property at the index of a collection. 91 // FIXME: Assert that object must be a collection type. 94 Collection* collection = toNativeCollection<Collection>(object); local 95 return getV8Object<ItemType>(collection->item(index)); 108 Collection* collection = toNativeCollection<Collection>(info.Holder()); local 109 int length = collection 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...] |
/external/chromium/chrome/browser/chromeos/notifications/ |
H A D | 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 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/guava/src/com/google/common/primitives/ |
H A D | Booleans.java | 292 * Copies a collection of {@code Boolean} instances into a new array of 295 * <p>Elements are copied from the argument collection as if by {@code 296 * collection.toArray()}. Calling this method is as thread-safe as calling 299 * <p><b>Note:</b> consider representing the collection as a {@link 302 * @param collection a collection of {@code Boolean} objects 303 * @return an array containing the same values as {@code collection}, in the 305 * @throws NullPointerException if {@code collection} or any of its elements 308 public static boolean[] toArray(Collection<Boolean> collection) { argument 309 if (collection instanceo [all...] |
H A D | Bytes.java | 210 * Copies a collection of {@code Byte} instances into a new array of 213 * <p>Elements are copied from the argument collection as if by {@code 214 * collection.toArray()}. Calling this method is as thread-safe as calling 217 * @param collection a collection of {@code Byte} objects 218 * @return an array containing the same values as {@code collection}, in the 220 * @throws NullPointerException if {@code collection} or any of its elements 223 public static byte[] toArray(Collection<Byte> collection) { argument 224 if (collection instanceof ByteArrayAsList) { 225 return ((ByteArrayAsList) collection) [all...] |
H A D | Chars.java | 396 * Copies a collection of {@code Character} instances into a new array of 399 * <p>Elements are copied from the argument collection as if by {@code 400 * collection.toArray()}. Calling this method is as thread-safe as calling 403 * @param collection a collection of {@code Character} objects 404 * @return an array containing the same values as {@code collection}, in the 406 * @throws NullPointerException if {@code collection} or any of its elements 409 public static char[] toArray(Collection<Character> collection) { argument 410 if (collection instanceof CharArrayAsList) { 411 return ((CharArrayAsList) collection) [all...] |
H A D | Doubles.java | 329 * Copies a collection of {@code Double} instances into a new array of 332 * <p>Elements are copied from the argument collection as if by {@code 333 * collection.toArray()}. Calling this method is as thread-safe as calling 336 * @param collection a collection of {@code Double} objects 337 * @return an array containing the same values as {@code collection}, in the 339 * @throws NullPointerException if {@code collection} or any of its elements 342 public static double[] toArray(Collection<Double> collection) { argument 343 if (collection instanceof DoubleArrayAsList) { 344 return ((DoubleArrayAsList) collection) [all...] |
H A D | Floats.java | 326 * Copies a collection of {@code Float} instances into a new array of 329 * <p>Elements are copied from the argument collection as if by {@code 330 * collection.toArray()}. Calling this method is as thread-safe as calling 333 * @param collection a collection of {@code Float} objects 334 * @return an array containing the same values as {@code collection}, in the 336 * @throws NullPointerException if {@code collection} or any of its elements 339 public static float[] toArray(Collection<Float> collection) { argument 340 if (collection instanceof FloatArrayAsList) { 341 return ((FloatArrayAsList) collection) [all...] |
H A D | Ints.java | 403 * Copies a collection of {@code Integer} instances into a new array of 406 * <p>Elements are copied from the argument collection as if by {@code 407 * collection.toArray()}. Calling this method is as thread-safe as calling 410 * @param collection a collection of {@code Integer} objects 411 * @return an array containing the same values as {@code collection}, in the 413 * @throws NullPointerException if {@code collection} or any of its elements 416 public static int[] toArray(Collection<Integer> collection) { argument 417 if (collection instanceof IntArrayAsList) { 418 return ((IntArrayAsList) collection) [all...] |