/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/ |
D | ObservableMultiTest.kt | 23 checkSingleValue(observable.toList()) { list -> in <lambda>() 24 assertEquals((0 until n).toList(), list) in <lambda>() 44 checkSingleValue(observable.toList()) { list -> in <lambda>() 46 assertEquals((0 until n).toList(), list.sorted()) in <lambda>() 56 checkSingleValue(observable.toList()) { list -> in <lambda>() 57 assertEquals((0 until n).toList(), list) in <lambda>() 67 checkSingleValue(observable.toList()) { list -> in <lambda>() 68 assertEquals((0 until n).toList(), list) in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/ |
D | ObservableMultiTest.kt | 23 checkSingleValue(observable.toList()) { list -> in <lambda>() 24 assertEquals((0 until n).toList(), list) in <lambda>() 44 checkSingleValue(observable.toList()) { list -> in <lambda>() 46 assertEquals((0 until n).toList(), list.sorted()) in <lambda>() 56 checkSingleValue(observable.toList()) { list -> in <lambda>() 57 assertEquals((0 until n).toList(), list) in <lambda>() 67 checkSingleValue(observable.toList()) { list -> in <lambda>() 68 assertEquals((0 until n).toList(), list) in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/ |
D | ZipTest.kt | 19 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 26 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2) { i, j -> i + j }.toList()) in <lambda>() 27 assertEquals(listOf("a1", "b2", "c3"), f2.zip(f1) { i, j -> j + i }.toList()) in <lambda>() 34 assertEquals(emptyList(), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 41 assertEquals(emptyList(), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 48 assertEquals(emptyList(), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 55 assertEquals(listOf("a1", "null2", "null3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 62 assertEquals(listOf("a1", "bnull", "cnull"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>() 77 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>() 95 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>() [all …]
|
D | DebounceTest.kt | 31 val result = flow.debounce(1000).toList() in <lambda>() 60 val result = flow.debounce(1000).toList() in <lambda>() 94 assertEquals((0..9).toList(), flow.toList()) in <lambda>() 220 val result = flow.debounce(1000.milliseconds).toList() in <lambda>() 250 }.toList() in <lambda>() 268 val result = flow.debounce(0).toList() in <lambda>() 286 val result = flow.debounce { 0 }.toList() in <lambda>() 317 }.toList() in <lambda>()
|
D | ScanTest.kt | 15 val result = flow.runningReduce { acc, v -> acc + v }.toList() in <lambda>() 22 val result = flow.scan(emptyList<Int>()) { acc, value -> acc + value }.toList() in <lambda>() 29 …flow.runningReduce { acc, v -> if (v == null) acc else (if (acc == null) v else acc + v) }.toList() in <lambda>() 35 val result = emptyFlow<Int>().runningReduce { _, _ -> 1 }.toList() in <lambda>()
|
D | MergeTest.kt | 34 val list = listOf(flowOf(1), flowOf(null), flowOf(2)).merge().toList() in <lambda>() 44 val result = listOf(flow).merge().flowOn(NamedDispatchers("irrelevant")).toList() in <lambda>() 57 .toList() in <lambda>() 67 override fun <T> Iterable<Flow<T>>.merge(): Flow<T> = originalMerge(*toList().toTypedArray()) in merge()
|
D | FlatMapLatestTest.kt | 17 assertEquals(listOf(1, 2, 2, 3, 3, 4), flow.toList()) in <lambda>() 26 }.flatMapLatest { flowOf(it) }.toList() in <lambda>() 67 }.toList() in <lambda>() 135 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
|
D | SampleTest.kt | 32 val result = flow.sample(1000).toList() in <lambda>() 70 val result = flow.sample(500).toList() in <lambda>() 116 val result = flow.sample(1000).toList() in <lambda>() 147 val result = flow.sample(1000).toList() in <lambda>() 168 assertEquals(listOf(-1, -3, 0, 1, 2, 3), flow.toList()) in <lambda>() 297 val result = flow.sample(1000.milliseconds).toList() in <lambda>()
|
D | TransformWhileTest.kt | 23 }.toList() in <lambda>() 44 assertEquals(listOf(1, 2), transformed.toList()) in <lambda>() 57 val actual = source.asFlow().completeWhenDone().toList() in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/channels/ |
D | ChannelFlowTest.kt | 19 assertEquals(listOf(1, 2, 3), flow.toList()) in <lambda>() 29 assertEquals(listOf(1, 2), flow.toList()) in <lambda>() 40 assertEquals(listOf(1, 4), flow.toList()) // two elements in the middle got conflated in <lambda>() 88 assertEquals(listOf(1, 1), f.toList()) in <lambda>() 95 assertEquals(listOf(1, 1), f.toList()) in <lambda>() 176 assertEquals(emptyList(), flow.toList()) in <lambda>() 194 assertEquals(listOf(1), flow.toList()) in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/test/ |
D | PublisherAsFlowTest.kt | 129 val list = publisher.asFlow().conflate().toList() in <lambda>() 136 check((0..9).toList(), flow.produceIn(this)) in <lambda>() 137 check((0..9).toList(), flow.buffer(2).produceIn(this)) in <lambda>() 138 check((0..9).toList(), flow.buffer(Channel.UNLIMITED).produceIn(this)) in <lambda>() 254 val list = flow.toList() in <lambda>() 258 BufferOverflow.SUSPEND -> (1..m).toList() in <lambda>() 260 BufferOverflow.DROP_OLDEST -> (m - runSize + 1..m).toList() in <lambda>() 262 BufferOverflow.DROP_LATEST -> (1..runSize).toList() in <lambda>()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/api/ |
D | PathMatcherTest.java | 5 import static java.util.stream.Collectors.toList; 31 calPaths.stream().filter(chineseCalendars::matchesPrefixOf).collect(toList()), in TestMatcher() 37 calPaths.stream().filter(anyMonth::matches).collect(toList()), in TestMatcher() 43 calPaths.stream().filter(narrowMonth::matches).collect(toList()), in TestMatcher() 49 calPaths.stream().filter(firstMonth::matches).collect(toList()), in TestMatcher() 58 calPaths.stream().filter(fullMatch::matches).collect(toList()), in TestMatcher()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 533 List<Integer> toList = Lists.reverse(fromList); in testReverseViewRandomAccess() local 534 assertReverseView(fromList, toList); in testReverseViewRandomAccess() 539 List<Integer> toList = Lists.reverse(fromList); in testReverseViewSequential() local 540 assertReverseView(fromList, toList); in testReverseViewSequential() 543 private static void assertReverseView(List<Integer> fromList, List<Integer> toList) { in assertReverseView() argument 546 assertEquals(asList(4, 3, 2, 5), toList); in assertReverseView() 548 assertEquals(asList(6, 4, 3, 2, 5), toList); in assertReverseView() 550 assertEquals(asList(6, 4, 3, 9, 2, 5), toList); in assertReverseView() 552 assertEquals(asList(6, 4, 3, 9, 5), toList); in assertReverseView() 554 assertEquals(asList(6, 3, 9, 5), toList); in assertReverseView() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 533 List<Integer> toList = Lists.reverse(fromList); in testReverseViewRandomAccess() local 534 assertReverseView(fromList, toList); in testReverseViewRandomAccess() 539 List<Integer> toList = Lists.reverse(fromList); in testReverseViewSequential() local 540 assertReverseView(fromList, toList); in testReverseViewSequential() 543 private static void assertReverseView(List<Integer> fromList, List<Integer> toList) { in assertReverseView() argument 546 assertEquals(asList(4, 3, 2, 5), toList); in assertReverseView() 548 assertEquals(asList(6, 4, 3, 2, 5), toList); in assertReverseView() 550 assertEquals(asList(6, 4, 3, 9, 2, 5), toList); in assertReverseView() 552 assertEquals(asList(6, 4, 3, 9, 5), toList); in assertReverseView() 554 assertEquals(asList(6, 3, 9, 5), toList); in assertReverseView() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | JoinStrTest.kt | 51 assertEquals(iterations, results[0], results.toList().toString()) in <lambda>() 52 assertEquals(0, results[1], results.toList().toString()) in <lambda>() 90 assertTrue(results[0] > 0, results.toList().toString()) in <lambda>() 91 assertTrue(results[1] > 0, results.toList().toString()) in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/test/ |
D | FluxMultiTest.kt | 23 assertEquals((0 until n).toList(), list) in <lambda>() 42 assertEquals((0 until n).toList(), list.sorted()) in <lambda>() 53 assertEquals((0 until n).toList(), list) in <lambda>() 64 assertEquals((0 until n).toList(), list) in <lambda>()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/ |
D | MethodReference.java | 40 return names.stream().map(transformer::transform).collect(Collectors.toList()); in transform() 45 return names.stream().filter(MethodReference::startsWithS).collect(Collectors.toList()); in some() 50 return other.stream().filter(this::contains).collect(Collectors.toList()); in intersect() 56 return other.stream().filter(p.negate()).collect(Collectors.toList()); in onlyIn()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-logic/ |
D | com_github_javaparser_symbolsolver_logic_FunctionalInterfaceLogic.txt | 23 …ys.stream(m.getParameters()).map(p -> toSignature(p)).collect(Collectors.toList()))) ==> java.lang… 25 …ys.stream(m.getParameters()).map(p -> toSignature(p)).collect(Collectors.toList())) ==> java.lang.… 26 …Line 71) Arrays.stream(m.getParameters()).map(p -> toSignature(p)).collect(Collectors.toList()) ==… 31 Line 71) Collectors.toList() ==> java.util.stream.Collectors.toList() 34 …eclaredMethods()).map(method -> getSignature(method)).collect(Collectors.toList()) ==> java.util.s… 39 Line 80) Collectors.toList() ==> java.util.stream.Collectors.toList()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ |
D | ResolvedReferenceType.java | 149 .collect(Collectors.toList()))); in describe() 238 .collect(Collectors.toList()); in getAllInterfacesAncestors() 244 .collect(Collectors.toList()); in getAllClassesAncestors() 269 …etTypeParameters().stream().map(tp -> typeParametersMap.getValue(tp)).collect(Collectors.toList()); in typeParametersValues() 399 .collect(Collectors.toList())); in getAllFieldsVisibleToInheritors() 410 .collect(Collectors.toList()); in getAllMethodsVisibleToInheritors() 422 .collect(Collectors.toList())); in create() 478 …ounds().stream().map(ResolvedTypeParameterDeclaration.Bound::getType).collect(Collectors.toList()); in compareConsideringTypeParameters() 479 …ounds().stream().map(ResolvedTypeParameterDeclaration.Bound::getType).collect(Collectors.toList()); in compareConsideringTypeParameters() 503 return typeParameters.stream().map(ResolvedTypeVariable::new).collect(Collectors.toList()); in deriveParams()
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/stream/ |
D | ConsumeAsFlowTest.kt | 18 assertEquals(list, list.stream().consumeAsFlow().toList()) in <lambda>() 25 assertEquals(list, list.stream().onClose { expect(2) }.consumeAsFlow().toList()) in <lambda>() 34 assertEquals(list, flow.toList()) in <lambda>()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserAnonymousClassDeclaration.txt | 10 …ssignableFrom(node.getClass())).map(node -> (T) node).collect(Collectors.toList()) ==> java.util.s… 18 Line 60) Collectors.toList() ==> java.util.stream.Collectors.toList() 22 …lter(type -> type.getTypeDeclaration().isInterface()).collect(Collectors.toList()) ==> java.util.s… 29 Line 80) Collectors.toList() ==> java.util.stream.Collectors.toList() 30 …ParserConstructorDeclaration(this, ctor, typeSolver)).collect(Collectors.toList()) ==> java.util.s… 34 Line 89) Collectors.toList() ==> java.util.stream.Collectors.toList() 42 …ew JavaParserFieldDeclaration(variable, typeSolver))).collect(Collectors.toList()) ==> java.util.s… 49 Line 117) Collectors.toList() ==> java.util.stream.Collectors.toList() 53 …nteface.getTypeDeclaration().getAllFields().stream()).collect(Collectors.toList()) ==> java.util.s… 60 Line 125) Collectors.toList() ==> java.util.stream.Collectors.toList()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/java8/ |
D | InterfaceMethod.java | 26 return names.stream().filter(this::startsWithS).collect(Collectors.toList()); in defaultMethodReference() 34 return names.stream().filter(InterfaceMethod::startsWithA).collect(Collectors.toList()); in staticMethodReference() 38 return names.stream().filter(s -> startsWithS(s)).collect(Collectors.toList()); in lambdaCallsDefaultMethod()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithMembers.java | 40 import static java.util.stream.Collectors.toList; 306 .collect(toList())); in getMethodsByName() 318 .collect(toList())); in getMethods() 331 .collect(toList())); in getMethodsByParameterTypes() 344 .collect(toList())); in getMethodsBySignature() 357 .collect(toList())); in getMethodsByParameterTypes() 384 .collect(toList())); in getFields()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/ |
D | ChannelsTest.kt | 19 assertEquals(testList, testList.asReceiveChannel().toList()) in <lambda>() 55 assertTrue(emptyList<Nothing>().asReceiveChannel().toList().isEmpty()) in <lambda>() 60 assertEquals(testList, testList.asReceiveChannel().toList()) in <lambda>()
|
/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | SimpleServiceLoaderTest.java | 19 import static java.util.stream.Collectors.toList; 53 List<Class<?>> classes = providers.stream().map(Object::getClass).collect(toList()); in loadOnce() 81 List<Class<?>> classes1 = providers1.stream().map(Object::getClass).collect(toList()); in loadTwiceFromSameLoader() 82 List<Class<?>> classes2 = providers2.stream().map(Object::getClass).collect(toList()); in loadTwiceFromSameLoader() 100 List<Class<?>> classes1 = providers1.stream().map(Object::getClass).collect(toList()); in loadTwiceFromDifferentLoaders() 101 List<Class<?>> classes2 = providers2.stream().map(Object::getClass).collect(toList()); in loadTwiceFromDifferentLoaders()
|