/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | LongAccumulator.java | 56 private final long identity; field in LongAccumulator 65 long identity) { in LongAccumulator() argument 67 base = this.identity = identity; in LongAccumulator() 119 base = identity; in reset() 123 a.reset(identity); in reset() 140 base = identity; in getThenReset() 145 a.reset(identity); in getThenReset() 218 private final long identity; field in LongAccumulator.SerializationProxy 222 long identity) { in SerializationProxy() argument 225 this.identity = identity; in SerializationProxy() [all …]
|
D | DoubleAccumulator.java | 54 private final long identity; // use long representation field in DoubleAccumulator 63 double identity) { in DoubleAccumulator() argument 65 base = this.identity = Double.doubleToRawLongBits(identity); in DoubleAccumulator() 122 base = identity; in reset() 126 a.reset(identity); in reset() 143 base = identity; in getThenReset() 148 a.reset(identity); in getThenReset() 223 private final long identity; field in DoubleAccumulator.SerializationProxy 227 long identity) { in SerializationProxy() argument 230 this.identity = identity; in SerializationProxy() [all …]
|
D | Striped64.java | 103 final void reset(long identity) { in reset() argument 104 U.putLongVolatile(this, VALUE, identity); in reset()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SystemScope.java | 102 public synchronized void addIdentity(Identity identity) throws KeyManagementException { in addIdentity() argument 103 if (identity == null) { in addIdentity() 107 String name = identity.getName(); in addIdentity() 112 PublicKey key = identity.getPublicKey(); in addIdentity() 117 names.put(name, identity); in addIdentity() 119 keys.put(key, identity); in addIdentity() 126 public synchronized void removeIdentity(Identity identity) in removeIdentity() argument 130 if (identity == null) { in removeIdentity() 134 String name = identity.getName(); in removeIdentity() 142 PublicKey key = identity.getPublicKey(); in removeIdentity()
|
D | IdentityStub.java | 81 public boolean identityEquals(Identity identity) { in identityEquals() argument 82 return super.identityEquals(identity); in identityEquals()
|
D | IdentityScopeStub.java | 94 public void addIdentity(Identity identity) throws KeyManagementException { in addIdentity() argument 103 public void removeIdentity(Identity identity) throws KeyManagementException { in removeIdentity() argument
|
/libcore/ojluni/src/main/java/java/security/ |
D | Identity.java | 339 public final boolean equals(Object identity) { in equals() argument 341 if (identity == this) { in equals() 345 if (identity instanceof Identity) { in equals() 346 Identity i = (Identity)identity; in equals() 369 protected boolean identityEquals(Identity identity) { in identityEquals() argument 370 if (!name.equalsIgnoreCase(identity.name)) in identityEquals() 373 if ((publicKey == null) ^ (identity.publicKey == null)) in identityEquals() 376 if (publicKey != null && identity.publicKey != null) in identityEquals() 377 if (!publicKey.equals(identity.publicKey)) in identityEquals()
|
D | IdentityScope.java | 219 public abstract void addIdentity(Identity identity) in addIdentity() argument 230 public abstract void removeIdentity(Identity identity) in removeIdentity() argument
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | DoubleUnaryOperatorTest.java | 28 assertEquals(1.0d, DoubleUnaryOperator.identity().applyAsDouble(1.0d)); in testIdentity() 29 assertEquals(Double.NaN, DoubleUnaryOperator.identity().applyAsDouble(Double.NaN)); in testIdentity() 31 DoubleUnaryOperator.identity().applyAsDouble(Double.NEGATIVE_INFINITY)); in testIdentity() 33 DoubleUnaryOperator.identity().applyAsDouble(Double.MAX_VALUE)); in testIdentity()
|
D | UnaryOperatorTest.java | 27 assertSame(arg, UnaryOperator.identity().apply(arg)); in testIdentity() 28 assertNull(null, UnaryOperator.identity().apply(null)); in testIdentity()
|
D | LongUnaryOperatorTest.java | 26 assertEquals(1L, LongUnaryOperator.identity().applyAsLong(1L)); in testIdentity() 27 assertEquals(Long.MAX_VALUE, LongUnaryOperator.identity().applyAsLong(Long.MAX_VALUE)); in testIdentity()
|
D | IntUnaryOperatorTest.java | 26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1)); in testIdentity() 27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE)); in testIdentity()
|
D | FunctionTest.java | 27 assertSame(o, Function.identity().apply(o)); in testIdentity() 28 assertNull(Function.identity().apply(null)); in testIdentity()
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | UnaryOperator.java | 49 static <T> UnaryOperator<T> identity() { in identity() method
|
D | DoubleUnaryOperator.java | 92 static DoubleUnaryOperator identity() { in identity() method
|
D | IntUnaryOperator.java | 92 static IntUnaryOperator identity() { in identity() method
|
D | LongUnaryOperator.java | 92 static LongUnaryOperator identity() { in identity() method
|
D | Function.java | 97 static <T> Function<T, T> identity() { in identity() method
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | PSKKeyManagerProxy.java | 47 protected SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() argument 52 protected SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalTest.java | 117 Function<String, String> identity = (String s) -> { reference.set(s); return s; }; in testMap() local 120 Optional<String> mapped = optionalFoo.map(identity); in testMap() 138 Function<String, Optional<String>> identity = in testFlatMap() local 143 Optional<String> mapped = optionalFoo.flatMap(identity); in testFlatMap()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 209 private final U identity; field in TabulatorsTest.ReduceAssertion 213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReduceAssertion() argument 214 this.identity = identity; in ReduceAssertion() 226 assertEquals(value, identity); in assertValue() 534 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 539 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 545 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 550 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 603 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
|
D | SequentialOpTest.java | 54 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testLazy() 100 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testMixedSeqPar()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReduceOps.java | 245 makeInt(int identity, IntBinaryOperator operator) { 253 state = identity; 381 makeLong(long identity, LongBinaryOperator operator) { 389 state = identity; 517 makeDouble(double identity, DoubleBinaryOperator operator) { 525 state = identity;
|
D | Stream.java | 604 T reduce(T identity, BinaryOperator<T> accumulator); in reduce() argument 693 <U> U reduce(U identity, in reduce() argument
|
D | ReferencePipeline.java | 474 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) { 475 return evaluate(ReduceOps.makeRef(identity, accumulator, accumulator)); 484 …public final <R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<… 485 return evaluate(ReduceOps.makeRef(identity, accumulator, combiner));
|