/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 | 67 return ImmutableSet.copyOf(contents); in create() 72 return ImmutableSortedSet.copyOf(contents); in create() 96 return ImmutableListMultimap.copyOf(contents); in create() 129 return ImmutableSetMultimap.copyOf(contents); in create() 159 return ImmutableMap.copyOf(map); in create() 178 return ImmutableSortedMap.copyOf(map); in create() 195 return ImmutableBiMap.copyOf(map); in create() 224 return ImmutableMultiset.copyOf(contents); in create() 241 return ImmutableSortedMultiset.copyOf(contents); in create() 280 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 | 216 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 247 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 253 return copyOf(naturalOrder, elements); in copyOf() 285 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 291 return copyOf(naturalOrder, elements); in copyOf() 305 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 311 return copyOf(naturalOrder, elements); in copyOf() 323 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 341 public static <E> ImmutableSortedSet<E> copyOf( in copyOf() method in ImmutableSortedSet 377 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(Collections2.cast(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 | 68 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(objectClassProto))); in testGetSuperclassChain() 72 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(oneClassProto))); in testGetSuperclassChain() 76 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(twoClassProto))); in testGetSuperclassChain() 80 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(threeClassProto))); in testGetSuperclassChain() 99 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(twoClassProto))); in testGetSuperclassChain_Unresolved() 103 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()
|
D | SetGenerators.java | 67 return ImmutableSet.copyOf(elements); in create() 79 return ImmutableSet.copyOf(elements); in create() 97 return ImmutableSortedSet.copyOf(elements); in create() 106 return ImmutableSortedSet.copyOf(list) in create() 116 return ImmutableSortedSet.copyOf(list) in create() 127 return ImmutableSortedSet.copyOf(list) in create() 199 return ImmutableSortedSet.copyOf(elements); in create() 206 return ImmutableSet.copyOf(elements).asList(); in create() 214 ImmutableSet<String> set = ImmutableSortedSet.copyOf( in create()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | PoolClassDef.java | 59 …interfaces = new TypeListPool.Key<SortedSet<String>>(ImmutableSortedSet.copyOf(classDef.getInterfa… 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/guava/guava-tests/benchmark/com/google/common/primitives/ |
D | UnsignedBytesBenchmark.java | 50 ba2 = Arrays.copyOf(ba1, ba1.length); in setUp() 52 ba3 = Arrays.copyOf(ba1, ba1.length); in setUp() 53 ba4 = Arrays.copyOf(ba1, ba1.length); in setUp()
|