HomeSort by relevance Sort by last modified time
    Searched refs:collection (Results 126 - 150 of 401) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/cache/
CacheTesting.java 39 import java.util.Collection;
51 * A collection of utilities for {@link Cache} testing.
58 * Poke into the Cache internals to simulate garbage collection of the value associated with the
78 * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
472 static void checkEmpty(Collection<?> collection) {
473 assertTrue(collection.isEmpty());
474 assertEquals(0, collection.size());
475 assertFalse(collection.iterator().hasNext());
476 assertEquals(0, collection.toArray().length)
    [all...]
  /external/guava/guava/src/com/google/common/collect/
Iterables.java 32 import java.util.Collection;
108 return (iterable instanceof Collection)
109 ? ((Collection<?>) iterable).size()
119 if (iterable instanceof Collection) {
120 Collection<?> collection = (Collection<?>) iterable; local
122 return collection.contains(element);
134 * collection.
136 * <p>This method calls {@link Collection#removeAll} if {@code iterable} is
293 Collection<? extends T> collection = toCollection(iterable); local
    [all...]
  /libcore/luni/src/main/java/java/util/
Hashtable.java 98 private transient Collection<V> values;
600 * Returns a collection of the values contained in this {@code Hashtable}.
601 * The collection is backed by this {@code Hashtable} so changes to one are
602 * reflected by the other. The collection does not support adding.
604 * @return a collection of the values.
606 public synchronized Collection<V> values() {
607 Collection<V> vs = values;
921 public boolean removeAll(Collection<?> collection) {
923 return super.removeAll(collection);
    [all...]
  /external/webkit/Source/WebKit/qt/tests/qwebelement/
tst_qwebelement.cpp 369 QWebElementCollection collection = body.findAll("p"); local
370 QCOMPARE(collection.count(), 2);
372 collection.append(body.findAll("div"));
373 QCOMPARE(collection.count(), 4);
375 collection += body.findAll("span.a");
376 QCOMPARE(collection.count(), 5);
378 QWebElementCollection all = collection + body.findAll("span.b");
380 QCOMPARE(collection.count(), 5);
382 all += collection;
385 QCOMPARE(collection.count(), 5)
885 QWebElementCollection collection = m_mainFrame->findAllElements("invalid{syn(tax;;%#$f223e>>"); local
    [all...]
  /external/webkit/LayoutTests/fast/dom/Attr/script-tests/
access-after-element-destruction.js 8 // Trigger garbage collection indirectly.
  /external/webkit/LayoutTests/fast/dom/HTMLFormElement/script-tests/
elements-not-in-document.js 1 description('Test the elements collection when the form is not a descendant of the document. This test case failed in an early version of Acid3.');
  /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/guava/guava/src/com/google/common/primitives/
Booleans.java 30 import java.util.Collection;
293 * Copies a collection of {@code Boolean} instances into a new array of
296 * <p>Elements are copied from the argument collection as if by {@code
297 * collection.toArray()}. Calling this method is as thread-safe as calling
300 * <p><b>Note:</b> consider representing the collection as a {@link
303 * @param collection a collection of {@code Boolean} objects
304 * @return an array containing the same values as {@code collection}, in the
306 * @throws NullPointerException if {@code collection} or any of its elements
309 public static boolean[] toArray(Collection<Boolean> collection)
    [all...]
Chars.java 30 import java.util.Collection;
412 * Copies a collection of {@code Character} instances into a new array of
415 * <p>Elements are copied from the argument collection as if by {@code
416 * collection.toArray()}. Calling this method is as thread-safe as calling
419 * @param collection a collection of {@code Character} objects
420 * @return an array containing the same values as {@code collection}, in the
422 * @throws NullPointerException if {@code collection} or any of its elements
425 public static char[] toArray(Collection<Character> collection) {
    [all...]
Doubles.java 31 import java.util.Collection;
355 * Copies a collection of {@code Double} instances into a new array of
358 * <p>Elements are copied from the argument collection as if by {@code
359 * collection.toArray()}. Calling this method is as thread-safe as calling
362 * @param collection a collection of {@code Double} objects
363 * @return an array containing the same values as {@code collection}, in the
365 * @throws NullPointerException if {@code collection} or any of its elements
368 public static double[] toArray(Collection<Double> collection) {
    [all...]
Floats.java 31 import java.util.Collection;
352 * Copies a collection of {@code Float} instances into a new array of
355 * <p>Elements are copied from the argument collection as if by {@code
356 * collection.toArray()}. Calling this method is as thread-safe as calling
359 * @param collection a collection of {@code Float} objects
360 * @return an array containing the same values as {@code collection}, in the
362 * @throws NullPointerException if {@code collection} or any of its elements
365 public static float[] toArray(Collection<Float> collection) {
    [all...]
Ints.java 31 import java.util.Collection;
419 * Copies a collection of {@code Integer} instances into a new array of
422 * <p>Elements are copied from the argument collection as if by {@code
423 * collection.toArray()}. Calling this method is as thread-safe as calling
426 * @param collection a collection of {@code Integer} objects
427 * @return an array containing the same values as {@code collection}, in the
429 * @throws NullPointerException if {@code collection} or any of its elements
432 public static int[] toArray(Collection<Integer> collection) {
    [all...]
Longs.java 30 import java.util.Collection;
404 * Copies a collection of {@code Long} instances into a new array of
407 * <p>Elements are copied from the argument collection as if by {@code
408 * collection.toArray()}. Calling this method is as thread-safe as calling
411 * @param collection a collection of {@code Long} objects
412 * @return an array containing the same values as {@code collection}, in the
414 * @throws NullPointerException if {@code collection} or any of its elements
417 public static long[] toArray(Collection<Long> collection) {
    [all...]
Shorts.java 30 import java.util.Collection;
417 * Copies a collection of {@code Short} instances into a new array of
420 * <p>Elements are copied from the argument collection as if by {@code
421 * collection.toArray()}. Calling this method is as thread-safe as calling
424 * @param collection a collection of {@code Short} objects
425 * @return an array containing the same values as {@code collection}, in the
427 * @throws NullPointerException if {@code collection} or any of its elements
430 public static short[] toArray(Collection<Short> collection) {
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
Chars.java 28 import java.util.Collection;
361 * Copies a collection of {@code Character} instances into a new array of
364 * <p>Elements are copied from the argument collection as if by {@code
365 * collection.toArray()}. Calling this method is as thread-safe as calling
368 * @param collection a collection of {@code Character} objects
369 * @return an array containing the same values as {@code collection}, in the
371 * @throws NullPointerException if {@code collection} or any of its elements
374 public static char[] toArray(Collection<Character> collection) {
    [all...]
Ints.java 28 import java.util.Collection;
363 * Copies a collection of {@code Integer} instances into a new array of
366 * <p>Elements are copied from the argument collection as if by {@code
367 * collection.toArray()}. Calling this method is as thread-safe as calling
370 * @param collection a collection of {@code Integer} objects
371 * @return an array containing the same values as {@code collection}, in the
373 * @throws NullPointerException if {@code collection} or any of its elements
376 public static int[] toArray(Collection<Integer> collection) {
    [all...]
Longs.java 28 import java.util.Collection;
337 * Copies a collection of {@code Long} instances into a new array of
340 * <p>Elements are copied from the argument collection as if by {@code
341 * collection.toArray()}. Calling this method is as thread-safe as calling
344 * @param collection a collection of {@code Long} objects
345 * @return an array containing the same values as {@code collection}, in the
347 * @throws NullPointerException if {@code collection} or any of its elements
350 public static long[] toArray(Collection<Long> collection) {
    [all...]
Shorts.java 28 import java.util.Collection;
365 * Copies a collection of {@code Short} instances into a new array of
368 * <p>Elements are copied from the argument collection as if by {@code
369 * collection.toArray()}. Calling this method is as thread-safe as calling
372 * @param collection a collection of {@code Short} objects
373 * @return an array containing the same values as {@code collection}, in the
375 * @throws NullPointerException if {@code collection} or any of its elements
378 public static short[] toArray(Collection<Short> collection) {
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
ListAddTester.java 66 collection = getSubjectGenerator().create(array);
SetEqualsTester.java 26 import java.util.Collection;
45 Collection<E> elements = getSampleElements(getNumElements() - 1);
57 Collection<E> elements = getSampleElements(getNumElements() - 1);
60 collection = getSubjectGenerator().create(elements.toArray());
68 Collection<E> elements = getSampleElements(getNumElements() - 1);
79 Collection<E> fewerElements = getSampleElements(getNumElements() - 1);
85 Collection<E> moreElements = getSampleElements(getNumElements() + 1);
  /external/webkit/LayoutTests/dom/html/level2/html/
HTMLCollection05.js 49 docsLoaded += preload(docRef, "doc", "collection");
101 doc = load(docRef, "doc", "collection");
  /external/webkit/LayoutTests/dom/xhtml/level2/html/
HTMLCollection05.js 49 docsLoaded += preload(docRef, "doc", "collection");
101 doc = load(docRef, "doc", "collection");
  /external/webkit/Source/WebCore/bindings/objc/
DOMHTML.mm 199 Class kitClass(WebCore::HTMLCollection* collection)
201 if (collection->type() == WebCore::SelectOptions)
  /cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
CtsUiAutomatorTest.java 473 UiSelector mainLayout = new UiSelector().description("Widgets Collection");
514 UiSelector mainLayout = new UiSelector().description("Widgets Collection");
531 UiCollection collection = new UiCollection( local
532 new UiSelector().description("Widgets Collection"));
533 assertTrue("Collection layout not found", collection.waitForExists(WAIT_EXIST_TIMEOUT));
535 assertTrue("Collection count",
536 collection.getChildCount(new UiSelector().clickable(true)) == 6);
547 UiCollection collection = new UiCollection( local
548 new UiSelector().description("Widgets Collection"));
565 UiCollection collection = new UiCollection( local
584 UiCollection collection = new UiCollection( local
    [all...]
  /frameworks/base/core/java/android/widget/
ArrayAdapter.java 27 import java.util.Collection;
186 * Adds the specified Collection at the end of the array.
188 * @param collection The Collection to add at the end of the array.
190 public void addAll(Collection<? extends T> collection) {
193 mOriginalValues.addAll(collection);
195 mObjects.addAll(collection);

Completed in 546 milliseconds

1 2 3 4 56 7 8 91011>>