Home
last modified time | relevance | path

Searched refs:S (Results 1 – 25 of 58) sorted by relevance

123

/libcore/ojluni/annotations/flagged_api/java/util/
DServiceLoader.annotated.java31 public final class ServiceLoader<S> implements java.lang.Iterable<S> {
35 public java.util.Iterator<S> iterator() { throw new RuntimeException("Stub!"); } in iterator()
38 public java.util.stream.Stream<java.util.ServiceLoader.Provider<S>> stream() { throw new RuntimeExc… in stream()
40 public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S> service, java.lang.ClassLoader… in load()
42 public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S> service) { throw new RuntimeEx… in load()
44 public static <S> java.util.ServiceLoader<S> loadInstalled(java.lang.Class<S> service) { throw new … in loadInstalled()
46 public java.util.Optional<S> findFirst() { throw new RuntimeException("Stub!"); } in findFirst()
54 public static interface Provider<S> extends java.util.function.Supplier<S> {
56 public java.lang.Class<? extends S> type(); in type()
58 public S get(); in get()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java286 public final class ServiceLoader<S>
287 implements Iterable<S>
290 private final Class<S> service;
311 private Iterator<Provider<S>> lookupIterator1;
312 private final List<S> instantiatedProviders = new ArrayList<>();
315 private Iterator<Provider<S>> lookupIterator2;
316 private final List<Provider<S>> loadedProviders = new ArrayList<>();
341 public static interface Provider<S> extends Supplier<S> {
353 Class<? extends S> type(); in type()
367 @Override S get(); in get()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DForEachOps.java148 public <S> Void evaluateSequential(PipelineHelper<T> helper, in evaluateSequential()
149 Spliterator<S> spliterator) { in evaluateSequential()
154 public <S> Void evaluateParallel(PipelineHelper<T> helper, in evaluateParallel()
155 Spliterator<S> spliterator) { in evaluateParallel()
253 static final class ForEachTask<S, T> extends CountedCompleter<Void> {
254 private Spliterator<S> spliterator;
255 private final Sink<S> sink;
260 Spliterator<S> spliterator, in ForEachTask()
261 Sink<S> sink) { in ForEachTask()
269 ForEachTask(ForEachTask<S, T> parent, Spliterator<S> spliterator) { in ForEachTask() argument
[all …]
DBaseStream.java64 public interface BaseStream<T, S extends BaseStream<T, S>>
113 S sequential(); in sequential()
125 S parallel(); in parallel()
138 S unordered(); in unordered()
158 S onClose(Runnable closeHandler); in onClose()
DAbstractPipeline.java74 public abstract class AbstractPipeline<E_IN, E_OUT, S extends BaseStream<E_OUT, S>>
75 extends PipelineHelper<E_OUT> implements BaseStream<E_OUT, S> {
306 public final S sequential() { in sequential()
308 return (S) this; in sequential()
313 public final S parallel() { in parallel()
315 return (S) this; in parallel()
332 public S onClose(Runnable closeHandler) { in onClose()
341 return (S) this; in onClose()
502 final <P_IN, S extends Sink<E_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator) { in wrapAndCopyInto()
DPipelineHelper.java111 abstract<P_IN, S extends Sink<P_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator); in wrapAndCopyInto()
DReduceOps.java897 private abstract static class ReduceOp<T, R, S extends AccumulatingSink<T, R, S>>
911 public abstract S makeSink();
936 S extends AccumulatingSink<P_OUT, R, S>>
937 extends AbstractTask<P_IN, P_OUT, S, ReduceTask<P_IN, P_OUT, R, S>> {
938 private final ReduceOp<P_OUT, R, S> op;
940 ReduceTask(ReduceOp<P_OUT, R, S> op,
947 ReduceTask(ReduceTask<P_IN, P_OUT, R, S> parent,
954 protected ReduceTask<P_IN, P_OUT, R, S> makeChild(Spliterator<P_IN> spliterator) {
959 protected S doLeaf() {
966 S leftResult = leftChild.getLocalResult();
DMatchOps.java228 public <S> Boolean evaluateSequential(PipelineHelper<T> helper, in evaluateSequential()
229 Spliterator<S> spliterator) { in evaluateSequential()
234 public <S> Boolean evaluateParallel(PipelineHelper<T> helper, in evaluateParallel()
235 Spliterator<S> spliterator) { in evaluateParallel()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/
DSpliteratorTestHelper.java150 public static <T, S extends Spliterator<T>> void testSpliterator(Supplier<S> supplier, in testSpliterator()
171 public static <T, S extends Spliterator<T>> void testForEach( in testForEach()
173 Supplier<S> supplier, in testForEach()
178 public static <T, S extends Spliterator<T>> void testTryAdvance( in testTryAdvance()
180 Supplier<S> supplier, in testTryAdvance()
185 public static <T, S extends Spliterator<T>> void testMixedTryAdvanceForEach( in testMixedTryAdvanceForEach()
187 Supplier<S> supplier, in testMixedTryAdvanceForEach()
192 public static <T, S extends Spliterator<T>> void testMixedTraverseAndSplit( in testMixedTraverseAndSplit()
194 Supplier<S> supplier, in testMixedTraverseAndSplit()
199 public static <T, S extends Spliterator<T>> void testSplitOnce( in testSplitOnce()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java149 static <T, S extends Spliterator<T>> void testSpliterator(Supplier<S> supplier, in testSpliterator()
172 private static <T, S extends Spliterator<T>> void testNullPointerException(Supplier<S> s) { in testNullPointerException()
173 S sp = s.get(); in testNullPointerException()
197 private static <T, S extends Spliterator<T>> void testForEach( in testForEach()
199 Supplier<S> supplier, in testForEach()
202 S spliterator = supplier.get(); in testForEach()
227 private static <T, S extends Spliterator<T>> void testTryAdvance( in testTryAdvance()
229 Supplier<S> supplier, in testTryAdvance()
232 S spliterator = supplier.get(); in testTryAdvance()
257 private static <T, S extends Spliterator<T>> void testMixedTryAdvanceForEach( in testMixedTryAdvanceForEach()
[all …]
DTestData.java40 public interface TestData<T, S extends BaseStream<T, S>>
65 S stream(); in stream()
67 S parallelStream(); in parallelStream()
208 abstract class AbstractTestData<T, S extends BaseStream<T, S>,
211 implements TestData<T, S> {
216 private final Function<T_STATE, S> streamFn;
217 private final Function<T_STATE, S> parStreamFn;
223 Function<T_STATE, S> streamFn, in AbstractTestData()
224 Function<T_STATE, S> parStreamFn, in AbstractTestData()
257 public S stream() { in stream()
[all …]
DLambdaTestHelpers.java429 public static <T, S extends BaseStream<T, S>>
430 List<Function<S, S>> permuteStreamFunctions(List<Function<S, S>> opFunctions) {
431 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
433 List<Function<S, S>> appliedFunctions = new ArrayList<>();
434 for (List<Function<S, S>> fs : opFunctionPermutations) {
435 Function<S, S> applied = s -> {
436 for (Function<S, S> f : fs) {
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java149 static <T, S extends Spliterator<T>> void testSpliterator(Supplier<S> supplier, in testSpliterator()
172 private static <T, S extends Spliterator<T>> void testNullPointerException(Supplier<S> s) { in testNullPointerException()
173 S sp = s.get(); in testNullPointerException()
197 private static <T, S extends Spliterator<T>> void testForEach( in testForEach()
199 Supplier<S> supplier, in testForEach()
202 S spliterator = supplier.get(); in testForEach()
227 private static <T, S extends Spliterator<T>> void testTryAdvance( in testTryAdvance()
229 Supplier<S> supplier, in testTryAdvance()
232 S spliterator = supplier.get(); in testTryAdvance()
257 private static <T, S extends Spliterator<T>> void testMixedTryAdvanceForEach( in testMixedTryAdvanceForEach()
[all …]
DTestData.java39 public interface TestData<T, S extends BaseStream<T, S>>
64 S stream(); in stream()
66 S parallelStream(); in parallelStream()
207 abstract class AbstractTestData<T, S extends BaseStream<T, S>,
210 implements TestData<T, S> {
215 private final Function<T_STATE, S> streamFn;
216 private final Function<T_STATE, S> parStreamFn;
222 Function<T_STATE, S> streamFn, in AbstractTestData()
223 Function<T_STATE, S> parStreamFn, in AbstractTestData()
256 public S stream() { in stream()
[all …]
DLambdaTestHelpers.java416 public static <T, S extends BaseStream<T, S>>
417 List<Function<S, S>> permuteStreamFunctions(List<Function<S, S>> opFunctions) {
418 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
420 List<Function<S, S>> appliedFunctions = new ArrayList<>();
421 for (List<Function<S, S>> fs : opFunctionPermutations) {
422 Function<S, S> applied = s -> {
423 for (Function<S, S> f : fs) {
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThreadLocal.annotated.java40 …il.NonNull public static <S> java.lang.ThreadLocal<S> withInitial(@libcore.util.NonNull java.util.… in withInitial()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamLinkTest.java52 private <S> Function<S, S> apply(int n, Function<S, S> f) { in apply() argument
DSortedOpTest.java96 <T, S extends BaseStream<T, S>> void testStreamTooLarge(Function<LongStream, S> s, in testStreamTooLarge()
97 Function<S, ?> terminal) { in testStreamTooLarge() argument
369 …<T, S extends BaseStream<T, S>, R> S assertNCallsOnly(S s, BiFunction<S, Consumer<T>, S> pf, int n… in assertNCallsOnly() argument
/libcore/ojluni/src/tools/make/gensrc/
DGensrcBuffer.gmk334 $(eval $(call SetupGenBuffer,DirectCharBufferS, $(DIRECT_X_BUF), type:=char, BO:=S))
335 $(eval $(call SetupGenBuffer,DirectCharBufferRS, $(DIRECT_X_BUF), type:=char, RW:=R, BO:=S))
336 $(eval $(call SetupGenBuffer,DirectShortBufferS, $(DIRECT_X_BUF), type:=short, BO:=S))
337 $(eval $(call SetupGenBuffer,DirectShortBufferRS, $(DIRECT_X_BUF), type:=short, RW:=R, BO:=S))
338 $(eval $(call SetupGenBuffer,DirectIntBufferS, $(DIRECT_X_BUF), type:=int, BO:=S))
339 $(eval $(call SetupGenBuffer,DirectIntBufferRS, $(DIRECT_X_BUF), type:=int, RW:=R, BO:=S))
340 $(eval $(call SetupGenBuffer,DirectLongBufferS, $(DIRECT_X_BUF), type:=long, BO:=S))
341 $(eval $(call SetupGenBuffer,DirectLongBufferRS, $(DIRECT_X_BUF), type:=long, RW:=R, BO:=S))
342 $(eval $(call SetupGenBuffer,DirectFloatBufferS, $(DIRECT_X_BUF), type:=float, BO:=S))
343 $(eval $(call SetupGenBuffer,DirectFloatBufferRS, $(DIRECT_X_BUF), type:=float, RW:=R, BO:=S))
[all …]
/libcore/expectations/
DAndroid.bp41 // Make sure that this will be added to the sdk snapshot for S.
42 min_sdk_version: "S",
50 // Make sure that this will be added to the sdk snapshot for S.
51 min_sdk_version: "S",
/libcore/ojluni/src/main/java/jdk/internal/math/
DFDBigInteger.java563 public int quoRemIteration(FDBigInteger S) throws IllegalArgumentException { in quoRemIteration() argument
569 int sSize = S.size(); in quoRemIteration()
586 long q = (this.data[this.nWords - 1] & LONG_MASK) / (S.data[S.nWords - 1] & LONG_MASK); in quoRemIteration()
587 long diff = multDiffMe(q, S); in quoRemIteration()
597 int tStart = S.offset - this.offset; in quoRemIteration()
599 int[] sd = S.data; in quoRemIteration()
1289 private /*@ helper @*/ long multDiffMe(long q, FDBigInteger S) { in multDiffMe() argument
1292 int deltaSize = S.offset - this.offset; in multDiffMe()
1294 int[] sd = S.data; in multDiffMe()
1296 for (int sIndex = 0, tIndex = deltaSize; sIndex < S.nWords; sIndex++, tIndex++) { in multDiffMe()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadLocal.java45 public static <S> java.lang.ThreadLocal<S> withInitial( in withInitial()
46 java.util.function.Supplier<? extends S> supplier) { in withInitial()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldGenericTypesTest.java39 static class MultipleBoundedGenericTypes<T,S extends T>{
40 void multipleBoundedGenericTypesTS(T t, S s){} in multipleBoundedGenericTypesTS()
102 static class MultipleGenericTypes<T,S>{
104 void multipleGenericTypesS(S s){} in multipleGenericTypesS()
105 void multipleGenericTypesTS(T t, S s){} in multipleGenericTypesTS()
/libcore/ojluni/src/test/java/lang/invoke/
DJavaDocExamplesTest.java828 Class<?> S = String.class, I = int.class; in testCountedLoop() local
830 MH_step = LOOKUP.findStatic(THIS_CLASS, "step", methodType(S, S, I, S)); in testCountedLoop()
842 MH_step = LOOKUP.findStatic(THIS_CLASS, "step", methodType(S, S, I)); in testCountedLoop()
858 MH_step = LOOKUP.findStatic(THIS_CLASS, "step", methodType(S, S, I, I, S, S)); in testCountedLoop()
870 MH_step = LOOKUP.findStatic(THIS_CLASS, "step3", methodType(S, S, I, S)); in testCountedLoop()
893 Class<?> L = List.class, S = String.class; in testIteratedLoop() local
895 MH_reverseStep = LOOKUP.findStatic(THIS_CLASS, "reverseStep", methodType(L, L, S)); in testIteratedLoop()
/libcore/luni/src/test/java/libcore/java/util/
DSetOfTest.java239 private static <S extends Serializable> S reserialize(S value) { in reserialize()
241 return (S) SerializationTester.reserialize(value); in reserialize()

123