/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultimapGetTester.java | 60 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 61 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 62 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); 77 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 78 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 79 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2));
|
AbstractMultimapTester.java | 56 array[nullKeyLocation] = Helpers.mapEntry(null, oldEntry.getValue()); 68 array[nullValueLocation] = Helpers.mapEntry(oldEntry.getKey(), null); 79 array[nullValueLocation] = Helpers.mapEntry(null, null);
|
MultimapTestSuiteBuilder.java | 20 import static com.google.common.collect.testing.Helpers.mapEntry; 335 mapEntry(sampleKeys.e0, createCollection(sampleValues.e0)), 336 mapEntry(sampleKeys.e1, createCollection(sampleValues.e1)), 337 mapEntry(sampleKeys.e2, createCollection(sampleValues.e2)), 338 mapEntry(sampleKeys.e3, createCollection(sampleValues.e3)), 339 mapEntry(sampleKeys.e4, createCollection(sampleValues.e4))); 350 builder.add(mapEntry(entry.getKey(), v)); 369 builder.add(mapEntry(entry.getKey(), v)); 451 entries[i] = mapEntry(k, (V) elements[i]); 469 entries.add(mapEntry(k, v)) [all...] |
BiMapPutTester.java | 62 expectContents(Helpers.mapEntry(k0, v1)); 84 expectAdded(Helpers.mapEntry(k1, v0));
|
MultimapPutTester.java | 149 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))); 151 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); 158 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3))); 160 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3));
|
MultimapAsMapGetTester.java | 47 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 48 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 49 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2));
|
AbstractBiMapTester.java | 41 return Helpers.mapEntry(entry.getValue(), entry.getKey());
|
MultimapEqualsTester.java | 47 targetEntries.add(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3));
|
DerivedGoogleCollectionGenerators.java | 108 return Helpers.mapEntry(entry.getValue(), entry.getKey()); 187 entries.add(Helpers.mapEntry(entry.getKey(), valuesArray[i++]));
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
MapTest.java | 494 private static Object getFieldValue(Message mapEntry, String name) { 495 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); 496 return mapEntry.getField(field); 500 Message.Builder mapEntry, String name, Object value) { 501 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); 502 mapEntry.setField(field, value); 503 return mapEntry; 509 Message mapEntry = (Message) entry; 510 Object key = getFieldValue(mapEntry, "key"); 511 Object value = getFieldValue(mapEntry, "value") [all...] |
MapForProto2Test.java | 401 private static Object getFieldValue(Message mapEntry, String name) { 402 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); 403 return mapEntry.getField(field); 407 Message.Builder mapEntry, String name, Object value) { 408 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); 409 mapEntry.setField(field, value); 410 return mapEntry; 416 Message mapEntry = (Message) entry; 417 Object key = getFieldValue(mapEntry, "key"); 418 Object value = getFieldValue(mapEntry, "value") [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
MapsCollectionTest.java | 20 import static com.google.common.collect.testing.Helpers.mapEntry; 108 mapEntry("x", 1), 109 mapEntry("xxx", 3), 110 mapEntry("xx", 2), 111 mapEntry("xxxx", 4), 112 mapEntry("aaaaa", 5)); 173 mapEntry("a", 1), 174 mapEntry("aa", 2), 175 mapEntry("aba", 3), 176 mapEntry("bbbb", 4) [all...] |
MapsTest.java | 22 import static com.google.common.collect.testing.Helpers.mapEntry; 632 mapEntry("one", 3), 633 mapEntry("two", 3), 634 mapEntry("three", 5)).inOrder(); 688 mapEntry("one", 3), 689 mapEntry("three", 5), 690 mapEntry("two", 3)).inOrder(); 692 mapEntry("three", 5), 693 mapEntry("two", 3)).inOrder(); 695 mapEntry("one", 3) [all...] |
TreeRangeMapTest.java | 18 import static com.google.common.collect.testing.Helpers.mapEntry; 51 mapEntry(Range.singleton(0), "banana"), 52 mapEntry(Range.closedOpen(3, 5), "frisbee"), 53 mapEntry(Range.atMost(-1), "fruitcake"), 54 mapEntry(Range.open(10, 15), "elephant"), 55 mapEntry(Range.closed(20, 22), "umbrella")); 106 mapEntry(Range.singleton(0), "banana"), 107 mapEntry(Range.closedOpen(3, 5), "frisbee"), 108 mapEntry(Range.atMost(-1), "fruitcake"), 109 mapEntry(Range.open(10, 15), "elephant") [all...] |
SimpleAbstractMultisetTest.java | 120 final Map.Entry<E, Integer> mapEntry = backingEntries.next(); 124 return mapEntry.getKey();
|
EnumBiMapTest.java | 72 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), 73 Helpers.mapEntry(Country.CHILE, Currency.PESO), 74 Helpers.mapEntry(Country.UK, Currency.POUND), 75 Helpers.mapEntry(Country.JAPAN, Currency.YEN), 76 Helpers.mapEntry(Country.SWITZERLAND, Currency.FRANC));
|
MultimapsCollectionTest.java | 20 import static com.google.common.collect.testing.Helpers.mapEntry; 345 mapEntry("one", "january"), 346 mapEntry("two", "february"), 347 mapEntry("three", "march"), 348 mapEntry("four", "april"), 349 mapEntry("five", "may")); 470 mapEntry("one", 114), 471 mapEntry("two", 37), 472 mapEntry("three", 42), 473 mapEntry("four", 19) [all...] |
TreeMultimapNaturalTest.java | 145 Helpers.mapEntry("a", (Collection<String>) ImmutableSortedSet.of("alex")), 146 Helpers.mapEntry("b", (Collection<String>) ImmutableSortedSet.of("bob", "bagel")), 147 Helpers.mapEntry("c", (Collection<String>) ImmutableSortedSet.of("carl", "carol")), 148 Helpers.mapEntry("d", (Collection<String>) ImmutableSortedSet.of("david", "dead")), 149 Helpers.mapEntry("e", (Collection<String>) ImmutableSortedSet.of("eric", "elaine"))); 183 return Helpers.mapEntry("-- a", (Collection<String>) ImmutableSortedSet.of("--below")); 188 return Helpers.mapEntry("-- b", (Collection<String>) ImmutableSortedSet.of("--below")); 193 return Helpers.mapEntry("~~ b", (Collection<String>) ImmutableSortedSet.of("~above")); 198 return Helpers.mapEntry("~~ c", (Collection<String>) ImmutableSortedSet.of("~above"));
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
SimpleAbstractMultisetTest.java | 94 final Map.Entry<E, Integer> mapEntry = backingEntries.next(); 98 return mapEntry.getKey();
|
MapsTest.java | 21 import static com.google.common.collect.testing.Helpers.mapEntry; 566 mapEntry("one", 3), 567 mapEntry("two", 3), 568 mapEntry("three", 5)).inOrder(); 622 mapEntry("one", 3), 623 mapEntry("three", 5), 624 mapEntry("two", 3)).inOrder(); 626 mapEntry("three", 5), 627 mapEntry("two", 3)).inOrder(); 629 mapEntry("one", 3) [all...] |
EnumBiMapTest.java | 63 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), 64 Helpers.mapEntry(Country.CHILE, Currency.PESO), 65 Helpers.mapEntry(Country.UK, Currency.POUND), 66 Helpers.mapEntry(Country.JAPAN, Currency.YEN), 67 Helpers.mapEntry(Country.SWITZERLAND, Currency.FRANC));
|
/external/guava/guava/src/com/google/common/collect/ |
AbstractMapBasedMultiset.java | 99 final Map.Entry<E, Count> mapEntry = backingEntries.next(); 100 toRemove = mapEntry; 104 return mapEntry.getKey(); 108 Count count = mapEntry.getValue();
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
AbstractMapBasedMultiset.java | 96 final Map.Entry<E, Count> mapEntry = backingEntries.next(); 97 toRemove = mapEntry; 101 return mapEntry.getKey(); 105 Count count = mapEntry.getValue();
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
MapInterfaceTest.java | 197 assertTrue(entrySet.contains(mapEntry(key, value))); 238 entrySetToArray2[map.size()] = mapEntry("foo", 1); 396 = mapEntry(new IncompatibleKeyType(), unmappedValue); 424 Entry<K, V> entry = mapEntry(null, unmappedValue); 426 assertFalse(entrySet.contains(mapEntry(null, null))); 446 Entry<K, V> entry = mapEntry(null, unmappedValue); 453 assertFalse(entrySet.contains(mapEntry(null, null))); 472 Entry<K, V> entryCopy = Helpers.mapEntry( 537 = mapEntry(key, getValueNotInPopulatedMap()); 564 = mapEntry(key, getValueNotInPopulatedMap()) [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
PollingWatchService.java | 398 Map.Entry<Path,CacheEntry> mapEntry = i.next(); 399 CacheEntry entry = mapEntry.getValue(); 401 Path name = mapEntry.getKey();
|