/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractImmutableSetTest.java | 52 protected abstract Set<String> copyOf(String[] elements); in copyOf() method in AbstractImmutableSetTest 53 protected abstract Set<String> copyOf(Collection<String> elements); in copyOf() method in AbstractImmutableSetTest 54 protected abstract Set<String> copyOf(Iterable<String> elements); in copyOf() method in AbstractImmutableSetTest 55 protected abstract Set<String> copyOf(Iterator<String> elements); in copyOf() method in AbstractImmutableSetTest 105 Set<String> set = copyOf(array); in testCopyOf_emptyArray() 112 Set<String> set = copyOf(array); in testCopyOf_arrayOfOneElement() 118 copyOf((String[]) null); in testCopyOf_nullArray() 127 copyOf(array); in testCopyOf_arrayContainingOnlyNull() 136 Set<String> set = copyOf(c); in testCopyOf_collection_empty() 143 Set<String> set = copyOf(c); in testCopyOf_collection_oneElement() [all …]
|
D | ImmutableMultisetTest.java | 89 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_emptyArray() 95 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_arrayOfOneElement() 110 ImmutableMultiset.copyOf(array); in testCreation_arrayContainingOnlyNull() 118 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_empty() 124 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_oneElement() 130 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_general() 137 ImmutableMultiset.copyOf(c); in testCopyOf_collectionContainingNull() 144 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_multiset_empty() 150 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_multiset_oneElement() 156 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_multiset_general() [all …]
|
D | ImmutableSetTest.java | 71 @Override protected Set<String> copyOf(String[] elements) { in copyOf() method in ImmutableSetTest 72 return ImmutableSet.copyOf(elements); in copyOf() 75 @Override protected Set<String> copyOf(Collection<String> elements) { in copyOf() method in ImmutableSetTest 76 return ImmutableSet.copyOf(elements); in copyOf() 79 @Override protected Set<String> copyOf(Iterable<String> elements) { in copyOf() method in ImmutableSetTest 80 return ImmutableSet.copyOf(elements); in copyOf() 83 @Override protected Set<String> copyOf(Iterator<String> elements) { in copyOf() method in ImmutableSetTest 84 return ImmutableSet.copyOf(elements); in copyOf() 88 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); in testCreation_allDuplicates() 117 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); in testCopyOf_copiesImmutableSortedSet()
|
D | ImmutableListTest.java | 168 List<String> list = ImmutableList.copyOf(array); in testCopyOf_emptyArray() 174 List<String> list = ImmutableList.copyOf(array); in testCopyOf_arrayOfOneElement() 180 ImmutableList.copyOf((String[]) null); in testCopyOf_nullArray() 189 ImmutableList.copyOf(array); in testCopyOf_arrayContainingOnlyNull() 198 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_empty() 204 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_oneElement() 210 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_general() 213 list = ImmutableList.copyOf(mutableList); in testCopyOf_collection_general() 221 ImmutableList.copyOf(c); in testCopyOf_collectionContainingNull() 229 List<String> list = ImmutableList.copyOf(iterator); in testCopyOf_iterator_empty() [all …]
|
D | ImmutableSortedSetTest.java | 86 @Override protected SortedSet<String> copyOf(String[] elements) { in copyOf() method in ImmutableSortedSetTest 87 return ImmutableSortedSet.copyOf(elements); in copyOf() 90 @Override protected SortedSet<String> copyOf(Collection<String> elements) { in copyOf() method in ImmutableSortedSetTest 91 return ImmutableSortedSet.copyOf(elements); in copyOf() 94 @Override protected SortedSet<String> copyOf(Iterable<String> elements) { in copyOf() method in ImmutableSortedSetTest 95 return ImmutableSortedSet.copyOf(elements); in copyOf() 98 @Override protected SortedSet<String> copyOf(Iterator<String> elements) { in copyOf() method in ImmutableSortedSetTest 99 return ImmutableSortedSet.copyOf(elements); in copyOf() 374 copyOf(asList("e", "a", "f", "b", "d", "c")); in testCopyOf_ordering() 380 copyOf(asList("e", "a", "e", "f", "b", "b", "d", "a", "c")); in testCopyOf_ordering_dupes() [all …]
|
D | ImmutableBiMapTest.java | 317 = ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap()); in testCopyOfEmptyMap() 319 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOfEmptyMap() 325 = ImmutableBiMap.copyOf(Collections.singletonMap("one", 1)); in testCopyOfSingletonMap() 327 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOfSingletonMap() 336 ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(original); in testCopyOf() 338 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOf() 351 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testFromHashMap() 358 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testFromImmutableMap() 382 ImmutableBiMap.copyOf(map); in testDuplicateValues() 394 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testForcePut() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | AbstractImmutableSetTest.java | 56 protected abstract Set<String> copyOf(String[] elements); in copyOf() method in AbstractImmutableSetTest 57 protected abstract Set<String> copyOf(Collection<String> elements); in copyOf() method in AbstractImmutableSetTest 58 protected abstract Set<String> copyOf(Iterable<String> elements); in copyOf() method in AbstractImmutableSetTest 59 protected abstract Set<String> copyOf(Iterator<String> elements); in copyOf() method in AbstractImmutableSetTest 109 Set<String> set = copyOf(array); in testCopyOf_emptyArray() 116 Set<String> set = copyOf(array); in testCopyOf_arrayOfOneElement() 122 copyOf((String[]) null); in testCopyOf_nullArray() 131 copyOf(array); in testCopyOf_arrayContainingOnlyNull() 140 Set<String> set = copyOf(c); in testCopyOf_collection_empty() 147 Set<String> set = copyOf(c); in testCopyOf_collection_oneElement() [all …]
|
D | ImmutableMultisetTest.java | 66 return ImmutableMultiset.copyOf(elements); in suite() 77 return ImmutableMultiset.copyOf(elements).elementSet(); in suite() 88 return ImmutableMultiset.copyOf(elements).asList(); in suite() 181 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_emptyArray() 187 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_arrayOfOneElement() 202 ImmutableMultiset.copyOf(array); in testCreation_arrayContainingOnlyNull() 210 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_empty() 216 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_oneElement() 222 Multiset<String> multiset = ImmutableMultiset.copyOf(c); in testCopyOf_collection_general() 229 ImmutableMultiset.copyOf(c); in testCopyOf_collectionContainingNull() [all …]
|
D | ImmutableSortedMultisetTest.java | 62 return ImmutableSortedMultiset.copyOf(elements); in suite() 79 return ImmutableSortedMultiset.copyOf(elements).asList(); in suite() 162 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); in testCreation_emptyArray() 168 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); in testCreation_arrayOfOneElement() 191 ImmutableSortedMultiset.copyOf(array); in testCreation_arrayContainingOnlyNull() 199 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); in testCopyOf_collection_empty() 205 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); in testCopyOf_collection_oneElement() 211 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); in testCopyOf_collection_general() 218 ImmutableSortedMultiset.copyOf(c); in testCopyOf_collectionContainingNull() 225 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); in testCopyOf_multiset_empty() [all …]
|
D | ImmutableListTest.java | 251 List<String> list = ImmutableList.copyOf(array); in testCopyOf_emptyArray() 257 List<String> list = ImmutableList.copyOf(array); in testCopyOf_arrayOfOneElement() 263 ImmutableList.copyOf((String[]) null); in testCopyOf_nullArray() 272 ImmutableList.copyOf(array); in testCopyOf_arrayContainingOnlyNull() 281 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_empty() 287 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_oneElement() 293 List<String> list = ImmutableList.copyOf(c); in testCopyOf_collection_general() 296 list = ImmutableList.copyOf(mutableList); in testCopyOf_collection_general() 304 ImmutableList.copyOf(c); in testCopyOf_collectionContainingNull() 312 List<String> list = ImmutableList.copyOf(iterator); in testCopyOf_iterator_empty() [all …]
|
D | ImmutableSortedSetTest.java | 193 @Override protected SortedSet<String> copyOf(String[] elements) { in copyOf() method in ImmutableSortedSetTest 194 return ImmutableSortedSet.copyOf(elements); in copyOf() 197 @Override protected SortedSet<String> copyOf(Collection<String> elements) { in copyOf() method in ImmutableSortedSetTest 198 return ImmutableSortedSet.copyOf(elements); in copyOf() 201 @Override protected SortedSet<String> copyOf(Iterable<String> elements) { in copyOf() method in ImmutableSortedSetTest 202 return ImmutableSortedSet.copyOf(elements); in copyOf() 205 @Override protected SortedSet<String> copyOf(Iterator<String> elements) { in copyOf() method in ImmutableSortedSetTest 206 return ImmutableSortedSet.copyOf(elements); in copyOf() 532 copyOf(asList("e", "a", "f", "b", "d", "c")); in testCopyOf_ordering() 538 copyOf(asList("e", "a", "e", "f", "b", "b", "d", "a", "c")); in testCopyOf_ordering_dupes() [all …]
|
D | ImmutableSetTest.java | 121 @Override protected Set<String> copyOf(String[] elements) { in copyOf() method in ImmutableSetTest 122 return ImmutableSet.copyOf(elements); in copyOf() 125 @Override protected Set<String> copyOf(Collection<String> elements) { in copyOf() method in ImmutableSetTest 126 return ImmutableSet.copyOf(elements); in copyOf() 129 @Override protected Set<String> copyOf(Iterable<String> elements) { in copyOf() method in ImmutableSetTest 130 return ImmutableSet.copyOf(elements); in copyOf() 133 @Override protected Set<String> copyOf(Iterator<String> elements) { in copyOf() method in ImmutableSetTest 134 return ImmutableSet.copyOf(elements); in copyOf() 138 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); in testCreation_allDuplicates() 209 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); in testCopyOf_copiesImmutableSortedSet()
|
D | ImmutableClassToInstanceMapTest.java | 76 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); in testCopyOf_map_empty() 79 assertSame(map, ImmutableClassToInstanceMap.copyOf(map)); in testCopyOf_map_empty() 86 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in); in testCopyOf_map_valid() 95 assertSame(map, ImmutableClassToInstanceMap.copyOf(map)); in testCopyOf_map_valid() 102 ImmutableClassToInstanceMap.copyOf(nullKey); in testCopyOf_map_nulls() 110 ImmutableClassToInstanceMap.copyOf(nullValue); in testCopyOf_map_nulls() 118 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); in testCopyOf_imap_empty() 125 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in); in testCopyOf_imap_valid()
|
D | ImmutableBiMapTest.java | 358 = ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap()); in testCopyOfEmptyMap() 360 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOfEmptyMap() 366 = ImmutableBiMap.copyOf(Collections.singletonMap("one", 1)); in testCopyOfSingletonMap() 368 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOfSingletonMap() 377 ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(original); in testCopyOf() 379 assertSame(copy, ImmutableBiMap.copyOf(copy)); in testCopyOf() 392 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testFromHashMap() 399 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testFromImmutableMap() 423 ImmutableBiMap.copyOf(map); in testDuplicateValues() 435 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf( in testForcePut() [all …]
|
D | BenchmarkHelpers.java | 68 return ImmutableSet.copyOf(contents); in create() 73 return ImmutableSortedSet.copyOf(contents); in create() 97 return ImmutableListMultimap.copyOf(contents); in create() 130 return ImmutableSetMultimap.copyOf(contents); in create() 160 return ImmutableMap.copyOf(map); in create() 185 return ImmutableSortedMap.copyOf(map); in create() 202 return ImmutableBiMap.copyOf(map); in create() 231 return ImmutableMultiset.copyOf(contents); in create() 248 return ImmutableSortedMultiset.copyOf(contents); in create() 287 return ImmutableTable.copyOf(contents); in create()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableSortedMultiset.java | 118 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of() 129 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of() 141 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of() 153 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of() 169 return copyOf(Ordering.natural(), all); in of() 178 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> copyOf(E[] elements) { in copyOf() method in ImmutableSortedMultiset 179 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf() 204 public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) { in copyOf() method in ImmutableSortedMultiset 209 return copyOf(naturalOrder, elements); in copyOf() 222 public static <E> ImmutableSortedMultiset<E> copyOf(Iterator<? extends E> elements) { in copyOf() method in ImmutableSortedMultiset [all …]
|
D | ImmutableSortedSet.java | 217 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 248 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 254 return copyOf(naturalOrder, elements); in copyOf() 286 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 292 return copyOf(naturalOrder, elements); in copyOf() 306 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 312 return copyOf(naturalOrder, elements); in copyOf() 324 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 342 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 378 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet [all …]
|
D | ImmutableSet.java | 271 public static <E> ImmutableSet<E> copyOf(E[] elements) { 299 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { 301 ? copyOf((Collection<? extends E>) elements) 302 : copyOf(elements.iterator()); 312 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) { 359 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { 380 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(enumSet)); 423 return copyOf(elements);
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/ |
D | SuperclassChainTest.java | 69 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(objectClassProto))); in testGetSuperclassChain() 73 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(oneClassProto))); in testGetSuperclassChain() 77 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(twoClassProto))); in testGetSuperclassChain() 81 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(threeClassProto))); in testGetSuperclassChain() 100 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(twoClassProto))); in testGetSuperclassChain_Unresolved() 104 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(threeClassProto))); in testGetSuperclassChain_Unresolved()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSet.java | 79 return copyOf(all.iterator()); in of() 82 public static <E> ImmutableSet<E> copyOf(E[] elements) { in copyOf() method in ImmutableSet 94 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { in copyOf() method in ImmutableSet 96 return copyOf(iterable); in copyOf() 99 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { in copyOf() method in ImmutableSet 105 return copyOf(elements.iterator()); in copyOf() 108 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) { in copyOf() method in ImmutableSet 203 return copyOf(contents.iterator()); in build()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | ListGenerators.java | 47 return ImmutableList.copyOf(elements); in create() 75 return ImmutableList.copyOf(list).reverse(); in create() 86 return ImmutableList.copyOf(all) in create() 98 return ImmutableList.copyOf(all) in create() 114 return ImmutableList.copyOf(all) in create() 146 return ImmutableList.copyOf(elements); in create()
|
/external/caliper/examples/src/main/java/examples/ |
D | CopyArrayBenchmark.java | 80 return Arrays.copyOf(array, array.length); in copy() 83 return Arrays.copyOf(array, array.length); in copy() 86 return Arrays.copyOf(array, array.length); in copy() 89 return Arrays.copyOf(array, array.length); in copy() 92 return Arrays.copyOf(array, array.length); in copy() 95 return Arrays.copyOf(array, array.length); in copy() 98 return Arrays.copyOf(array, array.length); in copy() 101 return Arrays.copyOf(array, array.length); in copy() 104 return Arrays.copyOf(array, array.length); in copy()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | PoolClassDef.java | 59 … interfaces = new TypeListPool.Key<List<String>>(ImmutableList.copyOf(classDef.getInterfaces())); in PoolClassDef() 60 staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); in PoolClassDef() 61 instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); in PoolClassDef() 62 directMethods = ImmutableSortedSet.copyOf( in PoolClassDef() 64 virtualMethods = ImmutableSortedSet.copyOf( in PoolClassDef()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/ |
D | SetGenerators.java | 66 return ImmutableSet.copyOf(elements); in create() 78 return ImmutableSet.copyOf(elements); in create() 96 return ImmutableSortedSet.copyOf(elements); in create() 105 return ImmutableSortedSet.copyOf(list) in create() 115 return ImmutableSortedSet.copyOf(list) in create() 126 return ImmutableSortedSet.copyOf(list) in create() 186 return ImmutableSortedSet.copyOf(elements); in create() 193 return ImmutableSet.copyOf(elements).asList(); in create() 201 ImmutableSet<String> set = ImmutableSortedSet.copyOf( in create()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | ParameterizedTypeName.java | 34 this.parameters = ImmutableList.<TypeName>copyOf(parameters); in ParameterizedTypeName() 93 return new ParameterizedTypeName(className, ImmutableList.copyOf(parameters)); in create() 98 return new ParameterizedTypeName(className, ImmutableList.copyOf(parameters)); in create() 105 ImmutableList.copyOf(parameters)); in create()
|