Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DLongAccumulator.java85 private final long identity; field in LongAccumulator
94 long identity) { in LongAccumulator() argument
96 base = this.identity = identity; in LongAccumulator()
148 base = identity; in reset()
152 a.reset(identity); in reset()
169 base = identity; in getThenReset()
174 a.reset(identity); in getThenReset()
247 private final long identity; field in LongAccumulator.SerializationProxy
251 long identity) { in SerializationProxy() argument
254 this.identity = identity; in SerializationProxy()
[all …]
DDoubleAccumulator.java83 private final long identity; // use long representation field in DoubleAccumulator
92 double identity) { in DoubleAccumulator() argument
94 base = this.identity = Double.doubleToRawLongBits(identity); in DoubleAccumulator()
151 base = identity; in reset()
155 a.reset(identity); in reset()
172 base = identity; in getThenReset()
177 a.reset(identity); in getThenReset()
252 private final long identity; field in DoubleAccumulator.SerializationProxy
256 long identity) { in SerializationProxy() argument
259 this.identity = identity; in SerializationProxy()
[all …]
DStriped64.java133 final void reset(long identity) { in reset() argument
134 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.java221 public abstract void addIdentity(Identity identity) in addIdentity() argument
232 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()
DIntUnaryOperatorTest.java26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1)); in testIdentity()
27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE)); 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()
DFunctionTest.java27 assertSame(o, Function.identity().apply(o)); in testIdentity()
28 assertNull(Function.identity().apply(null)); in testIdentity()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java472 MethodHandle identity = MethodHandles.identity(boolean.class); in testIdentity() local
473 boolean value = (boolean) identity.invoke(false); in testIdentity()
478 MethodHandle identity = MethodHandles.identity(byte.class); in testIdentity() local
479 byte value = (byte) identity.invoke((byte) 0x8); in testIdentity()
484 MethodHandle identity = MethodHandles.identity(char.class); in testIdentity() local
485 char value = (char) identity.invoke((char) -56); in testIdentity()
490 MethodHandle identity = MethodHandles.identity(short.class); in testIdentity() local
491 short value = (short) identity.invoke((short) -59); in testIdentity()
496 MethodHandle identity = MethodHandles.identity(int.class); in testIdentity() local
497 int value = (int) identity.invoke(52); in testIdentity()
[all …]
/libcore/ojluni/src/main/java/java/util/function/
DUnaryOperator.java49 static <T> UnaryOperator<T> identity() { in identity() method
DIntUnaryOperator.java92 static IntUnaryOperator identity() { in identity() method
DDoubleUnaryOperator.java92 static DoubleUnaryOperator identity() { in identity() method
DLongUnaryOperator.java92 static LongUnaryOperator identity() { in identity() method
DFunction.java97 static <T> Function<T, T> identity() { in identity() method
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java213 public static java.lang.invoke.MethodHandle identity(java.lang.Class<?> type) { in identity() method in MethodHandles
217 public static byte identity(byte val) { in identity() method in MethodHandles
221 public static boolean identity(boolean val) { in identity() method in MethodHandles
225 public static char identity(char val) { in identity() method in MethodHandles
229 public static short identity(short val) { in identity() method in MethodHandles
233 public static int identity(int val) { in identity() method in MethodHandles
237 public static long identity(long val) { in identity() method in MethodHandles
241 public static float identity(float val) { in identity() method in MethodHandles
245 public static double identity(double val) { in identity() method in MethodHandles
/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;
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java171 …@Override public SecretKey getKey(String identityHint, String identity, Socket socket) { return nu… in getKey() argument
172 …@Override public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { return… in getKey() argument

12