/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableListTest.java | 95 ImmutableList.copyOf(elements)); in suite() 132 List<String> list = ImmutableList.of(); in testCreation_noArgs() 137 List<String> list = ImmutableList.of("a"); in testCreation_oneElement() 142 List<String> list = ImmutableList.of("a", "b"); in testCreation_twoElements() 147 List<String> list = ImmutableList.of("a", "b", "c"); in testCreation_threeElements() 152 List<String> list = ImmutableList.of("a", "b", "c", "d"); in testCreation_fourElements() 157 List<String> list = ImmutableList.of("a", "b", "c", "d", "e"); in testCreation_fiveElements() 162 List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements() 167 List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements() 172 List<String> list = ImmutableList.of( in testCreation_eightElements() [all …]
|
D | OrderingTest.java | 230 Helpers.testComparator(comparator, ImmutableList.of( 244 Helpers.testComparator(comparator, ImmutableList.of( 366 ImmutableList<String> empty = ImmutableList.of(); 367 ImmutableList<String> a = ImmutableList.of("a"); 368 ImmutableList<String> aa = ImmutableList.of("a", "a"); 369 ImmutableList<String> ab = ImmutableList.of("a", "b"); 370 ImmutableList<String> b = ImmutableList.of("b"); 402 ImmutableList<Integer> unsortedInts = ImmutableList.of(5, 3, 0, 9, 3); 403 ImmutableList<Integer> sortedInts 443 assertEquals(ImmutableList.<Integer>of(), result); [all …]
|
D | SortedListsTest.java | 36 private static final ImmutableList<Integer> LIST_WITH_DUPS = 37 ImmutableList.of(1, 1, 2, 4, 4, 4, 8); 39 private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8);
|
D | ConcurrentHashMultisetBasherTest.java | 70 ImmutableList<String> keys = ImmutableList.of("a", "b", "c"); in testAddAndRemove() 104 private final ImmutableList<String> keys; 107 private MutateTask(ConcurrentHashMultiset<String> multiset, ImmutableList<String> keys) { in MutateTask()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableList.java | 40 public abstract class ImmutableList<E> extends ForwardingImmutableCollection<E> class 45 ImmutableList(List<E> delegate) { in ImmutableList() method in ImmutableList 50 ImmutableList() { in ImmutableList() method in ImmutableList 56 public static <E> ImmutableList<E> of() { in of() 57 return (ImmutableList<E>) EmptyImmutableList.INSTANCE; in of() 60 public static <E> ImmutableList<E> of(E element) { in of() 64 public static <E> ImmutableList<E> of(E e1, E e2) { in of() 66 ImmutableList.<E>nullCheckedList(e1, e2)); in of() 69 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of() 71 ImmutableList.<E>nullCheckedList(e1, e2, e3)); in of() [all …]
|
D | ImmutableCollection.java | 116 private transient ImmutableList<E> asList; 118 public ImmutableList<E> asList() { in asList() 119 ImmutableList<E> list = asList; in asList() 123 ImmutableList<E> createAsList() { in createAsList() 126 return ImmutableList.of(); in createAsList() 128 return ImmutableList.of(iterator().next()); in createAsList()
|
D | ImmutableListMultimap.java | 248 ImmutableMap.Builder<K, ImmutableList<V>> builder = ImmutableMap.builder(); in copyOf() 253 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue()); in copyOf() 263 ImmutableListMultimap(ImmutableMap<K, ImmutableList<V>> map, int size) { in ImmutableListMultimap() 275 @Override public ImmutableList<V> get(@Nullable K key) { in get() 277 ImmutableList<V> list = (ImmutableList<V>) map.get(key); in get() 278 return (list == null) ? ImmutableList.<V>of() : list; in get() 313 @Override public ImmutableList<V> removeAll(Object key) { in removeAll() 322 @Override public ImmutableList<V> replaceValues( in replaceValues()
|
/external/llvm/include/llvm/ADT/ |
D | ImmutableList.h | 64 class ImmutableList { 76 ImmutableList(const ImmutableListImpl<T>* x = 0) : X(x) {} in X() 86 iterator(ImmutableList l) : L(l.getInternalPointer()) {} in iterator() 92 ImmutableList getList() const { return L; } in getList() 119 bool isEqual(const ImmutableList& L) const { return X == L.X; } in isEqual() 121 bool operator==(const ImmutableList& L) const { return isEqual(L); } 131 ImmutableList getTail() { in getTail() 167 ImmutableList<T> concat(const T& Head, ImmutableList<T> Tail) { in concat() 189 ImmutableList<T> add(const T& D, ImmutableList<T> L) { in add() 193 ImmutableList<T> getEmptyList() const { in getEmptyList() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableList.java | 58 public abstract class ImmutableList<E> extends ImmutableCollection<E> class 67 public static <E> ImmutableList<E> of() { in of() 68 return (ImmutableList<E>) EmptyImmutableList.INSTANCE; in of() 79 public static <E> ImmutableList<E> of(E element) { in of() 88 public static <E> ImmutableList<E> of(E e1, E e2) { in of() 97 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of() 106 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) { in of() 115 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) { in of() 124 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { in of() 133 public static <E> ImmutableList<E> of( in of() [all …]
|
D | ImmutableCollection.java | 148 private transient ImmutableList<E> asList; 155 public ImmutableList<E> asList() { in asList() 156 ImmutableList<E> list = asList; in asList() 160 ImmutableList<E> createAsList() { in createAsList() 163 return ImmutableList.of(); in createAsList() 165 return ImmutableList.of(iterator().next()); in createAsList() 205 @Override ImmutableList<Object> createAsList() { in createAsList() 206 return ImmutableList.of(); in createAsList() 238 @Override ImmutableList<E> createAsList() { in createAsList()
|
D | ImmutableListMultimap.java | 253 ImmutableMap.Builder<K, ImmutableList<V>> builder = ImmutableMap.builder(); in copyOf() 258 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue()); in copyOf() 268 ImmutableListMultimap(ImmutableMap<K, ImmutableList<V>> map, int size) { in ImmutableListMultimap() 280 @Override public ImmutableList<V> get(@Nullable K key) { in get() 282 ImmutableList<V> list = (ImmutableList<V>) map.get(key); in get() 283 return (list == null) ? ImmutableList.<V>of() : list; in get() 318 @Override public ImmutableList<V> removeAll(Object key) { in removeAll() 327 @Override public ImmutableList<V> replaceValues( in replaceValues() 350 ImmutableMap.Builder<Object, ImmutableList<Object>> builder in readObject() 365 builder.put(key, ImmutableList.copyOf(array)); in readObject() [all …]
|
D | ImmutableSortedAsList.java | 30 final class ImmutableSortedAsList<E> extends ImmutableList<E> implements SortedIterable<E> { 32 private final transient ImmutableList<E> backingList; 35 ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) { in ImmutableSortedAsList() 61 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { in subList() 63 return (fromIndex == toIndex) ? ImmutableList.<E>of() in subList()
|
D | TransformedImmutableList.java | 34 abstract class TransformedImmutableList<D, E> extends ImmutableList<E> { 36 TransformedView(ImmutableList<D> backingList) { in TransformedView() 45 private transient final ImmutableList<D> backingList; 47 TransformedImmutableList(ImmutableList<D> backingList) { in TransformedImmutableList() 93 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
|
D | CompoundOrdering.java | 28 final ImmutableList<Comparator<? super T>> comparators; 33 = ImmutableList.<Comparator<? super T>>of(primary, secondary); in CompoundOrdering() 37 this.comparators = ImmutableList.copyOf(comparators); in CompoundOrdering() 42 this.comparators = new ImmutableList.Builder<Comparator<? super T>>() in CompoundOrdering()
|
D | SingletonImmutableList.java | 36 final class SingletonImmutableList<E> extends ImmutableList<E> { 107 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { in subList() 109 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this; in subList() 112 @Override public ImmutableList<E> reverse() { in reverse()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 19 import com.google.common.collect.ImmutableList; 124 Hashing.combineOrdered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); in testCombineOrdered_differentBitLengths() 133 assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32))); in testCombineOrdered() 135 Hashing.combineOrdered(ImmutableList.of(hash32, hash32))); in testCombineOrdered() 137 Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32))); in testCombineOrdered() 139 Hashing.combineOrdered(ImmutableList.of(hash31, hash32)).equals( in testCombineOrdered() 140 Hashing.combineOrdered(ImmutableList.of(hash32, hash31)))); in testCombineOrdered() 174 Hashing.combineUnordered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); in testCombineUnordered_differentBitLengths() 183 assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32))); in testCombineUnordered() 184 assertEquals(HashCodes.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | ListGenerators.java | 22 import com.google.common.collect.ImmutableList; 23 import com.google.common.collect.ImmutableList.Builder; 44 return ImmutableList.copyOf(elements); in create() 50 Builder<String> builder = ImmutableList.<String>builder(); in create() 61 return ImmutableList.<String>builder() in create() 72 return ImmutableList.copyOf(list).reverse(); in create() 83 return ImmutableList.copyOf(all) in create() 95 return ImmutableList.copyOf(all) in create() 111 return ImmutableList.copyOf(all) in create() 125 return ImmutableList.copyOf(elements); in create()
|
/external/guava/guava-tests/test/com/google/common/net/ |
D | InternetDomainNameTest.java | 22 import com.google.common.collect.ImmutableList; 61 private static final List<String> VALID_NAME = ImmutableList.of( 79 private static final List<String> INVALID_NAME = ImmutableList.of( 102 private static final List<String> PS = ImmutableList.of( 115 private static final List<String> NO_PS = ImmutableList.of( 118 private static final List<String> NON_PS = ImmutableList.of( 124 private static final List<String> TOP_PRIVATE_DOMAIN = ImmutableList.of( 127 private static final List<String> UNDER_PRIVATE_DOMAIN = ImmutableList.of( 130 private static final List<String> VALID_IP_ADDRS = ImmutableList.of( 133 private static final List<String> INVALID_IP_ADDRS = ImmutableList.of( [all …]
|
D | HostSpecifierTest.java | 19 import com.google.common.collect.ImmutableList; 39 private static final List<String> GOOD_IPS = ImmutableList.of( 42 private static final List<String> BAD_IPS = ImmutableList.of( 45 private static final List<String> GOOD_DOMAINS = ImmutableList.of( 48 private static final List<String> BAD_DOMAINS = ImmutableList.of(
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | BasicValueFactory.h | 28 llvm::ImmutableList<SVal> L; 31 CompoundValData(QualType t, llvm::ImmutableList<SVal> l) in CompoundValData() 34 typedef llvm::ImmutableList<SVal>::iterator iterator; 39 llvm::ImmutableList<SVal> L); 72 llvm::ImmutableList<SVal>::Factory SValListFactory; 169 llvm::ImmutableList<SVal> Vals); 174 llvm::ImmutableList<SVal> getEmptySValList() { in getEmptySValList() 178 llvm::ImmutableList<SVal> consVals(SVal X, llvm::ImmutableList<SVal> L) { in consVals()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | RelationshipTester.java | 22 import com.google.common.collect.ImmutableList; 37 private final List<ImmutableList<T>> groups = Lists.newArrayList(); 45 groups.add(ImmutableList.copyOf(group)); in addRelatedGroup() 51 ImmutableList<T> group = groups.get(groupNumber); in test() 63 ImmutableList<T> unrelatedGroup = groups.get(unrelatedGroupNumber); in test() 75 ImmutableList<T> group = groups.get(groupNumber); in assertRelated()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | EquivalenceTest.java | 21 import com.google.common.collect.ImmutableList; 39 .addEquivalenceGroup(ImmutableList.<String>of()) in testPairwiseEquivalent() 40 .addEquivalenceGroup(ImmutableList.of("a")) in testPairwiseEquivalent() 41 .addEquivalenceGroup(ImmutableList.of("b")) in testPairwiseEquivalent() 42 .addEquivalenceGroup(ImmutableList.of("a", "b"), ImmutableList.of("a", "b")) in testPairwiseEquivalent()
|
D | OptionalTest.java | 23 import com.google.common.collect.ImmutableList; 181 ImmutableList.of(Optional.of("a"), Optional.of("b"), Optional.of("c")); in testPresentInstances_allPresent() 187 ImmutableList.of(Optional.absent(), Optional.absent()); in testPresentInstances_allAbsent() 193 ImmutableList.of(Optional.of("a"), Optional.<String>absent(), Optional.of("c")); in testPresentInstances_somePresent() 199 ImmutableList.of(Optional.of("a"), Optional.<String>absent(), Optional.of("c")); in testPresentInstances_callingIteratorTwice()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathTesting.java | 33 import com.google.common.collect.ImmutableList; 51 static final ImmutableList<RoundingMode> ALL_SAFE_ROUNDING_MODES = ImmutableList.of(DOWN, UP, 55 static final ImmutableList<Integer> EXPONENTS = ImmutableList.of(0, 1, 2, 3, 4, 5, 6, 7, 10, 15, 127 ImmutableList.of(Integer.MIN_VALUE)); 130 ALL_INTEGER_CANDIDATES = Iterables.concat(NONZERO_INTEGER_CANDIDATES, ImmutableList.of(0)); 161 ImmutableList.of(Long.MIN_VALUE)); 163 ALL_LONG_CANDIDATES = Iterables.concat(NONZERO_LONG_CANDIDATES, ImmutableList.of(0L)); 200 Iterables.concat(NONZERO_BIGINTEGER_CANDIDATES, ImmutableList.of(ZERO));
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | ForwardingCacheTest.java | 24 import com.google.common.collect.ImmutableList; 64 expect(mock.getAllPresent(ImmutableList.of("key"))) in testGetAllPresent() 68 forward.getAllPresent(ImmutableList.of("key"))); in testGetAllPresent() 80 mock.invalidateAll(ImmutableList.of("key")); in testInvalidateAllIterable() 82 forward.invalidateAll(ImmutableList.of("key")); in testInvalidateAllIterable()
|