Home
last modified time | relevance | path

Searched refs:nCopies (Results 1 – 25 of 33) sorted by relevance

12

/external/guava/android/guava-tests/test/com/google/common/math/
DPairedStatsAccumulatorTest.java103 MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE)); in setUp()
106 MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE), 2); in setUp()
110 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES); in setUp()
113 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES, 2); in setUp()
117 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
118 Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE)); in setUp()
121 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
122 Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE), in setUp()
/external/guava/guava-tests/test/com/google/common/math/
DPairedStatsAccumulatorTest.java103 MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE)); in setUp()
106 MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE), 2); in setUp()
110 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES); in setUp()
113 Collections.nCopies(OTHER_MANY_VALUES_COUNT, ONE_VALUE), OTHER_MANY_VALUES, 2); in setUp()
117 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
118 Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE)); in setUp()
121 Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE), in setUp()
122 Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE), in setUp()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetSetCountConditionallyTester.java22 import static java.util.Collections.nCopies;
103 expectContents(nCopies(3, e0())); in testSetCountConditional_oldCountTooSmallNonzero()
DMultisetNavigationTester.java86 container.addAll(Collections.nCopies(a.getCount(), a.getElement())); in resetWithHole()
87 container.addAll(Collections.nCopies(c.getCount(), c.getElement())); in resetWithHole()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetSetCountConditionallyTester.java22 import static java.util.Collections.nCopies;
103 expectContents(nCopies(3, e0())); in testSetCountConditional_oldCountTooSmallNonzero()
DMultisetNavigationTester.java86 container.addAll(Collections.nCopies(a.getCount(), a.getElement())); in resetWithHole()
87 container.addAll(Collections.nCopies(c.getCount(), c.getElement())); in resetWithHole()
/external/guava/guava-tests/test/com/google/common/collect/
DCollections2Test.java24 import static java.util.Collections.nCopies;
317 Collections2.orderedPermutations(concat(nCopies(20, 1), nCopies(14, 2))).size());
321 Collections2.orderedPermutations(concat(nCopies(21, 1), nCopies(14, 2))).size());
DMultisetsImmutableEntryTest.java38 return HashMultiset.create(Collections.nCopies(count, element)).entrySet().iterator().next(); in control()
DTopKSelectorTest.java119 assertThat(top.topK()).containsExactlyElementsIn(Collections.nCopies(k, 0)); in testWorstCase()
DAbstractHashFloodingTest.java178 Lists.cartesianProduct(Collections.nCopies(power, haveSameHashes2)),
DListsTest.java659 List<String> list = Collections.nCopies(10000, "foo"); in testCartesianProductTooBig()
998 assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size()); in testPartitionSize_2()
/external/guava/android/guava-tests/test/com/google/common/collect/
DCollections2Test.java24 import static java.util.Collections.nCopies;
317 Collections2.orderedPermutations(concat(nCopies(20, 1), nCopies(14, 2))).size());
321 Collections2.orderedPermutations(concat(nCopies(21, 1), nCopies(14, 2))).size());
DMultisetsImmutableEntryTest.java38 return HashMultiset.create(Collections.nCopies(count, element)).entrySet().iterator().next(); in control()
DTopKSelectorTest.java119 assertThat(top.topK()).containsExactlyElementsIn(Collections.nCopies(k, 0)); in testWorstCase()
DListsTest.java659 List<String> list = Collections.nCopies(10000, "foo"); in testCartesianProductTooBig()
998 assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size()); in testPartitionSize_2()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListReplaceAllTester.java41 expectContents(Collections.nCopies(getNumElements(), samples.e3())); in testReplaceAll()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHtmlTest.java25 String.join("", Collections.nCopies(100, "foo")));
/external/guava/android/guava-tests/test/com/google/common/io/
DMultiInputStreamTest.java133 return new MultiInputStream(Collections.nCopies(10_000_000, ByteSource.empty()).iterator()); in tenMillionEmptySources()
/external/guava/guava-tests/test/com/google/common/io/
DMultiInputStreamTest.java133 return new MultiInputStream(Collections.nCopies(10_000_000, ByteSource.empty()).iterator()); in tenMillionEmptySources()
/external/llvm-project/flang/lib/Evaluate/
Dshape.cpp613 const auto *nCopies{ in operator ()() local
615 if (arrayShape && dimArg && nCopies) { in operator ()()
620 ConvertToType<ExtentType>(common::Clone(*nCopies))); in operator ()()
/external/dagger2/javatests/dagger/functional/cycle/
DDoubleCheckCycleTest.java239 assertThat(values).isEqualTo(Collections.nCopies(numThreads, futureValue)); in testGetFromMultipleThreads()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DJimfsPath.java343 parts.addAll(Collections.nCopies(extraNamesInThis, Name.PARENT)); in relativize()
/external/guava/android/guava-tests/test/com/google/common/reflect/
DInvokableTest.java575 return Iterables.concat(Collections.nCopies(times, prefix), tail); in prepend()
/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java575 return Iterables.concat(Collections.nCopies(times, prefix), tail); in prepend()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java159 List<Future<Integer>> futures = executor.invokeAll(Collections.nCopies(10, incrementTask)); in testDirectExecutorServiceInvokeAll()

12