/libcore/luni/src/test/java/tests/api/java/util/ |
ArrayListTest.java | 21 import java.util.Collection; 67 * java.util.ArrayList#ArrayList(java.util.Collection) 70 // Test for method java.util.ArrayList(java.util.Collection) 72 assertTrue("arrayList created from collection has incorrect size", al 76 "arrayList created from collection has incorrect elements", 132 * java.util.ArrayList#addAll(int, java.util.Collection) 136 // java.util.Collection) 194 // * java.util.ArrayList#addAll(int, java.util.Collection) 200 // obj.addAll((int) -1, (Collection) null); 208 * java.util.ArrayList#addAll(java.util.Collection) 605 ArrayList collection = new ArrayList(); local [all...] |
/external/chromium_org/media/audio/win/ |
device_enumeration_win.cc | 41 // Generate a collection of active audio endpoint devices. 43 ScopedComPtr<IMMDeviceCollection> collection; local 46 collection.Receive()); 52 collection->GetCount(&number_of_active_devices); 64 hr = collection->Item(i, audio_device.Receive());
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
CollectionIteratorTester.java | 41 * A generic JUnit test which tests {@code iterator} operations on a collection. 52 for (E element : collection) { // uses iterator() 62 for (E element : collection) { // uses iterator() 106 return collection.iterator(); 139 Iterator<E> iterator = collection.iterator();
|
ListCreationTester.java | 41 collection = getSubjectGenerator().create(array);
|
CollectionRetainAllTester.java | 30 import java.util.Collection; 36 * collection. Can't be invoked directly; please see 47 * A collection of elements to retain, along with a description for use in 51 private final Collection<E> toRetain; 54 private Target(Collection<E> toRetain, String description) { 288 * collection is empty, but we'd still like to test retainAll(null) when we 297 collection.retainAll(null); 307 collection.retainAll(null); 316 assertTrue(message, collection.retainAll(target.toRetain)); 322 assertFalse(message, collection.retainAll(target.toRetain)) [all...] |
/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/chromium_org/chrome/browser/notifications/ |
balloon.h | 55 BalloonCollection* collection); 73 const BalloonCollection* collection() const { return collection_; } function in class:Balloon 81 // to the balloon collection for checking against available space and 123 // The collection that this balloon belongs to. Non-owned pointer.
|
/external/guava/guava/src/com/google/common/collect/ |
ImmutableEnumSet.java | 22 import java.util.Collection; 65 @Override public boolean containsAll(Collection<?> collection) { 66 return delegate.containsAll(collection);
|
ArrayListMultimap.java | 29 import java.util.Collection; 103 super(new HashMap<K, Collection<V>>()); 108 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); 122 * Creates a new, empty {@code ArrayList} to hold the collection of values for 133 for (Collection<V> collection : backingMap().values()) { 134 ArrayList<V> arrayList = (ArrayList<V>) collection; 157 Map<K, Collection<V>> map = Maps.newHashMapWithExpectedSize(distinctKeys);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ArrayListMultimap.java | 25 import java.util.Collection; 98 super(new HashMap<K, Collection<V>>()); 103 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); 117 * Creates a new, empty {@code ArrayList} to hold the collection of values for 128 for (Collection<V> collection : backingMap().values()) { 129 ArrayList<V> arrayList = (ArrayList<V>) collection;
|
/external/junit/src/org/junit/internal/matchers/ |
IsCollectionContaining.java | 7 import java.util.Collection; 22 public boolean matchesSafely(Iterable<T> collection) { 23 for (T item : collection) { 33 .appendText("a collection containing ") 49 Collection<Matcher<? extends Iterable<T>>> all 59 Collection<Matcher<? extends Iterable<T>>> 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/chromium_org/chrome/browser/ui/panels/ |
panel_manager.cc | 171 // collections since some collection might depend on it. 187 // Docked collection should be disposed explicitly before 188 // DisplaySettingsProvider is gone since docked collection needs to remove 261 // Find the appropriate panel collection to hold the new panel. 265 PanelCollection* collection = GetCollectionForNewPanel( local 268 // Let the panel collection decide the initial bounds. 269 gfx::Rect bounds = collection->GetInitialPanelBounds( 273 panel->Initialize(url, bounds, collection->UsesAlwaysOnTopPanels()); 281 // Add the panel to the panel collection. 282 collection->AddPanel(panel, positioning_mask) 410 PanelCollection* collection = panel->collection(); local [all...] |
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/ |
ByteString.java | 40 import java.util.Collection; 322 Collection<ByteString> results = new ArrayList<ByteString>(); 405 Collection<ByteString> collection; local 406 if (!(byteStrings instanceof Collection)) { 407 collection = new ArrayList<ByteString>(); 409 collection.add(byteString); 412 collection = (Collection<ByteString>) byteStrings; 415 if (collection.isEmpty()) [all...] |
LazyStringArrayList.java | 36 import java.util.Collection; 118 public boolean addAll(Collection<? extends String> c) { 119 // The default implementation of AbstractCollection.addAll(Collection) 121 // addAll(int, Collection), which makes a special case for Collections 127 public boolean addAll(int index, Collection<? extends String> c) { 130 Collection<?> collection = c instanceof LazyStringList local 132 boolean ret = list.addAll(index, collection);
|
/frameworks/base/core/java/android/util/ |
ArraySet.java | 20 import java.util.Collection; 46 public final class ArraySet<E> implements Collection<E>, Set<E> { 569 // specialized collection APIs. 630 public boolean containsAll(Collection<?> collection) { 631 Iterator<?> it = collection.iterator(); 641 public boolean addAll(Collection<? extends E> collection) { 642 ensureCapacity(mSize + collection.size()); 644 for (E value : collection) { [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SafeTreeSet.java | 20 import java.util.Collection; 47 public SafeTreeSet(Collection<? extends E> collection) { 48 this(new TreeSet<E>(collection)); 70 @Override public boolean addAll(Collection<? extends E> collection) { 71 for (E e : collection) { 74 return delegate.addAll(collection); 98 @Override public boolean containsAll(Collection<?> c) { 159 @Override public boolean removeAll(Collection<?> c) [all...] |
/libcore/luni/src/main/java/java/util/ |
Collections.java | 29 * {@code Collection} classes. 155 @Override public Collection values() { 363 static class SynchronizedCollection<E> implements Collection<E>, Serializable { 365 final Collection<E> c; 368 SynchronizedCollection(Collection<E> collection) { 369 c = collection; 373 SynchronizedCollection(Collection<E> collection, Object mutex) { 374 c = collection; [all...] |
LinkedList.java | 252 * elements contained in the specified {@code collection}. The order of the 254 * iteration order of {@code collection}. 256 * @param collection 257 * the collection of elements to add. 259 public LinkedList(Collection<? extends E> collection) { 261 addAll(collection); 324 * Inserts the objects in the specified collection at the specified location 326 * returned from the collection's iterator. 330 * @param collection [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
ArrayListTest.java | 21 import java.util.Collection; 75 * @tests java.util.ArrayList#ArrayList(java.util.Collection) 78 // Test for method java.util.ArrayList(java.util.Collection) 80 assertTrue("arrayList created from collection has incorrect size", al 84 "arrayList created from collection has incorrect elements", 90 Collection<String> collection = shrinksOnSize("A", "B", "C", "D"); local 91 ArrayList<String> list = new ArrayList<String>(collection); 189 * @tests java.util.ArrayList#addAll(int, java.util.Collection) 193 // java.util.Collection) 879 ArrayList collection = new ArrayList(); local [all...] |
/external/chromium_org/base/ |
stl_util.h | 193 // Returns true if the key is in the collection. 194 template <typename Collection, typename Key> 195 bool ContainsKey(const Collection& collection, const Key& key) { 196 return collection.find(key) != collection.end();
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
compat.py | 11 def enumerate(collection): 12 return zip(range(len(collection)), collection)
|
/libcore/dom/src/test/java/org/w3c/domts/ |
JUnitTestCaseAdapter.java | 21 import java.util.Collection; 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { 227 assertEquals(assertID,expectedSize, collection.getLength()); 230 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { 231 assertEquals(assertID, expectedSize, collection.getLength()); 234 public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection) { 235 assertEquals(assertID, expectedSize, collection.size()); 244 public void assertEqualsIgnoreCase(DOMTestCase test, String assertID, Collection expected, Collection actual) [all...] |
/packages/apps/Mms/src/com/android/mms/model/ |
SlideModel.java | 21 import java.util.Collection; 71 * Create a SlideModel with exist media collection. 74 * @param mediaList The exist media collection. 288 public boolean addAll(Collection<? extends MediaModel> collection) { 319 public boolean containsAll(Collection<?> collection) { 320 return mMedia.containsAll(collection); 340 public boolean removeAll(Collection<?> collection) { [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
TestUtil.java | 7 import java.util.Collection; 16 public static void assertEquals(Collection<?> expected, Collection<?> actual) { 20 public static String stringify(Collection<?> collection) { 22 for (Object o : collection) {
|