/external/guava/guava/src/com/google/common/collect/ |
D | Iterables.java | 65 final Iterable<T> iterable) { in unmodifiableIterable() argument 66 checkNotNull(iterable); in unmodifiableIterable() 67 if (iterable instanceof UnmodifiableIterable || in unmodifiableIterable() 68 iterable instanceof ImmutableCollection) { in unmodifiableIterable() 69 return iterable; in unmodifiableIterable() 71 return new UnmodifiableIterable<T>(iterable); in unmodifiableIterable() 81 ImmutableCollection<E> iterable) { in unmodifiableIterable() argument 82 return checkNotNull(iterable); in unmodifiableIterable() 86 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable 88 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() argument [all …]
|
D | Ordering.java | 409 public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) { in leastOf() argument 414 E[] values = (E[]) Iterables.toArray(iterable); in leastOf() 450 public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) { in greatestOf() argument 453 return reverse().leastOf(iterable, k); in greatestOf() 511 public <E extends T> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy() argument 512 List<E> list = Lists.newArrayList(iterable); in sortedCopy() 533 Iterable<E> iterable) { in immutableSortedCopy() argument 534 return ImmutableList.copyOf(sortedCopy(iterable)); in immutableSortedCopy() 543 public boolean isOrdered(Iterable<? extends T> iterable) { in isOrdered() argument 544 Iterator<? extends T> it = iterable.iterator(); in isOrdered() [all …]
|
D | ReverseNaturalOrdering.java | 60 @Override public <E extends Comparable> E min(Iterable<E> iterable) { in min() argument 61 return NaturalOrdering.INSTANCE.max(iterable); in min() 76 @Override public <E extends Comparable> E max(Iterable<E> iterable) { in max() argument 77 return NaturalOrdering.INSTANCE.min(iterable); in max()
|
D | ReverseOrdering.java | 60 @Override public <E extends T> E min(Iterable<E> iterable) { in min() argument 61 return forwardOrder.max(iterable); in min() 76 @Override public <E extends T> E max(Iterable<E> iterable) { in max() argument 77 return forwardOrder.min(iterable); in max()
|
D | NaturalOrdering.java | 56 Iterable<E> iterable) { in sortedCopy() argument 57 List<E> list = Lists.newArrayList(iterable); in sortedCopy()
|
D | ImmutableSortedMultiset.java | 279 Comparator<? super E> comparator, Iterable<? extends E> iterable) { in copyOfInternal() argument 280 if (SortedIterables.hasSameComparator(comparator, iterable) in copyOfInternal() 281 && iterable instanceof ImmutableSortedMultiset<?>) { in copyOfInternal() 282 ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) iterable; in copyOfInternal() 284 return (ImmutableSortedMultiset<E>) iterable; in copyOfInternal() 288 (ImmutableList) ImmutableList.copyOf(SortedIterables.sortedCounts(comparator, iterable)); in copyOfInternal()
|
D | ComparatorOrdering.java | 49 @Override public <E extends T> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy() argument 50 List<E> list = Lists.newArrayList(iterable); in sortedCopy()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Iterables.java | 62 final Iterable<T> iterable) { in unmodifiableIterable() argument 63 checkNotNull(iterable); in unmodifiableIterable() 64 if (iterable instanceof UnmodifiableIterable || in unmodifiableIterable() 65 iterable instanceof ImmutableCollection) { in unmodifiableIterable() 66 return iterable; in unmodifiableIterable() 68 return new UnmodifiableIterable<T>(iterable); in unmodifiableIterable() 78 ImmutableCollection<E> iterable) { in unmodifiableIterable() argument 79 return checkNotNull(iterable); in unmodifiableIterable() 83 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable 85 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() argument [all …]
|
/external/chromium_org/v8/test/mjsunit/es6/ |
D | iteration-semantics.js | 44 var iterable = {}; 45 iterable[Symbol.iterator] = function() { return iterator; }; function 46 return iterable; 80 function fold(cons, seed, iterable) { argument 81 for (var x of iterable) { 87 function* take(iterable, n) { argument 89 for (let x of iterable) { 95 function nth(iterable, n) { argument 96 for (let x of iterable) { 102 function* skip_every(iterable, n) { argument [all …]
|
/external/smali/util/src/main/java/org/jf/util/ |
D | ImmutableConverter.java | 49 public ImmutableList<ImmutableItem> toList(@Nullable final Iterable<? extends Item> iterable) { in toList() argument 50 if (iterable == null) { in toList() 55 if (iterable instanceof ImmutableList) { in toList() 56 for (Item element: iterable) { in toList() 67 return (ImmutableList<ImmutableItem>)iterable; in toList() 70 final Iterator<? extends Item> iter = iterable.iterator(); in toList() 80 public ImmutableSet<ImmutableItem> toSet(@Nullable final Iterable<? extends Item> iterable) { 81 if (iterable == null) { 86 if (iterable instanceof ImmutableSet) { 87 for (Item element: iterable) { [all …]
|
D | CollectionUtils.java | 43 public static <T> int listHashCode(@Nonnull Iterable<T> iterable) { in listHashCode() argument 45 for (T item: iterable) { in listHashCode() 51 …public static <T> int lastIndexOf(@Nonnull Iterable<T> iterable, @Nonnull Predicate<? super T> pre… in lastIndexOf() argument 54 for (T item: iterable) { in lastIndexOf()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | IterablesTest.java | 63 Iterable<String> iterable = Collections.emptySet(); in testSize0() local 64 assertEquals(0, Iterables.size(iterable)); in testSize0() 68 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local 69 assertEquals(1, Iterables.size(iterable)); in testSize1Collection() 73 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local 79 assertEquals(2, Iterables.size(iterable)); in testSize2NonCollection() 94 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest 115 Iterable<String> set = iterable("a", null, "b"); 120 Iterable<String> set = iterable("a", "b"); 135 Iterable<String> set = iterable("a", null, "b"); [all …]
|
/external/mockito/src/org/mockito/internal/util/ |
D | Checks.java | 20 public static <T extends Iterable> T checkItemsNotNull(T iterable, String checkedIterable) { in checkItemsNotNull() argument 21 checkNotNull(iterable, checkedIterable); in checkItemsNotNull() 22 for (Object item : iterable) { in checkItemsNotNull() 25 return iterable; in checkItemsNotNull()
|
/external/chromium_org/third_party/cython/src/Cython/Utility/ |
D | Optimize.c | 251 static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* metho… argument 253 is_dict = is_dict || likely(PyDict_CheckExact(iterable)); 257 *p_orig_length = PyDict_Size(iterable); 258 Py_INCREF(iterable); 259 return iterable; 265 iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); 266 if (!iterable) 269 if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) 270 return iterable; 272 iter = PyObject_GetIter(iterable); [all …]
|
/external/chromium_org/v8/src/ |
D | weak-collection.js | 18 function WeakMapConstructor(iterable) { argument 25 if (!IS_NULL_OR_UNDEFINED(iterable)) { 26 iter = GetIterator(ToObject(iterable)); 134 function WeakSetConstructor(iterable) { argument 141 if (!IS_NULL_OR_UNDEFINED(iterable)) { 142 iter = GetIterator(ToObject(iterable));
|
D | collection.js | 18 function SetConstructor(iterable) { argument 25 if (!IS_NULL_OR_UNDEFINED(iterable)) { 26 iter = GetIterator(ToObject(iterable)); 149 function MapConstructor(iterable) { argument 156 if (!IS_NULL_OR_UNDEFINED(iterable)) { 157 iter = GetIterator(ToObject(iterable));
|
/external/chromium_org/third_party/cython/src/Cython/Includes/cpython/ |
D | set.pxd | 37 # iterable Python object. 50 object PySet_New(object iterable) 53 # iterable. The iterable may be NULL to create a new empty 55 # TypeError if iterable is not actually iterable. The constructor 58 object PyFrozenSet_New(object iterable) 61 # iterable. The iterable may be NULL to create a new empty 63 # failure. Raise TypeError if iterable is not actually iterable.
|
/external/fonttools/Lib/fontTools/misc/ |
D | py23.py | 31 def strjoin(iterable): argument 32 return ''.join(iterable) 82 def bytesjoin(iterable): argument 83 return b''.join(tobytes(item) for item in iterable)
|
/external/chromium_org/tools/telemetry/telemetry/util/ |
D | path_set.py | 15 def __init__(self, iterable=None): argument 17 if iterable: 18 self |= iterable
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
D | PhoneNumberMatcherTest.java | 754 Iterable<PhoneNumberMatch> iterable = in testMaxMatches() local 757 for (PhoneNumberMatch match : iterable) { in testMaxMatches() 773 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesInvalid() local 775 assertFalse(iterable.iterator().hasNext()); in testMaxMatchesInvalid() 792 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesMixed() local 795 for (PhoneNumberMatch match : iterable) { in testMaxMatchesMixed() 803 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("1 456 764 156", RegionCode.ZZ); in testNonPlusPrefixedNumbersNotFoundForInvalidRegion() local 804 Iterator<PhoneNumberMatch> iterator = iterable.iterator(); in testNonPlusPrefixedNumbersNotFoundForInvalidRegion() 815 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("", RegionCode.ZZ); in testEmptyIteration() local 816 Iterator<PhoneNumberMatch> iterator = iterable.iterator(); in testEmptyIteration() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/util/ |
D | CharSequenceConverter.java | 45 …ic ImmutableList<String> immutableStringList(@Nullable Iterable<? extends CharSequence> iterable) { in immutableStringList() argument 46 return CONVERTER.toList(iterable); in immutableStringList()
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
D | CollectionUtil.java | 34 public static <E> ArrayList<E> newArrayList(Iterable<E> iterable) { in newArrayList() argument 36 for (E element : iterable) { in newArrayList()
|
/external/chromium_org/third_party/jinja2/ |
D | runtime.py | 283 def __init__(self, iterable, recurse=None, depth0=0): argument 284 self._iterator = iter(iterable) 295 self._length = len(iterable) 325 def loop(self, iterable): argument 329 return self._recurse(iterable, self._recurse, self.depth0 + 1) 343 iterable = tuple(self._iterator) 344 self._iterator = iter(iterable) 345 self._length = len(iterable) + self.index0 + 1
|
/external/guava/guava/src/com/google/common/base/ |
D | PairwiseEquivalence.java | 51 protected int doHash(Iterable<T> iterable) { in doHash() argument 53 for (T element : iterable) { in doHash()
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/ |
D | test_configuration.py | 201 def combinations(iterable, r): argument 204 pool = tuple(iterable) 226 def symmetric_difference(cls, iterable): argument 228 intersection = iterable[0] 229 for item in iterable:
|