Home
last modified time | relevance | path

Searched refs:identity (Results 1 – 25 of 41) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DLongAccumulator.java56 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 …]
DDoubleAccumulator.java54 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 …]
DStriped64.java103 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/
DSystemScope.java102 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()
DIdentityStub.java81 public boolean identityEquals(Identity identity) { in identityEquals() argument
82 return super.identityEquals(identity); in identityEquals()
DIdentityScopeStub.java94 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/
DIdentity.java339 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()
DIdentityScope.java219 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/
DDoubleUnaryOperatorTest.java28 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()
DUnaryOperatorTest.java27 assertSame(arg, UnaryOperator.identity().apply(arg)); in testIdentity()
28 assertNull(null, UnaryOperator.identity().apply(null)); in testIdentity()
DLongUnaryOperatorTest.java26 assertEquals(1L, LongUnaryOperator.identity().applyAsLong(1L)); in testIdentity()
27 assertEquals(Long.MAX_VALUE, LongUnaryOperator.identity().applyAsLong(Long.MAX_VALUE)); in testIdentity()
DIntUnaryOperatorTest.java26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1)); in testIdentity()
27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE)); in testIdentity()
DFunctionTest.java27 assertSame(o, Function.identity().apply(o)); in testIdentity()
28 assertNull(Function.identity().apply(null)); in testIdentity()
/libcore/ojluni/src/main/java/java/util/function/
DUnaryOperator.java49 static <T> UnaryOperator<T> identity() { in identity() method
DDoubleUnaryOperator.java92 static DoubleUnaryOperator identity() { in identity() method
DIntUnaryOperator.java92 static IntUnaryOperator identity() { in identity() method
DLongUnaryOperator.java92 static LongUnaryOperator identity() { in identity() method
DFunction.java97 static <T> Function<T, T> identity() { in identity() method
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DPSKKeyManagerProxy.java47 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/
DOptionalTest.java117 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/
DTabulatorsTest.java209 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)));
DSequentialOpTest.java54 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/
DReduceOps.java245 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;
DStream.java604 T reduce(T identity, BinaryOperator<T> accumulator); in reduce() argument
693 <U> U reduce(U identity, in reduce() argument
DReferencePipeline.java474 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));

12