| /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ | 
| ContactAggregatorHelper.java | 21 import com.google.common.collect.Multimap; 94     public static Set<Set<Long>> findConnectedComponents(Set<Long> rawContactIdSet, Multimap<Long,
 108     private static void findConnectedComponentForRawContact(Multimap<Long, Long> connections,
 
 | 
| /external/guava/guava/src/com/google/common/collect/ | 
| ArrayListMultimap.java | 35  * Implementation of {@code Multimap} that uses an {@code ArrayList} to store 43  * <p>This multimap allows duplicate key-value pairs. After adding a new
 48  * <p>Keys and values may be null. All optional multimap methods are supported,
 55  * multimap. Concurrent read operations will work correctly. To allow concurrent
 56  * update operations, wrap your multimap with a call to {@link
 60  * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
 61  * {@code Multimap}</a>.
 97    * specified multimap.
 99    * @param multimap the multimap whose contents are copied to this multima
 [all...]
 | 
| HashMultimap.java | 33  * Implementation of {@link Multimap} using hash tables. 35  * <p>The multimap does not store duplicate key-value pairs. Adding a new
 38  * <p>Keys and values may be null. All optional multimap methods are supported,
 42  * multimap. Concurrent read operations will work correctly. To allow concurrent
 43  * update operations, wrap your multimap with a call to {@link
 80    * multimap. If a key-value mapping appears multiple times in the input
 81    * multimap, it only appears once in the constructed multimap.
 83    * @param multimap the multimap whose contents are copied to this multima
 [all...]
 | 
| MultimapBuilder.java | 45  * A builder for a multimap implementation that allows customization of the backing map and value 46  * collection implementations used in a particular multimap.
 48  * <p>This can be used to easily configure multimap data structure implementations not provided
 65  * @param <K0> An upper bound on the key type of the generated multimap.
 66  * @param <V0> An upper bound on the value type of the generated multimap.
 107    * <p>The collections returned by {@link Multimap#keySet()}, {@link Multimap#keys()}, and
 108    * {@link Multimap#asMap()} will iterate through the keys in the order that they were first added
 109    * to the multimap, save that if all values associated with a key are removed and then the key is
 110    * added back into the multimap, that key will come last in the key iteration order
 [all...]
 | 
| TreeMultimap.java | 38  * Implementation of {@code Multimap} whose keys and values are ordered by 58  * <p>The multimap does not store duplicate key-value pairs. Adding a new
 62  * respective comparators support them). All optional multimap methods are
 66  * multimap. Concurrent read operations will work correctly. To allow concurrent
 67  * update operations, wrap your multimap with a call to {@link
 71  * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
 72  * {@code Multimap}</a>.
 109    * keys and values, with the same mappings as the specified multimap.
 111    * @param multimap the multimap whose contents are copied to this multima
 [all...]
 | 
| AbstractMultimap.java | 33  * A skeleton {@code Multimap} implementation, not necessarily in terms of a {@code Map}. 38 abstract class AbstractMultimap<K, V> implements Multimap<K, V> {
 87   public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
 89     for (Map.Entry<? extends K, ? extends V> entry : multimap.entries()) {
 121     Multimap<K, V> multimap() {  method in class:AbstractMultimap.Entries
 220    * Returns the hash code for this multimap.
 222    * <p>The hash code of a multimap is defined as the hash code of the map view,
 223    * as returned by {@link Multimap#asMap}
 [all...]
 | 
| FilteredKeyMultimap.java | 34  * Implementation of {@link Multimaps#filterKeys(Multimap, Predicate)}. 40   final Multimap<K, V> unfiltered;
 43   FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) {
 49   public Multimap<K, V> unfiltered() {
 
 | 
| Serialization.java | 38    * Reads a count corresponding to a serialized map, multiset, or multimap. It 43    * keys in a multimap serialized by {@link
 44    * #writeMultimap(Multimap, ObjectOutputStream)}.
 142    * Stores the contents of a multimap in an output stream, as part of
 144    * change while the method is running. The {@link Multimap#asMap} view
 152       Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException {
 153     stream.writeInt(multimap.asMap().size());
 154     for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) {
 164    * Populates a multimap by reading an input stream, as part o
 [all...]
 | 
| /external/guava/guava-testlib/src/com/google/common/collect/testing/google/ | 
| MultimapContainsEntryTester.java | 26 import com.google.common.collect.Multimap; 31  * Tester for {@link Multimap#containsEntry}.
 37     extends AbstractMultimapTester<K, V, Multimap<K, V>> {
 40     assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0));
 44     assertFalse(multimap().containsEntry(sampleKeys().e3, sampleValues().e3));
 50         assertEquals(multimap().get(k).contains(v),
 51             multimap().containsEntry(k, v));
 60     assertTrue(multimap().containsEntry(null, null));
 65     assertFalse(multimap().containsEntry(null, null));
 71       multimap().containsEntry(null, sampleValues().e3)
 [all...]
 | 
| MultimapKeySetTester.java | 24 import com.google.common.collect.Multimap; 33  * Tester for {@code Multimap.keySet}.
 38 public class MultimapKeySetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
 41       assertTrue(multimap().keySet().contains(entry.getKey()));
 49     assertTrue(multimap().keySet().contains(null));
 54     assertFalse(multimap().keySet().contains(null));
 59     int key0Count = multimap().get(sampleKeys().e0).size();
 60     assertEquals(key0Count > 0, multimap().keySet().remove(sampleKeys().e0));
 61     assertEquals(getNumElements() - key0Count, multimap().size());
 68     int key0Count = multimap().get(sampleKeys().e0).size()
 [all...]
 | 
| MultimapClearTester.java | 24 import com.google.common.collect.Multimap; 33  * Tests for {@link Multimap#clear()}.
 38 public class MultimapClearTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
 43       multimap().clear();
 49     assertEquals(0, multimap().size());
 50     assertTrue(multimap().isEmpty());
 51     assertEquals(multimap(), getSubjectGenerator().create());  method
 52     assertThat(multimap().entries()).isEmpty();
 53     assertThat(multimap().asMap()).isEmpty();
 54     assertThat(multimap().keySet()).isEmpty()
 [all...]
 | 
| MultimapRemoveAllTester.java | 27 import com.google.common.collect.Multimap; 35  * Tests for {@link Multimap#removeAll(Object)}.
 40 public class MultimapRemoveAllTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
 43     assertThat(multimap().removeAll(sampleKeys().e3)).isEmpty();
 50     assertThat(multimap().removeAll(sampleKeys().e0))
 58     Collection<V> getResult = multimap().get(sampleKeys().e0);
 60     multimap().removeAll(sampleKeys().e0);
 74     assertThat(multimap().removeAll(sampleKeys().e0))
 76     assertTrue(multimap().isEmpty());
 84     assertThat(multimap().removeAll(null)).has().exactly(getValueForNullKey()).inOrder()
 [all...]
 | 
| UnmodifiableCollectionTests.java | 28 import com.google.common.collect.Multimap; 251    * Verifies that a multimap is immutable.
 253    * <p>A multimap is considered immutable if:
 258    * multimap throw UnsupportedOperationException when those mutators
 261    * @param multimap the presumed-immutable multimap
 263    * {@code multimap}. {@code multimap} may or may not have {@code sampleKey} as
 266    * {@code multimap}. {@code multimap} may or may not have {@code sampleValue
 [all...]
 | 
| MultimapTestSuiteBuilder.java | 24 import com.google.common.collect.Multimap; 62  * a {@code Multimap} implementation.
 66 public class MultimapTestSuiteBuilder<K, V, M extends Multimap<K, V>> extends
 71   public static <K, V, M extends Multimap<K, V>> MultimapTestSuiteBuilder<K, V, M> using(
 265   private static final Multimap<Feature<?>, Feature<?>> GET_FEATURE_MAP = ImmutableMultimap
 309   private static class AsMapGenerator<K, V, M extends Multimap<K, V>> implements
 394   static class EntriesGenerator<K, V, M extends Multimap<K, V>>
 430   static class ValuesGenerator<K, V, M extends Multimap<K, V>>
 480   static class KeysGenerator<K, V, M extends Multimap<K, V>> implements
 548   static class MultimapGetGenerator<K, V, M extends Multimap<K, V>
 [all...]
 | 
| /external/guava/guava-tests/test/com/google/common/collect/ | 
| HashMultimapTest.java | 47             SetMultimap<String, String> multimap = HashMultimap.create(); 49               multimap.put(entry.getKey(), entry.getValue());
 51             return multimap;
 74     HashMultimap<String, Integer> multimap = HashMultimap.create();  local
 75     multimap.put("foo", 1);
 76     multimap.put("bar", 2);
 77     multimap.put("foo", 3);
 78     assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
 79     assertEquals(2, multimap.expectedValuesPerKey);
 83     HashMultimap<String, Integer> multimap = HashMultimap.create()  local
 93  HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15);  local
 [all...]
 | 
| AbstractMultimapAsMapImplementsMapTest.java | 26  * Test {@link Multimap#asMap()} for an arbitrary multimap with 41   protected void populate(Multimap<String, Integer> multimap) {
 42     multimap.put("one", 1);
 43     multimap.put("two", 2);
 44     multimap.put("two", 22);
 45     multimap.put("three", 3);
 46     multimap.put("three", 33);
 47     multimap.put("three", 333)
 [all...]
 | 
| ImmutableMultimapTest.java | 40     ImmutableMultimap<String, Integer> multimap = new Builder<String, Integer>()  local 43     assertEquals(Arrays.asList(1), multimap.get("one"));
 103     Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of(  local
 105     assertEquals(1, multimap.get(0).size());
 106     assertTrue(multimap.get(0).contains(unhashables.e0));
 111     Multimap<Integer, Object> multimap = ImmutableMultimap.<Integer, Object>of(  local
 113     assertEquals(2, multimap.get(0).size());
 114     assertTrue(multimap.get(0).contains(unhashables.e0))
 [all...]
 | 
| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/ | 
| FinalPage.java | 20 import com.google.common.collect.Multimap; 79                 Multimap<FileStatus, File> fileStatusMap = mStatus.getFileStatus();
 
 | 
| /external/dagger2/compiler/src/main/java/dagger/internal/codegen/ | 
| ResolvedBindings.java | 25 import com.google.common.collect.Multimap; 152       Multimap<ComponentDescriptor, ? extends ContributionBinding> contributionBindings) {
 
 | 
| /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ | 
| ImmutableMultimapTest.java | 40     ImmutableMultimap<String, Integer> multimap = new Builder<String, Integer>()  local 43     assertEquals(Arrays.asList(1), multimap.get("one"));
 103     Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of(  local
 105     assertEquals(1, multimap.get(0).size());
 106     assertTrue(multimap.get(0).contains(unhashables.e0));
 111     Multimap<Integer, Object> multimap = ImmutableMultimap.<Integer, Object>of(  local
 113     assertEquals(2, multimap.get(0).size());
 114     assertTrue(multimap.get(0).contains(unhashables.e0))
 [all...]
 | 
| /external/caliper/caliper/src/main/java/com/google/caliper/options/ | 
| ParsedOptions.java | 34 import com.google.common.collect.Multimap; 215   private Multimap<String, String> mutableUserParameters = ArrayListMultimap.create();
 234   private Multimap<String, String> mutableVmArguments = ArrayListMultimap.create();
 337   private void addToMultimap(String nameAndValues, Multimap<String, String> multimap)
 343     if (multimap.containsKey(name)) {
 346     multimap.putAll(name, split(values));
 
 | 
| /external/guava/guava/src/com/google/common/eventbus/ | 
| EventBus.java | 28 import com.google.common.collect.Multimap; 203     Multimap<Class<?>, EventSubscriber> methodsInListener =
 220     Multimap<Class<?>, EventSubscriber> methodsInListener = finder.findAllSubscribers(object);
 
 | 
| /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ | 
| ImmutableMultimap.java | 39  * An immutable {@link Multimap}. Does not permit null keys or values. 41  * <p>Unlike {@link Multimaps#unmodifiableMultimap(Multimap)}, which is
 42  * a <i>view</i> of a separate multimap which can still change, an instance of
 46  * you easily make a "defensive copy" of a multimap provided to your class by
 53  * <p>In addition to methods defined by {@link Multimap}, an {@link #inverse}
 67   /** Returns an empty multimap. */
 73    * Returns an immutable multimap containing a single entry.
 80    * Returns an immutable multimap containing the given entries, in order.
 87    * Returns an immutable multimap containing the given entries, in order.
 95    * Returns an immutable multimap containing the given entries, in order
 489  final ImmutableMultimap<K, V> multimap;  field in class:ImmutableMultimap.EntryCollection
 [all...]
 | 
| ImmutableSetMultimap.java | 40  * a <i>view</i> of a separate multimap which can still change, an instance of 44  * you easily make a "defensive copy" of a multimap provided to your class by
 63   /** Returns the empty multimap. */
 64   // Casting is safe because the multimap will never hold any elements.
 71    * Returns an immutable multimap containing a single entry.
 80    * Returns an immutable multimap containing the given entries, in order.
 92    * Returns an immutable multimap containing the given entries, in order.
 106    * Returns an immutable multimap containing the given entries, in order.
 121    * Returns an immutable multimap containing the given entries, in order.
 146    * Multimap for {@link ImmutableSetMultimap.Builder} that maintains ke
 420  private transient final ImmutableSetMultimap<K, V> multimap;  field in class:ImmutableSetMultimap.EntrySet
 [all...]
 | 
| /development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/ | 
| HardcodedColorDetector.java | 36 import com.google.common.collect.Multimap; 83     private Multimap<String, Location.Handle> indirectColorMultiMap;
 
 |