Home
last modified time | relevance | path

Searched refs:generator (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStatefulTestOp.java53 IntFunction<T[]> generator) { in chain() argument
54 return op.opEvaluateParallel(helper, spliterator, generator); in chain()
73 IntFunction<Integer[]> generator) { in chain() argument
74 … return (Node<Integer>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
93 IntFunction<Long[]> generator) { in chain()
94 return (Node<Long>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
113 IntFunction<Double[]> generator) { in chain()
114 return (Node<Double>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
137 IntFunction<E[]> generator);
DCollectorOps.java71 IntFunction<E_IN[]> generator) { in opEvaluateParallel() argument
72 return helper.evaluate(spliterator, false, generator); in opEvaluateParallel()
88 IntFunction<T[]> generator) { in opEvaluateParallel() argument
92 return super.opEvaluateParallel(helper, spliterator, generator); in opEvaluateParallel()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStatefulTestOp.java54 IntFunction<T[]> generator) { in chain() argument
55 return op.opEvaluateParallel(helper, spliterator, generator); in chain()
74 IntFunction<Integer[]> generator) { in chain() argument
75 … return (Node<Integer>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
94 IntFunction<Long[]> generator) { in chain()
95 return (Node<Long>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
114 IntFunction<Double[]> generator) { in chain()
115 return (Node<Double>) op.opEvaluateParallel(helper, spliterator, generator); in chain()
138 IntFunction<E[]> generator);
DCollectorOps.java72 IntFunction<E_IN[]> generator) { in opEvaluateParallel() argument
73 return helper.evaluate(spliterator, false, generator); in opEvaluateParallel()
89 IntFunction<T[]> generator) { in opEvaluateParallel() argument
93 return super.opEvaluateParallel(helper, spliterator, generator); in opEvaluateParallel()
/libcore/benchmarks/src/benchmarks/regression/
DKeyPairGeneratorBenchmark.java38 private KeyPairGenerator generator; field in KeyPairGeneratorBenchmark
52 this.generator = KeyPairGenerator.getInstance(generatorAlgorithm, provider); in setUp()
54 this.generator.initialize(1024); in setUp()
59 KeyPair keyPair = generator.generateKeyPair(); in time()
DCipherInputStreamBenchmark.java59 KeyGenerator generator = KeyGenerator.getInstance("AES"); in setUp() local
60 generator.init(128); in setUp()
61 key = generator.generateKey(); in setUp()
DCipherBenchmark.java106 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm); in setUp() local
107 generator.init(keySize); in setUp()
108 key = generator.generateKey(); in setUp()
DSignatureBenchmark.java74 KeyPairGenerator generator = KeyPairGenerator.getInstance(keyAlgorithm); in setUp() local
75 keyPair = generator.generateKeyPair(); in setUp()
/libcore/luni/src/test/java/libcore/java/security/
DOldKeyPairGeneratorTestDH.java26 KeyPairGenerator generator = KeyPairGenerator.getInstance("DH"); in testKeyPairGenerator() local
28 generator.initialize(1024); in testKeyPairGenerator()
30 KeyPair keyPair = generator.generateKeyPair(); in testKeyPairGenerator()
/libcore/ojluni/src/main/java/java/util/stream/
DSliceOps.java164 IntFunction<T[]> generator) { in makeRef() argument
173 return Nodes.collect(helper, s, true, generator); in makeRef()
182 return Nodes.collect(this, s, true, generator); in makeRef()
185 return new SliceTask<>(this, helper, spliterator, generator, skip, limit). in makeRef()
276 IntFunction<Integer[]> generator) {
297 return new SliceTask<>(this, helper, spliterator, generator, skip, limit).
388 IntFunction<Long[]> generator) {
409 return new SliceTask<>(this, helper, spliterator, generator, skip, limit).
500 IntFunction<Double[]> generator) {
521 return new SliceTask<>(this, helper, spliterator, generator, skip, limit).
[all …]
DNode.java122 default Node<T> truncate(long from, long to, IntFunction<T[]> generator) { in truncate() argument
127 Node.Builder<T> nodeBuilder = Nodes.builder(size, generator); in truncate()
149 T[] asArray(IntFunction<T[]> generator); in asArray() argument
254 T_NODE truncate(long from, long to, IntFunction<T[]> generator); in truncate() argument
265 default T[] asArray(IntFunction<T[]> generator) { in asArray() argument
272 T[] boxed = generator.apply((int) count()); in asArray()
357 default Node.OfInt truncate(long from, long to, IntFunction<Integer[]> generator) { in truncate() argument
430 default Node.OfLong truncate(long from, long to, IntFunction<Long[]> generator) { in truncate() argument
505 default Node.OfDouble truncate(long from, long to, IntFunction<Double[]> generator) { in truncate() argument
DSortedOps.java149 IntFunction<T[]> generator) { in opEvaluateParallel() argument
153 return helper.evaluate(spliterator, false, generator); in opEvaluateParallel()
157 … T[] flattenedData = helper.evaluate(spliterator, true, generator).asArray(generator); in opEvaluateParallel()
188 IntFunction<Integer[]> generator) { in opEvaluateParallel() argument
190 return helper.evaluate(spliterator, false, generator); in opEvaluateParallel()
193 Node.OfInt n = (Node.OfInt) helper.evaluate(spliterator, true, generator); in opEvaluateParallel()
227 IntFunction<Long[]> generator) { in opEvaluateParallel() argument
229 return helper.evaluate(spliterator, false, generator); in opEvaluateParallel()
232 Node.OfLong n = (Node.OfLong) helper.evaluate(spliterator, true, generator); in opEvaluateParallel()
266 IntFunction<Double[]> generator) { in opEvaluateParallel() argument
[all …]
DAbstractPipeline.java247 public final Node<E_OUT> evaluateToArrayNode(IntFunction<E_OUT[]> generator) { in evaluateToArrayNode() argument
260 return opEvaluateParallel(previousStage, previousStage.sourceSpliterator(0), generator); in evaluateToArrayNode()
263 return evaluate(sourceSpliterator(0), true, generator); in evaluateToArrayNode()
544 IntFunction<E_OUT[]> generator) { in evaluate() argument
547 return evaluateToNode(this, spliterator, flatten, generator); in evaluate()
551 exactOutputSizeIfKnown(spliterator), generator); in evaluate()
584 IntFunction<E_OUT[]> generator); in evaluateToNode() argument
637 IntFunction<E_OUT[]> generator); in makeNodeBuilder() argument
693 IntFunction<E_OUT[]> generator) { in opEvaluateParallel() argument
DPipelineHelper.java180 IntFunction<P_OUT[]> generator); in makeNodeBuilder() argument
207 IntFunction<P_OUT[]> generator); in evaluate() argument
DNodes.java166 static <T> Node.Builder<T> builder(long exactSizeIfKnown, IntFunction<T[]> generator) { in builder() argument
168 ? new FixedNodeBuilder<>(exactSizeIfKnown, generator) in builder()
319 IntFunction<P_OUT[]> generator) { in collect() argument
324 P_OUT[] array = generator.apply((int) size); in collect()
328 Node<P_OUT> node = new CollectorTask.OfRef<>(helper, generator, spliterator).invoke(); in collect()
329 return flattenTree ? flatten(node, generator) : node; in collect()
464 public static <T> Node<T> flatten(Node<T> node, IntFunction<T[]> generator) { in flatten() argument
469 T[] array = generator.apply((int) size); in flatten()
561 public T[] asArray(IntFunction<T[]> generator) { in asArray() argument
562 return generator.apply(0); in asArray()
[all …]
DReferencePipeline.java112 IntFunction<P_OUT[]> generator) { in evaluateToNode() argument
113 return Nodes.collect(helper, spliterator, flattenTree, generator); in evaluateToNode()
138 … final Node.Builder<P_OUT> makeNodeBuilder(long exactSizeIfKnown, IntFunction<P_OUT[]> generator) { in makeNodeBuilder() argument
139 return Nodes.builder(exactSizeIfKnown, generator); in makeNodeBuilder()
445 public final <A> A[] toArray(IntFunction<A[]> generator) {
454 IntFunction rawGenerator = (IntFunction) generator;
692 IntFunction<E_OUT[]> generator);
DDistinctOps.java71 IntFunction<T[]> generator) { in makeRef() argument
74 return helper.evaluate(spliterator, false, generator); in makeRef()
DIntPipeline.java145 IntFunction<Integer[]> generator) { in evaluateToNode() argument
175 IntFunction<Integer[]> generator) { in makeNodeBuilder() argument
663 IntFunction<Integer[]> generator);
DDoublePipeline.java142 IntFunction<Double[]> generator) { in evaluateToNode() argument
171 …inal Node.Builder<Double> makeNodeBuilder(long exactSizeIfKnown, IntFunction<Double[]> generator) { in makeNodeBuilder() argument
668 IntFunction<Double[]> generator);
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java112 KeyPairGenerator generator = null; in testKeyStoreCreate() local
114 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() in testKeyStoreCreate()
120 KeyPair keyPair = generator.generateKeyPair(); in testKeyStoreCreate()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DInfiniteStreamWithLimitOpTest.java360 TestData.OfRef<Long> generator = TestData.Factory.ofSupplier(
363 withData(generator).
371 TestData.OfInt generator = TestData.Factory.ofIntSupplier(
374 withData(generator).
382 TestData.OfLong generator = TestData.Factory.ofLongSupplier(
385 withData(generator).
393 TestData.OfDouble generator = TestData.Factory.ofDoubleSupplier(
396 withData(generator).
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrays.java641 T[] array, java.util.function.IntFunction<? extends T> generator) { in setAll() argument
646 T[] array, java.util.function.IntFunction<? extends T> generator) { in parallelSetAll() argument
650 public static void setAll(int[] array, java.util.function.IntUnaryOperator generator) { in setAll() argument
654 public static void parallelSetAll(int[] array, java.util.function.IntUnaryOperator generator) { in parallelSetAll() argument
658 public static void setAll(long[] array, java.util.function.IntToLongFunction generator) { in setAll() argument
663 long[] array, java.util.function.IntToLongFunction generator) { in parallelSetAll() argument
667 public static void setAll(double[] array, java.util.function.IntToDoubleFunction generator) { in setAll() argument
672 double[] array, java.util.function.IntToDoubleFunction generator) { in parallelSetAll() argument
/libcore/ojluni/src/main/java/java/util/
DArrays.java4626 public static <T> void setAll(T[] array, IntFunction<? extends T> generator) { in setAll() argument
4627 Objects.requireNonNull(generator); in setAll()
4629 array[i] = generator.apply(i); in setAll()
4647 public static <T> void parallelSetAll(T[] array, IntFunction<? extends T> generator) { in parallelSetAll() argument
4648 Objects.requireNonNull(generator); in parallelSetAll()
4649 … IntStream.range(0, array.length).parallel().forEach(i -> { array[i] = generator.apply(i); }); in parallelSetAll()
4665 public static void setAll(int[] array, IntUnaryOperator generator) { in setAll() argument
4666 Objects.requireNonNull(generator); in setAll()
4668 array[i] = generator.applyAsInt(i); in setAll()
4685 public static void parallelSetAll(int[] array, IntUnaryOperator generator) { in parallelSetAll() argument
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java309 ….util.function.IntFunction<? extends @libcore.util.NullFromTypeParam T> generator) { throw new Run… in setAll() argument
311 ….util.function.IntFunction<? extends @libcore.util.NullFromTypeParam T> generator) { throw new Run… in parallelSetAll() argument
313 …ull [] array, @libcore.util.NonNull java.util.function.IntUnaryOperator generator) { throw new Run… in setAll() argument
315 …ull [] array, @libcore.util.NonNull java.util.function.IntUnaryOperator generator) { throw new Run… in parallelSetAll() argument
317 …ll [] array, @libcore.util.NonNull java.util.function.IntToLongFunction generator) { throw new Run… in setAll() argument
319 …ll [] array, @libcore.util.NonNull java.util.function.IntToLongFunction generator) { throw new Run… in parallelSetAll() argument
321 … [] array, @libcore.util.NonNull java.util.function.IntToDoubleFunction generator) { throw new Run… in setAll() argument
323 … [] array, @libcore.util.NonNull java.util.function.IntToDoubleFunction generator) { throw new Run… in parallelSetAll() argument
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java623 DateTimePatternGenerator generator = DateTimePatternGenerator in getDisplayName() local
625 String icuName = generator.getAppendItemName(getIcuFieldNumber(this)); in getDisplayName()

12