/external/guava/guava-tests/test/com/google/common/collect/ |
D | SetOperationsTest.java | 49 Sets.<String>newHashSet(), Sets.<String>newHashSet()); in suite() 61 Sets.<String>newHashSet(elements), Sets.newHashSet(elements)); in suite() 71 Sets.<String>newHashSet(), Sets.newHashSet(elements)); in suite() 82 Sets.newHashSet(elements), Sets.<String>newHashSet()); in suite() 109 Sets.newHashSet(elements[0]), in suite() 110 Sets.newHashSet(elements[1], elements[2])); in suite() 121 Sets.<String>newHashSet(elements[0], elements[1]), in suite() 122 Sets.newHashSet(elements[1], elements[2])); in suite() 133 Sets.<String>newHashSet(), Sets.<String>newHashSet()); in suite() 144 Sets.<String>newHashSet(), Sets.newHashSet((String) null)); in suite() [all …]
|
D | AbstractSetMultimapTest.java | 65 equalMap.put("foo", Sets.newHashSet(1, nullValue())); in testAsMapEquals() 66 equalMap.put(nullKey(), Sets.newHashSet(3)); in testAsMapEquals() 72 equalMap.put("foo", Sets.newHashSet(3, nullValue())); in testAsMapEquals() 73 equalMap.put(nullKey(), Sets.newHashSet(1)); in testAsMapEquals() 113 assertEquals(Sets.newHashSet(1, 3), array[0]); in testAsMapValues() 118 asList(Sets.newHashSet(1, 3), Sets.newHashSet(3)))); in testAsMapValues() 120 asList(Sets.newHashSet(1, 3), Sets.newHashSet(1)))); in testAsMapValues() 161 Set<Map.Entry<String, Integer>> same = Sets.newHashSet( in testEntriesEquals() 172 Set<Map.Entry<String, Integer>> different3 = Sets.newHashSet( in testEntriesEquals() 179 Set<Map.Entry<String, Integer>> different4 = Sets.newHashSet( in testEntriesEquals()
|
D | TreeMultimapNaturalTest.java | 20 import static com.google.common.collect.Sets.newHashSet; 156 assertEquals(Sets.newHashSet(1, 3), fooSet); in testHeadSet() 158 assertEquals(Sets.newHashSet(), missingSet); in testHeadSet() 161 assertEquals(Sets.newHashSet(0, 1, 3), fooSet); in testHeadSet() 164 assertEquals(Sets.newHashSet(2), multimap.get("missing")); in testHeadSet() 170 assertEquals(Sets.newHashSet(3, 7), fooSet); in testTailSet() 172 assertEquals(Sets.newHashSet(), missingSet); in testTailSet() 175 assertEquals(Sets.newHashSet(3, 6, 7), fooSet); in testTailSet() 178 assertEquals(Sets.newHashSet(9), multimap.get("missing")); in testTailSet() 184 assertEquals(Sets.newHashSet(3), fooSet); in testSubSet() [all …]
|
D | SetsTest.java | 21 import static com.google.common.collect.Sets.newHashSet; 121 ? Sets.newHashSet( in suite() 123 : Sets.newHashSet(elements); in suite() 126 ? Sets.newHashSet( in suite() 128 : Sets.<String>newHashSet(); in suite() 138 Set<String> set1 = Sets.newHashSet(elements); in suite() 140 Set<String> set2 = Sets.newHashSet(elements); in suite() 151 Set<String> set1 = Sets.newHashSet(elements); in suite() 153 Set<String> set2 = Sets.newHashSet(samples().e3); in suite() 354 HashSet<Integer> set = Sets.newHashSet(); [all …]
|
D | LinkedHashMultimapTest.java | 20 import static com.google.common.collect.Sets.newHashSet; 221 assertEquals(newHashSet(elements), multimap.get("foo")); in testGetIteration() 249 assertEquals(newHashSet(elements), multimap.entries()); in testEntriesIteration() 314 assertEquals(newHashSet(elements), multimap.keySet()); in testKeySetIteration() 324 (Collection<Integer>) Sets.newHashSet(2, 3, 6)), in testAsSetIteration() 326 (Collection<Integer>) Sets.newHashSet(4, 5, 10, 11)), in testAsSetIteration() 328 (Collection<Integer>) Sets.newHashSet(7, 8)), in testAsSetIteration() 330 (Collection<Integer>) Sets.newHashSet(9)), in testAsSetIteration() 332 (Collection<Integer>) Sets.newHashSet(12, 13, 14)) in testAsSetIteration() 353 assertEquals(newHashSet(elements), multimap.asMap().entrySet()); in testAsSetIteration()
|
D | AbstractImmutableSetTest.java | 74 assertEquals(Sets.newHashSet("a", "b"), set); in testCreation_twoElements() 79 assertEquals(Sets.newHashSet("a", "b", "c"), set); in testCreation_threeElements() 84 assertEquals(Sets.newHashSet("a", "b", "c", "d"), set); in testCreation_fourElements() 89 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e"), set); in testCreation_fiveElements() 94 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f"), set); in testCreation_sixElements() 99 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g"), set); in testCreation_sevenElements() 104 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g", "h"), set); in testCreation_eightElements() 453 Sets.newHashSet(expected), copyOf(misleading)); in verifyThreadSafe()
|
D | FauxveridesTest.java | 20 import static com.google.common.collect.Sets.newHashSet; 130 Set<MethodSignature> methods = newHashSet(); in getPublicStaticMethodsBetween() 138 Set<MethodSignature> publicStaticMethods = newHashSet(); in getPublicStaticMethods() 153 Set<Class<?>> classes = newHashSet(); in getClassesBetween()
|
D | TreeMultimapExplicitTest.java | 189 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet() 190 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet() 191 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
|
D | TransformedSetTest.java | 70 Set<Integer> original = Sets.newHashSet(0, 1, 2, 3); in testSimpleCases() 109 Set<Integer> invertedIntegers = Sets.newHashSet(Iterables.transform(integers, in create()
|
D | ForwardingObjectTest.java | 41 final Set<String> delegate = Sets.newHashSet("foo"); in testEqualsSymmetric()
|
D | ImmutableBiMapTest.java | 174 assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); in assertMoreInvariants() 175 assertEquals(Sets.newHashSet(map.keySet()), map.keySet()); in assertMoreInvariants() 504 assertEquals(Sets.newHashSet("one", "two", "three", "four"), keys); in testKeySet() 512 assertEquals(Sets.newHashSet(1, 2, 3, 4), values); in testValues()
|
D | IterablesTest.java | 105 Iterable<String> set = Sets.newHashSet("a", null, "b"); 110 Iterable<String> set = Sets.newHashSet("a", "b"); 125 Iterable<String> set = Sets.newHashSet("a", null, "b"); 130 Iterable<String> set = Sets.newHashSet("a", "b"); 786 testGetOnEmpty(Sets.<String>newHashSet()); 942 Set<String> set = Sets.newHashSet(); 985 Set<String> set = Sets.newHashSet("a", "b", "c");
|
D | LinkedListMultimapTest.java | 20 import static com.google.common.collect.Sets.newHashSet; 429 assertEquals(newHashSet(elements), multimap.keySet()); in testKeySetIteration() 469 assertEquals(newHashSet(elements), multimap.asMap().entrySet()); in testAsSetIteration()
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/ |
D | MappingFileProviderTest.java | 45 mapping.put(1, newHashSet("en")); in MappingFileProviderTest() 46 mapping.put(86, newHashSet("zh", "en", "zh_Hant")); in MappingFileProviderTest() 47 mapping.put(41, newHashSet("de", "fr", "it", "rm")); in MappingFileProviderTest() 48 mapping.put(65, newHashSet("en", "zh_Hans", "ms", "ta")); in MappingFileProviderTest() 53 private static HashSet<String> newHashSet(String... strings) { in newHashSet() method in MappingFileProviderTest
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderFactory.java | 41 private Set<Integer> concurrencyLevels = Sets.newHashSet((Integer) null); 42 private Set<Integer> initialCapacities = Sets.newHashSet((Integer) null); 43 private Set<Integer> maximumSizes = Sets.newHashSet((Integer) null); 44 private Set<DurationSpec> expireAfterWrites = Sets.newHashSet((DurationSpec) null); 45 private Set<DurationSpec> expireAfterAccesses = Sets.newHashSet((DurationSpec) null); 46 private Set<DurationSpec> refreshes = Sets.newHashSet((DurationSpec) null); 47 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null); 48 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null);
|
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/ |
D | InvalidationPreferencesTest.java | 45 HashSet<ModelType> expectedTypes = CollectionUtil.newHashSet( in testTranslateBasicSyncTypes() 48 CollectionUtil.newHashSet("BOOKMARK", "SESSION", "0!!!INVALID")); in testTranslateBasicSyncTypes() 61 CollectionUtil.newHashSet(ModelType.ALL_TYPES_TYPE)); in testTranslateAllSyncTypes() 90 Set<String> syncTypes = CollectionUtil.newHashSet("BOOKMARK", ModelType.ALL_TYPES_TYPE); in testReadWriteAndReadData() 91 Set<ObjectId> objectIds = CollectionUtil.newHashSet( in testReadWriteAndReadData()
|
D | InvalidationServiceTest.java | 87 CollectionUtil.newHashSet(ModelType.BOOKMARK, ModelType.SESSION)), in testComputeRegistrationOps() 89 CollectionUtil.newHashSet(ModelType.BOOKMARK, ModelType.SESSION)), in testComputeRegistrationOps() 103 CollectionUtil.newHashSet( in testComputeRegistrationOps() 110 CollectionUtil.newHashSet( in testComputeRegistrationOps() 119 CollectionUtil.newHashSet( in testComputeRegistrationOps() 121 CollectionUtil.newHashSet( in testComputeRegistrationOps() 124 assertEquals(CollectionUtil.newHashSet(ModelType.BOOKMARK.toObjectId()), regAccumulator); in testComputeRegistrationOps() 125 assertEquals(CollectionUtil.newHashSet(ModelType.TYPED_URL.toObjectId()), in testComputeRegistrationOps() 155 assertEquals(CollectionUtil.newHashSet( in testReady() 185 assertEquals(CollectionUtil.newHashSet( in testReissueRegistrations() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | UrlUtilities.java | 24 private static final HashSet<String> ACCEPTED_SCHEMES = CollectionUtil.newHashSet( 30 private static final HashSet<String> DOWNLOADABLE_SCHEMES = CollectionUtil.newHashSet(
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ |
D | InvalidationControllerTest.java | 159 CollectionUtil.newHashSet(ModelType.BOOKMARK, ModelType.SESSION)); in testRegisterForSpecificTypes() 173 Set<String> expectedTypes = CollectionUtil.newHashSet(ModelType.BOOKMARK.name(), in testRegisterForSpecificTypes() 187 CollectionUtil.newHashSet(ModelType.BOOKMARK, ModelType.SESSION)); in testRegisterForAllTypes() 201 Set<String> expectedTypes = CollectionUtil.newHashSet(ModelType.ALL_TYPES_TYPE); in testRegisterForAllTypes()
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
D | CollectionUtil.java | 20 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() method in CollectionUtil
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CheckCloseSupplier.java | 38 private final Set<Callback> open = Sets.newHashSet();
|
/external/guava/guava/src/com/google/common/collect/ |
D | Sets.java | 156 public static <E> HashSet<E> newHashSet() { in newHashSet() method in Sets 174 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() method in Sets 210 public static <E> HashSet<E> newHashSet(Iterable<? extends E> elements) { in newHashSet() method in Sets 213 : newHashSet(elements.iterator()); in newHashSet() 229 public static <E> HashSet<E> newHashSet(Iterator<? extends E> elements) { in newHashSet() method in Sets 230 HashSet<E> set = newHashSet(); in newHashSet()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Sets.java | 153 public static <E> HashSet<E> newHashSet() { in newHashSet() method in Sets 171 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() method in Sets 207 public static <E> HashSet<E> newHashSet(Iterable<? extends E> elements) { in newHashSet() method in Sets 210 : newHashSet(elements.iterator()); in newHashSet() 226 public static <E> HashSet<E> newHashSet(Iterator<? extends E> elements) { in newHashSet() method in Sets 227 HashSet<E> set = newHashSet(); in newHashSet()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | DeviceMotionAndOrientation.java | 66 static final Set<Integer> DEVICE_ORIENTATION_SENSORS = CollectionUtil.newHashSet( 69 static final Set<Integer> DEVICE_MOTION_SENSORS = CollectionUtil.newHashSet(
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | SimpleTimeLimiter.java | 169 Set<Method> set = Sets.newHashSet(); in findInterruptibleMethods()
|