/external/mockito/src/org/mockito/internal/configuration/injection/filter/ |
MockCandidateFilter.java | 8 import java.util.Collection;
13 Collection<Object> mocks,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsCollectionTest.java | 66 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); local 67 collection.readLegacyNetwork(testFile); 70 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 75 collection.write(new DataOutputStream(bos)); 78 collection.reset(); 79 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 83 collection.read(new ByteArrayInputStream(bos.toByteArray())); 84 assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), 92 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); local 93 collection.readLegacyUid(testFile, false) 118 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); local 141 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); local [all...] |
/external/chromium/chrome/browser/ |
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/chromium_org/chrome/browser/ui/panels/ |
test_panel_collection_squeeze_observer.h | 13 // Custom notification observer for waiting on panel collection that squeezes 18 // Register to listen for panel collection updated notifications 19 // from the specified collection to detect a change to the state 21 // panels in the collection are squeezed. 22 PanelCollectionSqueezeObserver(DockedPanelCollection* collection,
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
CollectionRemoveTester.java | 32 * A generic JUnit test which tests {@code remove} operations on a collection. 45 int initialSize = collection.size(); 47 collection.remove(samples.e0)); 48 assertEquals("remove(present) should decrease a collection's size by one.", 49 initialSize - 1, collection.size()); 56 collection.remove(samples.e3)); 63 collection = getSubjectGenerator().create(createArrayWithNullElement()); 65 int initialSize = collection.size(); 66 assertTrue("remove(null) should return true", collection.remove(null)); 67 assertEquals("remove(present) should decrease a collection's size by one." [all...] |
CollectionEqualsTester.java | 22 * Tests {@link java.util.Collection#equals}. 31 collection.equals(collection)); 37 collection.equals(null)); 42 assertFalse("A Collection should never equal an " 43 + "object that is not a Collection.", 44 collection.equals("huh?"));
|
/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...] |
/frameworks/base/media/mca/filterfw/native/base/ |
utilities.h | 73 template <class Collection> 74 const typename Collection::value_type::second_type* 75 FindOrNull(const Collection& collection, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 78 if (it == collection.end()) { 127 template <class Collection> 128 const typename Collection::value_type::second_typ [all...] |
/frameworks/base/media/mca/filterpacks/native/base/ |
utilities.h | 73 template <class Collection> 74 const typename Collection::value_type::second_type* 75 FindOrNull(const Collection& collection, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 78 if (it == collection.end()) { 127 template <class Collection> 128 const typename Collection::value_type::second_typ [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
SignerInformationStore.java | 4 import java.util.Collection; 16 Collection signerInfos) 48 Collection list = getSigners(selector); 54 * Return the number of signers in the collection. 64 * Return all signers in the collection 66 * @return a collection of signers. 68 public Collection getSigners() 74 * Return possible empty collection with signers matching the passed in SignerId 77 * @return a collection of SignerInformation objects. 79 public Collection getSigners [all...] |
/external/clang/test/ARCMT/ |
safe-arc-assign.m | 5 void test12(id collection) { 6 for (id x in collection) { 11 for (__strong id x in collection) {
|
safe-arc-assign.m.result | 5 void test12(id collection) { 6 for (__strong id x in collection) { 11 for (__strong id x in collection) {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingCollectionTest.java | 30 import java.util.Collection; 43 private final Collection<T> backingCollection; 45 StandardImplForwardingCollection(Collection<T> backingCollection) { 49 @Override protected Collection<T> delegate() { 53 @Override public boolean addAll(Collection<? extends T> collection) { 54 return standardAddAll(collection); 65 @Override public boolean containsAll(Collection<?> collection) { 66 return standardContainsAll(collection); [all...] |
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...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/ |
Filters.java | 36 import java.util.Collection; 58 * collection and false for all other cases. 60 public static <T> Filter<T> in( Collection<? extends T> collection ) 62 return new InFilter<T>(collection); 77 * collection and false for all other cases. This is the equivalent 78 * of calling not(in(collection)). 80 public static <T> Filter<T> notIn( Collection<? extends T> collection ) 82 return not( in( collection ) ); 130 private Collection<? extends T> collection; field in class:Filters.InFilter [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CollectionCertStoreParametersTest.java | 26 import java.util.Collection; 54 * with the default parameter values (an empty and immutable Collection) 65 * with the default parameter values (an empty and immutable Collection) 69 Collection c = cp.getCollection(); 72 // check that empty collection is immutable 76 fail("empty collection must be immutable"); 82 * Test #1 for <code>CollectionCertStoreParameters(Collection)</code> 93 * Test #2 for <code>CollectionCertStoreParameters(Collection)</code> 95 * Assertion: If the specified <code>Collection</code> contains an object 97 * will be ignored by the Collection <code>CertStore</code>. [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...] |
/art/test/109-suspend-check/ |
info.txt | 1 To support garbage collection, debugging and profiling the VM must be able to send all threads
|
/dalvik/tests/097-suspend-check/ |
info.txt | 1 To support garbage collection, debugging and profiling the VM must be able to send all threads
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/features/ |
CollectionFeature.java | 24 import java.util.Collection; 30 * Optional features of classes derived from {@code Collection}. 38 public enum CollectionFeature implements Feature<Collection> { 40 * The collection must not throw {@code NullPointerException} on calls 49 * Indicates that a collection disallows certain elements (other than 52 * From the documentation for {@link Collection}: 53 * <blockquote>"Some collection implementations have restrictions on the 61 * Indicates that a collection has a well-defined ordering of its elements. 69 * Indicates that a collection has a different {@link Object#toString} 70 * representation than most collections. If not specified, the collection [all...] |
/external/mockito/src/org/mockito/stubbing/answers/ |
ReturnsElementsOf.java | 7 import java.util.Collection;
10 * Returns elements of the collection. Keeps returning the last element forever.
11 * Might be useful on occasion when you have a collection of elements to return.
26 public ReturnsElementsOf(Collection<?> elements) {
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1ValueCollection.java | 25 import java.util.Collection; 29 * This abstract class represents ASN.1 collection type. 31 * The value for such type is a collection of zero or 38 /** A value collection of this ASN.1 type */ 42 * Constructs ASN1 collection type. 56 * @return - a collection of object's values to be encoded 58 public Collection<?> getValues(Object object) { 59 return (Collection<?>) object;
|
/external/mockito/src/org/mockito/internal/stubbing/answers/ |
ReturnsElementsOf.java | 11 import java.util.Collection;
15 * Returns elements of the collection. Keeps returning the last element forever.
16 * Might be useful on occasion when you have a collection of elements to return.
28 * {@link org.mockito.AdditionalAnswers#returnsElementsOf(java.util.Collection)}
37 public ReturnsElementsOf(Collection<?> elements) {
40 "Please pass a collection instance");
|
/libcore/dom/src/test/java/org/w3c/domts/ |
DOMTestInnerClass.java | 15 import java.util.Collection; 61 public void assertSize(String assertID, int expectedSize, NodeList collection) { 62 test.assertSize(assertID, expectedSize, collection); 66 NamedNodeMap collection) { 67 test.assertSize(assertID, expectedSize, collection); 71 Collection collection) { 72 test.assertSize(assertID, expectedSize, collection); 80 public void assertEqualsIgnoreCase(String assertID, Collection expected, 81 Collection actual) [all...] |