/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | IteratorsTest.java | 20 import static com.google.common.collect.Iterators.advance; 21 import static com.google.common.collect.Iterators.get; 22 import static com.google.common.collect.Iterators.getLast; 78 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() 93 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() 126 Iterator<String> iterator = Iterators.emptyModifiableIterator(); in testEmptyModifiableIterator() 141 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0() 142 assertEquals(0, Iterators.size(iterator)); in testSize0() 147 assertEquals(1, Iterators.size(iterator)); in testSize1() 154 assertEquals(3, Iterators.size(iterator)); in testSize_partiallyConsumed() [all …]
|
D | PeekingIteratorTest.java | 19 import static com.google.common.collect.Iterators.peekingIterator; 66 return Iterators.peekingIterator(iterator); in newTargetIterator() 86 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper() 113 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList() 126 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration() 169 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | IteratorsTest.java | 20 import static com.google.common.collect.Iterators.advance; 21 import static com.google.common.collect.Iterators.get; 22 import static com.google.common.collect.Iterators.getLast; 78 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() 93 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() 126 Iterator<String> iterator = Iterators.emptyModifiableIterator(); in testEmptyModifiableIterator() 141 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0() 142 assertEquals(0, Iterators.size(iterator)); in testSize0() 147 assertEquals(1, Iterators.size(iterator)); in testSize1() 154 assertEquals(3, Iterators.size(iterator)); in testSize_partiallyConsumed() [all …]
|
D | PeekingIteratorTest.java | 19 import static com.google.common.collect.Iterators.peekingIterator; 66 return Iterators.peekingIterator(iterator); in newTargetIterator() 86 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper() 113 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList() 126 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration() 169 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/ |
D | ReflectionClassDef.java | 38 import com.google.common.collect.Iterators; 84 …return ImmutableList.copyOf(Iterators.transform(Iterators.forArray(cls.getInterfaces()), new Funct… in getInterfaces() 107 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter( 108 Iterators.forArray(cls.getDeclaredFields()), 115 return Iterators.transform(staticFields, 129 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter( 130 Iterators.forArray(cls.getDeclaredFields()), 137 return Iterators.transform(staticFields, 151 return Iterators.transform(Iterators.forArray(cls.getDeclaredFields()), 170 Iterators.transform(Iterators.forArray(cls.getDeclaredConstructors()), [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | Iterables.java | 98 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator() 112 : Iterators.size(iterable.iterator()); in size() 126 return Iterators.contains(iterable.iterator(), element); in contains() 143 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll() 160 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll() 181 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf() 268 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual() 279 return Iterators.toString(iterable.iterator()); in toString() 292 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement() 306 return Iterators.getOnlyElement(iterable.iterator(), defaultValue); in getOnlyElement() [all …]
|
D | ForwardingNavigableSet.java | 72 return Iterators.getNext(headSet(e, false).descendingIterator(), null); in standardLower() 86 return Iterators.getNext(headSet(e, true).descendingIterator(), null); in standardFloor() 100 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling() 114 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher() 128 return Iterators.pollNext(iterator()); in standardPollFirst() 142 return Iterators.pollNext(descendingIterator()); in standardPollLast()
|
D | ForwardingCollection.java | 137 return Iterators.contains(iterator(), object); in standardContains() 158 return Iterators.addAll(this, collection.iterator()); in standardAddAll() 187 return Iterators.removeAll(iterator(), collection); in standardRemoveAll() 198 return Iterators.retainAll(iterator(), collection); in standardRetainAll() 209 Iterators.clear(iterator()); in standardClear()
|
D | AbstractNavigableMap.java | 45 return Iterators.getNext(entryIterator(), null); in firstEntry() 51 return Iterators.getNext(descendingEntryIterator(), null); in lastEntry() 57 return Iterators.pollNext(entryIterator()); in pollFirstEntry() 63 return Iterators.pollNext(descendingEntryIterator()); in pollLastEntry()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Iterables.java | 101 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator() 126 : Iterators.size(iterable.iterator()); in size() 140 return Iterators.contains(iterable.iterator(), element); in contains() 157 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll() 174 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll() 198 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf() 230 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual() 241 return Iterators.toString(iterable.iterator()); in toString() 254 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement() 268 return Iterators.getOnlyElement(iterable.iterator(), defaultValue); in getOnlyElement() [all …]
|
D | ForwardingNavigableSet.java | 72 return Iterators.getNext(headSet(e, false).descendingIterator(), null); in standardLower() 86 return Iterators.getNext(headSet(e, true).descendingIterator(), null); in standardFloor() 100 return Iterators.getNext(tailSet(e, true).iterator(), null); in standardCeiling() 114 return Iterators.getNext(tailSet(e, false).iterator(), null); in standardHigher() 128 return Iterators.pollNext(iterator()); in standardPollFirst() 142 return Iterators.pollNext(descendingIterator()); in standardPollLast()
|
D | ForwardingCollection.java | 137 return Iterators.contains(iterator(), object); in standardContains() 158 return Iterators.addAll(this, collection.iterator()); in standardAddAll() 187 return Iterators.removeAll(iterator(), collection); in standardRemoveAll() 198 return Iterators.retainAll(iterator(), collection); in standardRetainAll() 209 Iterators.clear(iterator()); in standardClear()
|
D | AbstractNavigableMap.java | 43 return Iterators.getNext(entryIterator(), null); in firstEntry() 48 return Iterators.getNext(descendingEntryIterator(), null); in lastEntry() 53 return Iterators.pollNext(entryIterator()); in pollFirstEntry() 58 return Iterators.pollNext(descendingEntryIterator()); in pollLastEntry()
|
/external/guava/guava-tests/test/com/google/common/eventbus/ |
D | SubscriberRegistryTest.java | 20 import com.google.common.collect.Iterators; 87 assertEquals(0, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 90 assertEquals(1, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 93 assertEquals(2, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 96 assertEquals(3, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 97 assertEquals(1, Iterators.size(registry.getSubscribers(new Object()))); in testGetSubscribers() 98 assertEquals(1, Iterators.size(registry.getSubscribers(1))); in testGetSubscribers() 101 assertEquals(3, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 102 assertEquals(1, Iterators.size(registry.getSubscribers(new Object()))); in testGetSubscribers() 103 assertEquals(2, Iterators.size(registry.getSubscribers(1))); in testGetSubscribers()
|
/external/guava/android/guava-tests/test/com/google/common/eventbus/ |
D | SubscriberRegistryTest.java | 20 import com.google.common.collect.Iterators; 87 assertEquals(0, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 90 assertEquals(1, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 93 assertEquals(2, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 96 assertEquals(3, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 97 assertEquals(1, Iterators.size(registry.getSubscribers(new Object()))); in testGetSubscribers() 98 assertEquals(1, Iterators.size(registry.getSubscribers(1))); in testGetSubscribers() 101 assertEquals(3, Iterators.size(registry.getSubscribers(""))); in testGetSubscribers() 102 assertEquals(1, Iterators.size(registry.getSubscribers(new Object()))); in testGetSubscribers() 103 assertEquals(2, Iterators.size(registry.getSubscribers(1))); in testGetSubscribers()
|
/external/guava/android/guava/src/com/google/common/graph/ |
D | AbstractBaseGraph.java | 26 import com.google.common.collect.Iterators; 113 return Iterators.unmodifiableIterator( 114 Iterators.concat( 115 Iterators.transform( 123 Iterators.transform( 133 return Iterators.unmodifiableIterator( 134 Iterators.transform(
|
D | EdgesConnecting.java | 22 import com.google.common.collect.Iterators; 52 : Iterators.singletonIterator(connectingEdge); in iterator()
|
/external/guava/guava/src/com/google/common/graph/ |
D | AbstractBaseGraph.java | 26 import com.google.common.collect.Iterators; 113 return Iterators.unmodifiableIterator( 114 Iterators.concat( 115 Iterators.transform( 123 Iterators.transform( 133 return Iterators.unmodifiableIterator( 134 Iterators.transform(
|
D | EdgesConnecting.java | 22 import com.google.common.collect.Iterators; 52 : Iterators.singletonIterator(connectingEdge); in iterator()
|
/external/desugar/java/com/google/devtools/build/android/desugar/io/ |
D | ZipInputFileProvider.java | 17 import com.google.common.collect.Iterators; 61 return Iterators.transform( in iterator() 62 Iterators.forEnumeration(zipFile.entries()), Functions.toStringFunction()); in iterator()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | Iterators.java | 31 public class Iterators { class 58 private Iterators() { in Iterators() method in Iterators
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
D | ClassDefRewriter.java | 34 import com.google.common.collect.Iterators; 104 … return Iterators.concat(getStaticFields().iterator(), getInstanceFields().iterator()); in getFields() 124 … return Iterators.concat(getDirectMethods().iterator(), getVirtualMethods().iterator()); in getMethods()
|
/external/smali/dexlib2/src/main/java/org/jf/util/ |
D | ArraySortedSet.java | 34 import com.google.common.collect.Iterators; 72 return Iterators.forArray((T[])arr); in iterator() 187 return Iterators.elementsEqual(iterator(), other.iterator()); in equals()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ServiceProvidersTestUtil.java | 21 import com.google.common.collect.Iterators; 61 Object[] results = Iterators.toArray( in testHardcodedClasses()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/ |
D | ParallelSnippetGenerator.cpp | 133 SmallVector<int, 2> Iterators(TiedVariables.size(), 0); in generateSnippetUsingStaticRenaming() local 140 PossibleRegsForVar[VarId].find_next(Iterators[VarId]); in generateSnippetUsingStaticRenaming() 147 Iterators[VarId] = NextPossibleReg; in generateSnippetUsingStaticRenaming()
|