/external/guava/guava-tests/test/com/google/common/collect/ |
AbstractImmutableSetTest.java | 56 protected abstract Set<String> copyOf(String[] elements); 57 protected abstract Set<String> copyOf(Collection<String> elements); 58 protected abstract Set<String> copyOf(Iterable<String> elements); 59 protected abstract Set<String> copyOf(Iterator<String> elements); 109 Set<String> set = copyOf(array); 116 Set<String> set = copyOf(array); 122 copyOf((String[]) null); 131 copyOf(array); 140 Set<String> set = copyOf(c); 147 Set<String> set = copyOf(c) [all...] |
ImmutableSetTest.java | 73 @Override protected Set<String> copyOf(String[] elements) { 74 return ImmutableSet.copyOf(elements); 77 @Override protected Set<String> copyOf(Collection<String> elements) { 78 return ImmutableSet.copyOf(elements); 81 @Override protected Set<String> copyOf(Iterable<String> elements) { 82 return ImmutableSet.copyOf(elements); 85 @Override protected Set<String> copyOf(Iterator<String> elements) { 86 return ImmutableSet.copyOf(elements); 90 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); 167 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet) [all...] |
ImmutableMultimapAsMapImplementsMapTest.java | 46 return ImmutableMultimap.copyOf(delegate).asMap();
|
ImmutableSetMultimapAsMapImplementsMapTest.java | 46 return ImmutableSetMultimap.copyOf(delegate).asMap();
|
ImmutableMultisetTest.java | 60 return ImmutableMultiset.copyOf(elements); 72 ImmutableMultiset.copyOf(elements)); 83 ImmutableMultiset.copyOf(elements).elementSet()); 142 Multiset<String> multiset = ImmutableMultiset.copyOf(array); 148 Multiset<String> multiset = ImmutableMultiset.copyOf(array); 163 ImmutableMultiset.copyOf(array); 171 Multiset<String> multiset = ImmutableMultiset.copyOf(c); 177 Multiset<String> multiset = ImmutableMultiset.copyOf(c); 183 Multiset<String> multiset = ImmutableMultiset.copyOf(c); 190 ImmutableMultiset.copyOf(c) [all...] |
ImmutableSortedMultisetTest.java | 57 return ImmutableSortedMultiset.copyOf(elements); 71 return SerializableTester.reserialize(ImmutableSortedMultiset.copyOf(elements)); 86 return SerializableTester.reserialize(ImmutableSortedMultiset.copyOf(elements) 143 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); 149 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); 172 ImmutableSortedMultiset.copyOf(array); 180 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); 186 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); 192 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); 199 ImmutableSortedMultiset.copyOf(c) [all...] |
ImmutableClassToInstanceMapTest.java | 75 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 78 assertSame(map, ImmutableClassToInstanceMap.copyOf(map)); 85 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in); 94 assertSame(map, ImmutableClassToInstanceMap.copyOf(map)); 101 ImmutableClassToInstanceMap.copyOf(nullKey); 109 ImmutableClassToInstanceMap.copyOf(nullValue); 117 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 124 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
|
ImmutableSortedSetTest.java | 90 @Override protected SortedSet<String> copyOf(String[] elements) { 91 return ImmutableSortedSet.copyOf(elements); 94 @Override protected SortedSet<String> copyOf(Collection<String> elements) { 95 return ImmutableSortedSet.copyOf(elements); 98 @Override protected SortedSet<String> copyOf(Iterable<String> elements) { 99 return ImmutableSortedSet.copyOf(elements); 102 @Override protected SortedSet<String> copyOf(Iterator<String> elements) { 103 return ImmutableSortedSet.copyOf(elements); 431 copyOf(asList("e", "a", "f", "b", "d", "c")); 437 copyOf(asList("e", "a", "e", "f", "b", "b", "d", "a", "c")) [all...] |
ImmutableListTest.java | 95 ImmutableList.copyOf(elements)); 254 List<String> list = ImmutableList.copyOf(array); 260 List<String> list = ImmutableList.copyOf(array); 266 ImmutableList.copyOf((String[]) null); 275 ImmutableList.copyOf(array); 284 List<String> list = ImmutableList.copyOf(c); 290 List<String> list = ImmutableList.copyOf(c); 296 List<String> list = ImmutableList.copyOf(c); 299 list = ImmutableList.copyOf(mutableList); 307 ImmutableList.copyOf(c) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ImmutableSortedSet.java | 138 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); 151 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); 164 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); 177 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); 195 return copyOf(Ordering.natural(), all); 208 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( 210 return copyOf(Ordering.natural(), Arrays.asList(elements)); 223 * ImmutableSortedSet.copyOf(s)} returns an {@code ImmutableSortedSet<String>} 239 public static <E> ImmutableSortedSet<E> copyOf( 245 return copyOf(naturalOrder, elements) [all...] |
ImmutableSortedMultiset.java | 108 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); 119 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); 131 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); 143 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); 165 return copyOf(Ordering.natural(), all); 174 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> copyOf(E[] elements) { 175 return copyOf(Ordering.natural(), Arrays.asList(elements)); 185 * ImmutableSortedMultiset.copyOf(s)} returns an {@code ImmutableSortedMultiset<String>} 200 public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) { 205 return copyOf(naturalOrder, elements) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
BiMapGenerators.java | 49 return ImmutableBiMap.copyOf(map).keySet(); 60 return ImmutableBiMap.copyOf(map).values(); 77 return ImmutableBiMap.copyOf(map).inverse().entrySet(); 88 return ImmutableBiMap.copyOf(map).inverse().keySet(); 99 return ImmutableBiMap.copyOf(map).inverse().values(); 116 return ImmutableBiMap.copyOf(map).entrySet();
|
ListGenerators.java | 44 return ImmutableList.copyOf(elements); 72 return ImmutableList.copyOf(list).reverse(); 83 return ImmutableList.copyOf(all) 95 return ImmutableList.copyOf(all) 111 return ImmutableList.copyOf(all) 125 return ImmutableList.copyOf(elements);
|
SetGenerators.java | 58 return ImmutableSet.copyOf(elements); 70 return ImmutableSet.copyOf(elements); 88 return ImmutableSortedSet.copyOf(elements); 97 return ImmutableSortedSet.copyOf(list) 107 return ImmutableSortedSet.copyOf(list) 118 return ImmutableSortedSet.copyOf(list) 178 return ImmutableSortedSet.copyOf(elements); 185 return ImmutableSet.copyOf(elements).asList(); 193 ImmutableSet<String> set = ImmutableSortedSet.copyOf(
|
/frameworks/base/core/java/android/view/textservice/ |
SentenceSuggestionsInfo.java | 54 mSuggestionsInfos = Arrays.copyOf(suggestionsInfos, infoSize); 55 mOffsets = Arrays.copyOf(offsets, infoSize); 56 mLengths = Arrays.copyOf(lengths, infoSize);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
FolderList.java | 22 // Private to reinforce the copyOf() API, which makes it more clear that creating a FolderList 28 folders = ImmutableList.copyOf(in); 33 folders = ImmutableList.copyOf(in.createTypedArrayList(Folder.CREATOR)); 56 * list-copy overhead of {@link #copyOf(Collection)} + {@link #toBlob()}. 82 public static FolderList copyOf(Collection<Folder> in) {
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableSet.java | 88 return copyOf(all.iterator()); 93 return copyOf(elements); 96 public static <E> ImmutableSet<E> copyOf(E[] elements) { 108 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { 110 return copyOf(iterable); 113 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { 120 return copyOf(elements.iterator()); 123 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) { 218 return copyOf(contents.iterator());
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
RegularImmutableBiMap_CustomFieldSerializer.java | 45 * always have one or more elements, ImmutableBiMap.copyOf always return a 49 (RegularImmutableBiMap<Object, Object>) ImmutableBiMap.copyOf(entries);
|
RegularImmutableList_CustomFieldSerializer.java | 46 * always have one or more elements, ImmutableList.copyOf always return 49 return (RegularImmutableList<Object>) ImmutableList.copyOf(elements);
|
RegularImmutableMap_CustomFieldSerializer.java | 45 * always have two or more elements, ImmutableMap.copyOf always return 48 return (RegularImmutableMap<Object, Object>) ImmutableMap.copyOf(entries);
|
RegularImmutableMultiset_CustomFieldSerializer.java | 44 * ImmutableMultiset.copyOf always return a RegularImmutableMultiset back. 47 .copyOf(elements);
|
RegularImmutableSet_CustomFieldSerializer.java | 44 * always have two or more elements, ImmutableSet.copyOf always return 47 return (RegularImmutableSet<Object>) ImmutableSet.copyOf(elements);
|
/libcore/benchmarks/src/benchmarks/ |
ArrayCopyBenchmark.java | 47 char[] dst = Arrays.copyOf(src, 8192);
|
/frameworks/base/services/java/com/android/server/pm/ |
PackageKeySetData.java | 54 mSigningKeySets = Arrays.copyOf(mSigningKeySets, end + 1); 80 mDefinedKeySets = Arrays.copyOf(mDefinedKeySets, end + 1);
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
MimeRecord.java | 45 mContent = Arrays.copyOf(content, content.length); 55 return Arrays.copyOf(mContent, mContent.length);
|