/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/chromium_org/media/filters/ |
pipeline_integration_test_base.cc | 233 scoped_ptr<FilterCollection> collection(new FilterCollection()); 234 collection->SetDemuxer(demuxer_.get()); 254 collection->SetVideoRenderer(renderer.Pass()); 283 collection->SetAudioRenderer(audio_renderer.Pass()); 285 return collection.Pass();
|
/external/chromium_org/media/tools/player_x11/ |
player_x11.cc | 118 scoped_ptr<media::FilterCollection> collection( 120 collection->SetDemuxer(demuxer); 131 collection->SetVideoRenderer(video_renderer.Pass()); 140 collection->SetAudioRenderer(audio_renderer.Pass()); 146 collection.Pass(), base::Closure(), media::PipelineStatusCB(),
|
/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...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
HashMap.h | 454 inline void deleteAllValues(const HashMap<T, U, V, W, X>& collection) 457 iterator end = collection.end(); 458 for (iterator it = collection.begin(); it != end; ++it) 463 inline void deleteAllKeys(const HashMap<T, U, V, W, X>& collection) 466 iterator end = collection.end(); 467 for (iterator it = collection.begin(); it != end; ++it) 472 inline void copyKeysToVector(const HashMap<T, U, V, W, X>& collection, Y& vector) 476 vector.resize(collection.size()); 478 iterator it = collection.begin().keys(); 479 iterator end = collection.end().keys() [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/chromium_org/chrome/browser/task_manager/ |
notification_resource_provider.cc | 154 BalloonCollection* collection = balloon_manager->balloon_collection(); local 156 collection->GetActiveBalloons();
|
/external/chromium_org/media/audio/win/ |
core_audio_util_win_unittest.cc | 157 ScopedComPtr<IMMDeviceCollection> collection; local 159 DEVICE_STATE_ACTIVE, collection.Receive()))); 161 collection->GetCount(&count); 164 collection->Item(j, device.Receive()); 496 ScopedComPtr<IMMDeviceCollection> collection; local 498 DEVICE_STATE_ACTIVE, collection.Receive()))); 500 collection->GetCount(&count); 503 collection->Item(i, device.Receive());
|
/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/chromium_org/chrome/browser/ui/gtk/notifications/ |
balloon_view_gtk.h | 42 explicit BalloonViewImpl(BalloonCollection* 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/icu4c/stubdata/ |
icu_dat_generator.py | 101 def AddResFile(collection, path): 107 collection.add(path[path.find("/")+1:end]) 111 def AddAllResFiles(collection, dir_name, language): 122 collection.add(path)
|
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/ |
CtsUiAutomatorTest.java | 476 UiSelector mainLayout = new UiSelector().description("Widgets Collection"); 517 UiSelector mainLayout = new UiSelector().description("Widgets Collection"); 534 UiCollection collection = new UiCollection( local 535 new UiSelector().description("Widgets Collection")); 536 assertTrue("Collection layout not found", collection.waitForExists(WAIT_EXIST_TIMEOUT)); 538 assertTrue("Collection count", 539 collection.getChildCount(new UiSelector().clickable(true)) == 6); 550 UiCollection collection = new UiCollection( local 551 new UiSelector().description("Widgets Collection")); 568 UiCollection collection = new UiCollection( local 587 UiCollection collection = new UiCollection( local [all...] |