/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
hc_nodeelementnodeattributes.java | 66 java.util.Collection attrList = new java.util.ArrayList(); 68 java.util.Collection htmlExpected = new java.util.ArrayList(); 72 java.util.Collection expected = new java.util.ArrayList();
|
/libcore/luni/src/main/java/java/security/cert/ |
X509Certificate.java | 23 import java.util.Collection; 404 public Collection<List<?>> getSubjectAlternativeNames() 438 public Collection<List<?>> getIssuerAlternativeNames()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
JsonBackedSuggestionExtras.java | 24 import java.util.Collection; 34 private final Collection<String> mColumns; 67 public Collection<String> getExtraColumnNames() {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/ |
X509ExtensionUtil.java | 7 import java.util.Collection; 35 public static Collection getIssuerAlternativeNames(X509Certificate cert) 43 public static Collection getSubjectAlternativeNames(X509Certificate cert) 51 private static Collection getAlternativeNames(byte[] extVal) 60 Collection temp = new ArrayList();
|
/external/guava/guava/src/com/google/common/collect/ |
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);
|
HashMultimap.java | 27 import java.util.Collection; 91 super(new HashMap<K, Collection<V>>()); 95 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys)); 101 super(Maps.<K, Collection<V>>newHashMapWithExpectedSize( 109 * <p>Creates an empty {@code HashSet} for a collection of values for one key. 111 * @return a new {@code HashSet} containing a collection of values for one key 135 Map<K, Collection<V>> map = Maps.newHashMapWithExpectedSize(distinctKeys);
|
Queues.java | 21 import java.util.Collection; 77 if (elements instanceof Collection) { 116 if (elements instanceof Collection) { 145 if (elements instanceof Collection) { 171 if (elements instanceof Collection) { 191 * Drains the queue as {@link BlockingQueue#drainTo(Collection, int)}, but if the requested 203 public static <E> int drain(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, 230 * Drains the queue as {@linkplain #drain(BlockingQueue, Collection, int, long, TimeUnit)}, 242 public static <E> int drainUninterruptibly(BlockingQueue<E> q, Collection<? super E> buffer,
|
LinkedHashMultimap.java | 28 import java.util.Collection; 83 transient Collection<Map.Entry<K, V>> linkedEntries; 122 super(new LinkedHashMap<K, Collection<V>>()); 127 super(new LinkedHashMap<K, Collection<V>>(expectedKeys)); 136 super(new LinkedHashMap<K, Collection<V>>( 146 * <p>Creates an empty {@code LinkedHashSet} for a collection of values for 149 * @return a new {@code LinkedHashSet} containing a collection of values for 162 * @param key key to associate with values in the collection 163 * @return a new decorated {@code LinkedHashSet} containing a collection of 166 @Override Collection<V> createCollection(@Nullable K key) [all...] |
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...] |
SortedIterables.java | 24 import java.util.Collection; 42 * Returns {@code true} if {@code elements} is a sorted collection using an ordering equivalent 64 * Returns a sorted collection of the unique elements according to the specified comparator. Does 68 public static <E> Collection<E> sortedUnique( 76 * Returns a sorted collection of the unique elements according to the specified comparator. Does 80 public static <E> Collection<E> sortedUnique( 100 private static <E> Collection<E> uniquifySortedArray( 119 * Returns a collection of multiset entries representing the counts of the distinct elements, in 122 public static <E> Collection<Multiset.Entry<E>> sortedCounts( 130 * Returns a collection of multiset entries representing the counts of the distinct elements, i [all...] |
ImmutableCollection.java | 22 import java.util.Collection; 28 * An immutable collection. Does not permit null elements. 30 * <p>In addition to the {@link Collection} methods, this class has an {@link 31 * #asList()} method, which returns a list view of the collection's elements. 43 implements Collection<E>, Serializable { 50 * Returns an unmodifiable iterator across the elements in this collection. 71 public boolean containsAll(Collection<?> targets) { 85 * Guaranteed to throw an exception and leave the collection unmodified. 95 * Guaranteed to throw an exception and leave the collection unmodified. 105 * Guaranteed to throw an exception and leave the collection unmodified [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
ForwardingExecutorService.java | 21 import java.util.Collection; 55 Collection<? extends Callable<T>> tasks) throws InterruptedException { 61 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) 67 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) 74 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
CollectionSerializer.java | 40 import java.util.Collection; 55 Collection collection; local 57 collection = (Collection)c.newInstance(); 59 log.log(Level.FINE, "[Serializer][???] Could not determine collection type. Using ArrayList."); 60 collection = new ArrayList(length); 63 if (length == 0) return (T)collection; 71 collection.add(serializer.readObject(data, clazz)); 75 collection.add(Serializer.readClassAndObject(data)) 82 Collection collection = (Collection)object; local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/ |
RobolectricBackgroundExecutorService.java | 5 import java.util.Collection; 68 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedException { 73 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException { 78 public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException { 83 public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException {
|
/libcore/luni/src/main/java/java/util/ |
AbstractCollection.java | 24 * Collection} interface. A subclass must implement the abstract methods {@code 25 * iterator()} and {@code size()} to create an immutable collection. To create a 26 * modifiable collection it's necessary to override the {@code add()} method that 31 public abstract class AbstractCollection<E> implements Collection<E> { 44 * Attempts to add all of the objects contained in {@code collection} 45 * to the contents of this {@code Collection} (optional). This implementation 46 * iterates over the given {@code Collection} and calls {@code add} for each 49 * {@code Collection} does not support adding elements, an {@code 52 * If the passed {@code Collection} is changed during the process of adding elements 53 * to this {@code Collection}, the behavior depends on the behavior of the passe [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestsForListsInJavaUtil.java | 31 import java.util.Collection; 65 protected Collection<Method> suppressForEmptyList() { 68 protected Collection<Method> suppressForSingletonList() { 71 protected Collection<Method> suppressForArraysAsList() { 74 protected Collection<Method> suppressForArrayList() { 77 protected Collection<Method> suppressForLinkedList() { 80 protected Collection<Method> suppressForCopyOnWriteArrayList() { 83 protected Collection<Method> suppressForUnmodifiableList() { 86 protected Collection<Method> suppressForCheckedList() { 89 protected Collection<Method> suppressForAbstractList() [all...] |
TestsForQueuesInJavaUtil.java | 26 import java.util.Collection; 59 protected Collection<Method> suppressForLinkedList() { 62 protected Collection<Method> suppressForArrayBlockingQueue() { 65 protected Collection<Method> suppressForConcurrentLinkedQueue() { 68 protected Collection<Method> suppressForLinkedBlockingQueue() { 71 protected Collection<Method> suppressForPriorityBlockingQueue() { 74 protected Collection<Method> suppressForPriorityQueue() {
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
WifiP2pGroupList.java | 18 import java.util.Collection; 73 public Collection<WifiP2pGroup> getGroupList() { 127 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); 151 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); 187 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); 199 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); 213 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values();
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
Iterables.java | 31 import java.util.Collection; 105 return (iterable instanceof Collection) 106 ? ((Collection<?>) iterable).size() 116 if (iterable instanceof Collection) { 117 Collection<?> collection = (Collection<?>) iterable; local 119 return collection.contains(element); 131 * collection. 133 * <p>This method calls {@link Collection#removeAll} if {@code iterable} is [all...] |
/frameworks/base/core/java/android/net/ |
LinkProperties.java | 30 import java.util.Collection; 64 private Collection<LinkAddress> mLinkAddresses = new ArrayList<LinkAddress>(); 65 private Collection<InetAddress> mDnses = new ArrayList<InetAddress>(); 67 private Collection<RouteInfo> mRoutes = new ArrayList<RouteInfo>(); 77 public Collection<T> removed = new ArrayList<T>(); 78 public Collection<T> added = new ArrayList<T>(); 125 public Collection<String> getAllInterfaceNames() { 126 Collection interfaceNames = new ArrayList<String>(mStackedLinks.size() + 1); 137 public Collection<InetAddress> getAddresses() { 138 Collection<InetAddress> addresses = new ArrayList<InetAddress>() [all...] |
/frameworks/base/core/java/android/util/ |
MapCollections.java | 22 import java.util.Collection; 28 * Helper for writing standard Java collection interfaces to a data 172 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { 174 for (Map.Entry<K, V> entry : collection) { 199 public boolean containsAll(Collection<?> collection) { 200 Iterator<?> it = collection.iterator(); 225 public boolean removeAll(Collection<?> collection) { [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
MapCollections.java | 20 import java.util.Collection; 26 * Helper for writing standard Java collection interfaces to a data 170 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { 172 for (Map.Entry<K, V> entry : collection) { 197 public boolean containsAll(Collection<?> collection) { 198 Iterator<?> it = collection.iterator(); 223 public boolean removeAll(Collection<?> collection) { [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
DOMTestCase.java | 18 import java.util.Collection; 232 * Asserts that the length of the collection is the expected size. 238 * @param collection 239 * collection 244 NodeList collection) { 245 framework.assertSize(this, assertID, expectedSize, collection); 249 * Asserts that the length of the collection is the expected size. 255 * @param collection 256 * collection 261 NamedNodeMap collection) { [all...] |
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
XmlGenerator.java | 28 import java.util.Collection; 139 Collection<TestSuite> suites = parser.parse(System.in); 145 private void writeTestSuites(PrintWriter writer, Collection<TestSuite> suites, 147 Collection<TestSuite> sorted = sortCollection(suites); 166 private void writeTestCases(PrintWriter writer, Collection<TestCase> cases, 168 Collection<TestCase> sorted = sortCollection(cases); 182 private void writeTests(PrintWriter writer, Collection<Test> tests, 184 Collection<Test> sorted = sortCollection(tests); 201 private <E extends Comparable<E>> Collection<E> sortCollection(Collection<E> col) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingMultisetTest.java | 30 import java.util.Collection; 55 @Override public boolean addAll(Collection<? extends T> collection) { 56 return standardAddAll(collection); 75 @Override public boolean containsAll(Collection<?> collection) { 76 return standardContainsAll(collection); 83 @Override public boolean removeAll(Collection<?> collection) { 84 return standardRemoveAll(collection); [all...] |